{"$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":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"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":"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXR1","name":"Runtime accessibility","shortDescription":{"text":"Runtime accessibility"},"helpUri":"https://codehealth.canine.dev/dimensions/AXR1"},{"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":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"convert_from_ckpt.download_from_original_stable_diffusion_ckpt (cyclomatic 115): convert_from_ckpt.download_from_original_stable_diffusion_ckpt has cyclomatic complexity 115 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef48e56a36b8343b7a92e38f4ef610af36d472f01c4f5ca3dbfb58c723ab9de4"}},{"ruleId":"D1","level":"warning","message":{"text":"single_file_utils.infer_diffusers_model_type (cyclomatic 95): single_file_utils.infer_diffusers_model_type has cyclomatic complexity 95 (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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ffeec049e96603dca4e9fd7047ebd2aa4eb4cbe1f41ae499bc7879932a2b68"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelMixin.from_pretrained (cyclomatic 94): ModelMixin.from_pretrained has cyclomatic complexity 94 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ed1b40b1fef792f12fe4fac7bcea5d9fd35a14bfb7712445b888601cd5a3d9"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionInpaintPipeline.__call__ (cyclomatic 85): StableDiffusionXLControlNetUnionInpaintPipeline.__call__ has cyclomatic complexity 85 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9214304291232ddf63cccfa1815dfbc50c0450fc5b450dfa4c65165b9cb00415"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetInpaintPipeline.__call__ (cyclomatic 84): StableDiffusionXLControlNetInpaintPipeline.__call__ has cyclomatic complexity 84 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08feb3d90e2f40b45331dcaff9ea07bf0621d903d74b8013049106c8120c815"}},{"ruleId":"D1","level":"warning","message":{"text":"HiDreamImagePipeline.encode_prompt (cyclomatic 82): HiDreamImagePipeline.encode_prompt has cyclomatic complexity 82 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca59341353ee0f0f00e656b16346c13a341f3e4aea21574fa9742b848ab7a2c7"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionPipeline.__call__ (cyclomatic 80): StableDiffusionXLControlNetUnionPipeline.__call__ has cyclomatic complexity 80 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"4029fcde2875119d558708b569365fa7b7b5fa951c6ac957a931e093eb414e12"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionImg2ImgPipeline.__call__ (cyclomatic 80): StableDiffusionXLControlNetUnionImg2ImgPipeline.__call__ has cyclomatic complexity 80 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb312bd95eb53ae960496d6354562f9714aa1082cbeb91cda535c2e034b504b"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetInpaintPipeline.check_inputs (cyclomatic 77): StableDiffusionXLControlNetInpaintPipeline.check_inputs has cyclomatic complexity 77 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"855a51a9c34033a0fcd3e3e2fa2ea6534d285543c60ed2bd8770ab5386540f90"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGPipeline.__call__ (cyclomatic 77): StableDiffusionXLControlNetPAGPipeline.__call__ has cyclomatic complexity 77 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"d358dc1625cb3a56306839e5c7f0fae4c990d15bab5af652f3dcb928c753fac0"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPAGInpaintPipeline.__call__ (cyclomatic 77): StableDiffusionXLPAGInpaintPipeline.__call__ has cyclomatic complexity 77 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf10a6bbf3a3a96f7d4cb2f98413d2c398328d1ffbb89c5f2672bde52fd8fd62"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetPipeline.__call__ (cyclomatic 75): StableDiffusionXLControlNetPipeline.__call__ has cyclomatic complexity 75 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8eec40c59ee26b438d6fb92da7432d66075b5130a152cc24abe6e1a24eefda"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionInpaintPipeline.check_inputs (cyclomatic 74): StableDiffusionXLControlNetUnionInpaintPipeline.check_inputs has cyclomatic complexity 74 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"652d806d375bb0e84c567e783eb625da58472a5f4ebeef201583547aba743c04"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetImg2ImgPipeline.check_inputs (cyclomatic 73): StableDiffusionXLControlNetImg2ImgPipeline.check_inputs has cyclomatic complexity 73 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79d52eb73642963c1d532dbb816663568637d011068a805499eb3d09b7d9b61"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlNetPipeline.__call__ (cyclomatic 73): FluxControlNetPipeline.__call__ has cyclomatic complexity 73 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1348b0fa2a85271d4af6ff4a509c01990f0cbf3c6281e746af198504f726078"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2InContextPipeline.__call__ (cyclomatic 73): LTX2InContextPipeline.__call__ has cyclomatic complexity 73 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02fe900ec2e73ad300bb2f845b7c311ce33740ed2524103f4f9f65acff21ecc"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGImg2ImgPipeline.check_inputs (cyclomatic 73): StableDiffusionXLControlNetPAGImg2ImgPipeline.check_inputs has cyclomatic complexity 73 (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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ffe53815bbc8f88083a778fb02bf4f0e7a07498445293732dc51d45730ed4a"}},{"ruleId":"D1","level":"warning","message":{"text":"UNetFlatConditionModel.__init__ (cyclomatic 72): UNetFlatConditionModel.__init__ has cyclomatic complexity 72 (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":"src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbc43b8b7264fc8c815130e8cd33dee994eec1fb59d5e12354d08ce02c08a8b"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGImg2ImgPipeline.__call__ (cyclomatic 72): StableDiffusionXLControlNetPAGImg2ImgPipeline.__call__ has cyclomatic complexity 72 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4cabbeb16008587ca6cb5ce26a7b107db8440c6458065fcbae1b69bec4cb1c"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos3OmniPipeline.__call__ (cyclomatic 71): Cosmos3OmniPipeline.__call__ has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"508b7cb4b0ad478ac81d4bb4329657700052363002a6b680dca32439783dbf8a"}},{"ruleId":"D1","level":"warning","message":{"text":"UNetFlatConditionModel.forward (cyclomatic 71): UNetFlatConditionModel.forward has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"228d6341a551b24f14c1f1d811685162a98d1f75515a84a289e6f98722df7750"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetPAGInpaintPipeline.__call__ (cyclomatic 71): StableDiffusionControlNetPAGInpaintPipeline.__call__ has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3255f3f3f2c10a48a67d381181c8f3ab9f0fca067e44e9bb80356d77f21238"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetImg2ImgPipeline.__call__ (cyclomatic 70): StableDiffusionXLControlNetImg2ImgPipeline.__call__ has cyclomatic complexity 70 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fadbd8f8d3414d18d9fa9ef1423925cc6ad3727c41e844d56e17117fe0575e2"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLInpaintPipeline.__call__ (cyclomatic 70): StableDiffusionXLInpaintPipeline.__call__ has cyclomatic complexity 70 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4451535aea5fb6c22d39bb1eff99405b8e2736436035533bc5e4ed2766b82bb"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetPipeline.check_inputs (cyclomatic 68): StableDiffusionXLControlNetPipeline.check_inputs has cyclomatic complexity 68 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac7da9e271fc652233eceaa1bc7f6f53f558dc41b50e84b9561c58d7991b270"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGPipeline.check_inputs (cyclomatic 68): StableDiffusionXLControlNetPAGPipeline.check_inputs has cyclomatic complexity 68 (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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d57af39345698aea2b5b4a97c9c9ffe5e3ac3a42f8c61f522fde56637e364e7"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetPAGPipeline.__call__ (cyclomatic 67): StableDiffusionControlNetPAGPipeline.__call__ has cyclomatic complexity 67 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca16a05dc85882ae60ed2fabd1eb24ba1855af3e9e3a78a109bbf5bd45e5b5b1"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionPipeline.check_inputs (cyclomatic 65): StableDiffusionXLControlNetUnionPipeline.check_inputs has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"309f1224f81cb3eea5c3d929014c9edc9894b27cd7368593b16e7eac01454514"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionImg2ImgPipeline.check_inputs (cyclomatic 65): StableDiffusionXLControlNetUnionImg2ImgPipeline.check_inputs has cyclomatic complexity 65 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adebd5eeab3abe5999e0e254c4a00dfe91eb2c4567b07ebfb85bb3df08cdcbe"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxKontextInpaintPipeline.__call__ (cyclomatic 65): FluxKontextInpaintPipeline.__call__ has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"677980f76dc55f6677adba168135f4db5eaf2180b3f831125d8483abda042e52"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetInpaintPipeline.check_inputs (cyclomatic 63): StableDiffusionControlNetInpaintPipeline.check_inputs has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"542983a56aa4332d8ae9a68281d1d7cfbbf33191d780c6ab5aa5f6dca5ae31f2"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffVideoToVideoControlNetPipeline.check_inputs (cyclomatic 62): AnimateDiffVideoToVideoControlNetPipeline.check_inputs has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eda036e2f9bbc6df8693a1e977253e27a543c3b4f37eb1090b7c7c86078c940"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetInpaintPipeline.__call__ (cyclomatic 62): StableDiffusionControlNetInpaintPipeline.__call__ has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b92ae58c682b458c82b2e1ec68a8fe4e8c843d0b7e82541fcbdb2c2c139435"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3ControlNetInpaintingPipeline.check_inputs (cyclomatic 62): StableDiffusion3ControlNetInpaintingPipeline.check_inputs has cyclomatic complexity 62 (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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e024296b2227136df9d8e69d52df55ce343dc98389a4f0c9f9daba0b7d9866"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_wan_lora_to_diffusers (cyclomatic 61): lora_conversion_utils._convert_non_diffusers_wan_lora_to_diffusers has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"3784910bca9f9cb0d5b7155ba53bd514a61c4cfa838dfa885a4150ac79c3a157"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetPipeline.__call__ (cyclomatic 60): StableDiffusionControlNetPipeline.__call__ has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"89df3266902c0251517dcc2ba7dad51091859e115f1ae9f2984060924cae259e"}},{"ruleId":"D1","level":"warning","message":{"text":"LEditsPPPipelineStableDiffusionXL.__call__ (cyclomatic 60): LEditsPPPipelineStableDiffusionXL.__call__ has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc37e8c76628bedd89581cb4e2e5780d8d2b573a7d68272fd17f78af95a3f07"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2ConditionPipeline.__call__ (cyclomatic 60): LTX2ConditionPipeline.__call__ has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"987b479f1c1d5ebeb9cb060b45adb51ed70465628b4c665140d10ecb173ad1f1"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetPAGInpaintPipeline.check_inputs (cyclomatic 60): StableDiffusionControlNetPAGInpaintPipeline.check_inputs has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"861f99ae67fa2575694a3cd2141f71be6ae245abd38c183d364ea80dfbf9474c"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2ImageToVideoPipeline.__call__ (cyclomatic 58): LTX2ImageToVideoPipeline.__call__ has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31cbd758b011afdf0b75d7ebb3bb45895911f36e03042a8e57bf7a46fb29293"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPAGImg2ImgPipeline.__call__ (cyclomatic 58): StableDiffusionXLPAGImg2ImgPipeline.__call__ has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5a7ed03fd5b8dc6838249ecf70dca8a55d851bb25fa4fb8e6c0d6ef1b65704"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetPipeline.check_inputs (cyclomatic 57): StableDiffusionControlNetPipeline.check_inputs has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2466f6cf74b0f6cd983a609d41cf80cd34f1f1eb3d4ee73b548f03cd6e07ea"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPipeline.__call__ (cyclomatic 57): StableDiffusionXLPipeline.__call__ has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"8600c2f17fc33b7a4ac7d0eb1c89567a9b3e384a572ffe33bee3ed505a152f91"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetImg2ImgPipeline.__call__ (cyclomatic 56): StableDiffusionControlNetImg2ImgPipeline.__call__ has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c389508fe8468f478d6ec647ad11ae979d4436143208bebfede2b87af99944"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLImg2ImgPipeline.__call__ (cyclomatic 56): StableDiffusionXLImg2ImgPipeline.__call__ has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"21595b08a4c68041f33b2bcb21121d4c72b0035bdde52553b2f4abac77c150bb"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetImg2ImgPipeline.check_inputs (cyclomatic 55): StableDiffusionControlNetImg2ImgPipeline.check_inputs has cyclomatic complexity 55 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b225e16295a51e83b494778dfb1cbd10cf0a38d352250d93befa14f77b694fd"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPAGPipeline.__call__ (cyclomatic 55): StableDiffusionXLPAGPipeline.__call__ has cyclomatic complexity 55 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"463acb15c08bf9cd3f25762801c36d665fe67f9e7232af937a0c2f47ae312cb7"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffVideoToVideoControlNetPipeline.__call__ (cyclomatic 54): AnimateDiffVideoToVideoControlNetPipeline.__call__ has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e02c1182ab1fa661cd72948a1e4055cef67ca139a840cc30837c31ef202e50d"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxKontextPipeline.__call__ (cyclomatic 54): FluxKontextPipeline.__call__ has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"685d7c40cc76b294e1f84f82c08510afd18f1a93659e497cd55c40c247fb19d2"}},{"ruleId":"D1","level":"warning","message":{"text":"LTXI2VLongMultiPromptPipeline.__call__ (cyclomatic 54): LTXI2VLongMultiPromptPipeline.__call__ has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"0464fa85423cb806ad85fe692655103440cbb851d93cfa266dc0beac4a22813a"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2Pipeline.__call__ (cyclomatic 54): LTX2Pipeline.__call__ has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22cee5e7193a2772b3db70579ac38616db9fc5debf753fa23f1b7665cc2eace"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetPAGPipeline.check_inputs (cyclomatic 54): StableDiffusionControlNetPAGPipeline.check_inputs has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58cca5a995c0dc8fd09dc67fe36b3bcd143f6c1128c2b1dfe8a37179f2dfdb0"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPAGInpaintPipeline.__call__ (cyclomatic 54): StableDiffusionPAGInpaintPipeline.__call__ has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"a939d81b7e18ae3fdc55038c393c1ea25ace1007fdde4d4fa9bdea34ec5fecd3"}},{"ruleId":"D1","level":"warning","message":{"text":"HeliosPyramidPipeline.__call__ (cyclomatic 53): HeliosPyramidPipeline.__call__ has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios_pyramid.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d56052a684ae26771856c59a5dac7977ab00766e44d3fada7b4334e9ac23679"}},{"ruleId":"D1","level":"warning","message":{"text":"JoyImageEditPlusPipeline.__call__ (cyclomatic 53): JoyImageEditPlusPipeline.__call__ has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"0513a7fe9d0e65ca1e5d47af5c13af967e73e0b440916a337b27377d2e5785bc"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffusionPipeline.from_pretrained (cyclomatic 53): DiffusionPipeline.from_pretrained has cyclomatic complexity 53 (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":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c7881a7313d547a7b8566be4612f76f4e90a8e6406f5a339507ed7cbbab670"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageControlNetPipeline.__call__ (cyclomatic 53): QwenImageControlNetPipeline.__call__ has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33c91f529eea78d3c8027c0b45d51482c9354c56054dae11142331a346d4c1e"}},{"ruleId":"D1","level":"warning","message":{"text":"ZImageOmniPipeline.__call__ (cyclomatic 53): ZImageOmniPipeline.__call__ has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_omni.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3b29d417e04d5d7cd5136fe50e2154d488564f1bd3512c112dfdacf1d4eb53"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffControlNetPipeline.check_inputs (cyclomatic 52): AnimateDiffControlNetPipeline.check_inputs has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b03de404ef95e6040b8afb24bb97a1c11d7cdbc0fdf12938ec68ae3f152f626"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlNetInpaintPipeline.__call__ (cyclomatic 52): FluxControlNetInpaintPipeline.__call__ has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d67d3bf52bf1258ab2ff799e304e0b635f0a5d4c0914b91291ef1de44ed65c2"}},{"ruleId":"D1","level":"warning","message":{"text":"LTXConditionPipeline.__call__ (cyclomatic 52): LTXConditionPipeline.__call__ has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_condition.py"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"653c0f07bbe8c1e76d7fec896225dfb67b225216ac171f0670d8eae53b9260a5"}},{"ruleId":"D1","level":"warning","message":{"text":"AceStepPipeline.__call__ (cyclomatic 51): AceStepPipeline.__call__ has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ace_step/pipeline_ace_step.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a92390b733df536f7a8864a033b95619c108ed55e92ecde85b515d82372bdd"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffControlNetPipeline.__call__ (cyclomatic 51): AnimateDiffControlNetPipeline.__call__ has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bf98c4c342f944ec853a30b1d441015e7d6be7111b9fe7c3cd76e08474ec92"}},{"ruleId":"D1","level":"warning","message":{"text":"LEditsPPPipelineStableDiffusion.__call__ (cyclomatic 51): LEditsPPPipelineStableDiffusion.__call__ has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"50db4726f963c8f44fb18a5b11aaa95b660054ec39f87edf270df47f2e3e4a9d"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlNetImg2ImgPipeline.__call__ (cyclomatic 50): FluxControlNetImg2ImgPipeline.__call__ has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"8353781928183563f377d826e7f7f2195b1dfc4625d26a70f15782bfa85c03af"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffusionPipeline.to (cyclomatic 50): DiffusionPipeline.to has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"352292fef8781d9213fe413240bd79dbad635c3ac8bfc164e6a7a05e50e59ec2"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImage21Pipeline.__call__ (cyclomatic 50): QwenImage21Pipeline.__call__ has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"d598d036b9698d2844d4c52fabdc0423e04665a680de5d44d56ffde609d30a4d"}},{"ruleId":"D1","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingImageToVideoPipeline.__call__ (cyclomatic 49): SkyReelsV2DiffusionForcingImageToVideoPipeline.__call__ has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"836094aae76b1666b321c827bb7fd962a77462c40a1e1bb237ff0d0e4b8e9d52"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffSDXLPipeline.encode_prompt (cyclomatic 48): AnimateDiffSDXLPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"32655bbe1356258781ad0fd0513b5a2653b68f3a85e7bcfe7b2ac1ed491f6acf"}},{"ruleId":"D1","level":"warning","message":{"text":"BriaFiboEditPipeline.__call__ (cyclomatic 48): BriaFiboEditPipeline.__call__ has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d87a3bc09a1bb7d05241eea8e06be1a97d29180c492df3533edcdf96ddc053"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetInpaintPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLControlNetInpaintPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2140faa14d221c2bf9c41fbe4cc29b0f20f9d7a80f7df42ab5ca7ea64f139dc"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLControlNetPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e30e456d0973f7888d92bf97d7a8c617e9db5b52f29b85979d9d80309c69232"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetImg2ImgPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLControlNetImg2ImgPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"469924f9dfbcee9f067f431929af4bbf3dd749828240b030cf975aed8da46859"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionInpaintPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLControlNetUnionInpaintPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"5673cbe0b1f67d273341e0855b88cfb0a31b6f31cb3f46ac414a90bbd0c32b98"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLControlNetUnionPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"bced1e3bda36e5f3cd9e4aea7cd512d65ef3dd676bc0e78fdc4eda7d5886c9c6"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionImg2ImgPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLControlNetUnionImg2ImgPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f97637508febb4e843f7927a06ef91b60abd45cd504846fdc2f1b98ee9c0f5a"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetXSPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLControlNetXSPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef14a021284bf8bb14ac3cf328cf6b8b96ebcca2d63343dbe708fdc2c40a4a19"}},{"ruleId":"D1","level":"warning","message":{"text":"SemanticStableDiffusionPipeline.__call__ (cyclomatic 48): SemanticStableDiffusionPipeline.__call__ has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"090e43896826eed8fb39ed9ca9866a10227b2f725c4e1056e4e999af6007034b"}},{"ruleId":"D1","level":"warning","message":{"text":"TextToVideoZeroSDXLPipeline.encode_prompt (cyclomatic 48): TextToVideoZeroSDXLPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb332a8c8d9dc47749339bb43f5fdbca971d229b80964200d2f11b7fc7391b6e"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxInpaintPipeline.__call__ (cyclomatic 48): FluxInpaintPipeline.__call__ has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_inpaint.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"183c8b3f094eadb48962cc70d18ff9e719ca0b23e76c93835d0032c3e7e69dff"}},{"ruleId":"D1","level":"warning","message":{"text":"Flux2KleinInpaintPipeline.__call__ (cyclomatic 48): Flux2KleinInpaintPipeline.__call__ has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64a1671c94ad84eb4727346d96d5ed28f255fb62c7a61a9cb4a0e5cfca4b040"}},{"ruleId":"D1","level":"warning","message":{"text":"KolorsImg2ImgPipeline.__call__ (cyclomatic 48): KolorsImg2ImgPipeline.__call__ has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"528b1cac6244156a347ca437fb709e3d1c9711706a9d560ca25da04c2f991904"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2DFRPipeline.__call__ (cyclomatic 48): LTX2DFRPipeline.__call__ has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93bd710826649fd4683230a937c9110dc0376e3d98a9b3a5b662e0aa2690b17"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2HDRPipeline.__call__ (cyclomatic 48): LTX2HDRPipeline.__call__ has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"455d385547f90deae34339e2285bc45f52cdca53cf43210ee59b1628524e8b9b"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLControlNetPAGPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61526f0b9d21f02b6846d5b15d1047ae9e3295466472d43409095a57ea287d8"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGImg2ImgPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLControlNetPAGImg2ImgPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff458571c59b3059e3054cd67893f3a678e6c182f5032028be7f3dd624e76d80"}},{"ruleId":"D1","level":"warning","message":{"text":"KolorsPAGPipeline.__call__ (cyclomatic 48): KolorsPAGPipeline.__call__ has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_kolors.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9904cb6892f466d67420f3cc763623f3d361d4e8cd084fcc0d83357a59887e0"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPAGPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLPAGPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23e021dc26f6d1696f114ea9abd26e4b0f32aa086c31389ce3af257303f6da6"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPAGImg2ImgPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLPAGImg2ImgPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"0871bc69ecbe86f262fce2957e30445c561c1aaeb8faeb45ba3893cb1582df19"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPAGInpaintPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLPAGInpaintPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f78b66214e4264a96ba44bedf1f2047ba2777711d30b5cfbbe8f79268eb427"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d254c0b21e5f90994d051eab52ad36871a82a593815d61fcf07b5ed803d2a7d"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLImg2ImgPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLImg2ImgPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4c29a5a5b81392f9fc3ab49bfe9c69815b60c13bc1437c198d480eb0d68229"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLInpaintPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLInpaintPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a83195c765658409364667ea4faa5246785c42874f94ceddc714255db01594"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLAdapterPipeline.encode_prompt (cyclomatic 48): StableDiffusionXLAdapterPipeline.encode_prompt has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"273797462c5f81877698d723efcf0e85c422385e141c26059958a59c4596ac44"}},{"ruleId":"D1","level":"warning","message":{"text":"PeftAdapterMixin.load_lora_adapter (cyclomatic 47): PeftAdapterMixin.load_lora_adapter has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/peft.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da278ba719df88a363dcb299e06693b54619311ee195b8c62ace1774ee3bda1"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3ControlNetPipeline.__call__ (cyclomatic 47): StableDiffusion3ControlNetPipeline.__call__ has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab11bd88f83733bd6914ccc3057409b0d39abaf465be5607c68f623e9613d908"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyAnimateInpaintPipeline.__call__ (cyclomatic 47): EasyAnimateInpaintPipeline.__call__ has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a99fdc8bba984c64ed8c71279f07b8b1e6a1db3e911ad87b7552b28c8e896c5"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxPipeline.__call__ (cyclomatic 47): FluxPipeline.__call__ has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"402828be4dc5f09ffb147383528ec509cc2a97b1b1d87ece5f73ded97641fcb8"}},{"ruleId":"D1","level":"warning","message":{"text":"HiDreamImagePipeline.check_inputs (cyclomatic 47): HiDreamImagePipeline.check_inputs has cyclomatic complexity 47 (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":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"da72c277b8460666c78fcc2d44f47298cd5a924dfaa307d5dddb71a91a1ec5b0"}},{"ruleId":"D1","level":"warning","message":{"text":"ModularPipeline.to (cyclomatic 46): ModularPipeline.to has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"4002dddd51024eaef2001da81086206bd58c9f2aac294ed922085d80c9d2ae34"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionInpaintPipeline.__call__ (cyclomatic 46): StableDiffusionInpaintPipeline.__call__ has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"62339b3a6cc7e9dd4df57624afd749cfcb6f9ccbf22b246f22ac0d80b02fab6f"}},{"ruleId":"D1","level":"warning","message":{"text":"FromOriginalModelMixin.from_single_file (cyclomatic 45): FromOriginalModelMixin.from_single_file has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_model.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b3ca3633dddb966cbca34ea31271da92350a2a124f764ed9e47cd6e1d76802"}},{"ruleId":"D1","level":"warning","message":{"text":"BriaFibo2Pipeline.__call__ (cyclomatic 45): BriaFibo2Pipeline.__call__ has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b5db1901afcaa21a973fa36897b67344e60880a07c2e9f8cf0f56c4eac6c97"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos2_5_TransferPipeline.__call__ (cyclomatic 45): Cosmos2_5_TransferPipeline.__call__ has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5f3dfd602e3e5f2e7978d1732e7f4bafc67e349a726b4217baf78855a32e1b"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos3OmniPipeline.prepare_latents (cyclomatic 45): Cosmos3OmniPipeline.prepare_latents has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c7c0762111f6ea7f1c7a54925312ce09d0fa58e3c655a8467f792de10732ba"}},{"ruleId":"D1","level":"warning","message":{"text":"MarigoldDepthPipeline.check_inputs (cyclomatic 45): MarigoldDepthPipeline.check_inputs has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3472f99df34da9d44bc1736f93aa9dd82c7a61b72826280feabcac5819a9de3b"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLAdapterPipeline.__call__ (cyclomatic 45): StableDiffusionXLAdapterPipeline.__call__ has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2833c18f3ba5ac4f3e54936b2bd364e77d85bfdc2a3cc42517fa3d8e82c57f"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLTextEncoderStep.encode_prompt (cyclomatic 44): StableDiffusionXLTextEncoderStep.encode_prompt has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce57d8b2fa48792639875a024887148cb54c53617795c2dccf145efb1884f4aa"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3ControlNetInpaintingPipeline.__call__ (cyclomatic 44): StableDiffusion3ControlNetInpaintingPipeline.__call__ has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cac6c675f7f09d59d5016749f6c1f375b0520728d38cbfaae77294e570179dc"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxImg2ImgPipeline.__call__ (cyclomatic 44): FluxImg2ImgPipeline.__call__ has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_img2img.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"fade4ca0132433049e10174d28c2f8728c89ee092c70212648aa16ef581cada6"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageEditInpaintPipeline.__call__ (cyclomatic 44): QwenImageEditInpaintPipeline.__call__ has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec7efe9cc5b96fd6ebe7468ffa2383476e8ed91dc965149ba14e1367fe8f3ef"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageEditPlusPipeline.__call__ (cyclomatic 44): QwenImageEditPlusPipeline.__call__ has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"4201f81bcc5458963d2836b5baaf7ae2d1a00497c7196b22a9f37a538145eddb"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageLayeredPipeline.__call__ (cyclomatic 43): QwenImageLayeredPipeline.__call__ has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"a654084fba50f01beac7553be3893ec74d544c6eaa7cf59768665cc77bbc255d"}},{"ruleId":"D1","level":"warning","message":{"text":"convert_from_ckpt.convert_ldm_unet_checkpoint (cyclomatic 43): convert_from_ckpt.convert_ldm_unet_checkpoint has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"27826ba9cc07307ac3ddf3939da2ed6ea9bbded4129e79c3e99869bdd3fabe1b"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3InpaintPipeline.__call__ (cyclomatic 43): StableDiffusion3InpaintPipeline.__call__ has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2d4ca9449cd13847516856604fcf204d6c66f6258e3aec9895a40dafd906c4"}},{"ruleId":"D1","level":"warning","message":{"text":"ChromaInpaintPipeline.__call__ (cyclomatic 42): ChromaInpaintPipeline.__call__ has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d29f4873239ab0f889757103d785b2c8b0f70a0e382efe075e2d857ada373e1"}},{"ruleId":"D1","level":"warning","message":{"text":"IFInpaintingSuperResolutionPipeline.check_inputs (cyclomatic 42): IFInpaintingSuperResolutionPipeline.check_inputs has cyclomatic complexity 42 (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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b969d83a8c4effae0d18e9e4dcb44b3d28a78f2d659f3be1bc304353fead56"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPanoramaPipeline.__call__ (cyclomatic 42): StableDiffusionPanoramaPipeline.__call__ has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f3ffc824feaea6f8b0af0cfa9e72d956d947b6c9d5e22fbdbea46538358893"}},{"ruleId":"D1","level":"warning","message":{"text":"MarigoldIntrinsicsPipeline.check_inputs (cyclomatic 42): MarigoldIntrinsicsPipeline.check_inputs has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"2daa0264bc66517257268e1498517b97f7d800058a6410cf1b5e3ff09eecc86c"}},{"ruleId":"D1","level":"warning","message":{"text":"MarigoldNormalsPipeline.check_inputs (cyclomatic 42): MarigoldNormalsPipeline.check_inputs has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_normals.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0f10294f0c9b135d2838a7e8e66c0d40b2c2286b49478b6b8b493a83b531c7"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLInstructPix2PixPipeline.__call__ (cyclomatic 42): StableDiffusionXLInstructPix2PixPipeline.__call__ has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b116f17ea8d69e671124a72b611110ba764f4ff642e1678d6bc6f131a7a7b1"}},{"ruleId":"D1","level":"warning","message":{"text":"WanAnimatePipeline.check_inputs (cyclomatic 42): WanAnimatePipeline.check_inputs has cyclomatic complexity 42 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_animate.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54edb7686d81465cc8f987bb5a242697ff5f94c7dfff46cbebc99a6bf21879a"}},{"ruleId":"D1","level":"warning","message":{"text":"single_file_utils.convert_ldm_unet_checkpoint (cyclomatic 41): single_file_utils.convert_ldm_unet_checkpoint has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3ac009811aae84fdcb8ac5cb75f556d26261b1dcfe925da5f115103b99348d"}},{"ruleId":"D1","level":"warning","message":{"text":"modular_pipeline_utils.generate_modular_model_card_content (cyclomatic 41): modular_pipeline_utils.generate_modular_model_card_content has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc62dcaae9fa370a1180d3f991efbeb7e4ce48953b7461075dfa1ac78d991e4"}},{"ruleId":"D1","level":"warning","message":{"text":"HeliosPipeline.__call__ (cyclomatic 41): HeliosPipeline.__call__ has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"8632beff932f48f20ad8a987213c9af79f7744ffe25932a445b847cb183e7a3d"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanVideoFramepackPipeline.__call__ (cyclomatic 41): HunyuanVideoFramepackPipeline.__call__ has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"30328e94428a07f977aefb14760f75bf874168f918886ccf6dbc97d3f4859e9f"}},{"ruleId":"D1","level":"warning","message":{"text":"KolorsPipeline.__call__ (cyclomatic 41): KolorsPipeline.__call__ has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5896ccaa36398f543f45cc4c5c3146422fcf438cd6076fce1bfa7a9a08a26d0"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2Pipeline.check_inputs (cyclomatic 41): LTX2Pipeline.check_inputs has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0347c84a89ef4cbc2de26c5cb0ce048ffaa72cd53ab0c2a6f2e4f58e790f1d"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2ConditionPipeline.check_inputs (cyclomatic 41): LTX2ConditionPipeline.check_inputs has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0300c7e8e724e423fbbae749021d2662f9c69e326c36fcc60c9ed7a6602462"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2DFRPipeline.check_inputs (cyclomatic 41): LTX2DFRPipeline.check_inputs has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1cd198cbe89c4d101e8ead7a225a5bcad889c6f89608719b55edacf671e6ef"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2DFRTemporalRefinePipeline.check_inputs (cyclomatic 41): LTX2DFRTemporalRefinePipeline.check_inputs has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"6787de4acd5a22172070eee7d23775712e8a47ae5226b1b696c39ae2b48c6689"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2InContextPipeline.check_inputs (cyclomatic 41): LTX2InContextPipeline.check_inputs has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace3550137415ff4b6afcb541dea76c17b091c268cb85018f90152526e29726a"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2ImageToVideoPipeline.check_inputs (cyclomatic 41): LTX2ImageToVideoPipeline.check_inputs has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45059f68a2696c0dad4c9350c70b3405ed08fb47ef2ebb4e4c20a4b6d3859da"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageEditPipeline.__call__ (cyclomatic 41): QwenImageEditPipeline.__call__ has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4eed07c4143a5ff8944074f2743fa6a09052310b429b6d1a0cf2d850e366f6d"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageInpaintPipeline.__call__ (cyclomatic 41): QwenImageInpaintPipeline.__call__ has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a69c2f136bfba985816901936f80d663b1e98debd0dafce18184d8ad6bfbe10"}},{"ruleId":"D1","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingPipeline.__call__ (cyclomatic 41): SkyReelsV2DiffusionForcingPipeline.__call__ has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94e16741be601e4b37a3849647dedf5194091f9bc55da0fac359d3b0d7cf60f"}},{"ruleId":"D1","level":"warning","message":{"text":"ZImageInpaintPipeline.__call__ (cyclomatic 41): ZImageInpaintPipeline.__call__ has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc3b6b8a34f9841d4b9dbdf7b84e6eb4ce0d3ee2de37370ead3a36d8d056187"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaWMTransformer3DModel.forward (cyclomatic 40): SanaWMTransformer3DModel.forward has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":2896}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac1f05836a89cbfc195bc968ee597a8871cfa89986a1fa41a08a2a5982dd8e7"}},{"ruleId":"D1","level":"warning","message":{"text":"UNetMotionModel.__init__ (cyclomatic 40): UNetMotionModel.__init__ has cyclomatic complexity 40 (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":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"2947f29660e881101d2bded1fb1e7f67a3dbe8d01eeb19238a2e4e6c18f5d1e4"}},{"ruleId":"D1","level":"warning","message":{"text":"PikaH3FlexRef2VASetupStep.__call__ (cyclomatic 40): PikaH3FlexRef2VASetupStep.__call__ has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"025168e6fb39107c5cd85b2853306cb982b6f79f7c2fe58fa0574cc9ff4d1c14"}},{"ruleId":"D1","level":"warning","message":{"text":"BriaFibo2Pipeline.check_inputs (cyclomatic 40): BriaFibo2Pipeline.check_inputs has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f23384aeea037b4987b08410e252d5d557945ac8a4b3765ae782943e23bde6f"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3PAGImg2ImgPipeline.check_inputs (cyclomatic 40): StableDiffusion3PAGImg2ImgPipeline.check_inputs has cyclomatic complexity 40 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf14befd1c4086510ec6ee74f7437f734e8bc6e40799140f8d455a547ab195e"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3Img2ImgPipeline.check_inputs (cyclomatic 40): StableDiffusion3Img2ImgPipeline.check_inputs has cyclomatic complexity 40 (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":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b889c11ace67f1f4e9bc4dd3458d6cb2c96464bb695ec4968e56f7ffc1f18d9"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3InpaintPipeline.check_inputs (cyclomatic 40): StableDiffusion3InpaintPipeline.check_inputs has cyclomatic complexity 40 (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":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c25e476ac74a5cfc99c876ae9a57d41df95e2b72bface75b91deded752a990"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLInstructPix2PixPipeline.encode_prompt (cyclomatic 40): StableDiffusionXLInstructPix2PixPipeline.encode_prompt has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20caebddeded571c5dd186caaf5a82111db551adb18b99c7c185a93f6cb30ea"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPAGInpaintPipeline.check_inputs (cyclomatic 39): StableDiffusionXLPAGInpaintPipeline.check_inputs has cyclomatic complexity 39 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8db4fb1c9fc6872335280a256567f47371e4c03a4383fdf640dc9355bca9d0"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageControlNetInpaintPipeline.__call__ (cyclomatic 39): QwenImageControlNetInpaintPipeline.__call__ has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8e649a10cac95667753f8f118e645e4797f3b6d9101582b75028230857f7aa"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPipeline.__call__ (cyclomatic 39): StableDiffusionPipeline.__call__ has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b334eec72710a7e9b731ff3220784105e2b6c66325a6d7da41c222691cb0cf"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3Pipeline.__call__ (cyclomatic 39): StableDiffusion3Pipeline.__call__ has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa80cbdbd20a9d0149e4ceac90196a6533605380bfad897e88e742c9ffee4a06"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLInpaintPipeline.check_inputs (cyclomatic 39): StableDiffusionXLInpaintPipeline.check_inputs has cyclomatic complexity 39 (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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"19375605d978db2c93b94de7e0f7912aa826d481c081c02edca9f0e27e52c970"}},{"ruleId":"D1","level":"warning","message":{"text":"ZImageImg2ImgPipeline.__call__ (cyclomatic 39): ZImageImg2ImgPipeline.__call__ has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb5aae1388bf1459934de35c56bb3e66d5d7588c7fbc20a21c24cf557533103"}},{"ruleId":"D1","level":"warning","message":{"text":"single_file_utils.convert_wan_vae_to_diffusers (cyclomatic 38): single_file_utils.convert_wan_vae_to_diffusers has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":3363}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b05c6a5f103f536c753403c7242ab984e8735a7596ca02c01d69ca2de7e2817"}},{"ruleId":"D1","level":"warning","message":{"text":"Attention.__init__ (cyclomatic 38): Attention.__init__ has cyclomatic complexity 38 (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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fc6b84490e99a07ff177d6db958054deb0be383adc3ab46afae30fb3270595"}},{"ruleId":"D1","level":"warning","message":{"text":"UNet2DConditionModel.forward (cyclomatic 38): UNet2DConditionModel.forward has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e9e3713641c0e1740f1aa1309012e6ae3061056c7fc49057445c1c489583fc"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffSDXLPipeline.__call__ (cyclomatic 38): AnimateDiffSDXLPipeline.__call__ has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"03499fc1bb559f1e5d4f847d6a6136cab9abef5d6f8ebda0208c93f1fd86d662"}},{"ruleId":"D1","level":"warning","message":{"text":"ChromaImg2ImgPipeline.__call__ (cyclomatic 38): ChromaImg2ImgPipeline.__call__ has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"438cb257ef9b823dd1326bdcf3ba35767626995fb774f1cc472291f89db8ec6d"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3ControlNetPipeline.check_inputs (cyclomatic 38): StableDiffusion3ControlNetPipeline.check_inputs has cyclomatic complexity 38 (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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e298504a4beb74ad86140b4f217733122cedc8b3b1dd3e8ae0f4e5ec1a6517fe"}},{"ruleId":"D1","level":"warning","message":{"text":"AmusedPipeline.__call__ (cyclomatic 38): AmusedPipeline.__call__ has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e3467f05ce095885c26ce4a017ed0926b245b1fc0c603622d794693aba235a"}},{"ruleId":"D1","level":"warning","message":{"text":"PixArtSigmaPAGPipeline.__call__ (cyclomatic 38): PixArtSigmaPAGPipeline.__call__ has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"872040f6344b1ebd8b6967d81fbf09695b495fa7512489d9fe544c0809032e0d"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3PAGPipeline.check_inputs (cyclomatic 38): StableDiffusion3PAGPipeline.check_inputs has cyclomatic complexity 38 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_3.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7da5a38bcb2e29821c08f19a98c569cc40e1d9df12a305333335a2385df6056"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3Pipeline.check_inputs (cyclomatic 38): StableDiffusion3Pipeline.check_inputs has cyclomatic complexity 38 (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":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a632f91552a92dab8d29919e295578e519a31939bbfe45d008bc8037939fc3d"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioLDM2UNet2DConditionModel.__init__ (cyclomatic 37): AudioLDM2UNet2DConditionModel.__init__ has cyclomatic complexity 37 (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":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c3a196511d688f7a53c6acecfedd719b53d635c33748b964353085790a4ebf"}},{"ruleId":"D1","level":"warning","message":{"text":"ChromaPipeline.__call__ (cyclomatic 37): ChromaPipeline.__call__ has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca542f20bef9d2e06ddebe4630fcab72b30d345990e41ca5bd8cc2ae89dd306"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetXSPipeline.__call__ (cyclomatic 37): StableDiffusionXLControlNetXSPipeline.__call__ has cyclomatic complexity 37 (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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecd43d4dd658c689514867239a6325bbb5d8f138f9d938bb2f4688fe048cd1d"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxInpaintPipeline.check_inputs (cyclomatic 37): FluxInpaintPipeline.check_inputs has cyclomatic complexity 37 (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":"src/diffusers/pipelines/flux/pipeline_flux_inpaint.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d1fe49084b46a12dc5abcee2357c7896b5945db1950de0291c2d2013e34d84"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxKontextInpaintPipeline.check_inputs (cyclomatic 37): FluxKontextInpaintPipeline.check_inputs has cyclomatic complexity 37 (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":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"b298aa533a4ce3f6bec5249c4538064387fc27acd9432b840a1592ba0dd2266f"}},{"ruleId":"D1","level":"warning","message":{"text":"Flux2KleinPipeline.__call__ (cyclomatic 37): Flux2KleinPipeline.__call__ has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac242da06f690e71f010d3748bbbf46298d3d1e0457d577c2aaaf129d5f0050"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPAGPipeline.__call__ (cyclomatic 37): StableDiffusionPAGPipeline.__call__ has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd.py"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"5185acf70e4888cbe06a13309d879c217bb0b3a82cbace559c1ddb9e856f252b"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPAGPipeline.check_inputs (cyclomatic 37): StableDiffusionXLPAGPipeline.check_inputs has cyclomatic complexity 37 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e245f614ed7adfe8db068634eb521b35335c506b01c218fd8f8ddb6dd467d0f"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffusionPipeline.download (cyclomatic 37): DiffusionPipeline.download has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"763473b6b2bbaf6b26988cb23095d36251c1e3d79a3e6db8910d42bf1955f4b8"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageImg2ImgPipeline.__call__ (cyclomatic 37): QwenImageImg2ImgPipeline.__call__ has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"d623c349820946166b3c4b3fe9111630c8d8344c61eea5b46a8cd0c422d5a8b6"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPipeline.check_inputs (cyclomatic 37): StableDiffusionXLPipeline.check_inputs has cyclomatic complexity 37 (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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"f696d764261dcf9934fda142c86c86df805658434e31a3b456cc61ba7bfe5cde"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLAdapterPipeline.check_inputs (cyclomatic 37): StableDiffusionXLAdapterPipeline.check_inputs has cyclomatic complexity 37 (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":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80722410902dcc41baed9ab4746c140e8114ec8885c2619816621413e4c32ce"}},{"ruleId":"D1","level":"warning","message":{"text":"ZImagePipeline.__call__ (cyclomatic 37): ZImagePipeline.__call__ has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc1717ab4aeef6561da75fe6701d57481c260fbefc2d921c79cf3ab5d536dbd"}},{"ruleId":"D1","level":"warning","message":{"text":"ZImageControlNetPipeline.__call__ (cyclomatic 37): ZImageControlNetPipeline.__call__ has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c996eed0117d6deb330bc0dbcc827a68f4ca2d1a4350d3ab9920d929ddc65f"}},{"ruleId":"D1","level":"warning","message":{"text":"check_inits.parse_init (cyclomatic 37): check_inits.parse_init has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_inits.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"76230e9a0557294df86427b5290214182f5a3f00adc639182567dfc06f8f4732"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_conversion_utils._convert_bfl_flux_control_lora_to_diffusers (cyclomatic 36): lora_conversion_utils._convert_bfl_flux_control_lora_to_diffusers has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e9b5f4072ad9bd930fab263ee82543bc4047a9c92bb210b83f57d5eee7a113"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlNetUnionModel.forward (cyclomatic 36): ControlNetUnionModel.forward has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_union.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76674d34df735fc3ae647544fca488fb041da6ffbb71ff3b453800cda57b82d"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos3OmniPipeline.check_inputs (cyclomatic 36): Cosmos3OmniPipeline.check_inputs has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"220c1fc1f0e5b5e5b51c6bcce44805de52e3718ce21890aac8f672efeef6c955"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2DFRTemporalRefinePipeline.__call__ (cyclomatic 36): LTX2DFRTemporalRefinePipeline.__call__ has cyclomatic complexity 36 (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":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c89009b8716b82be38b5544e3a6f9dafdeb94c46409c842a657ffc20e812d0"}},{"ruleId":"D1","level":"warning","message":{"text":"MotifVideoImage2VideoPipeline.check_inputs (cyclomatic 36): MotifVideoImage2VideoPipeline.check_inputs has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc682e37d81f154989cf55c47d2db5dce6672d20f144ff68ab57bb43b2132c5f"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPAGImg2ImgPipeline.check_inputs (cyclomatic 36): StableDiffusionXLPAGImg2ImgPipeline.check_inputs has cyclomatic complexity 36 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbdfb10e8c10ea99b1115b9bdf06bfb573e0d882a3c61229c597b96463b6a65"}},{"ruleId":"D1","level":"warning","message":{"text":"PixArtAlphaPipeline.__call__ (cyclomatic 36): PixArtAlphaPipeline.__call__ has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bdaa605e33efda51c2f306187869b88cd9603b9cce0cfdbec8b4acae0334630"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImagePipeline.__call__ (cyclomatic 36): QwenImagePipeline.__call__ has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0d091a48666f73c941d37c2c1b32eb81f957dfcb71730c030af74b3534ecd1"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLImg2ImgPipeline.check_inputs (cyclomatic 36): StableDiffusionXLImg2ImgPipeline.check_inputs has cyclomatic complexity 36 (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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"344cd7afbf7197700bd3f3b7459cc1a4661dd8c907099a452bef88f33f669251"}},{"ruleId":"D1","level":"warning","message":{"text":"VisualClozePipeline.check_inputs (cyclomatic 36): VisualClozePipeline.check_inputs has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/visualcloze/pipeline_visualcloze_combined.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8cd70d9bb8ff85f962750b349c1ffa780d2dbcde4c3aa0bcfb60e281fee395"}},{"ruleId":"D1","level":"warning","message":{"text":"WanImageToVideoPipeline.__call__ (cyclomatic 36): WanImageToVideoPipeline.__call__ has cyclomatic complexity 36 (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":"src/diffusers/pipelines/wan/pipeline_wan_i2v.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8df7cfb5cf4dc3db6b2cbb8e994f3181bbd3f8b4eda602fdcafff9269746bcb"}},{"ruleId":"D1","level":"warning","message":{"text":"WanVACEPipeline.__call__ (cyclomatic 36): WanVACEPipeline.__call__ has cyclomatic complexity 36 (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":"src/diffusers/pipelines/wan/pipeline_wan_vace.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e802ff835eee39ec94d86c6f3b9d8553fec5c0f1236dc31a046e09ee29928a"}},{"ruleId":"D1","level":"warning","message":{"text":"ZImageControlNetInpaintPipeline.__call__ (cyclomatic 36): ZImageControlNetInpaintPipeline.__call__ has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d79a08907b742afc2a5c3d8962e672a2186b4cc248ad728a41de334fb8df2a0"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_flux2_lora_to_diffusers (cyclomatic 35): lora_conversion_utils._convert_non_diffusers_flux2_lora_to_diffusers has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2434}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b7db2980d2668af818ddcee01a37da478134b56a7faf5094a75bad20d27395"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlNetModel.__init__ (cyclomatic 35): ControlNetModel.__init__ has cyclomatic complexity 35 (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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88cc49d9061ea180c99f7e9ef2c1dff742d0affefa12ffacd1296c98402bf2b"}},{"ruleId":"D1","level":"warning","message":{"text":"AnyFlowFARPipeline.__call__ (cyclomatic 35): AnyFlowFARPipeline.__call__ has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"499e4d82bb21b681aa850d02a982577583946089e1dafa4a09d83f6354abdccb"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetXSPipeline.check_inputs (cyclomatic 35): StableDiffusionXLControlNetXSPipeline.check_inputs has cyclomatic complexity 35 (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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"791d6876ec7e33f9a232261e1470877cb42b2b4f013c515845e6060a787c7dfc"}},{"ruleId":"D1","level":"warning","message":{"text":"UniDiffuserPipeline.check_inputs (cyclomatic 35): UniDiffuserPipeline.check_inputs has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"338ede9f51aaa8f0a64be9a30f8cdc5d8aae3effb8ea54303ccc397f44fcc88c"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyAnimateControlPipeline.__call__ (cyclomatic 35): EasyAnimateControlPipeline.__call__ has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8845ddaf66456c071db8de2eb160b23040d1099bcabf6843ea5997d2242e69b"}},{"ruleId":"D1","level":"warning","message":{"text":"Flux2KleinKVPipeline.__call__ (cyclomatic 35): Flux2KleinKVPipeline.__call__ has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab11c07c22e245165fd8be721ba32ac21d0c43fec27bfcd1fe6035a9fd08cbb3"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanVideoImageToVideoPipeline.__call__ (cyclomatic 35): HunyuanVideoImageToVideoPipeline.__call__ has cyclomatic complexity 35 (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":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"4611ea9574f6f6087dc24eba1ca4c11ead06584b5bef17a28d9f2fc3b66e4840"}},{"ruleId":"D1","level":"warning","message":{"text":"LTXConditionPipeline.check_inputs (cyclomatic 35): LTXConditionPipeline.check_inputs has cyclomatic complexity 35 (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":"src/diffusers/pipelines/ltx/pipeline_ltx_condition.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe4149aab70eb48d652eeade62811154f4615ec113f0d258ae595395a52f15b"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPAGImg2ImgPipeline.__call__ (cyclomatic 35): StableDiffusionPAGImg2ImgPipeline.__call__ has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4697687238220c0164d98c866af9d3c44c0b2f03843739d4cfac786cdacb31d"}},{"ruleId":"D1","level":"warning","message":{"text":"PixArtSigmaPipeline.__call__ (cyclomatic 35): PixArtSigmaPipeline.__call__ has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3e7a6534dea46bcdc2f1be3ae16f4ccec11605e3652aaca6a93dfa57efb9bf"}},{"ruleId":"D1","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingVideoToVideoPipeline.__call__ (cyclomatic 35): SkyReelsV2DiffusionForcingVideoToVideoPipeline.__call__ has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"584a8ed63d6f646d326946aa37acbe7daa4995be5c030fd9220ebe05590680cf"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_conversion_utils._maybe_map_sgm_blocks_to_diffusers (cyclomatic 34): lora_conversion_utils._maybe_map_sgm_blocks_to_diffusers has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ac68f29a368face9b0cc9a6d1acb7dda1891dd945e0e46af548001f7df9926"}},{"ruleId":"D1","level":"warning","message":{"text":"ZImageControlNetModel.forward (cyclomatic 34): ZImageControlNetModel.forward has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d6c10f3fe2b6c18428f0189d52cde7bd116d904fc806587b05bb7238f0688f"}},{"ruleId":"D1","level":"warning","message":{"text":"UNetMotionModel.from_unet2d (cyclomatic 34): UNetMotionModel.from_unet2d has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5169eb4aab44d7d4097c8086145ca5cf4ed4a4afe62f9d53168663f7547267d"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioLDM2Pipeline.check_inputs (cyclomatic 34): AudioLDM2Pipeline.check_inputs has cyclomatic complexity 34 (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":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"365bb56d8956330bf73e7cfb1255033e9f5b279964d345b9e4d0978e8d3010c2"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos2_5_PredictBasePipeline.__call__ (cyclomatic 34): Cosmos2_5_PredictBasePipeline.__call__ has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec2f7081994a636200968785f223ca4e09ed1b3140285e0954e35d27968ad76"}},{"ruleId":"D1","level":"warning","message":{"text":"IFInpaintingPipeline.check_inputs (cyclomatic 34): IFInpaintingPipeline.check_inputs has cyclomatic complexity 34 (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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc59160641ed53edc381313e32c9c9a88a7388c43a313828af24746b76a86d24"}},{"ruleId":"D1","level":"warning","message":{"text":"AmusedImg2ImgPipeline.__call__ (cyclomatic 34): AmusedImg2ImgPipeline.__call__ has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb57089536e361d2565ff624b245e064c52e263942f1f8fd3aaf37f0428be2d"}},{"ruleId":"D1","level":"warning","message":{"text":"AmusedInpaintPipeline.__call__ (cyclomatic 34): AmusedInpaintPipeline.__call__ has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2bb6fc747951b66fc6794b5413b131023a0e088385f906c2b8553568d757403"}},{"ruleId":"D1","level":"warning","message":{"text":"LEditsPPPipelineStableDiffusionXL.encode_prompt (cyclomatic 34): LEditsPPPipelineStableDiffusionXL.encode_prompt has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aff314f251e610ac5cb6e5c39337519da7e57b6216944951b9b4d510c161d44"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffPAGPipeline.__call__ (cyclomatic 34): AnimateDiffPAGPipeline.__call__ has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a4460db0f52fbde8420decab3f27e2c2e1d8ecfc88c9199c030575c9a1ed32"}},{"ruleId":"D1","level":"warning","message":{"text":"WanVACEPipeline.check_inputs (cyclomatic 34): WanVACEPipeline.check_inputs has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_vace.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"1435d9f77d0702fcf5987a13aae951a20beff3d407c9fa2eef6b773df083a02e"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffPipeline.__call__ (cyclomatic 33): AnimateDiffPipeline.__call__ has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"a893704fad8acfee2549127c2888169c5813bbdfd130247de85f31494cebd080"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffSparseControlNetPipeline.check_inputs (cyclomatic 33): AnimateDiffSparseControlNetPipeline.check_inputs has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"e804117f61636093000d7f7d4fef3bd5516c962a6e09b0e59c4893a3b1dcc4d5"}},{"ruleId":"D1","level":"warning","message":{"text":"IFImg2ImgSuperResolutionPipeline.check_inputs (cyclomatic 33): IFImg2ImgSuperResolutionPipeline.check_inputs has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"852ad50a62dd9d6ee20dc3a793272999e000c88d8f6a272c0083c30a2a06b955"}},{"ruleId":"D1","level":"warning","message":{"text":"WuerstchenDecoderPipeline.__call__ (cyclomatic 33): WuerstchenDecoderPipeline.__call__ has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f112b758a90b65a1e3feac032dadff72e09ec5998b076d6efd2a745bd56b27b9"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxImg2ImgPipeline.check_inputs (cyclomatic 33): FluxImg2ImgPipeline.check_inputs has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_img2img.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1618bd8c5e81bc872620130c05cc70dc05fa14610e74b6dc1f356e088f7999"}},{"ruleId":"D1","level":"warning","message":{"text":"Flux2Pipeline.__call__ (cyclomatic 33): Flux2Pipeline.__call__ has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea6330fe424ffb8d26ef2cbd581d6c8a2c6b972d0dfc0d79963de1a042bb632"}},{"ruleId":"D1","level":"warning","message":{"text":"GlmImagePipeline.__call__ (cyclomatic 33): GlmImagePipeline.__call__ has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"c116367cc44ce49f41578e0192a2db7027bfb3ada2e3751d41124824f6b9ad10"}},{"ruleId":"D1","level":"warning","message":{"text":"KolorsImg2ImgPipeline.check_inputs (cyclomatic 33): KolorsImg2ImgPipeline.check_inputs has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc574761f3847941d144744f452949d56856f3280bfc5d3e8b4ac271f003d3b"}},{"ruleId":"D1","level":"warning","message":{"text":"LattePipeline.__call__ (cyclomatic 33): LattePipeline.__call__ has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c601fcfed17a2a3e6c321982b7e4bc3b195129a60f46b9bf1bb6a228041179"}},{"ruleId":"D1","level":"warning","message":{"text":"WanAnimatePipeline.__call__ (cyclomatic 33): WanAnimatePipeline.__call__ has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_animate.py"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd62b172f5e8af9ecd0e184f9b305e81a19e7d8c1b720df197ed69f0471ff96"}},{"ruleId":"D1","level":"warning","message":{"text":"IPAdapterMixin.load_ip_adapter (cyclomatic 32): IPAdapterMixin.load_ip_adapter has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c88cebc7a5a621d3d13a6a1b6823f5dfe25ca811edb1b34c3911ea547092d73"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelMixin.save_pretrained (cyclomatic 32): ModelMixin.save_pretrained has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca2b2c5aaf687c04882202a5e14cd58527e1b5413824b49489abf203af46041"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicTransformerBlockDreamLite.forward (cyclomatic 32): BasicTransformerBlockDreamLite.forward has cyclomatic complexity 32 (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":"src/diffusers/models/transformers/transformer_2d_dreamlite.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"136c99c5cc42560cd3b3dff4a2d8e0f65a2c1d459a84326504935749f7c71756"}},{"ruleId":"D1","level":"warning","message":{"text":"MiniMaxH3Ref2VASetupStep.__call__ (cyclomatic 32): MiniMaxH3Ref2VASetupStep.__call__ has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66c8d4e72598a955695e14a3af7b82d571eb02b406cbfa8a86298f7937ea4b7"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffSparseControlNetPipeline.__call__ (cyclomatic 32): AnimateDiffSparseControlNetPipeline.__call__ has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"924ce3dffdc593d6d2392880acc5f66eec636502ff53a2a74fd3258b87a73d5b"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffVideoToVideoPipeline.__call__ (cyclomatic 32): AnimateDiffVideoToVideoPipeline.__call__ has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d50a015cb63dfd0ded43710752e2a472dfcc501ec704e574035ee7071de6f3"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioLDM2Pipeline.encode_prompt (cyclomatic 32): AudioLDM2Pipeline.encode_prompt has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acf165c05be5d421861ead745cd66e49d60b4718acfda2814e05e72e7e8e477"}},{"ruleId":"D1","level":"warning","message":{"text":"BriaPipeline.__call__ (cyclomatic 32): BriaPipeline.__call__ has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e829a54c2351413dea8d9783f4716be7f9184e635ee87568b45937d3baccf1"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3ControlNetPipeline.encode_prompt (cyclomatic 32): StableDiffusion3ControlNetPipeline.encode_prompt has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0f2d381ed58e6239f9e1d039b88c8924f061ec97039d222c4795676cf30547"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3ControlNetInpaintingPipeline.encode_prompt (cyclomatic 32): StableDiffusion3ControlNetInpaintingPipeline.encode_prompt has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecd97f7423d238b2650af419d459751fa75d3d074bd47a4cd26b476f3b16cae"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionSAGPipeline.__call__ (cyclomatic 32): StableDiffusionSAGPipeline.__call__ has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3f3b43ea97d27b484e59c353715d8c90fcaebdb17a0710d2710c88731a6296"}},{"ruleId":"D1","level":"warning","message":{"text":"TextToVideoZeroSDXLPipeline.check_inputs (cyclomatic 32): TextToVideoZeroSDXLPipeline.check_inputs has cyclomatic complexity 32 (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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a7ba5ae6846c3aafcc17dba180b61e0566a2d495feb56aa48069aac544a3b5"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanImagePipeline.__call__ (cyclomatic 32): HunyuanImagePipeline.__call__ has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb8f2155c51226831ed41810e8238e6d059f88478358cb5dfc937d0101af804"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3PAGPipeline.encode_prompt (cyclomatic 32): StableDiffusion3PAGPipeline.encode_prompt has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e44511c501bbc3bfbe4e800f27e8decd35076dda507ffb02a1f7ba2ce93681"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3PAGImg2ImgPipeline.encode_prompt (cyclomatic 32): StableDiffusion3PAGImg2ImgPipeline.encode_prompt has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"6884544017745c936e78e38ec9ebd11d830e56d750e4ee1eebb7d70417436c9c"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPAGInpaintPipeline.check_inputs (cyclomatic 32): StableDiffusionPAGInpaintPipeline.check_inputs has cyclomatic complexity 32 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6eb7456543677c60f2d7223bc2cbf1ee0d453c94ab505cf9ac3fb3aa068b1d6"}},{"ruleId":"D1","level":"warning","message":{"text":"pipeline_loading_utils.load_sub_model (cyclomatic 32): pipeline_loading_utils.load_sub_model has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_loading_utils.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c2a2fbfa9c7dc7b395f553af309a8d67481062968ee364e0ec09a13507b4b3"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionInpaintPipeline.check_inputs (cyclomatic 32): StableDiffusionInpaintPipeline.check_inputs has cyclomatic complexity 32 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"be91b4be116743944ca396d9053c8de6af69c1aa7e1ce649645c382ddb0aebb5"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3Pipeline.encode_prompt (cyclomatic 32): StableDiffusion3Pipeline.encode_prompt has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d944be3bb3ca157fae1dfd7caeceea2cabe6f4ff581ece97cf1a33889087b1"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3Img2ImgPipeline.encode_prompt (cyclomatic 32): StableDiffusion3Img2ImgPipeline.encode_prompt has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2b7f0acf2b37022d26728afe2a01beb906194f3d183ff94fc40da9a5c7edbc"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3Img2ImgPipeline.__call__ (cyclomatic 32): StableDiffusion3Img2ImgPipeline.__call__ has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"b880ee1ff75c74da46b7e186d34af13368610c54246cb2eba86510abd8701531"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3InpaintPipeline.encode_prompt (cyclomatic 32): StableDiffusion3InpaintPipeline.encode_prompt has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3b6ae19c47feda6aefbd0804b7df6adac03a17bb2f156e906a14558eb1ec2e"}},{"ruleId":"D1","level":"warning","message":{"text":"EulerDiscreteScheduler.set_timesteps (cyclomatic 32): EulerDiscreteScheduler.set_timesteps has cyclomatic complexity 32 (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":"src/diffusers/schedulers/scheduling_euler_discrete.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b3327c870dc7afa5a09f69978959e0d29a9c19362e118256b642f398a9236a"}},{"ruleId":"D1","level":"warning","message":{"text":"UniPCMultistepScheduler.set_timesteps (cyclomatic 32): UniPCMultistepScheduler.set_timesteps has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_unipc_multistep.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ccea8a8efa20861500b3cafb1d694aa1c81b5d58ebfacaed0b9c3a8ffc627a"}},{"ruleId":"D1","level":"warning","message":{"text":"IPAdapterXFormersAttnProcessor.__call__ (cyclomatic 31): IPAdapterXFormersAttnProcessor.__call__ has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4679}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d9051a88fbf1ffb82423fab85a5401493a350fe1c9a429bfc13035e3e281f1"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelMixin._load_pretrained_model (cyclomatic 31): ModelMixin._load_pretrained_model has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfa3858d68f934eb1a7990f124058e37c5be14eaeaa93a992c417a884a17240"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffPipeline.encode_prompt (cyclomatic 31): AnimateDiffPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42e206bb7108cbf6bc5674cd1f7b3b39cd27cc95bfe6bf0fc9d8cba6b4d306d"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffControlNetPipeline.encode_prompt (cyclomatic 31): AnimateDiffControlNetPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d23260f3c08741c0b3ade0ccfe5575c0c72f43952f1a71470fb55c1ac67f1d"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffSparseControlNetPipeline.encode_prompt (cyclomatic 31): AnimateDiffSparseControlNetPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89c90416883ccf90e1ed73e91495489a60a427387249c34187438ce32dcdc4f"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffVideoToVideoPipeline.encode_prompt (cyclomatic 31): AnimateDiffVideoToVideoPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b06dd1363ae65f57ab15b89bd51542d3d6de9ca42ebe3e857824726f45ac33"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffVideoToVideoControlNetPipeline.encode_prompt (cyclomatic 31): AnimateDiffVideoToVideoControlNetPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d9f9d02edfbf909fe67da221d7967bfb63ad72c39e1e1d0797f6e4f0970b43"}},{"ruleId":"D1","level":"warning","message":{"text":"CogVideoXFunControlPipeline.__call__ (cyclomatic 31): CogVideoXFunControlPipeline.__call__ has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1303dc54c770411c9b268b80713197257606f57e42855943fe40095d2cb724b"}},{"ruleId":"D1","level":"warning","message":{"text":"CogVideoXImageToVideoPipeline.__call__ (cyclomatic 31): CogVideoXImageToVideoPipeline.__call__ has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d9b0f711a0ba80ca2bcfc6725ee37ced93ed08e4f20ada204b1a4d8105a656"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetPipeline.encode_prompt (cyclomatic 31): StableDiffusionControlNetPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6373cb8b4c642328cf05ffa1a775c7af276e5c4d304eeda048858fb2f2f431"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetImg2ImgPipeline.encode_prompt (cyclomatic 31): StableDiffusionControlNetImg2ImgPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c325287f4d9afcbfe2ba591677bbad1de71f3c2c82266eacfab411b32d6958"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetInpaintPipeline.encode_prompt (cyclomatic 31): StableDiffusionControlNetInpaintPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40b331b307ff85999b246c845bda25f15d2efecad3d5924607e2ab49dc26d30"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanDiTControlNetPipeline.check_inputs (cyclomatic 31): HunyuanDiTControlNetPipeline.check_inputs has cyclomatic complexity 31 (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":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"1504a52fe2d0d13659f2468e9a8af6185daa0fc148a121b43eb9aad7830cc81d"}},{"ruleId":"D1","level":"warning","message":{"text":"CosmosVideoToWorldPipeline.__call__ (cyclomatic 31): CosmosVideoToWorldPipeline.__call__ has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"8183ce1f713e1ebee8b98f7efd1e3f59ea3b22c9a3483938a212837542c05eae"}},{"ruleId":"D1","level":"warning","message":{"text":"AltDiffusionPipeline.__call__ (cyclomatic 31): AltDiffusionPipeline.__call__ has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"b224c514c83b71894b84436c2b6424186734447ff2d594e15ec63b3336d762d9"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetXSPipeline.encode_prompt (cyclomatic 31): StableDiffusionControlNetXSPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5173c3782557c75eaff95363028b74e59db5dbf59effe6aefc2628a588c54b1"}},{"ruleId":"D1","level":"warning","message":{"text":"PIAPipeline.encode_prompt (cyclomatic 31): PIAPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/pia/pipeline_pia.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"d387b476e8c6913a9f3002832c05a60d3eb36658d4e0481a17e45e191583d6fa"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionAttendAndExcitePipeline.encode_prompt (cyclomatic 31): StableDiffusionAttendAndExcitePipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"96206b744456a52a54d2c16e429a69b99f1ebc4f2e5b548de0079b215785c619"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionAttendAndExcitePipeline.check_inputs (cyclomatic 31): StableDiffusionAttendAndExcitePipeline.check_inputs has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c31ec0478b7a5ed80ec1bc69e6c1cbf807b812743aecc09c8ed444c76aa11f"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionDiffEditPipeline.encode_prompt (cyclomatic 31): StableDiffusionDiffEditPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"7958e9cacdbe612f38e5755ef2aa14b391073550dc2fd08a371da30fb25d0f04"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionGLIGENPipeline.encode_prompt (cyclomatic 31): StableDiffusionGLIGENPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"13612b649395eca994b4148bf8ab19bfa2448a9c4cebbe3199cd175dd7924d99"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionGLIGENTextImagePipeline.encode_prompt (cyclomatic 31): StableDiffusionGLIGENTextImagePipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff2ea40c7d5fd3ca6c1cdefa511f6dccab5ac70a890684e51d48db1238d5b1d"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionLDM3DPipeline.encode_prompt (cyclomatic 31): StableDiffusionLDM3DPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"657d87ce3a42e018e81520b953aeab22879dcb80a8353227d7e01725edde5f49"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionLDM3DPipeline.__call__ (cyclomatic 31): StableDiffusionLDM3DPipeline.__call__ has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcdc04f51e97e5ad5972ba4dae1f321ff7b70411c5adb68972a0fa063564c7a"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPanoramaPipeline.encode_prompt (cyclomatic 31): StableDiffusionPanoramaPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ae536cb636d342290ed9a16a2593d30ff1f82f18dc5011b9f201b440226f70"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionSAGPipeline.encode_prompt (cyclomatic 31): StableDiffusionSAGPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bff671a646041a6e89a0f8eb7d23b58115615440e33c990e15d4ddf0f4e802"}},{"ruleId":"D1","level":"warning","message":{"text":"CycleDiffusionPipeline.encode_prompt (cyclomatic 31): CycleDiffusionPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3b32e15d396201e0f396cfe7d20f75b9fc6947673716bca8a4f6904d5d8b87"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionInpaintPipelineLegacy.encode_prompt (cyclomatic 31): StableDiffusionInpaintPipelineLegacy.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f84e8546e8f504da35ba6453ae9ee586d3fb7933b95ea1b94ae3efa9419dc8"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionModelEditingPipeline.encode_prompt (cyclomatic 31): StableDiffusionModelEditingPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"0423d741af0dc4176e2cf831fbc08f0a886daeb4f437d6955b037cce76c9f18f"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionParadigmsPipeline.encode_prompt (cyclomatic 31): StableDiffusionParadigmsPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a858b00dda56196f280697949a96fb0b670e8bab057391dbdbd088a15c96c28"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPix2PixZeroPipeline.encode_prompt (cyclomatic 31): StableDiffusionPix2PixZeroPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d7b430508bde6edff8150e7aba856060cc8f134a9c6ea9e61f290f049b74c3"}},{"ruleId":"D1","level":"warning","message":{"text":"TextToVideoSDPipeline.encode_prompt (cyclomatic 31): TextToVideoSDPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd9bdbf0fefdb67f5d06b0bb40f0851449df1aa900f66f8cb208d4432ed4095"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoToVideoSDPipeline.encode_prompt (cyclomatic 31): VideoToVideoSDPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d8daef3181f2296350594a1115181e12bb108251d47ca24ac51c1a07fe753b8"}},{"ruleId":"D1","level":"warning","message":{"text":"TextToVideoZeroPipeline.encode_prompt (cyclomatic 31): TextToVideoZeroPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fc594cb380488902ead14ad977b099d1b1dbac811926d24408dff106f9d330"}},{"ruleId":"D1","level":"warning","message":{"text":"UniDiffuserPipeline.encode_prompt (cyclomatic 31): UniDiffuserPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9bd120e5b300787b2c10fa1936a37469e625790d25a5488c3fd940b8b19d01"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlNetPipeline.check_inputs (cyclomatic 31): FluxControlNetPipeline.check_inputs has cyclomatic complexity 31 (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":"src/diffusers/pipelines/flux/pipeline_flux_controlnet.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c012a614b6f47abedb454ce950622ed9c828c205a1629a4fc802cb8c906c6e4"}},{"ruleId":"D1","level":"warning","message":{"text":"Flux2KleinInpaintPipeline.check_inputs (cyclomatic 31): Flux2KleinInpaintPipeline.check_inputs has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93ee480ca17fb14c547746503f090a9093cc6254559ef478a42a04405cdfa75"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanDiTPipeline.check_inputs (cyclomatic 31): HunyuanDiTPipeline.check_inputs has cyclomatic complexity 31 (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":"src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd38195520a3f2443943ab0890af351542d2b88ab4994af5f2ebd7124da439a"}},{"ruleId":"D1","level":"warning","message":{"text":"KolorsPipeline.check_inputs (cyclomatic 31): KolorsPipeline.check_inputs has cyclomatic complexity 31 (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":"src/diffusers/pipelines/kolors/pipeline_kolors.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"490e2f261d3cfcf0d6bde19398bf754db77434967aace8d83135df6d1a6055fd"}},{"ruleId":"D1","level":"warning","message":{"text":"LatentConsistencyModelImg2ImgPipeline.encode_prompt (cyclomatic 31): LatentConsistencyModelImg2ImgPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0b61ce2f63c86ac79cedad052e59516db3f6ce64601112e3e9591ca503afb7"}},{"ruleId":"D1","level":"warning","message":{"text":"LatentConsistencyModelPipeline.encode_prompt (cyclomatic 31): LatentConsistencyModelPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5495e8edc3c9e4def2defcf8ebf6f28490ec7365af067347f629ade44a06c18"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetPAGPipeline.encode_prompt (cyclomatic 31): StableDiffusionControlNetPAGPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d8b8ffa62c22b0e933d493ba78bd54c654f058726102470c1c9c80681eac13"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetPAGInpaintPipeline.encode_prompt (cyclomatic 31): StableDiffusionControlNetPAGInpaintPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"42950c8de2a9af017ff5c4b8314f1e9de6e1aa893d3a36610589977a62ceb2c5"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanDiTPAGPipeline.check_inputs (cyclomatic 31): HunyuanDiTPAGPipeline.check_inputs has cyclomatic complexity 31 (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":"src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"306739954201476d1d5b551082b3c17d90f93be037a41622da73670b8037babe"}},{"ruleId":"D1","level":"warning","message":{"text":"KolorsPAGPipeline.check_inputs (cyclomatic 31): KolorsPAGPipeline.check_inputs has cyclomatic complexity 31 (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":"src/diffusers/pipelines/pag/pipeline_pag_kolors.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7add87398eb22f2dd0313b7638679ce9b7b85c94f72738b7b6b30d0be41d07"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaPAGPipeline.__call__ (cyclomatic 31): SanaPAGPipeline.__call__ has cyclomatic complexity 31 (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":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee17a01ed256b8482a058ba3b8008197509d4360bc4842200ed39e10c17af349"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPAGPipeline.encode_prompt (cyclomatic 31): StableDiffusionPAGPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70243aadae28961c6291d44fd788000ecb4e0aac669712aa1a49658186c897c"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffPAGPipeline.encode_prompt (cyclomatic 31): AnimateDiffPAGPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd695544c373cb6460f265e5bc580414678b36045984c58cafa3f738a2216a9"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPAGImg2ImgPipeline.encode_prompt (cyclomatic 31): StableDiffusionPAGImg2ImgPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98fa068de475f13fc597a9f4a3723cbf7042786c76a7ff1cbd73e03a679f2d0"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPAGInpaintPipeline.encode_prompt (cyclomatic 31): StableDiffusionPAGInpaintPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"79714ac9042ce4a6b8e2335f2a7fa320a344bd5c590ef7fab4078a1c766d070a"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPipeline.encode_prompt (cyclomatic 31): StableDiffusionPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb92be115f35a11f9b52d25acc1b2e5eed0cd9468daeee36656553e66d071f23"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionDepth2ImgPipeline.encode_prompt (cyclomatic 31): StableDiffusionDepth2ImgPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"4819352f97092ec7153ae747bd7c699bd029ae5fc84adb9884f1384e2ec14866"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionImg2ImgPipeline.encode_prompt (cyclomatic 31): StableDiffusionImg2ImgPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3efdb432414a64e1c9355367ae7e9afd616b7e180c31d2bea0ab57e251326cd"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionImg2ImgPipeline.__call__ (cyclomatic 31): StableDiffusionImg2ImgPipeline.__call__ has cyclomatic complexity 31 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc6fdb1c0c4e240171df8133222a52cd53c0fb89a258a9c5c9be8cbc6ec6e04"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionInpaintPipeline.encode_prompt (cyclomatic 31): StableDiffusionInpaintPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cc219525bbdf46b8cbc03c8b29ad492ee6cef6ca6a4f5760d1bb8368132fd1"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionUpscalePipeline.encode_prompt (cyclomatic 31): StableDiffusionUpscalePipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d68b4f90dd114fec01b9d79406153680a4c3025b1bf745a15dbb4e14ca709da"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionUpscalePipeline.check_inputs (cyclomatic 31): StableDiffusionUpscalePipeline.check_inputs has cyclomatic complexity 31 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"80954626afd09c960f4982d577f492a97e659399ed096ae8a4ee9fa13426c162"}},{"ruleId":"D1","level":"warning","message":{"text":"StableUnCLIPPipeline.encode_prompt (cyclomatic 31): StableUnCLIPPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a2d3dd5eb26a0f9712aef3bc73c95eac1622d4dc647fa004cd2d38a6881e29"}},{"ruleId":"D1","level":"warning","message":{"text":"StableUnCLIPImg2ImgPipeline.encode_prompt (cyclomatic 31): StableUnCLIPImg2ImgPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb6f6b279f27cc40e232b4e2d934cfcee34439e46a2471a5838a40a7b78d1a3"}},{"ruleId":"D1","level":"warning","message":{"text":"StableUnCLIPImg2ImgPipeline.check_inputs (cyclomatic 31): StableUnCLIPImg2ImgPipeline.check_inputs has cyclomatic complexity 31 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee14e29d0a108538ad1f175d0c68d16b3d8ec780d04e7124b807f5a9d9abc01f"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionAdapterPipeline.encode_prompt (cyclomatic 31): StableDiffusionAdapterPipeline.encode_prompt has cyclomatic complexity 31 (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":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ce83ab369a9b184a25008f2edc4c1d44e0b14abfc76e682a2f2d5417d8f88a"}},{"ruleId":"D1","level":"warning","message":{"text":"check_forward_call_docstrings.fix_file (cyclomatic 31): check_forward_call_docstrings.fix_file has cyclomatic complexity 31 (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":"utils/check_forward_call_docstrings.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a089b4acd4c439c38a7401e9ed9cd1fd676d2484152a2997898f9f73e6e17546"}},{"ruleId":"D1","level":"warning","message":{"text":"SeaCacheRootHook.prepare_decoder_stack (cyclomatic 30): SeaCacheRootHook.prepare_decoder_stack has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/sea_cache.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa2d8ef58d0ed3eb041aae599a122f3033ea818919cb0da60f22ec7b24e570c"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_base._load_lora_into_text_encoder (cyclomatic 30): lora_base._load_lora_into_text_encoder has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1b76456ecb8e182f14759c2b8038c25fee21580aa8517ca58bdbac27812eff"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicTransformerBlock.forward (cyclomatic 30): BasicTransformerBlock.forward has cyclomatic complexity 30 (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":"src/diffusers/models/attention.py"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3a38d2f1c1ca0fec4c4a3adfad8dba286951908a87e86076d8467e886c0a9d"}},{"ruleId":"D1","level":"warning","message":{"text":"IPAdapterAttnProcessor2_0.__call__ (cyclomatic 30): IPAdapterAttnProcessor2_0.__call__ has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4439}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c79a707efdea737f2872753f2540a227a4888cc2094266936a2ddb14a552aa"}},{"ruleId":"D1","level":"warning","message":{"text":"encoders.encode_prompt (cyclomatic 30): encoders.encode_prompt has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea2e889da953d1b6d5df45934481162d366570424cea9d1cdc033f6639bd4b6"}},{"ruleId":"D1","level":"warning","message":{"text":"BriaFiboPipeline.__call__ (cyclomatic 30): BriaFiboPipeline.__call__ has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b8712967e176b5ed700d70f2dc1a43314aa7e7922f70f4f552038461f2f217"}},{"ruleId":"D1","level":"warning","message":{"text":"ChromaInpaintPipeline.check_inputs (cyclomatic 30): ChromaInpaintPipeline.check_inputs has cyclomatic complexity 30 (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":"src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e804dcb2f1abef4c6b9904054e88786ba3fce9ba1262852d4068f0cc80e2137"}},{"ruleId":"D1","level":"warning","message":{"text":"CogVideoXVideoToVideoPipeline.__call__ (cyclomatic 30): CogVideoXVideoToVideoPipeline.__call__ has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1376e184086f18472bb12853c21af66680dae9b7e70b43de9311b7390e2aaae"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanDiTControlNetPipeline.__call__ (cyclomatic 30): HunyuanDiTControlNetPipeline.__call__ has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"0321a02f552cd03533f6043a78c9b38225d9507f5980f81797d30b1591e28f4d"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos2_5_TransferPipeline.check_inputs (cyclomatic 30): Cosmos2_5_TransferPipeline.check_inputs has cyclomatic complexity 30 (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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f622f5a4e0e7e7a20aebbc8bf3743f340c6493972e0cfbea480e55439c754e"}},{"ruleId":"D1","level":"warning","message":{"text":"AltDiffusionPipeline.encode_prompt (cyclomatic 30): AltDiffusionPipeline.encode_prompt has cyclomatic complexity 30 (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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e023282def432f32981fb9e18d0141301be4b5988095a92334029c613ea59882"}},{"ruleId":"D1","level":"warning","message":{"text":"AltDiffusionImg2ImgPipeline.encode_prompt (cyclomatic 30): AltDiffusionImg2ImgPipeline.encode_prompt has cyclomatic complexity 30 (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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef0d363cecb42f15c462df072d41c8184dc46b6d96341054ecbd4fb6ee2fde0"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionDiffEditPipeline.__call__ (cyclomatic 30): StableDiffusionDiffEditPipeline.__call__ has cyclomatic complexity 30 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ccc95bc73497d4a1980cfe253e6a0883597a0356ec9cc7fa29239bb69606f1"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPipelineSafe.__call__ (cyclomatic 30): StableDiffusionPipelineSafe.__call__ has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e29b6eb8cad84eefb8107083c58cec3de8e67b6e9cd36c12781e4fdf6f859f1"}},{"ruleId":"D1","level":"warning","message":{"text":"WuerstchenPriorPipeline.__call__ (cyclomatic 30): WuerstchenPriorPipeline.__call__ has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"506d0c1febbd290e1cb4f4b69cb12cad16ffe541df16859618385039d64503f7"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky5I2IPipeline.__call__ (cyclomatic 30): Kandinsky5I2IPipeline.__call__ has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14532a636942ee2176d946fd7dfa01b836bc668a1935c7f6ded9161bf4c1f47"}},{"ruleId":"D1","level":"warning","message":{"text":"LLaDA2Pipeline.__call__ (cyclomatic 30): LLaDA2Pipeline.__call__ has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/llada2/pipeline_llada2.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"3068052144e5158a04710602715a4bef27369cc2c7713111289a7c362e0610c2"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanDiTPAGPipeline.__call__ (cyclomatic 30): HunyuanDiTPAGPipeline.__call__ has cyclomatic complexity 30 (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":"src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c086b7c21c49207e63492afe79a4c423e9559d085ac547d3eeebb4cdb8d690"}},{"ruleId":"D1","level":"warning","message":{"text":"PRXPipeline.__call__ (cyclomatic 30): PRXPipeline.__call__ has cyclomatic complexity 30 (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":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ac9db208e6b724841fd2c0a93e19742b81d994b859a6c058c9c7903b1f7ff8"}},{"ruleId":"D1","level":"warning","message":{"text":"RFD4ProteinaPipeline.__call__ (cyclomatic 30): RFD4ProteinaPipeline.__call__ has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/rfd4_proteina/pipeline_rfd4_proteina.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"128c372292d4042c758d07cfc74df609d1eda0a9a4997745699da9aa1b58eaf6"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaPipeline.__call__ (cyclomatic 30): SanaPipeline.__call__ has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82a2f04e82f085a2fc02673695471338d1b3f786561dd0f2db6a0cda3f76b83"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaControlNetPipeline.__call__ (cyclomatic 30): SanaControlNetPipeline.__call__ has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_controlnet.py"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e247f341ef54f60404af65e793551370eb51c2603a36c24576617cb49c0b5b"}},{"ruleId":"D1","level":"warning","message":{"text":"VisualClozeGenerationPipeline.check_inputs (cyclomatic 30): VisualClozeGenerationPipeline.check_inputs has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b7e6b359ea30f19d1bfa176882473940843e4a9930035c0551c255f3981584"}},{"ruleId":"D1","level":"warning","message":{"text":"WanPipeline.__call__ (cyclomatic 30): WanPipeline.__call__ has cyclomatic complexity 30 (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":"src/diffusers/pipelines/wan/pipeline_wan.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9db2392b6063d34cde54d8d9c403d45970b4efc8db06ed514d3bac19e11b04"}},{"ruleId":"D1","level":"warning","message":{"text":"run._maybe_submit_remote (cyclomatic 29): run._maybe_submit_remote has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/run.py"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a74c8bdcbbdff929d212c7af1d4fe02bc9840c02587f8f9ac4522024e30abe"}},{"ruleId":"D1","level":"warning","message":{"text":"VaeImageProcessor.preprocess (cyclomatic 29): VaeImageProcessor.preprocess has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"1810e4cedb8f96850597927c31df4e2a152b64c053f2946f60a12c8c88fdc9e7"}},{"ruleId":"D1","level":"warning","message":{"text":"IPAdapterAttnProcessor.__call__ (cyclomatic 29): IPAdapterAttnProcessor.__call__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4234}}}],"partialFingerprints":{"codehealthFindingId/v1":"294e67d4e1f750dc60e7d4d724567d664d0bbdfed5235f7c3fe4e3e5d8cf26d8"}},{"ruleId":"D1","level":"warning","message":{"text":"Flux2Transformer2DModel.forward (cyclomatic 29): Flux2Transformer2DModel.forward has cyclomatic complexity 29 (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":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"2877660daeea8223af47972f048bde2ab8fcfff3010832359cf22b71948e8e53"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2VideoTransformer3DModel.forward (cyclomatic 29): LTX2VideoTransformer3DModel.forward has cyclomatic complexity 29 (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":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d4a557b482d69d12269caeac0bd771e6f9f8398c9e5ca795455c77335179f9"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentsManager.__repr__ (cyclomatic 29): ComponentsManager.__repr__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb33dccda0c5af5e4093f7647ee7b0a60a356f9731ab5f6df2e7ebfc04b42129"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffSDXLPipeline.check_inputs (cyclomatic 29): AnimateDiffSDXLPipeline.check_inputs has cyclomatic complexity 29 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9ec65ee31109752e0cd053a010ab9d64a6b1eb0965a8167b73d0a9b745d474"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioLDM2UNet2DConditionModel.forward (cyclomatic 29): AudioLDM2UNet2DConditionModel.forward has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9e6453de490d0a8751485e0a8dc65dcc1bcc25adcaf9a78226ae4186a6d45c"}},{"ruleId":"D1","level":"warning","message":{"text":"ChronoEditPipeline.__call__ (cyclomatic 29): ChronoEditPipeline.__call__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b59807f2e850710e8b993d35502cb61301ac08365ab6a7f9ede14951a64b2fe"}},{"ruleId":"D1","level":"warning","message":{"text":"CogVideoXPipeline.__call__ (cyclomatic 29): CogVideoXPipeline.__call__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7426d2f6e158321fc2cf1c42386a406735b0f0344d84d8fd19d6b4e385d075"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos2TextToImagePipeline.__call__ (cyclomatic 29): Cosmos2TextToImagePipeline.__call__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ddea1d4edfd7134a10c422d827b7ab4476e4ffb068339a09fede53b19bb4e76"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos2VideoToWorldPipeline.__call__ (cyclomatic 29): Cosmos2VideoToWorldPipeline.__call__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc091b7dfdbc9636df7337ff1ffce7c5ffd1694d431622c04ddcf6bcd5aec4d"}},{"ruleId":"D1","level":"warning","message":{"text":"IFSuperResolutionPipeline.__call__ (cyclomatic 29): IFSuperResolutionPipeline.__call__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0efb5265dc2fc6d8dad5e4b518972b0b9c396f63c190de49a974e773164658"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionAttendAndExcitePipeline.__call__ (cyclomatic 29): StableDiffusionAttendAndExcitePipeline.__call__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"190b1231bd54ec4141d1e15d445276c66a4fedd2e3e06229381b8388089c6aa0"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionGLIGENPipeline.__call__ (cyclomatic 29): StableDiffusionGLIGENPipeline.__call__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c993bae9a80831ecb8286e6e18229214d3c827c083a5527ccdcb93a076699c"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanVideoFramepackPipeline.check_inputs (cyclomatic 29): HunyuanVideoFramepackPipeline.check_inputs has cyclomatic complexity 29 (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":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45e8dc074f352e64eaa4c40b5c3445c6bde5ccd1d78b3888e2a6bdf32d6ba59"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky3Pipeline.check_inputs (cyclomatic 29): Kandinsky3Pipeline.check_inputs has cyclomatic complexity 29 (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":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"62426e9b0badfe9f6f6bb3745fb8ede9307d6589f4b6c983d3a009157369f171"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky3Pipeline.__call__ (cyclomatic 29): Kandinsky3Pipeline.__call__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a51da56ee338399ea432dd4582679e47249007873bfdb243d13ff24598ab81b"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky3Img2ImgPipeline.check_inputs (cyclomatic 29): Kandinsky3Img2ImgPipeline.check_inputs has cyclomatic complexity 29 (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":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3e166227bc64770e6f54eb650a01cb8e94226c11ce5e234c0c91aad858bbb6"}},{"ruleId":"D1","level":"warning","message":{"text":"NucleusMoEImagePipeline.__call__ (cyclomatic 29): NucleusMoEImagePipeline.__call__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcd509bf971ac628189c74544a542e702c621744d0b89147dedda643421aa91"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaImageToVideoPipeline.__call__ (cyclomatic 29): SanaImageToVideoPipeline.__call__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b593fd2b0baa16cbc10113511470676e8d97121e3a34a9fa2db12a1930dde42"}},{"ruleId":"D1","level":"warning","message":{"text":"StableCascadeDecoderPipeline.__call__ (cyclomatic 29): StableCascadeDecoderPipeline.__call__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4b86682b5dbed8d6d40ca097a1d5d2ceb7d9a572eb599b11b2ea1be88b4500"}},{"ruleId":"D1","level":"warning","message":{"text":"StableCascadePriorPipeline.check_inputs (cyclomatic 29): StableCascadePriorPipeline.check_inputs has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cae1c23e8fcd2d2a856f572939114f4c949a2c765b1539a65d09b2ef761c2b7"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionAdapterPipeline.__call__ (cyclomatic 29): StableDiffusionAdapterPipeline.__call__ has cyclomatic complexity 29 (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":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"23008c3703e999d232afad9e861265e0df2d2a751cc26b03946b55d0dd24dce4"}},{"ruleId":"D1","level":"warning","message":{"text":"UNetMotionModel.forward (cyclomatic 28): UNetMotionModel.forward has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f588bb0c109491458eff46064883ddec37bead53fcbce49ed734e0a9d7102c"}},{"ruleId":"D1","level":"warning","message":{"text":"StableCascadeUNet.__init__ (cyclomatic 28): StableCascadeUNet.__init__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1818a1da5682add4acf9c01ef094925a31fef0b61fc767326d5d6c2ec37cfe6a"}},{"ruleId":"D1","level":"warning","message":{"text":"AnyFlowPipeline.__call__ (cyclomatic 28): AnyFlowPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11c4ddcd742509544ee7ba1e1d6b8bfc23ede7eab07a2f05bfb5cb8dbb41e51"}},{"ruleId":"D1","level":"warning","message":{"text":"ConsisIDPipeline.__call__ (cyclomatic 28): ConsisIDPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/consisid/pipeline_consisid.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"f191ea8f002d2b01c467373b35627276fc37207598bc931939c49e5b11ffc0f3"}},{"ruleId":"D1","level":"warning","message":{"text":"IFPipeline.__call__ (cyclomatic 28): IFPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4616774fdc2da4c71d3e54e1c36d2b10ec00f246134d4b9988ed6b0ceef00d"}},{"ruleId":"D1","level":"warning","message":{"text":"BlipImageProcessor.preprocess (cyclomatic 28): BlipImageProcessor.preprocess has cyclomatic complexity 28 (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":"src/diffusers/pipelines/deprecated/blip_diffusion/blip_image_processing.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"954b572b774d157f9dc9597d942be0323e7537432aff3ac3e17d29250e7f775a"}},{"ruleId":"D1","level":"warning","message":{"text":"PIAPipeline.__call__ (cyclomatic 28): PIAPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/pia/pipeline_pia.py"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ae4b81765a15fdb83e20dc61e868a86b546754200646eca372a691ac750d9c"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionGLIGENTextImagePipeline.__call__ (cyclomatic 28): StableDiffusionGLIGENTextImagePipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79490507b81cdd467597949d12b74d315ac10390ba9e3fc5d45c12c3cf426da"}},{"ruleId":"D1","level":"warning","message":{"text":"UniDiffuserPipeline.__call__ (cyclomatic 28): UniDiffuserPipeline.__call__ has cyclomatic complexity 28 (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":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"b187482d0114d4901c628e365d68accb27de2a106a05a8eecbc0db8d3f944b58"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffusionGemmaPipeline.__call__ (cyclomatic 28): DiffusionGemmaPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"827f07371c35a9a0c8f36c758b089dd37cca8d277bc0b3e46f7c522569896dc8"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxPipeline.check_inputs (cyclomatic 28): FluxPipeline.check_inputs has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"5215beca722d79db1439be03780a72d2e61cd8ecf8ed205304eb57d3347caa54"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlNetInpaintPipeline.check_inputs (cyclomatic 28): FluxControlNetInpaintPipeline.check_inputs has cyclomatic complexity 28 (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":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cc5a8823cd0c797d515f18f363b3711b67e7afca56c58fd89a25c37b1e07a8"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxFillPipeline.check_inputs (cyclomatic 28): FluxFillPipeline.check_inputs has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_fill.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d4751486bdf78e9aff7b2e7129f8927408404e07e9fbdd164de4039780e8aa"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxKontextPipeline.check_inputs (cyclomatic 28): FluxKontextPipeline.check_inputs has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"873b0ec8af9cf128c73f74f597cff06bb658e78c34246c066756c0227b97e727"}},{"ruleId":"D1","level":"warning","message":{"text":"GlmImagePipeline.check_inputs (cyclomatic 28): GlmImagePipeline.check_inputs has cyclomatic complexity 28 (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":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7c05882ee58aa3e9cd92393795abc0b28a36c5c5b289b066d9a71d2f5b1e6a"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanImageRefinerPipeline.__call__ (cyclomatic 28): HunyuanImageRefinerPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"8744a17947414c6660c066a08cf05989126b329bb08df23d1698f12f0a10de47"}},{"ruleId":"D1","level":"warning","message":{"text":"JoyImageEditPipeline.__call__ (cyclomatic 28): JoyImageEditPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7545a1c32de3053668bfd8bc6fbf41a766089977d3a262b40994a0bbaa2a04"}},{"ruleId":"D1","level":"warning","message":{"text":"KandinskyV22InpaintPipeline.__call__ (cyclomatic 28): KandinskyV22InpaintPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8b2822c9dd7085516bcadada8683154888429d079a3bb5122ad38ba3a422c3"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky3Img2ImgPipeline.__call__ (cyclomatic 28): Kandinsky3Img2ImgPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"080cb197f29e3642518b749389bf37a4fbfbe4c21b8891e5173d78628b5c334d"}},{"ruleId":"D1","level":"warning","message":{"text":"LuminaPipeline.__call__ (cyclomatic 28): LuminaPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"812c4508f8df7139869d2f66b9cc4f7b44b9580ee42f60264df12fbdc323a719"}},{"ruleId":"D1","level":"warning","message":{"text":"MochiPipeline.__call__ (cyclomatic 28): MochiPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/mochi/pipeline_mochi.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc5eee0a78638f954e9488b19d428a4b27438236e4edd3b2d7d69bf5937d50b"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3PAGImg2ImgPipeline.__call__ (cyclomatic 28): StableDiffusion3PAGImg2ImgPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cadf8fe56af2dc8f3b58a9ca6f28acf5bd630340560a0b1d4bb9be6797dd520"}},{"ruleId":"D1","level":"warning","message":{"text":"RFD4ProteinaPipeline.check_inputs (cyclomatic 28): RFD4ProteinaPipeline.check_inputs has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/rfd4_proteina/pipeline_rfd4_proteina.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1608e62aa732ed9ebf2b0a9919c06eaea6336cb57d2a01a986f53c364f05627"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaVideoPipeline.__call__ (cyclomatic 28): SanaVideoPipeline.__call__ has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video.py"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae816c57c0c284352dc7fc7997359e95388b9d091bbcea1ccd8fc8f09b3a6e25"}},{"ruleId":"D1","level":"warning","message":{"text":"StableAudioPipeline.check_inputs (cyclomatic 28): StableAudioPipeline.check_inputs has cyclomatic complexity 28 (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":"src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7739ae812d244e8ea56d833aeaf634dd9fb2a0a29e1b4cd5992ac4063b2720"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionLatentUpscalePipeline.check_inputs (cyclomatic 28): StableDiffusionLatentUpscalePipeline.check_inputs has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a4acacfdb72b40e5210327c314ac0a3bbafa45ac02297719aac500c5d375c9"}},{"ruleId":"D1","level":"warning","message":{"text":"WanImageToVideoPipeline.check_inputs (cyclomatic 28): WanImageToVideoPipeline.check_inputs has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_i2v.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f6e55b389d7f8ebeeaa3c198a6cc7ba37ee77bd96dfc76703b7650a4a27030"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverMultistepScheduler.set_timesteps (cyclomatic 28): DPMSolverMultistepScheduler.set_timesteps has cyclomatic complexity 28 (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":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b2dc65ed10b681800c038c0ff6e51f23b846bcd575519a59f951fe4cc0d135"}},{"ruleId":"D1","level":"warning","message":{"text":"remind_link_issue.main (cyclomatic 28): remind_link_issue.main has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/remind_link_issue.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a28ad13d318b54722239e1e4769ab01952d90d75848149cfb8a86a509232eb"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlNetModel.forward (cyclomatic 27): ControlNetModel.forward has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6c009952888df36ad466678e9d8d0bacddac0dcf35b490f8780ecac2733769"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlNetUnionModel.__init__ (cyclomatic 27): ControlNetUnionModel.__init__ has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_union.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d11d5f25fb767b8e07b79cc32aebb76aae0ba16f2374359b5a021044e06cb24"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicTransformerBlockDreamLite.__init__ (cyclomatic 27): BasicTransformerBlockDreamLite.__init__ has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d_dreamlite.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2058dd38afdae0da0ada38699f79fa75851aabe066ebee3cdd7d0729221d9985"}},{"ruleId":"D1","level":"warning","message":{"text":"StableCascadeUNet._up_decode (cyclomatic 27): StableCascadeUNet._up_decode has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1920a646c8c91924324bd7f115a12c72168d65d58c0b402f0e50d844c3ce8a"}},{"ruleId":"D1","level":"warning","message":{"text":"CosmosTextToWorldPipeline.__call__ (cyclomatic 27): CosmosTextToWorldPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6aadf88ba7e0284c810c16a4d97e8e803763c9ac473a7d8e81d720179562361"}},{"ruleId":"D1","level":"warning","message":{"text":"IFSuperResolutionPipeline.check_inputs (cyclomatic 27): IFSuperResolutionPipeline.check_inputs has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b70ad4f4e1a2feb473091abb309e6899c2b18099f54165720be4101ad296b5"}},{"ruleId":"D1","level":"warning","message":{"text":"AltDiffusionImg2ImgPipeline.__call__ (cyclomatic 27): AltDiffusionImg2ImgPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fc56a1721f3575cd56153103b27b53b70deb89025aae3a7b5144d4483668ea"}},{"ruleId":"D1","level":"warning","message":{"text":"ErnieImagePipeline.__call__ (cyclomatic 27): ErnieImagePipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"0262c777fd5ffbb3e8fd476c6027e0ac861001dda153e75473ecad5173082e49"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlInpaintPipeline.__call__ (cyclomatic 27): FluxControlInpaintPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ba67aa1c784b9181c1cfa867c7952c6a3fef92512f995a16325e15d191d0a4"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanDiTPipeline.__call__ (cyclomatic 27): HunyuanDiTPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1b3af9844fed9ac6be0490d0a2f54befbe08bcc5bab6358b222bd271c863fe"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky5T2VPipeline.__call__ (cyclomatic 27): Kandinsky5T2VPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c90fd164e3ad0b45579d86b5d31dc96658abf0b2f63c91612426649b30d42fd"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky5I2VPipeline.__call__ (cyclomatic 27): Kandinsky5I2VPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7bb57bdc0ae27d39ce022fd41880d86539816096ad22df3e9b20c92d0495ae"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky5T2IPipeline.__call__ (cyclomatic 27): Kandinsky5T2IPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbe22a71418fb5476fea1fdb1a6ccf3af451ae35561cd046e4bfb3c7102a2a2"}},{"ruleId":"D1","level":"warning","message":{"text":"LatentConsistencyModelImg2ImgPipeline.__call__ (cyclomatic 27): LatentConsistencyModelImg2ImgPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f69742996a3c5a8d597a4302f6a7682731436020c857aaa9b7a53f2099948c0"}},{"ruleId":"D1","level":"warning","message":{"text":"LatentConsistencyModelPipeline.__call__ (cyclomatic 27): LatentConsistencyModelPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8452fe1eefaadc6e8d3fdac497fed8e664f96bbfc14001bce9afa12863b48c"}},{"ruleId":"D1","level":"warning","message":{"text":"LongCatImageEditPipeline.__call__ (cyclomatic 27): LongCatImageEditPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79e574e792ac45e5c670a0612daf3c35890bc22e8a1e05135b0d1a9a3558f99"}},{"ruleId":"D1","level":"warning","message":{"text":"LTXImageToVideoPipeline.__call__ (cyclomatic 27): LTXImageToVideoPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad39da8f36236e063c97f583d57495a104621d995459b243300668664e2b326"}},{"ruleId":"D1","level":"warning","message":{"text":"LucyEditPipeline.__call__ (cyclomatic 27): LucyEditPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ea0144838c1ece2866a3a17ff5c1cd4bac6badbaef8fb7e5cc2b6df0205f27"}},{"ruleId":"D1","level":"warning","message":{"text":"Lumina2Pipeline.check_inputs (cyclomatic 27): Lumina2Pipeline.check_inputs has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina2/pipeline_lumina2.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"0288fc67341dde841abe2b27e13949fdfabfdc3dd55e5cc28ce58171bc702774"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusion3PAGPipeline.__call__ (cyclomatic 27): StableDiffusion3PAGPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d12059b4df1ba5de20a26535047f627cb65c2943213effcb3c43a5c4ebdccb"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageEditInpaintPipeline.check_inputs (cyclomatic 27): QwenImageEditInpaintPipeline.check_inputs has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d18b0dd35bde96d5f23d5bc5c7ccb4cd50225228c44299615c183307ac9eb9"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageInpaintPipeline.check_inputs (cyclomatic 27): QwenImageInpaintPipeline.check_inputs has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e2f9dcee971fa3387ef5453f33d71d6ea14093f4936746b2436138a6436245"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaImageToVideoPipeline.check_inputs (cyclomatic 27): SanaImageToVideoPipeline.check_inputs has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"271a7cc9d7e392fc9dc8764a6fd39daa5e35c5ae723b3597979615e3ebaf7c1a"}},{"ruleId":"D1","level":"warning","message":{"text":"StableCascadePriorPipeline.__call__ (cyclomatic 27): StableCascadePriorPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e524ef5abcb1c62466e8e9d652a422e824b704c93771daa0cf089ad09dfe5af"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionInstructPix2PixPipeline.__call__ (cyclomatic 27): StableDiffusionInstructPix2PixPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b497e3fb40a99f0a00642ccfb0c612248aea0cd98c5f5c2c5b9ee80102eadf4"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionUpscalePipeline.__call__ (cyclomatic 27): StableDiffusionUpscalePipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b652da5979ed1ff417f0c9267d82f9b6dafe649eae9aabe3666bf4a9d64589"}},{"ruleId":"D1","level":"warning","message":{"text":"VisualClozeGenerationPipeline.__call__ (cyclomatic 27): VisualClozeGenerationPipeline.__call__ has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43e28751d5edb514c532103ddf0168566322d3fa7aa05becd37d8042120c640"}},{"ruleId":"D1","level":"warning","message":{"text":"dynamic_modules_utils.get_cached_module_file (cyclomatic 27): dynamic_modules_utils.get_cached_module_file has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/dynamic_modules_utils.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b4126583f173b618ba13e4e0ce7ead8f9980833a352aa2bff13edd413631ca"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_conversion_utils._convert_kohya_flux_lora_to_diffusers (cyclomatic 26): lora_conversion_utils._convert_kohya_flux_lora_to_diffusers has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b891b99369e9d993b8f5f30141cdfe7b4b546bc591d3b1e9f1d092859d8ac65"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_minimax_h3_lora_to_diffusers (cyclomatic 26): lora_conversion_utils._convert_non_diffusers_minimax_h3_lora_to_diffusers has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":3347}}}],"partialFingerprints":{"codehealthFindingId/v1":"5185ce07f0a196ca607d0cae9b93191faab032d9ffb9042cad16a655d81ab076"}},{"ruleId":"D1","level":"warning","message":{"text":"UNet2DConditionLoadersMixin._convert_ip_adapter_image_proj_to_diffusers (cyclomatic 26): UNet2DConditionLoadersMixin._convert_ip_adapter_image_proj_to_diffusers has cyclomatic complexity 26 (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":"src/diffusers/loaders/unet.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90f34ce7ecbcdc6f1802edf9e27fcf6626a6acaa94ec5fe6b94509cd703387a"}},{"ruleId":"D1","level":"warning","message":{"text":"ModularPipeline.__init__ (cyclomatic 26): ModularPipeline.__init__ has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b25ba031c7338f06adab6e2cd3e0c553403291632e69fe1617553fd529f111"}},{"ruleId":"D1","level":"warning","message":{"text":"AllegroPipeline.check_inputs (cyclomatic 26): AllegroPipeline.check_inputs has cyclomatic complexity 26 (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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c2260c0ecd919cb004c31d031c4ab7f2b8585c5aa65a7ad8731763eb70d7cb"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffVideoToVideoPipeline.check_inputs (cyclomatic 26): AnimateDiffVideoToVideoPipeline.check_inputs has cyclomatic complexity 26 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c802d85a7baf8e75c78eccb1dc154f9676b7d437f47f61a51f1a4d5da09ffd0"}},{"ruleId":"D1","level":"warning","message":{"text":"CogView3PlusPipeline.__call__ (cyclomatic 26): CogView3PlusPipeline.__call__ has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e41f10255e88da6b7a82423110ce49d067cdf45ba3635164542cbce48be8d55"}},{"ruleId":"D1","level":"warning","message":{"text":"IFInpaintingPipeline.__call__ (cyclomatic 26): IFInpaintingPipeline.__call__ has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f3bff5ec9b423d39bd12e3ef10e0c3f9e37e8f8fde71aee8589c2e56bbbe27"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetXSPipeline.__call__ (cyclomatic 26): StableDiffusionControlNetXSPipeline.__call__ has cyclomatic complexity 26 (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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f86595a027a9f18c494fbadf03aee724fd210e71be881fc7bf97891f5d9bea"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionLDM3DPipeline.check_inputs (cyclomatic 26): StableDiffusionLDM3DPipeline.check_inputs has cyclomatic complexity 26 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bf5536719bdcaae431dd33923dcefb732a900fcd51b7712b8875bf0dc80b3e"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPanoramaPipeline.check_inputs (cyclomatic 26): StableDiffusionPanoramaPipeline.check_inputs has cyclomatic complexity 26 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65b1d13ffdbadb4c60a49968e73c397ddf5b904c7ebd1cfc830d119ed94c182"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPix2PixZeroPipeline.__call__ (cyclomatic 26): StableDiffusionPix2PixZeroPipeline.__call__ has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaae516a984fc81c2556dba3f87622f9581b791fd1345b78cb90f8c63f86e649"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyAnimatePipeline.__call__ (cyclomatic 26): EasyAnimatePipeline.__call__ has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bac64cc36c7ba0403907fd926d7038d18d73ef4f104a1c37db18034166261c"}},{"ruleId":"D1","level":"warning","message":{"text":"HiDreamImagePipeline.__call__ (cyclomatic 26): HiDreamImagePipeline.__call__ has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11ecddd1062002437b5f3efd22c4cfec8de56967acbbcc4fc8224326f0c6705"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky6TI2VAPipeline.check_inputs (cyclomatic 26): Kandinsky6TI2VAPipeline.check_inputs has cyclomatic complexity 26 (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":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6a87150bd36345fa6d7410c0cee7c4147b94c3a4fa2ea9e7ed4f8386bb56fc"}},{"ruleId":"D1","level":"warning","message":{"text":"Krea2Pipeline.__call__ (cyclomatic 26): Krea2Pipeline.__call__ has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"431d7986a7653dd3e965bd80f4bbd20d43ce2a866d03d80887b27bb2a6bba2a4"}},{"ruleId":"D1","level":"warning","message":{"text":"LTXI2VLongMultiPromptPipeline.vae_decode_tiled (cyclomatic 26): LTXI2VLongMultiPromptPipeline.vae_decode_tiled has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbaa37beea56eec4bdf3aa6474568f182a0b64da00be356b38012a2aa19bfcb"}},{"ruleId":"D1","level":"warning","message":{"text":"PixArtSigmaPAGPipeline.check_inputs (cyclomatic 26): PixArtSigmaPAGPipeline.check_inputs has cyclomatic complexity 26 (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":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc722cd594456cc3c4f0f7fbdc5f2355961be42e8d2fd6d7ca344e1751d3e754"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPAGPipeline.check_inputs (cyclomatic 26): StableDiffusionPAGPipeline.check_inputs has cyclomatic complexity 26 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ac23e65b3b34c8e28037422279b533f2b1fd6bf95c9dc6ce42cf6ff87334e0"}},{"ruleId":"D1","level":"warning","message":{"text":"PixArtAlphaPipeline.check_inputs (cyclomatic 26): PixArtAlphaPipeline.check_inputs has cyclomatic complexity 26 (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":"src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c942ed400a8b5e6cf313bf3210cb5e3e29184ca39b9e326497aaffc70a59f15"}},{"ruleId":"D1","level":"warning","message":{"text":"PixArtSigmaPipeline.check_inputs (cyclomatic 26): PixArtSigmaPipeline.check_inputs has cyclomatic complexity 26 (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":"src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a1bf3ef8092db10056fdb95cff5928c10ca5f2af5b39b85987988b7644311a"}},{"ruleId":"D1","level":"warning","message":{"text":"PRXPixelPipeline.__call__ (cyclomatic 26): PRXPixelPipeline.__call__ has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx_pixel.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fabf4d59e5f8103582ebb217c86a49bcbae6249b401bf5a8db49f7b0f07204"}},{"ruleId":"D1","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingImageToVideoPipeline.check_inputs (cyclomatic 26): SkyReelsV2DiffusionForcingImageToVideoPipeline.check_inputs has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee18236edc4146147c3a11ab53943d513ebfeb4b439f22b00ab4a5b5c1131f3"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPipeline.check_inputs (cyclomatic 26): StableDiffusionPipeline.check_inputs has cyclomatic complexity 26 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"74779a58780011615ccd6479ac65d42bf8cf50670addfcec8b2b073aab797227"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionImg2ImgPipeline.check_inputs (cyclomatic 26): StableDiffusionImg2ImgPipeline.check_inputs has cyclomatic complexity 26 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a26ff76d382ffce4c93b1875164f44ef883d65fbdbfd49b4da7e1dab4a1281f"}},{"ruleId":"D1","level":"warning","message":{"text":"layer_skip._apply_layer_skip_hook (cyclomatic 25): layer_skip._apply_layer_skip_hook has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/layer_skip.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2634bdefbd344612fe7d45bcd3b9f12f08ec1864c2449c14991dbde6f648d4c"}},{"ruleId":"D1","level":"warning","message":{"text":"SeaCacheLeaderBlockHook.new_forward (cyclomatic 25): SeaCacheLeaderBlockHook.new_forward has cyclomatic complexity 25 (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":"src/diffusers/hooks/sea_cache.py"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"75292fe3e2e7f94c27b34db5b96b6546c7f3b4c6c936afc9ada9d042fe7dadff"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_z_image_lora_to_diffusers (cyclomatic 25): lora_conversion_utils._convert_non_diffusers_z_image_lora_to_diffusers has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2940}}}],"partialFingerprints":{"codehealthFindingId/v1":"4603fb5942adbe83a687ec52ccebaa5f8cf51c13b195f0aef069dcbc9df7dbc7"}},{"ruleId":"D1","level":"warning","message":{"text":"single_file_utils.create_unet_diffusers_config_from_ldm (cyclomatic 25): single_file_utils.create_unet_diffusers_config_from_ldm has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b8cbc8d22dd2b8134dbc8bbc1b1e6fbaec34b493ea54fc10a453bfc8c311dd"}},{"ruleId":"D1","level":"warning","message":{"text":"single_file_utils.convert_ldm_vae_checkpoint (cyclomatic 25): single_file_utils.convert_ldm_vae_checkpoint has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8e63de90a8cccc6393eaaedc42dbe4d96776cce75c2a0c6fa54ef8c238b10b"}},{"ruleId":"D1","level":"warning","message":{"text":"Attention.set_use_memory_efficient_attention_xformers (cyclomatic 25): Attention.set_use_memory_efficient_attention_xformers has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"75397269db6e920d3e001938b58199949d7f43da65531853fe10bbe90121253f"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentsManager.search_components (cyclomatic 25): ComponentsManager.search_components has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"77425fc3c0c3371277c9923dd849f33bcc9387b2b613218bcbc0948e1d015a72"}},{"ruleId":"D1","level":"warning","message":{"text":"prompt_upsampler.reconcile_boxes (cyclomatic 25): prompt_upsampler.reconcile_boxes has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux3/prompt_upsampler.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2566fb842ff72c98c8c20bd1b7265b54791969c5991793133669e03c0b5e30"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffPipeline.check_inputs (cyclomatic 25): AnimateDiffPipeline.check_inputs has cyclomatic complexity 25 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f0981923985c93442964b9c1af00c941318200138d384a81dfd1e6a3074342"}},{"ruleId":"D1","level":"warning","message":{"text":"AuraFlowPipeline.check_inputs (cyclomatic 25): AuraFlowPipeline.check_inputs has cyclomatic complexity 25 (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":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a27e22cc4286eb7898f23f3663d619e23fdb012e4403756728f445a7cba02e5"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetImg2ImgPipeline.prepare_latents (cyclomatic 25): StableDiffusionXLControlNetImg2ImgPipeline.prepare_latents has cyclomatic complexity 25 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"95590cd2ddad472ecbd8b2a58487fa9dc4a81c83eaa16696bfd1e86ad175a3c4"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionImg2ImgPipeline.prepare_latents (cyclomatic 25): StableDiffusionXLControlNetUnionImg2ImgPipeline.prepare_latents has cyclomatic complexity 25 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f654d4b1c87ffa3afb2e8508fe54040bd84636d3ae29eeac742c929ce5d4491"}},{"ruleId":"D1","level":"warning","message":{"text":"IFImg2ImgPipeline.check_inputs (cyclomatic 25): IFImg2ImgPipeline.check_inputs has cyclomatic complexity 25 (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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"367ea0bddd8abb4e6ecc1144ae05242056265014af0881c4abd57c3a022d5515"}},{"ruleId":"D1","level":"warning","message":{"text":"IFImg2ImgPipeline.__call__ (cyclomatic 25): IFImg2ImgPipeline.__call__ has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb7be372f2ea0c21d63bc4c09ab6b3f04da570f13fc0f0e0801670d3ec220aa"}},{"ruleId":"D1","level":"warning","message":{"text":"IFInpaintingSuperResolutionPipeline.__call__ (cyclomatic 25): IFInpaintingSuperResolutionPipeline.__call__ has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"251dd8170378171fc6fc5df04cd01cc0977a84cc43e7634ee00d609c73be1760"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionDiffEditPipeline.invert (cyclomatic 25): StableDiffusionDiffEditPipeline.invert has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76612e1d2897c5899be260a19dec4f775ac076614bf0f613c44023f398a5064"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlImg2ImgPipeline.__call__ (cyclomatic 25): FluxControlImg2ImgPipeline.__call__ has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"2503b4ef5fa828481979e247e1ed4972b6b0f28491a8f6386e8c59319700f87a"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxFillPipeline.__call__ (cyclomatic 25): FluxFillPipeline.__call__ has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_fill.py"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b9b920667c41cf21e3177407965c269ee69a659dc64b9347ff074330fca166"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanImagePipeline.check_inputs (cyclomatic 25): HunyuanImagePipeline.check_inputs has cyclomatic complexity 25 (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":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0892bcf4e7e80431b76e6cd39e00be40687fb61a8e1c15816506c2ea22364d"}},{"ruleId":"D1","level":"warning","message":{"text":"pipeline_kandinsky_inpaint.prepare_mask_and_masked_image (cyclomatic 25): pipeline_kandinsky_inpaint.prepare_mask_and_masked_image has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fa06d37dae57eb3a42cf6816aee0aad9c9eb57a792f7ad2484ded9465957f0"}},{"ruleId":"D1","level":"warning","message":{"text":"pipeline_kandinsky2_2_inpainting.prepare_mask_and_masked_image (cyclomatic 25): pipeline_kandinsky2_2_inpainting.prepare_mask_and_masked_image has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ea3da5d22c16ce3cbb1c1dae20bf5d58c76d4f032eb743e293ffda19675767"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky5I2VPipeline.check_inputs (cyclomatic 25): Kandinsky5I2VPipeline.check_inputs has cyclomatic complexity 25 (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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb61e6eb150f3940f335697f25f24fa0e50f7a9244d7d0e1e6f528fb26ed9f9"}},{"ruleId":"D1","level":"warning","message":{"text":"KolorsImg2ImgPipeline.prepare_latents (cyclomatic 25): KolorsImg2ImgPipeline.prepare_latents has cyclomatic complexity 25 (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":"src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d028af252bc297da178d64c82e972b87658d2c20abd599e7d6d1013c8e6984d"}},{"ruleId":"D1","level":"warning","message":{"text":"LDMBertEncoder.forward (cyclomatic 25): LDMBertEncoder.forward has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb2846e1c4085bb8b81df6540d27fe13bd6c5369900afa95ef493a5de9da49f"}},{"ruleId":"D1","level":"warning","message":{"text":"LLaDA2Pipeline.check_inputs (cyclomatic 25): LLaDA2Pipeline.check_inputs has cyclomatic complexity 25 (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":"src/diffusers/pipelines/llada2/pipeline_llada2.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"0329f068826b67bdb2838e7e1a15d2c092a7e94cd24bc44e6668bdcb27f23757"}},{"ruleId":"D1","level":"warning","message":{"text":"LongCatImagePipeline.__call__ (cyclomatic 25): LongCatImagePipeline.__call__ has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2f3b6de0663c34f159f8e51831c1596f0c2312426f7a3ff14880d61713f42e"}},{"ruleId":"D1","level":"warning","message":{"text":"LTXPipeline.__call__ (cyclomatic 25): LTXPipeline.__call__ has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13db0279f982eba025536beb86095f35e9be275d195dded0b34c744089cf252"}},{"ruleId":"D1","level":"warning","message":{"text":"LuminaPipeline.check_inputs (cyclomatic 25): LuminaPipeline.check_inputs has cyclomatic complexity 25 (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":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29dd682e6024d667d0382ffbf363b280e7cb64efc82b68b11cfb837fddda914"}},{"ruleId":"D1","level":"warning","message":{"text":"MotifVideoPipeline.check_inputs (cyclomatic 25): MotifVideoPipeline.check_inputs has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"050bbea6bf5a374f1853225e9c6952be68aa25710d49f0493512607d7ddc8a11"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGImg2ImgPipeline.prepare_latents (cyclomatic 25): StableDiffusionXLControlNetPAGImg2ImgPipeline.prepare_latents has cyclomatic complexity 25 (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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"694be8a81a2612e32eba8977405047d9bf83098c160e2a9abbc55f77d584c721"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaPAGPipeline.check_inputs (cyclomatic 25): SanaPAGPipeline.check_inputs has cyclomatic complexity 25 (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":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"de380cae94eebb27c8afefcfc747154eb366d901af19576481df1e3b3c58f707"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPAGImg2ImgPipeline.prepare_latents (cyclomatic 25): StableDiffusionXLPAGImg2ImgPipeline.prepare_latents has cyclomatic complexity 25 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09237d1acc2031868ec6e49a66d28d3d005c8e0ae4cf3ed89b4627c494292c5"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaPipeline.check_inputs (cyclomatic 25): SanaPipeline.check_inputs has cyclomatic complexity 25 (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":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"875e4b45b862a326343d790d6ab58a15880ea1be9b3746cbd39a3eed1aeb4195"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaControlNetPipeline.check_inputs (cyclomatic 25): SanaControlNetPipeline.check_inputs has cyclomatic complexity 25 (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":"src/diffusers/pipelines/sana/pipeline_sana_controlnet.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa5d6897cdeb9497290ed2e8e4495e8b517b5d77354b7fc54e5419aa12d150e"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaSprintImg2ImgPipeline.check_inputs (cyclomatic 25): SanaSprintImg2ImgPipeline.check_inputs has cyclomatic complexity 25 (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":"src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee369125151596f0b6fa58b4b662224c558bcec4f8004df9052a98cbbd5897c0"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaVideoPipeline.check_inputs (cyclomatic 25): SanaVideoPipeline.check_inputs has cyclomatic complexity 25 (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":"src/diffusers/pipelines/sana_video/pipeline_sana_video.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"08803db41962a727c670335707d45faec3719c710d517c1b87e8f23bbd1851b7"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLImg2ImgPipeline.prepare_latents (cyclomatic 25): StableDiffusionXLImg2ImgPipeline.prepare_latents has cyclomatic complexity 25 (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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"badddf08f5f598e4a74701bf20194c25515cb25666eb102c84be5c583e929589"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverSinglestepScheduler.set_timesteps (cyclomatic 25): DPMSolverSinglestepScheduler.set_timesteps has cyclomatic complexity 25 (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":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"001b472d7a162aba785e41363eecaf4ffda464dbbba8c21eeaa3e9c5809c6d5d"}},{"ruleId":"D1","level":"warning","message":{"text":"TCDScheduler.set_timesteps (cyclomatic 25): TCDScheduler.set_timesteps has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_tcd.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91a59372aaed4f622631679e0115f1c007894f037874d4c8a1d65dfebbb004b"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigMixin.extract_init_dict (cyclomatic 24): ConfigMixin.extract_init_dict has cyclomatic complexity 24 (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":"src/diffusers/configuration_utils.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"3200d0aa6ed2d21b987ee41813ddce7b9ac325b342e054efbcca9bb78a345832"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxIPAdapterMixin.load_ip_adapter (cyclomatic 24): FluxIPAdapterMixin.load_ip_adapter has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"96479a7a774715e4f57d8db5f6557e536b80313d2c081c98c9f0c696cb96dd01"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_conversion_utils._convert_fal_kontext_lora_to_diffusers (cyclomatic 24): lora_conversion_utils._convert_fal_kontext_lora_to_diffusers has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"9764dcb35fb3a3d655a5c4c66d9f3e69ec82d6a6b7c1ad1859d51534d987825d"}},{"ruleId":"D1","level":"warning","message":{"text":"FromSingleFileMixin.from_single_file (cyclomatic 24): FromSingleFileMixin.from_single_file has cyclomatic complexity 24 (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":"src/diffusers/loaders/single_file.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03e9d010c3f45850b4a9c454f55ec0dd0836f679633873f8d81733c5f6de5b3"}},{"ruleId":"D1","level":"warning","message":{"text":"TextualInversionLoaderMixin.unload_textual_inversion (cyclomatic 24): TextualInversionLoaderMixin.unload_textual_inversion has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/textual_inversion.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"3150fa640def99c693448a2a5fc41d1381676a744a723f3687ba3d6844d8584c"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicTransformerBlock.__init__ (cyclomatic 24): BasicTransformerBlock.__init__ has cyclomatic complexity 24 (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":"src/diffusers/models/attention.py"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf3ad6aed9da43940e4c45a90c09366fd8b4e0e93c63a28d72f4020a3c28549"}},{"ruleId":"D1","level":"warning","message":{"text":"model_loading_utils.load_model_dict_into_meta (cyclomatic 24): model_loading_utils.load_model_dict_into_meta has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/model_loading_utils.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5ccd5a5976cb3bbbb3c65b1f8a4ac9f5c72c3bb05ed72b0087767dddc0f419"}},{"ruleId":"D1","level":"warning","message":{"text":"ModularPipeline.save_pretrained (cyclomatic 24): ModularPipeline.save_pretrained has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2026}}}],"partialFingerprints":{"codehealthFindingId/v1":"850f035d73ca6dbf7bb651d2234c16998438838516041e995b247d0043bae48a"}},{"ruleId":"D1","level":"warning","message":{"text":"ModularPipeline.load_components (cyclomatic 24): ModularPipeline.load_components has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2489}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23ce86757c909491e359645a7e7d4577c11105f8454dfe9af902ffc36c0a61c"}},{"ruleId":"D1","level":"warning","message":{"text":"AllegroPipeline.__call__ (cyclomatic 24): AllegroPipeline.__call__ has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb992bca0329315c071af14f9d472a8e4c43a14b3ff5d9e85e6d4f8bd631961a"}},{"ruleId":"D1","level":"warning","message":{"text":"ChronoEditPipeline.check_inputs (cyclomatic 24): ChronoEditPipeline.check_inputs has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a75e0372d10a2bb18e5e801162b9a3ebcb2386d18074cf136b6e29176bdb91"}},{"ruleId":"D1","level":"warning","message":{"text":"CogVideoXVideoToVideoPipeline.check_inputs (cyclomatic 24): CogVideoXVideoToVideoPipeline.check_inputs has cyclomatic complexity 24 (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":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ae6dff22a64b39470985b8f91eaa1f76e9ce3fcf639c1467186c7df938f418"}},{"ruleId":"D1","level":"warning","message":{"text":"IFImg2ImgSuperResolutionPipeline.__call__ (cyclomatic 24): IFImg2ImgSuperResolutionPipeline.__call__ has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d34d76ec55699418c5eaebfc0f7eafd69c72cf4fe508badb8d79d1ba803101"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionControlNetXSPipeline.check_inputs (cyclomatic 24): StableDiffusionControlNetXSPipeline.check_inputs has cyclomatic complexity 24 (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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dafe682fa109ce8d1a3e290aae3e3b4aa1482966e6532b6cd8844384c10ed7b"}},{"ruleId":"D1","level":"warning","message":{"text":"I2VGenXLPipeline.encode_prompt (cyclomatic 24): I2VGenXLPipeline.encode_prompt has cyclomatic complexity 24 (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":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d63d527651c80cf4cb8f1e79a46f3c79c564f2be8552ee3726a995b5c3ae917"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionGLIGENTextImagePipeline.check_inputs (cyclomatic 24): StableDiffusionGLIGENTextImagePipeline.check_inputs has cyclomatic complexity 24 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"c657c727625c9119833d93cad731534d811db2db747340395b13a22da5fbc372"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlPipeline.__call__ (cyclomatic 24): FluxControlPipeline.__call__ has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2598fac69ad1abb6d56f1200913d90a9f3db6bf5ef5263362d46240a586ca41"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlImg2ImgPipeline.check_inputs (cyclomatic 24): FluxControlImg2ImgPipeline.check_inputs has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"55451ca7d8ca2be93b10d1cc67c5cb17e9b96fd662c57bdc1fa7122408351f47"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlInpaintPipeline.check_inputs (cyclomatic 24): FluxControlInpaintPipeline.check_inputs has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d88606a30c5cb5e58f95cb5ce489da0c6001ece7391bcefe6fb2924ddbacad"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlNetImg2ImgPipeline.check_inputs (cyclomatic 24): FluxControlNetImg2ImgPipeline.check_inputs has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"3469ed841d6b9f8413dc4b4f41fb4078117a79ba439d7c81184615d97b30682d"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanVideo15Pipeline.check_inputs (cyclomatic 24): HunyuanVideo15Pipeline.check_inputs has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1a1ed27e560cd1067b63777855f11412337c5c817fce223553015cd7922ecc"}},{"ruleId":"D1","level":"warning","message":{"text":"KandinskyV22Pipeline.__call__ (cyclomatic 24): KandinskyV22Pipeline.__call__ has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c36e11c307c80264324602e74b7aed4aa2b20c50c31ee1bc1b4b607f4f186de"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky5T2VPipeline.check_inputs (cyclomatic 24): Kandinsky5T2VPipeline.check_inputs has cyclomatic complexity 24 (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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"7263935399a5a4e971d2c954456aac127d878205784249794de2480eb20be450"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky5I2IPipeline.check_inputs (cyclomatic 24): Kandinsky5I2IPipeline.check_inputs has cyclomatic complexity 24 (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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"687212d98991d74f881d0ac59d884027146a81d4c21c095b3065941e69817b7b"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky6TI2VAPipeline.__call__ (cyclomatic 24): Kandinsky6TI2VAPipeline.__call__ has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b9fd10e99568bcd25f93256e61c54303fde36cd21004ce9d3c3b056f955b37"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2HDRPipeline.check_inputs (cyclomatic 24): LTX2HDRPipeline.check_inputs has cyclomatic complexity 24 (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":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fba54cde18e8adbd4f4e1ccf302d763a7e7c2ca1bf5517c9bf85e81907a6b41"}},{"ruleId":"D1","level":"warning","message":{"text":"MotifVideoPipeline.__call__ (cyclomatic 24): MotifVideoPipeline.__call__ has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b775b8bca8427d1c6e5e6e66199959825dc2bacd53691dd1c099531070e8ea"}},{"ruleId":"D1","level":"warning","message":{"text":"MotifVideoImage2VideoPipeline.__call__ (cyclomatic 24): MotifVideoImage2VideoPipeline.__call__ has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdec160172ee4f52171fd17b1b6f1d528b013fc5f0444632fc15c35ccb2ae13"}},{"ruleId":"D1","level":"warning","message":{"text":"OvisImagePipeline.__call__ (cyclomatic 24): OvisImagePipeline.__call__ has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b29033ffe65775eba0d7f698049ec1bec3a25c280c0c03e8623c4c447a73b8"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffusionPipeline.from_pipe (cyclomatic 24): DiffusionPipeline.from_pipe has cyclomatic complexity 24 (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":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d856e3dd722f809dd9a513cbaa009a49a858d0d390c44727b330accf17c4ef"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaSprintPipeline.__call__ (cyclomatic 24): SanaSprintPipeline.__call__ has cyclomatic complexity 24 (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":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"800b752e895e69b0adc07fe4e10519d6565ca995f5d68ca496d3e7bb8138e520"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaSprintImg2ImgPipeline.__call__ (cyclomatic 24): SanaSprintImg2ImgPipeline.__call__ has cyclomatic complexity 24 (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":"src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a22481ca1e389f3721d4fe0124e8d479cd895a0f025aa3ff36892f72859c46"}},{"ruleId":"D1","level":"warning","message":{"text":"SkyReelsV2ImageToVideoPipeline.check_inputs (cyclomatic 24): SkyReelsV2ImageToVideoPipeline.check_inputs has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63b99c658a8d84adced9b61da32272079881009e2d613f46291286a4fa53d05"}},{"ruleId":"D1","level":"warning","message":{"text":"convert_from_ckpt.create_unet_diffusers_config (cyclomatic 24): convert_from_ckpt.create_unet_diffusers_config has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"18fa6e230d629b8255b41a05dfeb9bb77ef8fd3f005833e68183dfa381ba783e"}},{"ruleId":"D1","level":"warning","message":{"text":"convert_from_ckpt.convert_ldm_vae_checkpoint (cyclomatic 24): convert_from_ckpt.convert_ldm_vae_checkpoint has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"7070f3f514eb096f6f8a79dc248861d231d812915f8576cac1dcd2c7eed8e1e4"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionInstructPix2PixPipeline.check_inputs (cyclomatic 24): StableDiffusionInstructPix2PixPipeline.check_inputs has cyclomatic complexity 24 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4dc8a6d10c752316795fdfa74cc780750b0019a80c37cd871e412c3f1651be"}},{"ruleId":"D1","level":"warning","message":{"text":"StableUnCLIPPipeline.check_inputs (cyclomatic 24): StableUnCLIPPipeline.check_inputs has cyclomatic complexity 24 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"80180efbdbdaf5145ec147829568df01edd575f9ce6040f6b4af191d7e7fa56f"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowMatchEulerDiscreteScheduler.set_timesteps (cyclomatic 24): FlowMatchEulerDiscreteScheduler.set_timesteps has cyclomatic complexity 24 (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":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"499480158b443f802d391b633fb091329b0447f87e43ec25716a0fdb47d102ac"}},{"ruleId":"D1","level":"warning","message":{"text":"single_file_utils.convert_controlnet_checkpoint (cyclomatic 23): single_file_utils.convert_controlnet_checkpoint 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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df151db96450a98a30a60b9086756d721b60f6d5637ad750d629e1a805d9b96"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2VideoDiffusionDecoderModel.tiled_decode (cyclomatic 23): LTX2VideoDiffusionDecoderModel.tiled_decode 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":"src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda1a7fda52819610dd62b316698efa4375fb3b5140414b38caf351e1c2eddf6"}},{"ruleId":"D1","level":"warning","message":{"text":"SparseControlNetModel.__init__ (cyclomatic 23): SparseControlNetModel.__init__ has cyclomatic complexity 23 (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":"src/diffusers/models/controlnets/controlnet_sparsectrl.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"52aecc1e7132912d31fba7bca43710cd85f9293f1c10cc20c7c61c0fd6d3f5e3"}},{"ruleId":"D1","level":"warning","message":{"text":"Flux3Transformer2DModel.forward (cyclomatic 23): Flux3Transformer2DModel.forward has cyclomatic complexity 23 (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":"src/diffusers/models/transformers/transformer_flux3.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"5499d525bc793ff46eff127e5843897349dccf93a2e5cc4b5cefe4f1bb123537"}},{"ruleId":"D1","level":"warning","message":{"text":"ZImageTransformer2DModel.forward (cyclomatic 23): ZImageTransformer2DModel.forward 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":"src/diffusers/models/transformers/transformer_z_image.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ad6b0acd6954142f8afccc132976ef458b6766c36986fb037c7483476511a2"}},{"ruleId":"D1","level":"warning","message":{"text":"before_denoise.prepare_latents_img2img (cyclomatic 23): before_denoise.prepare_latents_img2img 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":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aeee37b2bbd890994f52c7f117d15e50f98553da40d09c664fae2f226668549"}},{"ruleId":"D1","level":"warning","message":{"text":"AuraFlowPipeline.encode_prompt (cyclomatic 23): AuraFlowPipeline.encode_prompt has cyclomatic complexity 23 (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":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"818f476ae45ca7a81ccc1fe42bbbf283f54f820b693b5e27a24960a5f79ea9ff"}},{"ruleId":"D1","level":"warning","message":{"text":"AuraFlowPipeline.__call__ (cyclomatic 23): AuraFlowPipeline.__call__ 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":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"988b5af1d0f9d454418227f0165298321a5edca6a531c178ff05c9e9bc8db54b"}},{"ruleId":"D1","level":"warning","message":{"text":"ChromaImg2ImgPipeline.check_inputs (cyclomatic 23): ChromaImg2ImgPipeline.check_inputs has cyclomatic complexity 23 (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":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86f9bb3094aab2299baf6888909c8b0aaa66443b327f328f93d08487af4cd8d"}},{"ruleId":"D1","level":"warning","message":{"text":"CogView4Pipeline.__call__ (cyclomatic 23): CogView4Pipeline.__call__ has cyclomatic complexity 23 (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":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0555ed94aad537d5e72cb4e6ef91da28a1d6dc533ae5d4a5915f79c75a915d"}},{"ruleId":"D1","level":"warning","message":{"text":"CogView4ControlPipeline.__call__ (cyclomatic 23): CogView4ControlPipeline.__call__ has cyclomatic complexity 23 (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":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"be899e2f174f82fdcbedf2831b238092cba1b3df2367662e03c30ce2b9252729"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanDiTControlNetPipeline.encode_prompt (cyclomatic 23): HunyuanDiTControlNetPipeline.encode_prompt has cyclomatic complexity 23 (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":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"096cc30cb5a6fbd71ffb8717a2d312cef168b31ed6c92f50291a26612cdc564d"}},{"ruleId":"D1","level":"warning","message":{"text":"PIAPipeline.check_inputs (cyclomatic 23): PIAPipeline.check_inputs has cyclomatic complexity 23 (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":"src/diffusers/pipelines/deprecated/pia/pipeline_pia.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae8e7e9f9815b56fa25bf8bd58e3b84a7365b915863ccee42fa4296d0dbf8bd"}},{"ruleId":"D1","level":"warning","message":{"text":"DreamLitePipeline.__call__ (cyclomatic 23): DreamLitePipeline.__call__ 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":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc7684947e6de21c0323af4aa2b7165a7677b47919fc69f4e7ffd9627f09f15"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanSkyreelsImageToVideoPipeline.__call__ (cyclomatic 23): HunyuanSkyreelsImageToVideoPipeline.__call__ has cyclomatic complexity 23 (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":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf89d3e353106fd718183b3193299f760ebb33993b8a67b537a163a6dbae9e73"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanVideoPipeline.__call__ (cyclomatic 23): HunyuanVideoPipeline.__call__ has cyclomatic complexity 23 (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":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"77667db0769324420626c480d7527b459a376948af01e66017bcad14ff659513"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanVideoImageToVideoPipeline.check_inputs (cyclomatic 23): HunyuanVideoImageToVideoPipeline.check_inputs has cyclomatic complexity 23 (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":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"0259f93333a86c7fcf5e6cb17b4e1fb7bd79a989e75efc9a4b9cd6c0144d3220"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanDiTPipeline.encode_prompt (cyclomatic 23): HunyuanDiTPipeline.encode_prompt has cyclomatic complexity 23 (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":"src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9687a92ced29cbf3d18e1a4dbe670803a520b66b2e4e61a7b1977b7d03ddc11"}},{"ruleId":"D1","level":"warning","message":{"text":"KandinskyV22Img2ImgPipeline.__call__ (cyclomatic 23): KandinskyV22Img2ImgPipeline.__call__ 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":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fe2c08ae61c2ccd202b94cf70bbb26d453db897df66e0f4bbe8e8b94e19114"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky5T2IPipeline.check_inputs (cyclomatic 23): Kandinsky5T2IPipeline.check_inputs has cyclomatic complexity 23 (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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0204743a6e2741d43e7a8e2213b30c2e60a6bffd1041747bf9c88e0e837561"}},{"ruleId":"D1","level":"warning","message":{"text":"LEditsPPPipelineStableDiffusion.encode_prompt (cyclomatic 23): LEditsPPPipelineStableDiffusion.encode_prompt 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":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9f23bf03db561e7046a8d976ddbcbf7056227542eb43bd894413610d34a5e1"}},{"ruleId":"D1","level":"warning","message":{"text":"Lumina2Pipeline.__call__ (cyclomatic 23): Lumina2Pipeline.__call__ 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":"src/diffusers/pipelines/lumina2/pipeline_lumina2.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba8fd90ec597ac6ceb66e92fd398943bdfd0ec1dc50a763176a98fb47ff4488"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanDiTPAGPipeline.encode_prompt (cyclomatic 23): HunyuanDiTPAGPipeline.encode_prompt has cyclomatic complexity 23 (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":"src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83e792c892cfb8659c969ed377d70ea58667d87948aceda6dbc515a9e4e3f4e"}},{"ruleId":"D1","level":"warning","message":{"text":"AnimateDiffPAGPipeline.check_inputs (cyclomatic 23): AnimateDiffPAGPipeline.check_inputs has cyclomatic complexity 23 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"209307100f3cbcf4772dbd1868d43d4e9266674b189ccf86aefc317e617598a5"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPAGImg2ImgPipeline.check_inputs (cyclomatic 23): StableDiffusionPAGImg2ImgPipeline.check_inputs has cyclomatic complexity 23 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d98f1d1e1e2828962d79e6cad488f965c686859768ad019a9dcd291d718125e"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageImg2ImgPipeline.check_inputs (cyclomatic 23): QwenImageImg2ImgPipeline.check_inputs has cyclomatic complexity 23 (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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"9edccee99360ca2ada4e1d0fb96519c3c2ba094bbc3202a1a494b66a18886ecc"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaSprintPipeline.check_inputs (cyclomatic 23): SanaSprintPipeline.check_inputs has cyclomatic complexity 23 (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":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ee8a5dd9abba4a60e26e798a8d6d1485523d4d2235180c63780e2d6f463947"}},{"ruleId":"D1","level":"warning","message":{"text":"StableAudioPipeline.__call__ (cyclomatic 23): StableAudioPipeline.__call__ 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":"src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0bf444efa316ed2882062c10b7353cb167f0c51c708d826d9ad6133b89c156"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionDepth2ImgPipeline.__call__ (cyclomatic 23): StableDiffusionDepth2ImgPipeline.__call__ 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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"0839718f64413e8c69e093a0a0f10b529666c797d5a1d81d21baa178c532fc91"}},{"ruleId":"D1","level":"warning","message":{"text":"StableUnCLIPPipeline.__call__ (cyclomatic 23): StableUnCLIPPipeline.__call__ 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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"466eaf8a2e506deb05c7404fc0f5941bc6f728eace8e85b3ecf32cc6ca7c7735"}},{"ruleId":"D1","level":"warning","message":{"text":"StableVideoDiffusionPipeline.__call__ (cyclomatic 23): StableVideoDiffusionPipeline.__call__ 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":"src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e258fa9094a3738cf25f04b0c27352aad8aa19f4b4059d4f0863fbe5e1f3cf"}},{"ruleId":"D1","level":"warning","message":{"text":"schema._schema (cyclomatic 22): schema._schema has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/schema.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2ec5bec339d9b92ae315bd67148772c2b4f8eed9d9c89aa53ab58839db8a4d"}},{"ruleId":"D1","level":"warning","message":{"text":"ModularIPAdapterMixin.load_ip_adapter (cyclomatic 22): ModularIPAdapterMixin.load_ip_adapter has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"160514ab8f29726ea131348077203a1741313ef42c3c20cb181b7c4ffd735abf"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxLoraLoaderMixin._maybe_expand_transformer_param_shape_or_error_ (cyclomatic 22): FluxLoraLoaderMixin._maybe_expand_transformer_param_shape_or_error_ has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1995}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c0ecd97866ee3ce392bf2f650a570c9c6dd5eba91bb011598ea369c967793c"}},{"ruleId":"D1","level":"warning","message":{"text":"single_file_utils.create_diffusers_clip_model_from_ldm (cyclomatic 22): single_file_utils.create_diffusers_clip_model_from_ldm has cyclomatic complexity 22 (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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7d9516393a1ccc60dad3d80a13dcacf6e02535d5118dda3fcd796d4cea7c93"}},{"ruleId":"D1","level":"warning","message":{"text":"single_file_utils._legacy_load_scheduler (cyclomatic 22): single_file_utils._legacy_load_scheduler has cyclomatic complexity 22 (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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bdccb27d64d2829aa45293b226a03264d6d12ddc153b918e0e9747a23b972f6"}},{"ruleId":"D1","level":"warning","message":{"text":"TextualInversionLoaderMixin.load_textual_inversion (cyclomatic 22): TextualInversionLoaderMixin.load_textual_inversion has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/textual_inversion.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d600feabfd7f67becd13f98c869e21d160192836884986f994da9c60068774b"}},{"ruleId":"D1","level":"warning","message":{"text":"Transformer2DModel.__init__ (cyclomatic 22): Transformer2DModel.__init__ has cyclomatic complexity 22 (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":"src/diffusers/models/transformers/transformer_2d.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"371cb0780f2c9ddfa16a73b91bb10df70492cfe4ee3f233a6571a92e94f9a3e2"}},{"ruleId":"D1","level":"warning","message":{"text":"MotifVideoTransformer3DModel.forward (cyclomatic 22): MotifVideoTransformer3DModel.forward has cyclomatic complexity 22 (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":"src/diffusers/models/transformers/transformer_motif_video.py"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b63a06d051353e5a82e7a85bea1c0e20798657e7b2b4d889dfa1723437425e"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentsManager.get_model_info (cyclomatic 22): ComponentsManager.get_model_info has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e29768bec6ac5418e25635a4001fb659ed586a6f5eda876eb8d889a9103eba"}},{"ruleId":"D1","level":"warning","message":{"text":"AnyFlowFARPipeline.check_inputs (cyclomatic 22): AnyFlowFARPipeline.check_inputs has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91f2b65d1026d943763ac30cd5fd55e21d6943b1b6d93447c628918c653dbd5"}},{"ruleId":"D1","level":"warning","message":{"text":"BriaFiboEditPipeline.check_inputs (cyclomatic 22): BriaFiboEditPipeline.check_inputs has cyclomatic complexity 22 (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":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c41e224c9b211b9bf5ed9e504782e7ea942bff078aae2d82457c7b7273ce98"}},{"ruleId":"D1","level":"warning","message":{"text":"CogVideoXFunControlPipeline.check_inputs (cyclomatic 22): CogVideoXFunControlPipeline.check_inputs has cyclomatic complexity 22 (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":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd1dc96b48f24672324c767351c2888d59621d5a413f4320b7f14f6c86a6391"}},{"ruleId":"D1","level":"warning","message":{"text":"CogVideoXImageToVideoPipeline.check_inputs (cyclomatic 22): CogVideoXImageToVideoPipeline.check_inputs has cyclomatic complexity 22 (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":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e77f8831f9430fc342c05cfe54c93965d1d5639129fc03814b3bbfb0a42f0a3"}},{"ruleId":"D1","level":"warning","message":{"text":"ConsisIDPipeline.check_inputs (cyclomatic 22): ConsisIDPipeline.check_inputs has cyclomatic complexity 22 (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":"src/diffusers/pipelines/consisid/pipeline_consisid.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"11562ca62e4b8e5761727fba5191333cda7245adfa9aa38a2858d15f17851850"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos3MixedPrecisionConfig.resolve (cyclomatic 22): Cosmos3MixedPrecisionConfig.resolve has cyclomatic complexity 22 (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":"src/diffusers/pipelines/cosmos/mixed_precision.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8c1c03885ec6817e851509b9ebeb2fa10afa4766964a76f96634e0934a4a31"}},{"ruleId":"D1","level":"warning","message":{"text":"TextToVideoZeroSDXLPipeline.__call__ (cyclomatic 22): TextToVideoZeroSDXLPipeline.__call__ has cyclomatic complexity 22 (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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ab7c9abd7fbc81a9cfa4d4a7f6783fb958b895ab642cc1a0600f7f1d6bc836"}},{"ruleId":"D1","level":"warning","message":{"text":"UnCLIPPipeline.__call__ (cyclomatic 22): UnCLIPPipeline.__call__ has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"085e8456100f662f8f93d7dff220ca8adc15a0ae7655b321a05eceaf1e660ba9"}},{"ruleId":"D1","level":"warning","message":{"text":"DreamLiteMobilePipeline.__call__ (cyclomatic 22): DreamLiteMobilePipeline.__call__ has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"545b386c2e674ae2e5d08af4c86eca813813447caded4862180a78e7ed044c4c"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyAnimatePipeline.check_inputs (cyclomatic 22): EasyAnimatePipeline.check_inputs has cyclomatic complexity 22 (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":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"28035b6c1ae2e92da347fa671abc49e9e124e0c969f09a58f29aa3f28f1f385a"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyAnimateControlPipeline.check_inputs (cyclomatic 22): EasyAnimateControlPipeline.check_inputs has cyclomatic complexity 22 (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":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"e773825e9b97554996c0943dcf69844f098b4ff9d4a3ea7b2d7bcc0faca488c9"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyAnimateInpaintPipeline.check_inputs (cyclomatic 22): EasyAnimateInpaintPipeline.check_inputs has cyclomatic complexity 22 (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":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a330dd5a7e98ace2d2121980c3fda750d8abb26b2faffbf05e3f9b8420345b6"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlPipeline.check_inputs (cyclomatic 22): FluxControlPipeline.check_inputs has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0fbdf1846f47f65c16f6de5d79bc749c9ff3d624cdd8550061b55bf29ded89"}},{"ruleId":"D1","level":"warning","message":{"text":"HeliosPyramidPipeline.check_inputs (cyclomatic 22): HeliosPyramidPipeline.check_inputs has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios_pyramid.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"000023a6e4aac29760e5571cf0ac259ccffd2c937237194604f6dcb0e5bde3ec"}},{"ruleId":"D1","level":"warning","message":{"text":"KandinskyInpaintPipeline.__call__ (cyclomatic 22): KandinskyInpaintPipeline.__call__ has cyclomatic complexity 22 (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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"31670750195e9d70e19c1d06688ed8f017b27a3f1a70af58a19dfb9f5c2237c8"}},{"ruleId":"D1","level":"warning","message":{"text":"KandinskyV22PriorEmb2EmbPipeline.__call__ (cyclomatic 22): KandinskyV22PriorEmb2EmbPipeline.__call__ has cyclomatic complexity 22 (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":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8b0d649423f2b2fea3d3cd934bc899465d66d6a790f4943e3d4f95849c1ac4"}},{"ruleId":"D1","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingVideoToVideoPipeline.check_inputs (cyclomatic 22): SkyReelsV2DiffusionForcingVideoToVideoPipeline.check_inputs has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"656dd1232a6c1427cb25d44723499ded337b8ad6e94be0950a7137088a233441"}},{"ruleId":"D1","level":"warning","message":{"text":"SkyReelsV2ImageToVideoPipeline.__call__ (cyclomatic 22): SkyReelsV2ImageToVideoPipeline.__call__ has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5b5f3b42e0bf7a69d93d766386760b53f16860e4e66bf788f39d1af1ce37b8"}},{"ruleId":"D1","level":"warning","message":{"text":"StableAudioPipeline.encode_prompt (cyclomatic 22): StableAudioPipeline.encode_prompt has cyclomatic complexity 22 (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":"src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"beffc6a360f065df656908d8d14be28c0a186062d6b0472b0a0f2ab1bd0cd7e5"}},{"ruleId":"D1","level":"warning","message":{"text":"StableAudio3InpaintPipeline.__call__ (cyclomatic 22): StableAudio3InpaintPipeline.__call__ has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b7b49b044d392a78c67044f7c5bd7b45787933a796f7b09cf60eb21f379fd9"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionInstructPix2PixPipeline._encode_prompt (cyclomatic 22): StableDiffusionInstructPix2PixPipeline._encode_prompt has cyclomatic complexity 22 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"666585119da2db7284e46c75b9f0b3958e88ecd11a4fbfc4f93e34f57eaeef99"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionAdapterPipeline.check_inputs (cyclomatic 22): StableDiffusionAdapterPipeline.check_inputs has cyclomatic complexity 22 (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":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e346f8f93cb55e5f29a9130de3614b256418c9781e8f6e79981097766588c70"}},{"ruleId":"D1","level":"warning","message":{"text":"WanVideoToVideoPipeline.__call__ (cyclomatic 22): WanVideoToVideoPipeline.__call__ has cyclomatic complexity 22 (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":"src/diffusers/pipelines/wan/pipeline_wan_video2video.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"3203a8588f8dbaae4407940f0b4cea39e18ee522cf67c6d53bb13c01ef880404"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockRefinementScheduler.step (cyclomatic 22): BlockRefinementScheduler.step has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_block_refinement.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c52e24b7a552d5675a43c482f3d3475b82fac06d089cdae1ed541137db3f0c"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowMatchLCMScheduler.set_timesteps (cyclomatic 22): FlowMatchLCMScheduler.set_timesteps has cyclomatic complexity 22 (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":"src/diffusers/schedulers/scheduling_flow_match_lcm.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"045d8016bdce91a54fafaa448c8e4d28f57570ea0732f53c25180d8f478d496f"}},{"ruleId":"D1","level":"warning","message":{"text":"check_ai.main (cyclomatic 22): check_ai.main has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_ai.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe0c29c86caeede9b44366f751b5111bd34cb3bf706c3cfbb5b9a181af833ef"}},{"ruleId":"D1","level":"warning","message":{"text":"FasterCacheDenoiserHook.new_forward (cyclomatic 21): FasterCacheDenoiserHook.new_forward has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/faster_cache.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f838eb62379fa793ecb5f30b08b45961014ff31ce917df4fe56e90ec3c255a0"}},{"ruleId":"D1","level":"warning","message":{"text":"VaeImageProcessorLDM3D.preprocess (cyclomatic 21): VaeImageProcessorLDM3D.preprocess has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"83cad5b4c282087d2a7e8b9b81b263ab320a03c62ea22375d484403f1c6f217a"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_lora_to_diffusers (cyclomatic 21): lora_conversion_utils._convert_non_diffusers_lora_to_diffusers has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a55d6c640966596dc95b51d991bdc7ee530b59fb072902267818a7dbb52ae7"}},{"ruleId":"D1","level":"warning","message":{"text":"single_file.load_single_file_sub_model (cyclomatic 21): single_file.load_single_file_sub_model has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"671946460d8d81a127793f5df5a1f5ecd774ce643edc69bfeefb3289aec6a315"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioLDM2Pipeline.__call__ (cyclomatic 21): AudioLDM2Pipeline.__call__ has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ee2e6a3e5a482d539b11270a63377bad751b53814798b551290c69a3a4f7fa"}},{"ruleId":"D1","level":"warning","message":{"text":"BriaFiboPipeline.encode_prompt (cyclomatic 21): BriaFiboPipeline.encode_prompt has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0228ecd3f06fce774c00c1ba858417914585fc26555903707892b66fc7c33d"}},{"ruleId":"D1","level":"warning","message":{"text":"BriaFiboEditPipeline.encode_prompt (cyclomatic 21): BriaFiboEditPipeline.encode_prompt has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbe573fbabf0c0f5f32290888136cbea4febe2037df226c36590936fa199da0"}},{"ruleId":"D1","level":"warning","message":{"text":"ChromaPipeline.check_inputs (cyclomatic 21): ChromaPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc8c4a2798b610a2195b0224ca87c83525bd59a15f66d919645c2ca872a1be3"}},{"ruleId":"D1","level":"warning","message":{"text":"CogView4Pipeline.check_inputs (cyclomatic 21): CogView4Pipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"0663af30e167fa01be13b9251f5874ef2531a28d2093790115e90f044144195e"}},{"ruleId":"D1","level":"warning","message":{"text":"AltDiffusionPipeline.check_inputs (cyclomatic 21): AltDiffusionPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17592d8c745ddb60f714aea91805238ec3a45973ea8d0aa558feaba5c3267ad"}},{"ruleId":"D1","level":"warning","message":{"text":"AltDiffusionImg2ImgPipeline.check_inputs (cyclomatic 21): AltDiffusionImg2ImgPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9fe99ee261f3c89dc61bd78b731cd14cb6f85a537e29396ecf81601e6964a3"}},{"ruleId":"D1","level":"warning","message":{"text":"MusicLDMPipeline.__call__ (cyclomatic 21): MusicLDMPipeline.__call__ has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa9b753c52dc7fb5dd5cf20fbd7febc5f5f0081d5ba4622590b9b389af7ecb4"}},{"ruleId":"D1","level":"warning","message":{"text":"SemanticStableDiffusionPipeline.check_inputs (cyclomatic 21): SemanticStableDiffusionPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8de8ad8f21bf55f54734b506e145f988fb334eb1d7e29a3bb1235fbda5c0c1"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionDiffEditPipeline.check_inputs (cyclomatic 21): StableDiffusionDiffEditPipeline.check_inputs has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"af47fa559561c7f4056c3c4820fdbd7e7a0dd400f8710438052c8d4c3d34bd02"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPipelineSafe.check_inputs (cyclomatic 21): StableDiffusionPipelineSafe.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c809c036d58174839c8fcc5a7cadadef7d85bfe857a5039dbe79e7b18a0ad2b"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionSAGPipeline.check_inputs (cyclomatic 21): StableDiffusionSAGPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ceac37d7326e709e15260d2be9f4c5262798ae1fd2afccc7ad9e40056170f4"}},{"ruleId":"D1","level":"warning","message":{"text":"CycleDiffusionPipeline.check_inputs (cyclomatic 21): CycleDiffusionPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bac7befdfd355d4364add07b482817da59a2ac087947b91255724c05a3bf7d"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionInpaintPipelineLegacy.check_inputs (cyclomatic 21): StableDiffusionInpaintPipelineLegacy.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2bb2c69ed5b5836ee59453f4b765b8ff7d81e3f2be26f72551079067c7819d"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionModelEditingPipeline.check_inputs (cyclomatic 21): StableDiffusionModelEditingPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e52e4c6b3e9c47a905d42856c6237ec999ff8997725c4239d94be4fc54e5dc"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionParadigmsPipeline.check_inputs (cyclomatic 21): StableDiffusionParadigmsPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16f186ccbff72d1aadae31ca85232b4946b7bfb71a5fde56dea82b006a995f3"}},{"ruleId":"D1","level":"warning","message":{"text":"TextToVideoSDPipeline.check_inputs (cyclomatic 21): TextToVideoSDPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c10886a1b28177e711b6e21eb343b02764fc009508a3a810cd451e607594f24"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoToVideoSDPipeline.check_inputs (cyclomatic 21): VideoToVideoSDPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e53dfa749cb495fb2140d1039be0192c53f750bfe95df8b931213eb271086f"}},{"ruleId":"D1","level":"warning","message":{"text":"TextToVideoZeroPipeline.check_inputs (cyclomatic 21): TextToVideoZeroPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfe2f7f325eb8618ec3ab0b6794c42136f663d1ce5660750d95d85c9e8b641b"}},{"ruleId":"D1","level":"warning","message":{"text":"UniDiffuserPipeline._infer_batch_size (cyclomatic 21): UniDiffuserPipeline._infer_batch_size has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"331cd860d1bef5f99cf86ece0bb4fbb03020c8e11a296c76d8fc8138691fb0b6"}},{"ruleId":"D1","level":"warning","message":{"text":"VersatileDiffusionTextToImagePipeline.check_inputs (cyclomatic 21): VersatileDiffusionTextToImagePipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edde81cbada6b144019e224d560e1345c03e03c3b812423a80af792d6024fde"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxPriorReduxPipeline.check_inputs (cyclomatic 21): FluxPriorReduxPipeline.check_inputs has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2578970e5b72591f6baacb433246d66f156d5d5f31991e6ff53e0ba12420f181"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanSkyreelsImageToVideoPipeline.check_inputs (cyclomatic 21): HunyuanSkyreelsImageToVideoPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"0155650cc2c12c72b74f438631907b828d7924e39e77a64408311fe22f18b050"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanVideoPipeline.check_inputs (cyclomatic 21): HunyuanVideoPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"d473245512f4d594f810d778fe582730d2a5b7873af49d7334a9d26580a9de5f"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanVideo15Pipeline.__call__ (cyclomatic 21): HunyuanVideo15Pipeline.__call__ has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"0036877368bda0ba61fbced167da6ef75505d65eec33133cab816249e0e1e8db"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanVideo15ImageToVideoPipeline.check_inputs (cyclomatic 21): HunyuanVideo15ImageToVideoPipeline.check_inputs has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b30c737c239c0be5466beb0e78dff2cdd0788fc9f537336773e17f375d8a79e"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanVideo15ImageToVideoPipeline.__call__ (cyclomatic 21): HunyuanVideo15ImageToVideoPipeline.__call__ has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e002fb07f785409fa7a44c65de394789688211ed314881b8f0ec004631cf08"}},{"ruleId":"D1","level":"warning","message":{"text":"KandinskyV22PriorPipeline.__call__ (cyclomatic 21): KandinskyV22PriorPipeline.__call__ has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d91354a90b368bfd6409683596f4be6f981c8745fe2b34189b967f6a862a75b"}},{"ruleId":"D1","level":"warning","message":{"text":"KolorsPipeline.encode_prompt (cyclomatic 21): KolorsPipeline.encode_prompt has cyclomatic complexity 21 (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":"src/diffusers/pipelines/kolors/pipeline_kolors.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfda1c8e86812b4bfdfbf9bf32653d4876baae99e522bd127554f8ce8269f2f3"}},{"ruleId":"D1","level":"warning","message":{"text":"KolorsImg2ImgPipeline.encode_prompt (cyclomatic 21): KolorsImg2ImgPipeline.encode_prompt has cyclomatic complexity 21 (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":"src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"481d97c67b2f160cf5cfa9c01de64fced3dcd08ad19a3f6e677d5e8037e6ac38"}},{"ruleId":"D1","level":"warning","message":{"text":"Krea2Pipeline.check_inputs (cyclomatic 21): Krea2Pipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e25d63235d822334b7fe31281cb234899ebf659bd1c56dfbd74dd0354a9f8e"}},{"ruleId":"D1","level":"warning","message":{"text":"LatentConsistencyModelImg2ImgPipeline.check_inputs (cyclomatic 21): LatentConsistencyModelImg2ImgPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ec0879099a279a467a3359c9d1df9fd2cfb60e6a2fd49757e97274ef648440"}},{"ruleId":"D1","level":"warning","message":{"text":"LatentConsistencyModelPipeline.check_inputs (cyclomatic 21): LatentConsistencyModelPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9f924c033702a18e5a62675b20aa57db220c2a479fb4c411ffc26c0436747b"}},{"ruleId":"D1","level":"warning","message":{"text":"LLaDA2Pipeline._prepare_input_ids (cyclomatic 21): LLaDA2Pipeline._prepare_input_ids has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/llada2/pipeline_llada2.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"9633c710aeded6c6b6d40c32fec19a1cb90ddc6dcc4e529b459b19543e8d0fde"}},{"ruleId":"D1","level":"warning","message":{"text":"LTXPipeline.check_inputs (cyclomatic 21): LTXPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd06696a5a579e7dfc74152573af5322bb33d8872e8f726711463773ff5515c"}},{"ruleId":"D1","level":"warning","message":{"text":"LTXImageToVideoPipeline.check_inputs (cyclomatic 21): LTXImageToVideoPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01a442ddf2c21cfb707fb6fcb3710cd0dee5653effd46f31505d966d45c2343"}},{"ruleId":"D1","level":"warning","message":{"text":"LucyEditPipeline.check_inputs (cyclomatic 21): LucyEditPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b4f2680ad9ba77dc105dd9acf0e6d312406f2365823439f354d6c95749aa7f"}},{"ruleId":"D1","level":"warning","message":{"text":"MochiPipeline.check_inputs (cyclomatic 21): MochiPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/mochi/pipeline_mochi.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"096c16bae330c41d869b2dfc2ff7bf89a62aed1bd8027250a137e0966a14917b"}},{"ruleId":"D1","level":"warning","message":{"text":"KolorsPAGPipeline.encode_prompt (cyclomatic 21): KolorsPAGPipeline.encode_prompt has cyclomatic complexity 21 (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":"src/diffusers/pipelines/pag/pipeline_pag_kolors.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15f7dfbe69a5849d748f6472393e15a451274021def7576484f9e0c750b8522"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImagePipeline.check_inputs (cyclomatic 21): QwenImagePipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"c856400d3ff314c22efbf9f209c0e9d2be23b668474ff8c90d6650d426ec1d40"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageControlNetPipeline.check_inputs (cyclomatic 21): QwenImageControlNetPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"030c50af3066d8b4812a1dca932720d01f81f6a7625f43d8f444131feb689d52"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageControlNetInpaintPipeline.check_inputs (cyclomatic 21): QwenImageControlNetInpaintPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa67faae22386cd49ca9731f9fe1038a67fefb382de2a7b8b23d1e26ad33833"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageEditPipeline.check_inputs (cyclomatic 21): QwenImageEditPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"9786d5702904191c237b1655adf6cdbb08dffe4404a9b2bed82457b6ed490b06"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImageEditPlusPipeline.check_inputs (cyclomatic 21): QwenImageEditPlusPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b1b656838fcbe7efb16f1ef167cf953ace08d6ebe765610277307a68df4b3e"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionDepth2ImgPipeline.check_inputs (cyclomatic 21): StableDiffusionDepth2ImgPipeline.check_inputs has cyclomatic complexity 21 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a31481d9e3e1385e3ca84f364fb55aba3ac2758c437ca5fc1efd9ad3510135e"}},{"ruleId":"D1","level":"warning","message":{"text":"StableUnCLIPImg2ImgPipeline.__call__ (cyclomatic 21): StableUnCLIPImg2ImgPipeline.__call__ has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"db975468dc3917e253834c1e62e063529550f3aab6e315ed507dd5e2fb44d7fd"}},{"ruleId":"D1","level":"warning","message":{"text":"HeliosScheduler.multistep_uni_c_bh_update (cyclomatic 21): HeliosScheduler.multistep_uni_c_bh_update has cyclomatic complexity 21 (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":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87fa1bdee6d2eeb4e035de06ecb8d0b05ecab93287a1dfa2a13ca6120a8d911"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_qwen_lora_to_diffusers (cyclomatic 20): lora_conversion_utils._convert_non_diffusers_qwen_lora_to_diffusers has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1324bf673632f66f092bb238958ed5d529b180e2597f5ee29f8ebc8ba0c381b"}},{"ruleId":"D1","level":"warning","message":{"text":"UNet2DConditionLoadersMixin._convert_ip_adapter_attn_to_diffusers (cyclomatic 20): UNet2DConditionLoadersMixin._convert_ip_adapter_attn_to_diffusers has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/unet.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"81650755bb03fe5f265f9fc83b3ad20476cb706f4ba105b3dcc0346f11fe5988"}},{"ruleId":"D1","level":"warning","message":{"text":"attention_dispatch._check_attention_backend_requirements (cyclomatic 20): attention_dispatch._check_attention_backend_requirements has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab07b864df1c65793d498163c771127e4c8c880a9f6435cb3b2563cd59579c5"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelMixin.enable_parallelism (cyclomatic 20): ModelMixin.enable_parallelism has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"0231a6a459621cf4c0679cbd5f7a411a884bb8ae91863b6a239fd1d922f9504a"}},{"ruleId":"D1","level":"warning","message":{"text":"PriorTransformer.forward (cyclomatic 20): PriorTransformer.forward has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/prior_transformer.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea82ffabaa02708f6b1d42a0a1dbfd5ef5dd5719675c00ff569f35084d7479f7"}},{"ruleId":"D1","level":"warning","message":{"text":"HeliosTransformer3DModel.forward (cyclomatic 20): HeliosTransformer3DModel.forward has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_helios.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d02d940be9c4f538728684bd5ce9db8387c84f91d1821c11510b30fdc7e7e87"}},{"ruleId":"D1","level":"warning","message":{"text":"UNet2DConditionModel.__init__ (cyclomatic 20): UNet2DConditionModel.__init__ has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e782483efeb4d5db0f9e42c3be022ab52bf0d6a69d6d255d340eb17a6e26df"}},{"ruleId":"D1","level":"warning","message":{"text":"UNet3DConditionModel.forward (cyclomatic 20): UNet3DConditionModel.forward has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"560cba67a6c87a80ba804ae6fde4327c62fb8f7c14445b295f939de741c2d041"}},{"ruleId":"D1","level":"warning","message":{"text":"DreamLiteUNetModel.__init__ (cyclomatic 20): DreamLiteUNetModel.__init__ has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3270cb1de677f10e033eb3ff458d645f02accc7b0e56efb4199bd0a9e28315e"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos3TransferSetupStep.__call__ (cyclomatic 20): Cosmos3TransferSetupStep.__call__ has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/before_encoder.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"745ab91b058a115608a77e684c63b2f6a9675c665a752b5e68e088dbd3238b79"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos3LoopDenoiser.__call__ (cyclomatic 20): Cosmos3LoopDenoiser.__call__ has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/denoise.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f57d7d35ebc5be9d9cdb08475494f4d105574969e7a5e2f271a57991f772ace"}},{"ruleId":"D1","level":"warning","message":{"text":"AnyFlowPipeline.check_inputs (cyclomatic 20): AnyFlowPipeline.check_inputs has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90525af43ac965d524a55aafcb1143382e637d9b3e3fccf8e97f769ea818951"}},{"ruleId":"D1","level":"warning","message":{"text":"BriaPipeline.check_inputs (cyclomatic 20): BriaPipeline.check_inputs has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e91401c2a7275b7c2a2ef84e347e7a1011d317ab38d0257e2f40799d4b3a058"}},{"ruleId":"D1","level":"warning","message":{"text":"ChromaPipeline.encode_prompt (cyclomatic 20): ChromaPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44e42ce175db3b595d83274744ab9a6de1da4f5abfba878427c6c44c6430715"}},{"ruleId":"D1","level":"warning","message":{"text":"ChromaImg2ImgPipeline.encode_prompt (cyclomatic 20): ChromaImg2ImgPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"9434317c6ad20560a91fc030dd216e22033153fd5118d09eaf20b4dcf1549390"}},{"ruleId":"D1","level":"warning","message":{"text":"ChromaInpaintPipeline.encode_prompt (cyclomatic 20): ChromaInpaintPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"78dfdb64bc2d3659432f4f66afdbac66519ff827c0606885c5b6e257eb114a44"}},{"ruleId":"D1","level":"warning","message":{"text":"CogVideoXPipeline.check_inputs (cyclomatic 20): CogVideoXPipeline.check_inputs has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef656274f71bca315b76f365b1e1e6fae895153e2e615eb2eb910dae72f9d01"}},{"ruleId":"D1","level":"warning","message":{"text":"CogView3PlusPipeline.check_inputs (cyclomatic 20): CogView3PlusPipeline.check_inputs has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28e546cd3176a703b5549702bf5fb92af153897f769ebefd149c63375f04bd1"}},{"ruleId":"D1","level":"warning","message":{"text":"CogView4ControlPipeline.check_inputs (cyclomatic 20): CogView4ControlPipeline.check_inputs has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"43202ea3346e6a2a666718b064963ebbe88e39650b89a6cedd5e595c11f350b9"}},{"ruleId":"D1","level":"warning","message":{"text":"IFPipeline.encode_prompt (cyclomatic 20): IFPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb96e950af5957e86c8d7ee084d7d5b3ade062da639b89d26d9d7f974ffad175"}},{"ruleId":"D1","level":"warning","message":{"text":"IFImg2ImgPipeline.encode_prompt (cyclomatic 20): IFImg2ImgPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b52b79f151d4fb49577eaadcc79aa96f1232c88825306757d0082e1d02772dd"}},{"ruleId":"D1","level":"warning","message":{"text":"IFImg2ImgSuperResolutionPipeline.encode_prompt (cyclomatic 20): IFImg2ImgSuperResolutionPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b57f416fd6d8cfac0715d74c1289c0bf88015392e4b48e36fc947dd8b34fde"}},{"ruleId":"D1","level":"warning","message":{"text":"IFInpaintingPipeline.encode_prompt (cyclomatic 20): IFInpaintingPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a54088a72a094d35644f4ab1142b224f7c70eb6444bc1bf63d2ee12c872cd8"}},{"ruleId":"D1","level":"warning","message":{"text":"IFInpaintingSuperResolutionPipeline.encode_prompt (cyclomatic 20): IFInpaintingSuperResolutionPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b535a7799ed3b1906bbd7080b748f2d9eb4c38d7ed1ae85c6558f0d688001f"}},{"ruleId":"D1","level":"warning","message":{"text":"IFSuperResolutionPipeline.encode_prompt (cyclomatic 20): IFSuperResolutionPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"658a5de4d8885bb656bddda97c286e3ca6d1dd0589afe9af12d82186298fb148"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionGLIGENPipeline.check_inputs (cyclomatic 20): StableDiffusionGLIGENPipeline.check_inputs has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5db032a1b66eb85ee4d9860e226d52f32f55ea99649263b903c56ac69e4ec51"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionInpaintPipelineLegacy.__call__ (cyclomatic 20): StableDiffusionInpaintPipelineLegacy.__call__ has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ec8d43b6e9f7ee70176cde220928cc371153e1f38b3fc9a1184714510c75f7"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionModelEditingPipeline.edit_model (cyclomatic 20): StableDiffusionModelEditingPipeline.edit_model has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e0d119f59e83877d0339e06308c0b312d63eafbd428c1758f2711f706a79a1"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionModelEditingPipeline.__call__ (cyclomatic 20): StableDiffusionModelEditingPipeline.__call__ has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1740a7e04456962135a7f43009dbdaaa9d151572e91436c136096a425a91319"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionParadigmsPipeline.__call__ (cyclomatic 20): StableDiffusionParadigmsPipeline.__call__ has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"959cdd71b4be139c624f5f6f9e637a7cf18c6adbe928335db1d26036d75eb253"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionPix2PixZeroPipeline.invert (cyclomatic 20): StableDiffusionPix2PixZeroPipeline.invert has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a3dd1d2dcbf21b5bb13813640994045cd97c1b17c31fc9088e85a3f4fdc917"}},{"ruleId":"D1","level":"warning","message":{"text":"TextToVideoSDPipeline.__call__ (cyclomatic 20): TextToVideoSDPipeline.__call__ has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"af17095613cc649527c5ba00583a5867e65ba3ae5b8b3c96482e12feca004894"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoToVideoSDPipeline.__call__ (cyclomatic 20): VideoToVideoSDPipeline.__call__ has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c6e8924d8277d6d380061cae4c07cc66907f0a2a46c3fb5d0171e2079b8a69"}},{"ruleId":"D1","level":"warning","message":{"text":"GlmImagePipeline.generate_prior_tokens (cyclomatic 20): GlmImagePipeline.generate_prior_tokens has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e91680ba87053dd3770170f58e64a4a8c73e669e62a3044fc9d15ac0dcc635c"}},{"ruleId":"D1","level":"warning","message":{"text":"HeliosPipeline.check_inputs (cyclomatic 20): HeliosPipeline.check_inputs has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32216f01072f9c73cc6c26ff14f7d71012dcbb177f05b53ed130e74cea2cf26"}},{"ruleId":"D1","level":"warning","message":{"text":"LDMTextToImagePipeline.__call__ (cyclomatic 20): LDMTextToImagePipeline.__call__ has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b322985bdb35bb75dd87c04ec5be3ec6e207937123ee5749e5f87829a073accd"}},{"ruleId":"D1","level":"warning","message":{"text":"LattePipeline.check_inputs (cyclomatic 20): LattePipeline.check_inputs has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f929538cda5ae4d08ca6b091f9c86eace557f30548a93fe2140b0e91a4f57e7"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaPipeline.encode_prompt (cyclomatic 20): SanaPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefd62e02713239a325e593f7e4dc3341ed8ca9bbab2644faf3f8752d53eb513"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaControlNetPipeline.encode_prompt (cyclomatic 20): SanaControlNetPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_controlnet.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ba9950e488246966ea98b9dfb7cf4175fd36df8ccf38e586b5e1acc22b05b8"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaVideoPipeline.encode_prompt (cyclomatic 20): SanaVideoPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca10d9aa72640493fed8100f1282328ef95ce8049705a1facb5a59ef5beaa8d1"}},{"ruleId":"D1","level":"warning","message":{"text":"SanaImageToVideoPipeline.encode_prompt (cyclomatic 20): SanaImageToVideoPipeline.encode_prompt has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b002b46b2688aed655b835b16d71dce5eeafe541fa46dfd7b2bcdc7f015419"}},{"ruleId":"D1","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingPipeline.check_inputs (cyclomatic 20): SkyReelsV2DiffusionForcingPipeline.check_inputs has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"0343092cb5f7b2823f972567f112c386e294a7bd1cc0920784424b49a32cff63"}},{"ruleId":"D1","level":"warning","message":{"text":"StableAudio3Pipeline.__call__ (cyclomatic 20): StableAudio3Pipeline.__call__ has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c15ba9c49beedd3150d9a4b139c252293aabca85bc6acfe574901d313576ea1"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionLatentUpscalePipeline.__call__ (cyclomatic 20): StableDiffusionLatentUpscalePipeline.__call__ has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"6804b67aeef8c84c42efcf6d611c39cff87b1da191f2adff10d5c24d5255cdc8"}},{"ruleId":"D1","level":"warning","message":{"text":"WanPipeline.check_inputs (cyclomatic 20): WanPipeline.check_inputs has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2838d6cf96a20d53db85ba13e212c9c2417d30c28444a87eff51f19195515bb"}},{"ruleId":"D1","level":"warning","message":{"text":"WanVideoToVideoPipeline.check_inputs (cyclomatic 20): WanVideoToVideoPipeline.check_inputs has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_video2video.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e9cd88b2314ccd0b83b25c029b2835357eaf8ab9a172ed225f16bf0823bf8a"}},{"ruleId":"D1","level":"warning","message":{"text":"NunchakuLiteQuantizationConfig.post_init (cyclomatic 20): NunchakuLiteQuantizationConfig.post_init has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/quantization_config.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b650b48d6f5684858141f87e18839de1b79782e8f87afcd1ecdc15889a24946"}},{"ruleId":"D1","level":"warning","message":{"text":"HeliosScheduler.multistep_uni_p_bh_update (cyclomatic 20): HeliosScheduler.multistep_uni_p_bh_update has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"074c50e6fa215eb82f0b49d0332a6c09bd1dc6b4eebea6fd3b968155e9711752"}},{"ruleId":"D1","level":"warning","message":{"text":"HeunDiscreteScheduler.set_timesteps (cyclomatic 20): HeunDiscreteScheduler.set_timesteps has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_heun_discrete.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf4fbd8fb0b0f6dc028594e6fc3c7f04a438c8967a3171f5172e2ae86312618"}},{"ruleId":"D1","level":"warning","message":{"text":"SASolverScheduler.stochastic_adams_moulton_update (cyclomatic 20): SASolverScheduler.stochastic_adams_moulton_update has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_sasolver.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1eba8b81e3529067fcb78d8880adea90dd44e009bef032ad29db340bd404c5d"}},{"ruleId":"D1","level":"warning","message":{"text":"UniPCMultistepScheduler.multistep_uni_c_bh_update (cyclomatic 20): UniPCMultistepScheduler.multistep_uni_c_bh_update has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_unipc_multistep.py"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e096f5dfd29bd69e235067a2aa9e0b0e73c8a79728e8618cb344e1a483f12b"}},{"ruleId":"D1","level":"warning","message":{"text":"remote_utils.postprocess_decode (cyclomatic 20): remote_utils.postprocess_decode has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/remote_utils.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"262e938e6ae6ab4e124df15b874b740d6daab7eb95c991587319c6944e4a835e"}},{"ruleId":"D1","level":"warning","message":{"text":"sea_cache.apply_sea_cache (cyclomatic 19): sea_cache.apply_sea_cache 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":"src/diffusers/hooks/sea_cache.py"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ff97645d80ef7ca05e09a19a9f1701b6b15aaad0bcf1bbfb1616cabc1ad81e"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_conversion_utils._convert_xlabs_flux_lora_to_diffusers (cyclomatic 19): lora_conversion_utils._convert_xlabs_flux_lora_to_diffusers 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":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e55e2803743f08c0bca6e35c634b1722d4f3a7517fae39a510589f805085c5"}},{"ruleId":"D1","level":"warning","message":{"text":"MiniMaxH3LoraLoaderMixin.lora_state_dict (cyclomatic 19): MiniMaxH3LoraLoaderMixin.lora_state_dict 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":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":7161}}}],"partialFingerprints":{"codehealthFindingId/v1":"eace996a2fc0b137eea425f840cd059cfcf6a0f141a6379018d1e3353fef11aa"}},{"ruleId":"D1","level":"warning","message":{"text":"MiniMaxH3LoraLoaderMixin.load_lora_weights (cyclomatic 19): MiniMaxH3LoraLoaderMixin.load_lora_weights has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":7274}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ccd80be43055ddd65fb86a8a68fe52f6c9c72a99e8d01e92b7c7c3edeb8620"}},{"ruleId":"D1","level":"warning","message":{"text":"UNet2DConditionLoadersMixin.load_attn_procs (cyclomatic 19): UNet2DConditionLoadersMixin.load_attn_procs 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":"src/diffusers/loaders/unet.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d358715ce1e11a9ede649389a16412b83ea9de55bdf9e38396148eeebf70f475"}},{"ruleId":"D1","level":"warning","message":{"text":"unet_loader_utils._maybe_expand_lora_scales_for_one_adapter (cyclomatic 19): unet_loader_utils._maybe_expand_lora_scales_for_one_adapter 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":"src/diffusers/loaders/unet_loader_utils.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"704f7652b9aad7b5ed69197f439d6496068f4324f3b3225c5096f9e1917d3ed7"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlNetModel.forward (cyclomatic 19): FluxControlNetModel.forward has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_flux.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea82cbb21300496b986074dbcc88bd52437a50382e41d84bef372e09659d448"}},{"ruleId":"D1","level":"warning","message":{"text":"SparseControlNetModel.forward (cyclomatic 19): SparseControlNetModel.forward has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_sparsectrl.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a831e7f7683250590419182dd85eda48da73eab1355baa9ad0a5574f450baa7"}},{"ruleId":"D1","level":"warning","message":{"text":"QwenImage21Transformer2DModel.forward (cyclomatic 19): QwenImage21Transformer2DModel.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":"src/diffusers/models/transformers/transformer_qwenimage21.py"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b78aeb170b0f52b4e80ab4ed4bf12d446b15421498bc055927c89ada369d3f"}},{"ruleId":"D1","level":"warning","message":{"text":"unet_2d_blocks.get_down_block (cyclomatic 19): unet_2d_blocks.get_down_block has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1e4683162038c735bedf582fea1906f52a652542fd64786ea9d424ef9645d1"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2ConditionEncoderStep.__call__ (cyclomatic 19): LTX2ConditionEncoderStep.__call__ 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":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9a96ef4f18ec887d7000f961dada7b0d37496d2cb0caedbfd5e7da23483889"}},{"ruleId":"D1","level":"warning","message":{"text":"AceStepPipeline.check_inputs (cyclomatic 19): AceStepPipeline.check_inputs has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ace_step/pipeline_ace_step.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c022016e83720b52ea5aa0b6cec763379c9b3050740771b159930e4682c2498"}},{"ruleId":"D1","level":"warning","message":{"text":"BriaPipeline.encode_prompt (cyclomatic 19): BriaPipeline.encode_prompt 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":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f318ed5f19722e06a64ca67613be02621efaea9308915f4f47f445d3f462709"}},{"ruleId":"D1","level":"warning","message":{"text":"pipeline_bria_fibo_edit.paste_mask_on_image (cyclomatic 19): pipeline_bria_fibo_edit.paste_mask_on_image 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":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"289ceb994362baaf29aca4639260be62c892ef2fd35a9db6553b80bf30547580"}},{"ruleId":"D1","level":"warning","message":{"text":"mixed_precision.parse_diffusion_step_policy (cyclomatic 19): mixed_precision.parse_diffusion_step_policy has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/mixed_precision.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a32087f104354db5d6bc99d65c0b26faf9e0395d2e2ad2aaea098f20e85f318"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioLDMPipeline.check_inputs (cyclomatic 19): AudioLDMPipeline.check_inputs has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ceaa8c591042acb7ca14d002ed48a3fdd234e0980a8fb6689eefd1bb41fa1f0"}},{"ruleId":"D1","level":"warning","message":{"text":"MusicLDMPipeline.check_inputs (cyclomatic 19): MusicLDMPipeline.check_inputs has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"528184d5ddc06d56bcfbda02b1e098b4be31de7c8d27e561603b0bc50ea4da55"}},{"ruleId":"D1","level":"warning","message":{"text":"pipeline_stable_diffusion_diffedit.preprocess_mask (cyclomatic 19): pipeline_stable_diffusion_diffedit.preprocess_mask 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":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6aa48f482f3c2b6c60f3f76b0f99dd913287fd69f48b68cd5cf01d9cdfaf6e"}},{"ruleId":"D1","level":"warning","message":{"text":"UnCLIPImageVariationPipeline.__call__ (cyclomatic 19): UnCLIPImageVariationPipeline.__call__ 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":"src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"918bd32df3c18a373cbac10d1fd80aff6efeaf645901f6b114efa8d57e89d764"}},{"ruleId":"D1","level":"warning","message":{"text":"UniDiffuserPipeline._infer_mode (cyclomatic 19): UniDiffuserPipeline._infer_mode has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf71f7dc54c1284e4208b296158be39a39ec69481a05bb33f5c90f2a8ae833b1"}},{"ruleId":"D1","level":"warning","message":{"text":"DiTPipeline.__call__ (cyclomatic 19): DiTPipeline.__call__ 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":"src/diffusers/pipelines/dit/pipeline_dit.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2154853ae6a5ffa18237208fc77174dec8138edce61b76cb6f2e733497a71248"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxPipeline.encode_prompt (cyclomatic 19): FluxPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d73f3135205720dbe6f1b7b614d07b191cdd8d7289f152b9a9161bd930c88f7"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlPipeline.encode_prompt (cyclomatic 19): FluxControlPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd0ee9ab0302533b30df014b1fce43c12e4bb3fda215cc97f65523722904234"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlImg2ImgPipeline.encode_prompt (cyclomatic 19): FluxControlImg2ImgPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe15f815d38fc57d44103faeca999ee4691744b8da9eb70a4ef62ca690d2d618"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlInpaintPipeline.encode_prompt (cyclomatic 19): FluxControlInpaintPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"803dc039bfa8361c29eed7ff7876a83363d00354eef8698b2ec25ee8180f5cd2"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlNetPipeline.encode_prompt (cyclomatic 19): FluxControlNetPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux_controlnet.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0bb5ef5168899d6ae3851582798470e0459cdaa6d348d7b0f00574a571836a"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlNetImg2ImgPipeline.encode_prompt (cyclomatic 19): FluxControlNetImg2ImgPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb6dd7f7fd02fc33bf50cef62d14cd94597ddb9fd5cb3a1b47f7bd0792a963f"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxControlNetInpaintPipeline.encode_prompt (cyclomatic 19): FluxControlNetInpaintPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa315c70c1e61e9d432a9e493006efe7b5604b959749f7973d5dc4e075dc5046"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxFillPipeline.encode_prompt (cyclomatic 19): FluxFillPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux_fill.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b357201edfd1408274c0d4d5bf3326c376dbf18e205a1a30e76c4260734f5a1"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxImg2ImgPipeline.encode_prompt (cyclomatic 19): FluxImg2ImgPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux_img2img.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29b812f29cdffa5d6499ce5f13254355801c5fa6ea344566f147bf488b555f8"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxInpaintPipeline.encode_prompt (cyclomatic 19): FluxInpaintPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux_inpaint.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a8f33f4bea2ddf1e47865ccbb6d6f29b0f93a3e066fc39e71ae6316c04f55a"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxKontextPipeline.encode_prompt (cyclomatic 19): FluxKontextPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux_kontext.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"586b488eb302efab69691a9e2e5ac981feefb21da20be767d3f856967541c8b6"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxKontextInpaintPipeline.encode_prompt (cyclomatic 19): FluxKontextInpaintPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"13da6e48e08124df29cf7256764fcdcc0647181be68405975f2487eb2939ba0b"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxPriorReduxPipeline.encode_prompt (cyclomatic 19): FluxPriorReduxPipeline.encode_prompt 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":"src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"995bb8d17f92022a127a8696f31a465189110caecc8c3ea094f6a02f6f5a83f0"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanImageRefinerPipeline.check_inputs (cyclomatic 19): HunyuanImageRefinerPipeline.check_inputs has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"494aeceeae3a00e4bfb13b91742e8e0bea41743c0fbcaaf10e9f705f65ddeaf9"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky3Pipeline.encode_prompt (cyclomatic 19): Kandinsky3Pipeline.encode_prompt has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9489b47d98cea4acaf19861cca3481c273cab0950d80f7cb7d80e42627c985"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky3Img2ImgPipeline.encode_prompt (cyclomatic 19): Kandinsky3Img2ImgPipeline.encode_prompt has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0b5caf9ade149ea51631f67fd5c36340733a68b734d17bbd78be9aa8076bd8"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky6SRPipeline.__call__ (cyclomatic 19): Kandinsky6SRPipeline.__call__ has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_sr.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"354567c9c63f0600d5a81028a91f3bd6d348ad42dc1dd50be3a1fe19f69bff58"}},{"ruleId":"D1","level":"warning","message":{"text":"LattePipeline.encode_prompt (cyclomatic 19): LattePipeline.encode_prompt has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"157814c375ebd36c4f59c3ca30c176b868ec9f7569927feed4bbdb77d014ae68"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffusionPipeline.save_pretrained (cyclomatic 19): DiffusionPipeline.save_pretrained 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":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"1070eb3b9430d62099dc0edda75b485cf7de8d2830a16f56ad92bbfc7e02665e"}},{"ruleId":"D1","level":"warning","message":{"text":"SkyReelsV2Pipeline.__call__ (cyclomatic 19): SkyReelsV2Pipeline.__call__ 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":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4ea65387a3a1bfc428c628bc37b1338e58a63d972bd6feea54ed9a136344a9"}},{"ruleId":"D1","level":"warning","message":{"text":"convert_from_ckpt.convert_open_clip_checkpoint (cyclomatic 19): convert_from_ckpt.convert_open_clip_checkpoint 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":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"c869289b5e5870dd75538cf9629a66c734bb558ca77dc1fe5c633081f26daf9e"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLInstructPix2PixPipeline.check_inputs (cyclomatic 19): StableDiffusionXLInstructPix2PixPipeline.check_inputs has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbd216ee405429a82ef16d21c2630113c1bc406019cbc1f9105371567934598"}},{"ruleId":"D1","level":"warning","message":{"text":"BFLQuantizedParameter.__torch_function__ (cyclomatic 19): BFLQuantizedParameter.__torch_function__ 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":"src/diffusers/quantizers/bfl/utils.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"187b80eb9db9e66e70c936d06ae1fb690e5505d37cad05a37e24026a065c1b85"}},{"ruleId":"D1","level":"warning","message":{"text":"NVIDIAModelOptConfig.get_config_from_quant_type (cyclomatic 19): NVIDIAModelOptConfig.get_config_from_quant_type 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":"src/diffusers/quantizers/quantization_config.py"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f8a22c2ef7da943e7d1ec6c3afab577d320b8cd0756c83ea84bc605a40fc65"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverMultistepScheduler.multistep_dpm_solver_second_order_update (cyclomatic 19): DPMSolverMultistepScheduler.multistep_dpm_solver_second_order_update has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec74ed20260fdc0f427d605052a8993e19ea4ba54cdc2f568ec0f1eb44d81a3"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverMultistepInverseScheduler.multistep_dpm_solver_second_order_update (cyclomatic 19): DPMSolverMultistepInverseScheduler.multistep_dpm_solver_second_order_update has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8242876101e206e24e48b7fe23e0a74f62314be62054aa8803f78919430a83d"}},{"ruleId":"D1","level":"warning","message":{"text":"HeliosScheduler.step_unipc (cyclomatic 19): HeliosScheduler.step_unipc has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5c8a7062ac788f145bc14b737215c57f2807dc6078993a0aaeab71d4bf9b46"}},{"ruleId":"D1","level":"warning","message":{"text":"LCMScheduler.set_timesteps (cyclomatic 19): LCMScheduler.set_timesteps 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":"src/diffusers/schedulers/scheduling_lcm.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"acadaf7279e096f430d17fac0107ae92add6333923c675d6079c3d148db8f566"}},{"ruleId":"D1","level":"warning","message":{"text":"UniPCMultistepScheduler.multistep_uni_p_bh_update (cyclomatic 19): UniPCMultistepScheduler.multistep_uni_p_bh_update has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_unipc_multistep.py"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8ffee793f1e56e9a9ce9e6e2ff1bd49523e7d4096a01b9798f9384a9069f7a"}},{"ruleId":"D1","level":"warning","message":{"text":"loading_utils.load_video (cyclomatic 19): loading_utils.load_video 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":"src/diffusers/utils/loading_utils.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"043a364d643c530891ec5fc8e956035664ca5bb55bd47251e2f49b5b20084ebe"}},{"ruleId":"D1","level":"warning","message":{"text":"EnvironmentCommand.run (cyclomatic 18): EnvironmentCommand.run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/env.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb6b515d9a7d662f515277ba4b84d4acb7167987a7f6195799f3fc2515d37e2"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigMixin.load_config (cyclomatic 18): ConfigMixin.load_config has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/configuration_utils.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"3629e605ee39a94e3badefdfb1ade47e0005453c33d839ea745bf8364d681c51"}},{"ruleId":"D1","level":"warning","message":{"text":"FasterCacheBlockHook.new_forward (cyclomatic 18): FasterCacheBlockHook.new_forward has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/faster_cache.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcafa07fd8a45ebf3dec2ced0ba21050317a3d210d9047373dde730c19cde3eb"}},{"ruleId":"D1","level":"warning","message":{"text":"SeaCacheSharedState.resolve_gate (cyclomatic 18): SeaCacheSharedState.resolve_gate 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":"src/diffusers/hooks/sea_cache.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6595a4e4f451e3f313da9d2aebc3deaf15bce4ce14219d3fe99e973dbaaf6b"}},{"ruleId":"D1","level":"warning","message":{"text":"MaskConditionDecoder.forward (cyclomatic 18): MaskConditionDecoder.forward 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":"src/diffusers/models/autoencoders/vae.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b585815f98ad544709a8155f3631ff20d3fbf7776b6b38285a9fc672e3b7be1"}},{"ruleId":"D1","level":"warning","message":{"text":"CosmosControlNetModel.forward (cyclomatic 18): CosmosControlNetModel.forward has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_cosmos.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ca12dbffcedd6866ff5d5e4537c97ccbe31de94d7d9beb8ee5b54a22432a71"}},{"ruleId":"D1","level":"warning","message":{"text":"SD3ControlNetModel.forward (cyclomatic 18): SD3ControlNetModel.forward has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_sd3.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"627768a72a6cd3e4a8d3d5f70bf3e7ac78e0dbaa76e532b7a4f8c30c7699be59"}},{"ruleId":"D1","level":"warning","message":{"text":"UNetControlNetXSModel.forward (cyclomatic 18): UNetControlNetXSModel.forward has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf27e89ad85857e569c14e08f1e8143a2fa0b9eb5c97a612c16265cbe8d5ad1"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelMixin.to (cyclomatic 18): ModelMixin.to 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":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e800755dc364662f8524eac0b18990ba8365887767ee1b9c86e89d3f4304c0"}},{"ruleId":"D1","level":"warning","message":{"text":"HiDreamImageTransformer2DModel.forward (cyclomatic 18): HiDreamImageTransformer2DModel.forward has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hidream_image.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd6a12b2f55c6624623b8632c9ea69d35cb72a1455b8b0c70bdc9436223be5e"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2VideoTransformerBlock.forward (cyclomatic 18): LTX2VideoTransformerBlock.forward has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a65eb9197cc49f21bd3a287217880836bdd3271393b7a75f5d25b25c8a05d4"}},{"ruleId":"D1","level":"warning","message":{"text":"UNet2DModel.__init__ (cyclomatic 18): UNet2DModel.__init__ has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d120f6fd599be4ed49d669d6e90c0c51b2e4e202ccfcedb9acb755f64ed6a5b"}},{"ruleId":"D1","level":"warning","message":{"text":"UNet2DModel.forward (cyclomatic 18): UNet2DModel.forward has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a7ba5cd1da7f9acf739cd7010c0016ccff8e43127a2c31b17b99e1c4509fe9"}},{"ruleId":"D1","level":"warning","message":{"text":"unet_2d_blocks.get_up_block (cyclomatic 18): unet_2d_blocks.get_up_block has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"2292cbbe8787087a1043412eb97140b420d084b1b5d84d9bbb9d6a60146f330f"}},{"ruleId":"D1","level":"warning","message":{"text":"ResnetBlock2DDreamLite.__init__ (cyclomatic 18): ResnetBlock2DDreamLite.__init__ has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a48206c9a7120813a9fa241ebfac6c736800e676fc5d7982ff209eff6f423b"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxTextEncoderStep.encode_prompt (cyclomatic 18): FluxTextEncoderStep.encode_prompt 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":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a3e8a0e2d337ac8e8198c6af6275cf956c817fc903eb9eb7a1fd121ce66ebf"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetInputStep.__call__ (cyclomatic 18): StableDiffusionXLControlNetInputStep.__call__ has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b961bc30251dd7799e869b604c24e4b48fe2f3b1c88a2a656287de4eb7d46fd"}},{"ruleId":"D1","level":"warning","message":{"text":"CrossAttnDownBlock2D.forward (cyclomatic 18): CrossAttnDownBlock2D.forward 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. This shape REPEATS in the file: one other method here (CrossAttnUpBlock2D.forward) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e5c441a769a154bf60ab6d2f85919ec46b8813aff405abae1b52cf41d4d5ed"}},{"ruleId":"D1","level":"warning","message":{"text":"CrossAttnUpBlock2D.forward (cyclomatic 18): CrossAttnUpBlock2D.forward 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. This shape REPEATS in the file: one other method here (CrossAttnDownBlock2D.forward) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7037c21403a838bb827a2e78776829a197a81992d7a19ae4b159fe069cc792"}},{"ruleId":"D1","level":"warning","message":{"text":"AutoPipelineForText2Image.from_pipe (cyclomatic 18): AutoPipelineForText2Image.from_pipe has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/auto_pipeline.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b1f08ccfa2f796b92ce34a55dba16669832462a2390247a58826d1552fee8c"}},{"ruleId":"D1","level":"warning","message":{"text":"AutoPipelineForImage2Image.from_pipe (cyclomatic 18): AutoPipelineForImage2Image.from_pipe has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/auto_pipeline.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec49eb0bac5839554a5cb7146d21912ad01dc413107ba1b6132caae026879e2"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioDiffusionPipeline.__call__ (cyclomatic 18): AudioDiffusionPipeline.__call__ 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":"src/diffusers/pipelines/deprecated/audio_diffusion/pipeline_audio_diffusion.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2058e53960383e8133933f0cdaf838f5d1c6f25bf721834fbb83f86a7209b779"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioLDMPipeline.__call__ (cyclomatic 18): AudioLDMPipeline.__call__ 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":"src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ce75910d9f3a1cdc69c9fd1423189ad9b682853cfd936b5f81fc3ea45c7b1d"}},{"ruleId":"D1","level":"warning","message":{"text":"Blip2QFormerEncoder.forward (cyclomatic 18): Blip2QFormerEncoder.forward 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":"src/diffusers/pipelines/deprecated/blip_diffusion/modeling_blip2.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b5fff10de9b23069b7bf5060a749cf471bbaffcbf8e9b0dddbd72158bc05b8"}},{"ruleId":"D1","level":"warning","message":{"text":"I2VGenXLPipeline.__call__ (cyclomatic 18): I2VGenXLPipeline.__call__ has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"5697fa3ed46b5ca4f35e6091bd8d40f2490fdc7244957c735c630fb9faf8e5a6"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionDiffEditPipeline.generate_mask (cyclomatic 18): StableDiffusionDiffEditPipeline.generate_mask has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"88484ba999524fe5e799f9d28f2f0c2a65fe9c288dce1c032a7b34cb4a9a770a"}},{"ruleId":"D1","level":"warning","message":{"text":"CycleDiffusionPipeline.__call__ (cyclomatic 18): CycleDiffusionPipeline.__call__ 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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"66290161c542c629b7df705d96b3df6c23e557bb0cdce54e0ca793b317c47e3c"}},{"ruleId":"D1","level":"warning","message":{"text":"VQDiffusionPipeline.__call__ (cyclomatic 18): VQDiffusionPipeline.__call__ 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":"src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8348194bd3f3429115da16cb71d6f3f1fb7b17c087fb3024e696a8fe6d8b1198"}},{"ruleId":"D1","level":"warning","message":{"text":"KandinskyPipeline.__call__ (cyclomatic 18): KandinskyPipeline.__call__ 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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3c6c905ed48a78c4635b558a19870f8d1bb005b9090a98318db65872dd8ce4"}},{"ruleId":"D1","level":"warning","message":{"text":"KandinskyImg2ImgPipeline.__call__ (cyclomatic 18): KandinskyImg2ImgPipeline.__call__ 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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e3f5e814566a7ad0b9a9085b55ceab5361b368f4297f42f0639087c224657c"}},{"ruleId":"D1","level":"warning","message":{"text":"KandinskyPriorPipeline.__call__ (cyclomatic 18): KandinskyPriorPipeline.__call__ has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cf258a86e3d207947ea66a7f38b618ebb9f8fce6235f69cf22896f4cc5b84b"}},{"ruleId":"D1","level":"warning","message":{"text":"LEditsPPPipelineStableDiffusionXL.invert (cyclomatic 18): LEditsPPPipelineStableDiffusionXL.invert has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"2918d332c94d1ac24d73c1ecc4eb208ecc23e29600830fdd541786d271f032d1"}},{"ruleId":"D1","level":"warning","message":{"text":"MarigoldDepthPipeline.__call__ (cyclomatic 18): MarigoldDepthPipeline.__call__ 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":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce45ebde94b1176047bc12c870dffce1cfed1e1e13e97cc63fdefada239f5f0"}},{"ruleId":"D1","level":"warning","message":{"text":"MarigoldIntrinsicsPipeline.__call__ (cyclomatic 18): MarigoldIntrinsicsPipeline.__call__ 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":"src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ac1a238020b22f4cef060138dcd4c7c5bb8975036a8cc93596f16c9b846b32"}},{"ruleId":"D1","level":"warning","message":{"text":"MarigoldNormalsPipeline.__call__ (cyclomatic 18): MarigoldNormalsPipeline.__call__ 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":"src/diffusers/pipelines/marigold/pipeline_marigold_normals.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"5530cee25ab3080c6fa05552c08c30a49e056086712b22d722bca6cbbcccc2a2"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffusionPipeline.enable_model_cpu_offload (cyclomatic 18): DiffusionPipeline.enable_model_cpu_offload 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":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c3c1e062cc208a8874af421b480a4d927268c2e680f49d55651e7aead0951a"}},{"ruleId":"D1","level":"warning","message":{"text":"PRXPipeline.check_inputs (cyclomatic 18): PRXPipeline.check_inputs has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff34e94198389dee02e339cb3acd97d8c45ddbde642fb8a3310ba6e8a6b2f29"}},{"ruleId":"D1","level":"warning","message":{"text":"PRXPixelPipeline.check_inputs (cyclomatic 18): PRXPixelPipeline.check_inputs has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx_pixel.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"e842615ad47cde7da67d1fe0a74a225d6d4fa10ac15e19b58659c94f3c572d9b"}},{"ruleId":"D1","level":"warning","message":{"text":"SkyReelsV2Pipeline.check_inputs (cyclomatic 18): SkyReelsV2Pipeline.check_inputs has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d3fa9b4c33934cdc43ad3963d0f5c6c69bf674f1f1cdf27a0c4e4e5c4af501"}},{"ruleId":"D1","level":"warning","message":{"text":"WanVACEPipeline.preprocess_conditions (cyclomatic 18): WanVACEPipeline.preprocess_conditions 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":"src/diffusers/pipelines/wan/pipeline_wan_vace.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"802ad653ba45f82f2c66f0d8a0ca92dafad2afc43d1d6965d2fac222ea5c2acd"}},{"ruleId":"D1","level":"warning","message":{"text":"ZImageInpaintPipeline.check_inputs (cyclomatic 18): ZImageInpaintPipeline.check_inputs has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"4048bb36d467ae671a43969830505a9c0a3191e42d9ad1416b254396c9a7c5eb"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverMultistepScheduler.convert_model_output (cyclomatic 18): DPMSolverMultistepScheduler.convert_model_output 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":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd288fb4bd6220500eb750a8844713e72b9f4cfa9d915d5cbe59a6aabf9577d"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverMultistepInverseScheduler.convert_model_output (cyclomatic 18): DPMSolverMultistepInverseScheduler.convert_model_output 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":"src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"265cebdec6e0568abf699c070a52525bd0c6c494740896e13f152834973a574c"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverSinglestepScheduler.convert_model_output (cyclomatic 18): DPMSolverSinglestepScheduler.convert_model_output 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":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bde679e10cf81faa0db855b8b33ee76034773833cf11d2d186cc7697555ef66"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowMapEulerDiscreteScheduler.set_timesteps (cyclomatic 18): FlowMapEulerDiscreteScheduler.set_timesteps has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f90f2af7240ece10cf4280911161de513985db5b0a8b2162a75ef50a05f80c4"}},{"ruleId":"D1","level":"warning","message":{"text":"SASolverScheduler.convert_model_output (cyclomatic 18): SASolverScheduler.convert_model_output 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":"src/diffusers/schedulers/scheduling_sasolver.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae77efac0f5537389ac83238cbba3902bf8b412c8517f492b1491f24ffd0809e"}},{"ruleId":"D1","level":"warning","message":{"text":"SASolverScheduler.stochastic_adams_bashforth_update (cyclomatic 18): SASolverScheduler.stochastic_adams_bashforth_update has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_sasolver.py"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"403575a9c9f004d1120e4d286745a459d9e3ad4810ced283f9ef091638d4b36d"}},{"ruleId":"D1","level":"warning","message":{"text":"hub_utils._get_model_file (cyclomatic 18): hub_utils._get_model_file has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/hub_utils.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"77908ab0e9d28a862b34cfeed3b51ea543498f9313af63971d542702fa78ca1b"}},{"ruleId":"D1","level":"warning","message":{"text":"import_utils._is_package_available (cyclomatic 18): import_utils._is_package_available has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/import_utils.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e530a1c0cfb27d2f5f39add0f1f343783180be7f4c94229e33e3b908e4f26e"}},{"ruleId":"D1","level":"warning","message":{"text":"check_copies.is_copy_consistent (cyclomatic 18): check_copies.is_copy_consistent 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":"utils/check_copies.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a78f3df754548f791e7e2947b84313546b4d5573cedc684d1965b714e75203"}},{"ruleId":"D1","level":"warning","message":{"text":"modular_auto_docstring.find_auto_docstring_classes (cyclomatic 18): modular_auto_docstring.find_auto_docstring_classes 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":"utils/modular_auto_docstring.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7868b340b6016e532a50d2c7d920aba38ef38057f5c8b501297e966c011b74"}},{"ruleId":"D1","level":"warning","message":{"text":"tensor_parallel._resolve_tp_plan (cyclomatic 17): tensor_parallel._resolve_tp_plan has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/tensor_parallel.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f72ccda3a82d9d64ed1fd5765bf5fea20f29cd1b8b6ecd40ed3cdd220f5e3b4"}},{"ruleId":"D1","level":"warning","message":{"text":"tensor_parallel._check_tp_supported (cyclomatic 17): tensor_parallel._check_tp_supported has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/tensor_parallel.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd87dfe94813a1b1a18a85d981e3ebcdd8c1455adf09ee737a9197e5f011951"}},{"ruleId":"D1","level":"warning","message":{"text":"LoraBaseMixin.set_adapters (cyclomatic 17): LoraBaseMixin.set_adapters has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5cb26ddb4a3bf77096aaf99126f610185dc2eec7f11262b3198ed0d9039530"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_pipeline._maybe_dequantize_weight_for_expanded_lora (cyclomatic 17): lora_pipeline._maybe_dequantize_weight_for_expanded_lora has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df8623112800e3821b6aca4da93d36877c41c624dec4da09f89aa0fa0268f76"}},{"ruleId":"D1","level":"warning","message":{"text":"FreeNoiseTransformerBlock.forward (cyclomatic 17): FreeNoiseTransformerBlock.forward has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7025e89702dfa8dee30149fa4427c53a87d1471a3b12ed76f8d2a72a9606436"}},{"ruleId":"D1","level":"warning","message":{"text":"AutoModel.from_pretrained (cyclomatic 17): AutoModel.from_pretrained has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/auto_model.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de7675f14b73a6a5b1b839aa4a75a1e7d0d3508aebc93fb25e9ef937a15962f"}},{"ruleId":"D1","level":"warning","message":{"text":"UNetControlNetXSModel.__init__ (cyclomatic 17): UNetControlNetXSModel.__init__ has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"a317eb9a9c0020e0dbb99ef0b0bbb1343d287698ee71b4cccc360d5146eb29ae"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlNetXSCrossAttnDownBlock2D.forward (cyclomatic 17): ControlNetXSCrossAttnDownBlock2D.forward has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"63dc96ac98acfec499af53d8d09833e032c9cadafb9d6ea471eeed71ee53c27c"}},{"ruleId":"D1","level":"warning","message":{"text":"ResnetBlock2D.__init__ (cyclomatic 17): ResnetBlock2D.__init__ has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/resnet.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"574f996758588e01551243eae12f8a38764d67113a76997301a6a475c819cd23"}},{"ruleId":"D1","level":"warning","message":{"text":"Transformer2DModel.forward (cyclomatic 17): Transformer2DModel.forward has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d47487956ae2d6361d7b53da4d24ec79d5d2e63e0f631561d9781f6d2c07ef7"}},{"ruleId":"D1","level":"warning","message":{"text":"CosmosTransformer3DModel.forward (cyclomatic 17): CosmosTransformer3DModel.forward has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cosmos.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c07e6986dd7331c464a58281b67028ef526863a17b23e99e3834de63bedf0e"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxTransformer2DModel.forward (cyclomatic 17): FluxTransformer2DModel.forward has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux.py"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fcbd37ecd4b3334a85abeb83e4978a420dc82c6474b7cca9994f9a10c02f31"}},{"ruleId":"D1","level":"warning","message":{"text":"HunyuanVideoFramepackTransformer3DModel.forward (cyclomatic 17): HunyuanVideoFramepackTransformer3DModel.forward has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2abecc1bd1e6d05e76895c7e98f687a814842e96c7a5bfa1fc5a60a72f58cb"}},{"ruleId":"D1","level":"warning","message":{"text":"UNet2DConditionModel._check_config (cyclomatic 17): UNet2DConditionModel._check_config has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8c5e81d2b7247078a1c58b989d6f048b9174346e38b15120e669bfdbb1ae97"}},{"ruleId":"D1","level":"warning","message":{"text":"StableCascadeUNet._down_encode (cyclomatic 17): StableCascadeUNet._down_encode has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9974ba37a96bf8ba77958853898301c0e706a44bf07d58adda4b99be89c50fd"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentsManager.enable_auto_cpu_offload (cyclomatic 17): ComponentsManager.enable_auto_cpu_offload has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25ddc4b97bb6a20bacef1f42e23be54452a759dfc8166372219698ed646ebea"}},{"ruleId":"D1","level":"warning","message":{"text":"EchoVaeEncoderStep.__call__ (cyclomatic 17): EchoVaeEncoderStep.__call__ has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/echo/encoders.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f88ff9395c065273c34c3e2a70cdc3f81452508b0a0fffc9ab0f674e271837"}},{"ruleId":"D1","level":"warning","message":{"text":"mellon_node_utils.input_param_to_mellon_param (cyclomatic 17): mellon_node_utils.input_param_to_mellon_param has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/mellon_node_utils.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"4300a7f0b8b3971544aa67dfd567d17a66d98b23c766b2a824a25df74ed0768f"}},{"ruleId":"D1","level":"warning","message":{"text":"AutoPipelineForInpainting.from_pipe (cyclomatic 17): AutoPipelineForInpainting.from_pipe has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/auto_pipeline.py"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d2f384fd3a99252682502e9c4e38eda19b976335764387b34c11501455c5a6"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetInpaintPipeline.prepare_latents (cyclomatic 17): StableDiffusionXLControlNetInpaintPipeline.prepare_latents has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1f1f355fd70fa320e1b9f700f4204e90d80d68a9348ae6c49c263937aa4837"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionInpaintPipeline.prepare_latents (cyclomatic 17): StableDiffusionXLControlNetUnionInpaintPipeline.prepare_latents has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa65e680059bbe3e8648ad6459b37bd56d02cd7750890eadb6c108e90149a5e4"}},{"ruleId":"D1","level":"warning","message":{"text":"CosmosActionCondition.__post_init__ (cyclomatic 17): CosmosActionCondition.__post_init__ has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b54c16259efbfb3bee627386c273926803abde0efce626af890417db9d5fefd"}},{"ruleId":"D1","level":"warning","message":{"text":"CosmosVideoToWorldPipeline.check_inputs (cyclomatic 17): CosmosVideoToWorldPipeline.check_inputs has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"1550367a2c638a3c202476775384e3e20672f52ad173ce32931cec1725aeb020"}},{"ruleId":"D1","level":"warning","message":{"text":"IFPipeline.check_inputs (cyclomatic 17): IFPipeline.check_inputs has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17e6b6495d7b014343e361118d4287ecf66f8f45e6bfd07ae4f491bf1dfd660"}},{"ruleId":"D1","level":"warning","message":{"text":"I2VGenXLPipeline.check_inputs (cyclomatic 17): I2VGenXLPipeline.check_inputs has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a60259754405eab402583ae23174e3ab0b62671d2fc0ca474372f2537792bd2"}},{"ruleId":"D1","level":"warning","message":{"text":"FluxKontextInpaintPipeline.prepare_latents (cyclomatic 17): FluxKontextInpaintPipeline.prepare_latents has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e36334424d324be7dd94ff3c397ac63783bbf6c16938fc4656903609369ad09"}},{"ruleId":"D1","level":"warning","message":{"text":"Flux2KleinPipeline.check_inputs (cyclomatic 17): Flux2KleinPipeline.check_inputs has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a8793006e5bde6973a03b958ce036295c860bc44ae43a8df154973d72ca31b"}},{"ruleId":"D1","level":"warning","message":{"text":"JoyImageEditPlusPipeline.check_inputs (cyclomatic 17): JoyImageEditPlusPipeline.check_inputs has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"599814aa286544f118038fb291f811108a9a6d2d06f32ce5067a12c51060bec6"}},{"ruleId":"D1","level":"warning","message":{"text":"KandinskyV22ControlnetPipeline.__call__ (cyclomatic 17): KandinskyV22ControlnetPipeline.__call__ has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3b5f26e52bed5312837dd29a6b07fe75d62ae8a078132baf4146b12528ff25"}},{"ruleId":"D1","level":"warning","message":{"text":"KandinskyV22ControlnetImg2ImgPipeline.__call__ (cyclomatic 17): KandinskyV22ControlnetImg2ImgPipeline.__call__ has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"2108eafc7fde5bdbadd6d4c5e35216203e7aa3086193b299051da51fd6cbee15"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2ConditionPipeline.preprocess_conditions (cyclomatic 17): LTX2ConditionPipeline.preprocess_conditions has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"821fd64510950aa94504a1db8b0d876cd8ded61f837d6cbf24b81b444eb17a49"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2DFRPipeline.preprocess_conditions (cyclomatic 17): LTX2DFRPipeline.preprocess_conditions has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d98b30c3e7ff15132623aa600abc2cee2c173b124aaceedbd85d88aca5a76a"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2DFRTemporalRefinePipeline.preprocess_conditions (cyclomatic 17): LTX2DFRTemporalRefinePipeline.preprocess_conditions has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"5218e70b1ee1320dc7a720b7a21c2b0fdb98e1b80fe48aee67cb2732cbd60735"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2InContextPipeline.preprocess_conditions (cyclomatic 17): LTX2InContextPipeline.preprocess_conditions has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77fe09a4f2b414e21dde1a8be8615d804a1a40b30979b75a351d913a9ada259"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2InContextPipeline.prepare_latents (cyclomatic 17): LTX2InContextPipeline.prepare_latents has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d0e49ce1e54da450628f17f8a00157b339bcd85fcdd47f1d3382c12c51152c"}},{"ruleId":"D1","level":"warning","message":{"text":"MarigoldImageProcessor.load_image_canonical (cyclomatic 17): MarigoldImageProcessor.load_image_canonical has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/marigold_image_processing.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1021ad0b044c83522c153f06f7e8f504d0fd1c43d9f2324644ab83f30a147dcd"}},{"ruleId":"D1","level":"warning","message":{"text":"OvisImagePipeline.check_inputs (cyclomatic 17): OvisImagePipeline.check_inputs has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef45171d25118d23a2abd886a9b58273e2cbf2a0c4b57e80c482989ea58c0ea0"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLPAGInpaintPipeline.prepare_latents (cyclomatic 17): StableDiffusionXLPAGInpaintPipeline.prepare_latents has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"721c88fbacc536cbf540d9340e40e5967dd4e8109074c217ded2d3067ce3d4d3"}},{"ruleId":"D1","level":"warning","message":{"text":"ShapEImg2ImgPipeline.__call__ (cyclomatic 17): ShapEImg2ImgPipeline.__call__ has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0186e1de71ca1733d0fe8f1d41ca6866e172c746cd0e55caec63c54a3f5fed"}},{"ruleId":"D1","level":"warning","message":{"text":"StableAudio3Pipeline.check_inputs (cyclomatic 17): StableAudio3Pipeline.check_inputs has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b75be774930e416cee6ab6680bddfe2808960a02055e1bdd85ef8ac65c2a16a"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionImageVariationPipeline.__call__ (cyclomatic 17): StableDiffusionImageVariationPipeline.__call__ has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73add64e0b3195b12979275eee5834b14d6fda8823dd3927d519ff59fa07ba6"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLInpaintPipeline.prepare_latents (cyclomatic 17): StableDiffusionXLInpaintPipeline.prepare_latents has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"c763ba6bfde673a035fa20045505a2782acb1d7377ef44843ef649ccb0ec6248"}},{"ruleId":"D1","level":"warning","message":{"text":"VisualClozeProcessor.preprocess_image (cyclomatic 17): VisualClozeProcessor.preprocess_image has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/visualcloze/visualcloze_utils.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa61e44d909a3bef6c126206733d37a30ceec5314a0cb1f00028ea54d0bcf56"}},{"ruleId":"D1","level":"warning","message":{"text":"CosineDPMSolverMultistepScheduler.step (cyclomatic 17): CosineDPMSolverMultistepScheduler.step has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"21dbdeeacbdde795a27f7ce454e132d0e34ac5f9f8050184f7f54cab4964f605"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverMultistepScheduler.__init__ (cyclomatic 17): DPMSolverMultistepScheduler.__init__ has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bad8b68e7d33ebd486469efa3020dd10a1112c903a843d821ec4f3fbcf741e5"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverMultistepScheduler.step (cyclomatic 17): DPMSolverMultistepScheduler.step has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabbd6c31e4b588cec10698ded611813cff5f588f1cde31a22520e867c67b52c"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverMultistepInverseScheduler.step (cyclomatic 17): DPMSolverMultistepInverseScheduler.step has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"29acc7fbd3b017746c83c86f23ecf51361703ecbd8cff69d90aa81d1c0b23ca1"}},{"ruleId":"D1","level":"warning","message":{"text":"peft_utils.recurse_remove_peft_layers (cyclomatic 17): peft_utils.recurse_remove_peft_layers has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/peft_utils.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c904b15abe2a6629f260f6df5e83b42615df0cead6a00ce1d2dbdd8077b3b08"}},{"ruleId":"D1","level":"warning","message":{"text":"run._save_output (cyclomatic 16): run._save_output has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/run.py"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"6555a1528e934c6a578247e12b38906df952463f76f73ae9928d38b8bcebc722"}},{"ruleId":"D1","level":"warning","message":{"text":"group_offloading._apply_group_offloading_block_level (cyclomatic 16): group_offloading._apply_group_offloading_block_level has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/group_offloading.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"f461becb540c4beec39de3f05891c1024fdcba26eb23f855731fe649d136dd65"}},{"ruleId":"D1","level":"warning","message":{"text":"VaeImageProcessor.get_crop_region (cyclomatic 16): VaeImageProcessor.get_crop_region has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"7641a4561de33e159333313a6b819f0fae7c806f629e71ec439a11418fa25b84"}},{"ruleId":"D1","level":"warning","message":{"text":"SD3IPAdapterMixin.load_ip_adapter (cyclomatic 16): SD3IPAdapterMixin.load_ip_adapter has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d26873e3051e3fd0b8757bfdad21bd571d7d965686595c3d7093750374cb816"}},{"ruleId":"D1","level":"warning","message":{"text":"LoraBaseMixin.unfuse_lora (cyclomatic 16): LoraBaseMixin.unfuse_lora has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9c6b9616194b7c94423a3e03f8432ec558f5a501d0764589e4e6154941c5b5"}},{"ruleId":"D1","level":"warning","message":{"text":"lora_base._func_optionally_disable_offloading (cyclomatic 16): lora_base._func_optionally_disable_offloading has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"3439761a553f2739bdcc586c3a7bd9aa18462d747f38f61eec70e301720ac391"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextParallelConfig.__post_init__ (cyclomatic 16): ContextParallelConfig.__post_init__ has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/_modeling_parallel.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a171637364adbb5e6b698537cfce43d67f41fd9cbd726fa50900e27a31a595"}},{"ruleId":"D1","level":"warning","message":{"text":"PAGHunyuanAttnProcessor2_0.__call__ (cyclomatic 16): PAGHunyuanAttnProcessor2_0.__call__ has cyclomatic complexity 16 (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. This shape REPEATS in the file: one other method here (PAGCFGHunyuanAttnProcessor2_0.__call__) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3326}}}],"partialFingerprints":{"codehealthFindingId/v1":"31120d9a5194ee51aa34a3866dae8da749ea55aa00c7b7bf1864f94953496562"}},{"ruleId":"D1","level":"warning","message":{"text":"PAGCFGHunyuanAttnProcessor2_0.__call__ (cyclomatic 16): PAGCFGHunyuanAttnProcessor2_0.__call__ has cyclomatic complexity 16 (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. This shape REPEATS in the file: one other method here (PAGHunyuanAttnProcessor2_0.__call__) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3449}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e9b9ae102d2c39d2a17a79aa193f666d287d0fecef618d4f45186ba6f8902c"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos3AVAEAudioTokenizer.__init__ (cyclomatic 16): Cosmos3AVAEAudioTokenizer.__init__ has cyclomatic complexity 16 (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":"src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b832a7596ec1739b0fcb43bafaa5355d6b5991f8deb8424582c05e56755eba"}},{"ruleId":"D1","level":"warning","message":{"text":"Kandinsky6Transformer3DModel.forward (cyclomatic 16): Kandinsky6Transformer3DModel.forward has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"254c3ea0d281bd1b60af2a9cd3f1d466d79fba9091d11a9f80e42af17f0dde5d"}},{"ruleId":"D1","level":"warning","message":{"text":"MotifVideoAttnProcessor2_0.__call__ (cyclomatic 16): MotifVideoAttnProcessor2_0.__call__ has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_motif_video.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fc2394136ba8e00bd60426272ce846e32ff651dba4030559f73d515235d0aa"}},{"ruleId":"D1","level":"warning","message":{"text":"BidirectionalGDNUCPESinglePathLiteLA.forward (cyclomatic 16): BidirectionalGDNUCPESinglePathLiteLA.forward has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"4979a2e21548eb3a12317ff551a17f711144fcf92dcca5024a8cbb6fc96b0342"}},{"ruleId":"D1","level":"warning","message":{"text":"UNetSpatioTemporalConditionModel.__init__ (cyclomatic 16): UNetSpatioTemporalConditionModel.__init__ has cyclomatic complexity 16 (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":"src/diffusers/models/unets/unet_spatio_temporal_condition.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6f3242499578d461636ebc4a6211652fffb1bc92e5f13cb2c576e61e3c4407"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentsManager.add (cyclomatic 16): ComponentsManager.add has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"5996fa40a912bbe98482a35d1a126668c66c5d8d369b88bd9e3838ec4fa86b43"}},{"ruleId":"D1","level":"warning","message":{"text":"Cosmos3ActionPrepareLatentsStep.__call__ (cyclomatic 16): Cosmos3ActionPrepareLatentsStep.__call__ has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/before_denoise.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f5f903e1811429abc5c554af21b0c6c865043eccf89a735fdd1708b33b6ae8"}},{"ruleId":"D1","level":"warning","message":{"text":"ModularPipeline.register_components (cyclomatic 16): ModularPipeline.register_components has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2186}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b7ce9093964fd2b0598da97de6a738b7a021ae8e0f1eec8c32ba6a273dd86c"}},{"ruleId":"D1","level":"warning","message":{"text":"ModularPipeline.__call__ (cyclomatic 16): ModularPipeline.__call__ has cyclomatic complexity 16 (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":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2958}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bdacc903134beb328d06df0871c76ea54491b86835dc2a3e42c924b23579e6"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionXLInputStep.check_inputs (cyclomatic 16): StableDiffusionXLInputStep.check_inputs has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcc61e86bccce91b371e3069a09bfcca9f7d446172fcdd4df207901a27848b4"}},{"ruleId":"D1","level":"warning","message":{"text":"WanVaceEncoderStep.preprocess_conditions (cyclomatic 16): WanVaceEncoderStep.preprocess_conditions has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedc8490b6da705b80a801888d0438f0a64c30433139e6ef91c793f727ed9929"}},{"ruleId":"D1","level":"warning","message":{"text":"UNetMidBlock2DCrossAttn.forward (cyclomatic 16): UNetMidBlock2DCrossAttn.forward has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9aaaccd149133f72e080a34f30a0b87cc128e4bccea6dd9ea72488956e2ca8"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyAnimatePipeline.encode_prompt (cyclomatic 16): EasyAnimatePipeline.encode_prompt has cyclomatic complexity 16 (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":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b8926bc745d03127a6ec986b822eaeeea7129df5311fc3fcf36daf8f50fd21"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyAnimateControlPipeline.encode_prompt (cyclomatic 16): EasyAnimateControlPipeline.encode_prompt has cyclomatic complexity 16 (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":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59e4f1e7890951429e150f105b39fc8cdcd1f83818725b124e160b657f6655a"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyAnimateInpaintPipeline.encode_prompt (cyclomatic 16): EasyAnimateInpaintPipeline.encode_prompt has cyclomatic complexity 16 (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":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"e985550526e019554d9cac9ca2b86e5b02b0d7b320133750af29c99228c7753a"}},{"ruleId":"D1","level":"warning","message":{"text":"EasyAnimateInpaintPipeline.prepare_latents (cyclomatic 16): EasyAnimateInpaintPipeline.prepare_latents has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e25974f393c51b100d7e78634ae0971213943dbc81ccbc9498319dcff7dae03"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatGLMModel.forward (cyclomatic 16): ChatGLMModel.forward has cyclomatic complexity 16 (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":"src/diffusers/pipelines/kolors/text_encoder.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e7e8caa12b400bb03e246a042bba71cef10fc79bf788e43b679931be817920"}},{"ruleId":"D1","level":"warning","message":{"text":"LEditsPPPipelineStableDiffusion.__init__ (cyclomatic 16): LEditsPPPipelineStableDiffusion.__init__ has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12b6a00395853590037dcf6373537d4d9a640e7817c49191eb095b7fc9d6a72"}},{"ruleId":"D1","level":"warning","message":{"text":"LongCatAudioDiTPipeline.__call__ (cyclomatic 16): LongCatAudioDiTPipeline.__call__ has cyclomatic complexity 16 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_audio_dit/pipeline_longcat_audio_dit.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ebda4f300a53fa10a3c949e3261145a9a977d0e93958e01ab76d59cbf04acf"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2DFRPipeline.denoise (cyclomatic 16): LTX2DFRPipeline.denoise has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"a767cb180add9fbdf343c712e6d926c5e6ff9ce2380caca9cad1142896f07d79"}},{"ruleId":"D1","level":"warning","message":{"text":"LTX2DFRTemporalRefinePipeline.denoise (cyclomatic 16): LTX2DFRTemporalRefinePipeline.denoise has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"542c27f6755a00103ac52c47a35d6fa6030b0b70b126eb8c56391c9174238ff9"}},{"ruleId":"D1","level":"warning","message":{"text":"NucleusMoEImagePipeline.check_inputs (cyclomatic 16): NucleusMoEImagePipeline.check_inputs has cyclomatic complexity 16 (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":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"7128717b37fdab6c5bf7446d3c7690ea0bf1743515f6c32afe84470aa64b205d"}},{"ruleId":"D1","level":"warning","message":{"text":"pipeline_loading_utils.is_safetensors_compatible (cyclomatic 16): pipeline_loading_utils.is_safetensors_compatible has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_loading_utils.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"0452f38f296777edf9e616bccfcf449c079c4ad546a6e9e6e7048bb2de9aca40"}},{"ruleId":"D1","level":"warning","message":{"text":"StableCascadeDecoderPipeline.check_inputs (cyclomatic 16): StableCascadeDecoderPipeline.check_inputs has cyclomatic complexity 16 (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":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8965beee548df1499bc89b70c82727849de429f7fc53a5a6be7e680ae0769cff"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionInpaintPipeline.__init__ (cyclomatic 16): StableDiffusionInpaintPipeline.__init__ has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"489ddeeed1a59f8acbe1e4508ddba0ef3ce67c6d990d8eca0e846bb04766af68"}},{"ruleId":"D1","level":"warning","message":{"text":"StableDiffusionLatentUpscalePipeline.encode_prompt (cyclomatic 16): StableDiffusionLatentUpscalePipeline.encode_prompt has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"812a8228ff7e09faf4d7ab4fec4206ca97d664fa066fc7b3cf8211465af27b37"}},{"ruleId":"D1","level":"warning","message":{"text":"VisualClozeGenerationPipeline.encode_prompt (cyclomatic 16): VisualClozeGenerationPipeline.encode_prompt has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd7d6e17b0ff328719fb24451a586e19e70c25cfbc73471fba615184dd3a50f"}},{"ruleId":"D1","level":"warning","message":{"text":"BnB4BitDiffusersQuantizer.create_quantized_param (cyclomatic 16): BnB4BitDiffusersQuantizer.create_quantized_param has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa39685fdca312d723616c12b755b335c5821b6d72f35a58c3ebaf1dedd2a22"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverSinglestepScheduler.singlestep_dpm_solver_second_order_update (cyclomatic 16): DPMSolverSinglestepScheduler.singlestep_dpm_solver_second_order_update has cyclomatic complexity 16 (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. This shape REPEATS in the file: one other method here (DPMSolverSinglestepScheduler.singlestep_dpm_solver_third_order_update) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8bedeff3839310b3dd3463058a64a8b840ae8ebfec54197731d74b90c2822c"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverSinglestepScheduler.singlestep_dpm_solver_third_order_update (cyclomatic 16): DPMSolverSinglestepScheduler.singlestep_dpm_solver_third_order_update has cyclomatic complexity 16 (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. This shape REPEATS in the file: one other method here (DPMSolverSinglestepScheduler.singlestep_dpm_solver_second_order_update) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"f496d13c4b70cf50c8079cd7ef2380488e298a6e10ec15c446b374080555b306"}},{"ruleId":"D1","level":"warning","message":{"text":"HeliosScheduler.convert_model_output (cyclomatic 16): HeliosScheduler.convert_model_output has cyclomatic complexity 16 (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":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"5051aca59fb572dda288e22d5f7dbc339fba288619a783310788efbc64833311"}},{"ruleId":"D1","level":"warning","message":{"text":"remote_utils.prepare_decode (cyclomatic 16): remote_utils.prepare_decode has cyclomatic complexity 16 (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":"src/diffusers/utils/remote_utils.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fed6bed26fbfc8cb543d2d6b479b72eace8f084855c64e13a661f5b358a6c9"}},{"ruleId":"D1","level":"warning","message":{"text":"check_forward_call_docstrings.main (cyclomatic 16): check_forward_call_docstrings.main has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_forward_call_docstrings.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e38793e934423ee8f7e0e51515e55a808763e53a63e23176dd9f1eabb118bf"}},{"ruleId":"D1","level":"warning","message":{"text":"log_reports.main (cyclomatic 16): log_reports.main has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/log_reports.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a780ad60f90b32f234a8e9b96860e726984816e0982c19efe06ba09a640e4c15"}},{"ruleId":"D2","level":"warning","message":{"text":"convert_from_ckpt.download_from_original_stable_diffusion_ckpt (cognitive 204): convert_from_ckpt.download_from_original_stable_diffusion_ckpt has cognitive complexity 204 (threshold 15). Drivers by points: if/else 83 (135 pts), ternaries 10 (23 pts), error handling 7 (19 pts), boolean chains 17, loops 4 (10 pts) (nesting depth added 83). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f5d01f0177e0db103243d364ffb4d20d7115e8904ce1de185a260301cc763b"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_wan_lora_to_diffusers (cognitive 162): lora_conversion_utils._convert_non_diffusers_wan_lora_to_diffusers has cognitive complexity 162 (threshold 15). Drivers by points: if/else 43 (125 pts), loops 10 (20 pts), ternaries 4 (12 pts), boolean chains 5 (nesting depth added 100). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"595ca656c1e408cc97f93de6e30f06ad8415c19ab9c6c9f60b8cf4a3ccd9b034"}},{"ruleId":"D2","level":"warning","message":{"text":"LEditsPPPipelineStableDiffusionXL.__call__ (cognitive 140): LEditsPPPipelineStableDiffusionXL.__call__ has cognitive complexity 140 (threshold 15). Drivers by points: if/else 55 (124 pts), loops 3 (7 pts), boolean chains 6, ternaries 2 (3 pts) (nesting depth added 74). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a54afcdbcc0691ef16e74a7ef72ce5e067e3837b2aba7d20a1d217286a3749b"}},{"ruleId":"D2","level":"warning","message":{"text":"LEditsPPPipelineStableDiffusion.__call__ (cognitive 135): LEditsPPPipelineStableDiffusion.__call__ has cognitive complexity 135 (threshold 15). Drivers by points: if/else 51 (121 pts), loops 3 (7 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 75). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde7955dac02becda5c5675f7a134b0381654876114a7527d8e92cf5776deea5"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelMixin.from_pretrained (cognitive 134): ModelMixin.from_pretrained has cognitive complexity 134 (threshold 15). Drivers by points: if/else 67 (92 pts), boolean chains 23, ternaries 4 (11 pts), error handling 2 (5 pts), loops 1 (3 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdcb5475646751df1057f76e2c4a0ad6df2f6e0fe60914483594177fdab5dbb"}},{"ruleId":"D2","level":"warning","message":{"text":"LTXI2VLongMultiPromptPipeline.__call__ (cognitive 130): LTXI2VLongMultiPromptPipeline.__call__ has cognitive complexity 130 (threshold 15). Drivers by points: if/else 38 (84 pts), ternaries 10 (28 pts), boolean chains 9, loops 3 (9 pts) (nesting depth added 70). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3d514c0824796bc5b06fe58c022cc837d7a5901362cfa545555c12b0884387"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2InContextPipeline.__call__ (cognitive 130): LTX2InContextPipeline.__call__ has cognitive complexity 130 (threshold 15). Drivers by points: if/else 50 (84 pts), boolean chains 20, ternaries 9 (19 pts), loops 3 (7 pts) (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69cafd46f01200d58bf2dbe5b785ccffef7ceda06af5e7903621dfce4634d4e"}},{"ruleId":"D2","level":"warning","message":{"text":"SemanticStableDiffusionPipeline.__call__ (cognitive 128): SemanticStableDiffusionPipeline.__call__ has cognitive complexity 128 (threshold 15). Drivers by points: if/else 47 (116 pts), loops 2 (5 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 73). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aec5c6ab44c989fbdd00ba9250531cf8c1b8313e5e706e35e4d7eb70f1dc2cd"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos3OmniPipeline.__call__ (cognitive 121): Cosmos3OmniPipeline.__call__ has cognitive complexity 121 (threshold 15). Drivers by points: if/else 40 (59 pts), ternaries 25 (50 pts), boolean chains 8, loops 2 (4 pts) (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cb787d05c2027f0e953e4d5a9a26c68d0707da60310662a2c630718327fd2b"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGInpaintPipeline.__call__ (cognitive 113): StableDiffusionXLPAGInpaintPipeline.__call__ has cognitive complexity 113 (threshold 15). Drivers by points: if/else 52 (79 pts), boolean chains 17, ternaries 5 (11 pts), loops 3 (6 pts) (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d30944de2bf865d8a4c86ad788ff28e50855d0d7df2f4f0839c110a15f3b941"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetInpaintPipeline.__call__ (cognitive 112): StableDiffusionXLControlNetInpaintPipeline.__call__ has cognitive complexity 112 (threshold 15). Drivers by points: if/else 48 (69 pts), boolean chains 24, ternaries 8 (12 pts), loops 4 (7 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f712bf7ab7be3c44f9b2db1f3aeaa3d960d7ca57059d978e6f244eb940b37e2f"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionInpaintPipeline.__call__ (cognitive 112): StableDiffusionXLControlNetUnionInpaintPipeline.__call__ has cognitive complexity 112 (threshold 15). Drivers by points: if/else 50 (67 pts), boolean chains 21, loops 7 (13 pts), ternaries 8 (11 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6bc54fb9217eb9246a0b948c007a059553564ecc85729105dec52c7e1226f4"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlNetPipeline.__call__ (cognitive 109): FluxControlNetPipeline.__call__ has cognitive complexity 109 (threshold 15). Drivers by points: if/else 35 (60 pts), boolean chains 22, ternaries 10 (18 pts), loops 5 (9 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"113d4620645e2501575a2204fa91fbb92926512fd87e55af383879ba8cbb6019"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosPyramidPipeline.__call__ (cognitive 109): HeliosPyramidPipeline.__call__ has cognitive complexity 109 (threshold 15). Drivers by points: if/else 36 (69 pts), boolean chains 15, loops 6 (15 pts), ternaries 3 (10 pts) (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios_pyramid.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"c510489d85bda6e6db4e24ab658fdcb038148af8772945bd1987166d0a69c43b"}},{"ruleId":"D2","level":"warning","message":{"text":"PeftAdapterMixin.load_lora_adapter (cognitive 108): PeftAdapterMixin.load_lora_adapter has cognitive complexity 108 (threshold 15). Drivers by points: if/else 31 (79 pts), loops 4 (16 pts), boolean chains 8, error handling 2 (5 pts) (nesting depth added 63). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/peft.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"518d0a66ea2a7211cec2cf413ad66f2cd837e53dd6be636ade81a15737fa3cca"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionPipeline.__call__ (cognitive 108): StableDiffusionXLControlNetUnionPipeline.__call__ has cognitive complexity 108 (threshold 15). Drivers by points: if/else 45 (62 pts), boolean chains 23, loops 7 (13 pts), ternaries 7 (10 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c232add17cafe5270071a6d6d73ab4dfc4ecc9f162f3b38d37ffdcf901cba14"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionImg2ImgPipeline.__call__ (cognitive 106): StableDiffusionXLControlNetUnionImg2ImgPipeline.__call__ has cognitive complexity 106 (threshold 15). Drivers by points: if/else 44 (61 pts), boolean chains 22, loops 7 (13 pts), ternaries 7 (10 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa31abb5e41fde3da782bf19628176cfbb19de3b9f09fdfad60f7302f477548"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPipeline.__call__ (cognitive 104): StableDiffusionXLControlNetPipeline.__call__ has cognitive complexity 104 (threshold 15). Drivers by points: if/else 44 (62 pts), boolean chains 26, ternaries 6 (9 pts), loops 4 (7 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"399f03785f7232116f4a00f3a05286de95ec028e5fc9c267d4cca5a0857ff837"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2ConditionPipeline.__call__ (cognitive 103): LTX2ConditionPipeline.__call__ has cognitive complexity 103 (threshold 15). Drivers by points: if/else 44 (72 pts), boolean chains 14, ternaries 5 (10 pts), loops 3 (7 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"59051c10c2c85ccb3e9acb3f638343103051d55518185709530ed9c1d3124559"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGPipeline.__call__ (cognitive 102): StableDiffusionXLControlNetPAGPipeline.__call__ has cognitive complexity 102 (threshold 15). Drivers by points: if/else 44 (63 pts), boolean chains 21, loops 6 (10 pts), ternaries 6 (8 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df75eed948b9e7cf70a0c9f43c0d0e85d780e65ba5144e1ba25528580b1e350"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyAnimateInpaintPipeline.__call__ (cognitive 101): EasyAnimateInpaintPipeline.__call__ has cognitive complexity 101 (threshold 15). Drivers by points: if/else 45 (72 pts), ternaries 7 (20 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"408db1d11be5f682c0ce2e4da1ea67aae5f7b71408eef6a31583e098a2bec494"}},{"ruleId":"D2","level":"warning","message":{"text":"HiDreamImagePipeline.encode_prompt (cognitive 101): HiDreamImagePipeline.encode_prompt has cognitive complexity 101 (threshold 15). Drivers by points: if/else 32 (49 pts), boolean chains 37, ternaries 8 (15 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1e53cf35f1f4e4ea101eec7cba6aeb688f7854a5a4e092d7d750e0a0096776"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLInpaintPipeline.__call__ (cognitive 100): StableDiffusionXLInpaintPipeline.__call__ has cognitive complexity 100 (threshold 15). Drivers by points: if/else 49 (73 pts), boolean chains 18, ternaries 4 (5 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"563f2097376f0c19480c7dc04959807b1acc81756d6473d2ef073e08981d6e6a"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPAGInpaintPipeline.__call__ (cognitive 99): StableDiffusionControlNetPAGInpaintPipeline.__call__ has cognitive complexity 99 (threshold 15). Drivers by points: if/else 44 (68 pts), boolean chains 12, loops 6 (10 pts), ternaries 7 (9 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb24ae2da1fa7ff46be9f17ffe7a64dbea9e52e41ab54ed34c76549c1df70dd"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetImg2ImgPipeline.__call__ (cognitive 95): StableDiffusionXLControlNetImg2ImgPipeline.__call__ has cognitive complexity 95 (threshold 15). Drivers by points: if/else 40 (56 pts), boolean chains 23, ternaries 6 (9 pts), loops 4 (7 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae98862c97fb2f26c93f108c6f9ad1407e53ae14bf62b9b2a6140efa5300f3b2"}},{"ruleId":"D2","level":"warning","message":{"text":"JoyImageEditPlusPipeline.__call__ (cognitive 95): JoyImageEditPlusPipeline.__call__ has cognitive complexity 95 (threshold 15). Drivers by points: if/else 26 (38 pts), ternaries 8 (25 pts), loops 8 (19 pts), boolean chains 13 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12d18d2181faebb9a03ccd62aec9c3646da7d889c5cde03526e6967ea25944a"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos2_5_TransferPipeline.__call__ (cognitive 94): Cosmos2_5_TransferPipeline.__call__ has cognitive complexity 94 (threshold 15). Drivers by points: if/else 39 (68 pts), loops 5 (12 pts), ternaries 5 (11 pts), boolean chains 3 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6bb3ec1e9c34d2e6088b92bfdcfaeac8f7fd2fc4f57b8fa01f60572770953e"}},{"ruleId":"D2","level":"warning","message":{"text":"UNetFlatConditionModel.forward (cognitive 94): UNetFlatConditionModel.forward has cognitive complexity 94 (threshold 15). Drivers by points: if/else 42 (64 pts), boolean chains 17, ternaries 4 (8 pts), loops 4 (5 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b760d1bf5c9f6e5919bf58b61777c61318b6cf3d1e2dc9d80bbd1a1aa453f4f"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGImg2ImgPipeline.__call__ (cognitive 93): StableDiffusionXLControlNetPAGImg2ImgPipeline.__call__ has cognitive complexity 93 (threshold 15). Drivers by points: if/else 40 (57 pts), boolean chains 18, loops 6 (10 pts), ternaries 6 (8 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"a176f20a1fc96136ee359cf125ca0bcd52448c6008988d7ff350bd29b5e983af"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2ImageToVideoPipeline.__call__ (cognitive 92): LTX2ImageToVideoPipeline.__call__ has cognitive complexity 92 (threshold 15). Drivers by points: if/else 43 (67 pts), boolean chains 12, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46df2e355dc8782d0b15201ee6ddff82e7f2c394a24ca2dde92cc73266806bd"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetInpaintPipeline.__call__ (cognitive 90): StableDiffusionControlNetInpaintPipeline.__call__ has cognitive complexity 90 (threshold 15). Drivers by points: if/else 39 (57 pts), boolean chains 16, ternaries 7 (10 pts), loops 4 (7 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"949fff75d99a3172c90735687ac5a0e0ee1f9854664456f174fdaeab535be677"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingImageToVideoPipeline.__call__ (cognitive 90): SkyReelsV2DiffusionForcingImageToVideoPipeline.__call__ has cognitive complexity 90 (threshold 15). Drivers by points: if/else 32 (56 pts), ternaries 7 (13 pts), loops 5 (12 pts), boolean chains 9 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3ae34e43075bf863bba9bcf03e80fe9e9e67cfe0f312a8c97d023ae8ca9fbd"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlNetInpaintPipeline.__call__ (cognitive 88): FluxControlNetInpaintPipeline.__call__ has cognitive complexity 88 (threshold 15). Drivers by points: if/else 36 (58 pts), boolean chains 10, loops 5 (10 pts), ternaries 6 (10 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f52c4130b584872ac6d76383173fd9c0d43ded3f18389f18d65eb772a367c4e"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxKontextInpaintPipeline.__call__ (cognitive 88): FluxKontextInpaintPipeline.__call__ has cognitive complexity 88 (threshold 15). Drivers by points: if/else 36 (54 pts), boolean chains 24, ternaries 4 (6 pts), loops 2 (4 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d21638cf6ddb311258374f2f5d6dfb7e25f6d9168e5f6123603e1d87fbae9a"}},{"ruleId":"D2","level":"warning","message":{"text":"ZImageOmniPipeline.__call__ (cognitive 88): ZImageOmniPipeline.__call__ has cognitive complexity 88 (threshold 15). Drivers by points: if/else 34 (57 pts), boolean chains 16, loops 5 (11 pts), ternaries 3 (4 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_omni.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83661cedf4353d896461ffbb8c913732df29953f71159745b4da6a76ea22f7d"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2HDRPipeline.__call__ (cognitive 87): LTX2HDRPipeline.__call__ has cognitive complexity 87 (threshold 15). Drivers by points: if/else 42 (68 pts), boolean chains 8, ternaries 4 (7 pts), loops 2 (4 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ceab235044d06786d4b596ec03843bc41d6dd11d1ece037d0a049418737074c"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_conversion_utils._convert_bfl_flux_control_lora_to_diffusers (cognitive 86): lora_conversion_utils._convert_bfl_flux_control_lora_to_diffusers has cognitive complexity 86 (threshold 15). Drivers by points: if/else 30 (77 pts), loops 7 (9 pts) (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"6594be5ebdfaae1b6f92c665d4326f3ed2e5c47342436dc6558900effe9c231d"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2Pipeline.__call__ (cognitive 86): LTX2Pipeline.__call__ has cognitive complexity 86 (threshold 15). Drivers by points: if/else 40 (63 pts), boolean chains 12, ternaries 5 (7 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e82070c23b27bb33dcda4da38b137b02b36e882078800bfb3a7239c23d00fb"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPAGPipeline.__call__ (cognitive 86): StableDiffusionControlNetPAGPipeline.__call__ has cognitive complexity 86 (threshold 15). Drivers by points: if/else 34 (50 pts), boolean chains 16, loops 6 (10 pts), ternaries 8 (10 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"9712618661237e39684ab34b53ca6d5c13f50e44ae633f2743fd3c4f88e320bf"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file_utils.infer_diffusers_model_type (cognitive 85): single_file_utils.infer_diffusers_model_type has cognitive complexity 85 (threshold 15). Drivers by points: if/else 36 (58 pts), boolean chains 14, ternaries 5 (13 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"65dab2c613f5d03d0fc484b32f98c02206f26805c884626cffd6af054bdfaace"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffVideoToVideoControlNetPipeline.__call__ (cognitive 85): AnimateDiffVideoToVideoControlNetPipeline.__call__ has cognitive complexity 85 (threshold 15). Drivers by points: if/else 29 (48 pts), boolean chains 15, ternaries 8 (12 pts), loops 5 (10 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"10eaa2d2d0164122d9a2f02aa12a854b66284665c3a7123672c72f99c0495d1a"}},{"ruleId":"D2","level":"warning","message":{"text":"convert_from_ckpt.convert_ldm_unet_checkpoint (cognitive 85): convert_from_ckpt.convert_ldm_unet_checkpoint has cognitive complexity 85 (threshold 15). Drivers by points: if/else 35 (64 pts), loops 8 (17 pts), boolean chains 4 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e17b26c16b5e5476144d0d9c24572fd8edca1b7479d062b64409353dde0a93"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_flux2_lora_to_diffusers (cognitive 84): lora_conversion_utils._convert_non_diffusers_flux2_lora_to_diffusers has cognitive complexity 84 (threshold 15). Drivers by points: if/else 15 (43 pts), loops 17 (34 pts), ternaries 1 (5 pts), boolean chains 2 (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2434}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc9cafe7e3e4c8e18af9ec2818e462464123f89da73ff496bc5dc4c3893974e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGInpaintPipeline.__call__ (cognitive 84): StableDiffusionPAGInpaintPipeline.__call__ has cognitive complexity 84 (threshold 15). Drivers by points: if/else 40 (59 pts), ternaries 4 (10 pts), boolean chains 9, loops 3 (6 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b8a17f3b00a350471ea7eeb6d35115494ec254b77a82252f0332dea9227198"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetInpaintPipeline.check_inputs (cognitive 83): StableDiffusionXLControlNetInpaintPipeline.check_inputs has cognitive complexity 83 (threshold 15). Drivers by points: if/else 36 (52 pts), boolean chains 28, loops 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc63b7f8c5e6792361d66831bec758667a3a482631efbea7581eb102f23a58af"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlNetImg2ImgPipeline.__call__ (cognitive 83): FluxControlNetImg2ImgPipeline.__call__ has cognitive complexity 83 (threshold 15). Drivers by points: if/else 26 (45 pts), ternaries 10 (18 pts), boolean chains 10, loops 5 (10 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cff132d356b7cea6c75035be0686cce4e605fe4bf2d5d79324988058548bf63"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPipeline.__call__ (cognitive 82): StableDiffusionControlNetPipeline.__call__ has cognitive complexity 82 (threshold 15). Drivers by points: if/else 34 (48 pts), boolean chains 17, ternaries 7 (10 pts), loops 4 (7 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"1516bebc375e3c6383b2594ce46683f07f9472c5f037ecc8bc1e4ed2cab7f435"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionInpaintPipeline.check_inputs (cognitive 82): StableDiffusionXLControlNetUnionInpaintPipeline.check_inputs has cognitive complexity 82 (threshold 15). Drivers by points: if/else 36 (53 pts), boolean chains 18, loops 5 (10 pts), ternaries 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d4a8dec3f9042352d285d83a6b4094e89ae6f1b75647dd6e869629508702b6"}},{"ruleId":"D2","level":"warning","message":{"text":"LTXConditionPipeline.__call__ (cognitive 82): LTXConditionPipeline.__call__ has cognitive complexity 82 (threshold 15). Drivers by points: if/else 38 (63 pts), boolean chains 7, loops 3 (6 pts), ternaries 3 (6 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_condition.py"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"1187cdab53d3a549d60940ed40c1072a1720493d3bc502f7db5f39fc6fc8bb31"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPipeline.__call__ (cognitive 82): StableDiffusionXLPipeline.__call__ has cognitive complexity 82 (threshold 15). Drivers by points: if/else 36 (54 pts), boolean chains 19, ternaries 3 (5 pts), loops 2 (4 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"93348158568ce1a081c1367cd292eea59c0dbb961d8ec177bee0b795d577577c"}},{"ruleId":"D2","level":"warning","message":{"text":"AceStepPipeline.__call__ (cognitive 80): AceStepPipeline.__call__ has cognitive complexity 80 (threshold 15). Drivers by points: if/else 35 (59 pts), boolean chains 12, ternaries 3 (5 pts), loops 2 (4 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ace_step/pipeline_ace_step.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c992f511c6db160b5546a67128bef78fdb49b0a3ecb7c576d71408ec7ea254"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffControlNetPipeline.__call__ (cognitive 80): AnimateDiffControlNetPipeline.__call__ has cognitive complexity 80 (threshold 15). Drivers by points: if/else 24 (43 pts), boolean chains 15, ternaries 8 (12 pts), loops 5 (10 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ac54f0eb582f4a7c89e479a6cd0e01f3835e3d16daf471e4fc763368f87a77"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffSDXLPipeline.encode_prompt (cognitive 79): AnimateDiffSDXLPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf19575d594c2f4b9d7dd3abc7880564363adb7a6150d76343c1bfa8e8bd224"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetInpaintPipeline.encode_prompt (cognitive 79): StableDiffusionXLControlNetInpaintPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e59700b371c2b1b1afdd762623756d8a0e0d8f044c72b9f1d45c51f5434c3ba"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPipeline.encode_prompt (cognitive 79): StableDiffusionXLControlNetPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7cd2c3bf29eaa05f1b6ff003955634b79e40b259f4903cf9e056430fbab7ff"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetImg2ImgPipeline.encode_prompt (cognitive 79): StableDiffusionXLControlNetImg2ImgPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"571b95b58f23c9537f868c80af7119fc2926d1aafcf1c49417f3908da2b74b19"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionInpaintPipeline.encode_prompt (cognitive 79): StableDiffusionXLControlNetUnionInpaintPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"931a5bd73e2ed0b9aa6819c4889dc91f58dfa7785e3c9aa34a80d7b8b34cc98f"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionPipeline.encode_prompt (cognitive 79): StableDiffusionXLControlNetUnionPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68acf54cbc59115a7e1a5a86df6ad3c2d7616605babce13df33b64d22a0427a"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionImg2ImgPipeline.encode_prompt (cognitive 79): StableDiffusionXLControlNetUnionImg2ImgPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"545cbd8515b03c8dbdb3e130d18be01e4b4cdee1a4b358aa3b3de03f5cc90e0e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetXSPipeline.encode_prompt (cognitive 79): StableDiffusionXLControlNetXSPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"0228b9bfa11f08f425a2d276ba3c3b092f82522490415898f43a93a505bb1de7"}},{"ruleId":"D2","level":"warning","message":{"text":"TextToVideoZeroSDXLPipeline.encode_prompt (cognitive 79): TextToVideoZeroSDXLPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"842fd323ff8106f6a54020525c03a21571b83365df4cadd449345e5c26379ea1"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGPipeline.encode_prompt (cognitive 79): StableDiffusionXLControlNetPAGPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66c50db2104d01201c6094623d93eb3602c45d01efb6caf96ae8bbfe0ecab71"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGImg2ImgPipeline.encode_prompt (cognitive 79): StableDiffusionXLControlNetPAGImg2ImgPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9c86607a6fe9e85a7c69cb9361be5f0f65cb164bb9a920744f57c4f35f2e39"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGPipeline.encode_prompt (cognitive 79): StableDiffusionXLPAGPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"a016280ec9b8dcdcab3577ace9cf970b60527ba10735a95fab4e80855bb76c60"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGImg2ImgPipeline.encode_prompt (cognitive 79): StableDiffusionXLPAGImg2ImgPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"47556c74766c3b2075849b70404a71baf646ee64ed873585c04116f891b0abd6"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGInpaintPipeline.encode_prompt (cognitive 79): StableDiffusionXLPAGInpaintPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"2221488a0d769ea64d4e1e99f0d5dd292f1c211c1d5473b419cb932e6a5f6314"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPipeline.encode_prompt (cognitive 79): StableDiffusionXLPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6790987cdb22e8993b40acd809ea736b9c3671a833b9183eaded5a9c57d0d6"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLImg2ImgPipeline.encode_prompt (cognitive 79): StableDiffusionXLImg2ImgPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"533d36523f75a78eea4ab588d97cdc9f18f9e4cdccea35205eeeb800ff3d0993"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLInpaintPipeline.encode_prompt (cognitive 79): StableDiffusionXLInpaintPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d82ac59e019c50ec377ab905e5936674c4f5a732bc5adfb9961981e2acd5c9"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLAdapterPipeline.encode_prompt (cognitive 79): StableDiffusionXLAdapterPipeline.encode_prompt has cognitive complexity 79 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 14, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e632e8275e002734f49bc49ccaf4b126f388eb3c5c8ad56de2e2d8fff89b2383"}},{"ruleId":"D2","level":"warning","message":{"text":"modular_pipeline_utils.generate_modular_model_card_content (cognitive 78): modular_pipeline_utils.generate_modular_model_card_content has cognitive complexity 78 (threshold 15). Drivers by points: if/else 26 (47 pts), ternaries 9 (19 pts), boolean chains 5, loops 2 (4 pts), error handling 1 (3 pts) (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5b3c03a98a9035b014e4a55a0fee50744d1324421fbd2564f18d3d7afe79ac"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPanoramaPipeline.__call__ (cognitive 78): StableDiffusionPanoramaPipeline.__call__ has cognitive complexity 78 (threshold 15). Drivers by points: if/else 29 (49 pts), loops 5 (13 pts), boolean chains 11, ternaries 3 (5 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b81082be10480901725d894e4feb8830bc7943d4f6222dcc1ca19711206db6"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGPipeline.__call__ (cognitive 78): StableDiffusionXLPAGPipeline.__call__ has cognitive complexity 78 (threshold 15). Drivers by points: if/else 35 (55 pts), boolean chains 16, loops 3 (6 pts), ternaries 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"1608cc2be9bea47f8fa6a2d7320b7c35a5783f7fdea69a14f48482b6d15464bf"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGImg2ImgPipeline.__call__ (cognitive 78): StableDiffusionXLPAGImg2ImgPipeline.__call__ has cognitive complexity 78 (threshold 15). Drivers by points: if/else 36 (55 pts), boolean chains 14, loops 3 (6 pts), ternaries 3 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1534cb0cffb4b50ea917b0231d66032a90c4a1e2a7fca8aaf67f5d4b1e23dd"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingPipeline.__call__ (cognitive 77): SkyReelsV2DiffusionForcingPipeline.__call__ has cognitive complexity 77 (threshold 15). Drivers by points: if/else 26 (46 pts), ternaries 7 (13 pts), loops 5 (12 pts), boolean chains 6 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4209d29b3f1dec631a55e717a9ea8b35b628a024d1aafc44f1a3e2caea6a587"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLImg2ImgPipeline.__call__ (cognitive 77): StableDiffusionXLImg2ImgPipeline.__call__ has cognitive complexity 77 (threshold 15). Drivers by points: if/else 35 (52 pts), boolean chains 16, ternaries 4 (5 pts), loops 2 (4 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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adb681f3f88b42e7ec32bee884b24c8a452b5b92d2875af06783f19cf0ec454"}},{"ruleId":"D2","level":"warning","message":{"text":"IPAdapterXFormersAttnProcessor.__call__ (cognitive 76): IPAdapterXFormersAttnProcessor.__call__ has cognitive complexity 76 (threshold 15). Drivers by points: if/else 26 (62 pts), loops 3 (11 pts), boolean chains 2, ternaries 1 (nesting depth added 44). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4679}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd8a5a525f9c6fb75397b0f391f3d6d882c8f1a3ca950dbd189c8a511a2fd20"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetImg2ImgPipeline.check_inputs (cognitive 76): StableDiffusionXLControlNetImg2ImgPipeline.check_inputs has cognitive complexity 76 (threshold 15). Drivers by points: if/else 32 (45 pts), boolean chains 28, loops 2 (3 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd22d5bd9e6a62254d6289627825e74399a696e45ae4c48dd331e31a7a9dcdf"}},{"ruleId":"D2","level":"warning","message":{"text":"UNetFlatConditionModel.__init__ (cognitive 76): UNetFlatConditionModel.__init__ has cognitive complexity 76 (threshold 15). Drivers by points: if/else 44 (53 pts), boolean chains 12, ternaries 4 (7 pts), loops 3 (4 pts) (nesting depth added 13). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e87970afbd8ad870ece87eba0c37517ee54de19d78c14f29c863bb5d195b673"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGImg2ImgPipeline.check_inputs (cognitive 76): StableDiffusionXLControlNetPAGImg2ImgPipeline.check_inputs has cognitive complexity 76 (threshold 15). Drivers by points: if/else 32 (45 pts), boolean chains 28, loops 2 (3 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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b44f1c0cb1a5b00123022e5e3c204dff624e1016db2d781a0d4266aa7b74c6"}},{"ruleId":"D2","level":"warning","message":{"text":"FromOriginalModelMixin.from_single_file (cognitive 75): FromOriginalModelMixin.from_single_file has cognitive complexity 75 (threshold 15). Drivers by points: if/else 41 (59 pts), boolean chains 7, loops 2 (5 pts), ternaries 3 (4 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_model.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83656edb9557cf82df65868072d91900cebc5a2533f757225c4e938f06c3e84"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetImg2ImgPipeline.__call__ (cognitive 75): StableDiffusionControlNetImg2ImgPipeline.__call__ has cognitive complexity 75 (threshold 15). Drivers by points: if/else 30 (42 pts), boolean chains 16, ternaries 7 (10 pts), loops 4 (7 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"90889dcac20b35aaa38e0b39e0f335f6d5b53c5527db6066f8cf0f323261e5c5"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffVideoToVideoControlNetPipeline.check_inputs (cognitive 74): AnimateDiffVideoToVideoControlNetPipeline.check_inputs has cognitive complexity 74 (threshold 15). Drivers by points: if/else 34 (51 pts), boolean chains 21, loops 1, ternaries 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb27ebbddc7567ac65eb88da7a4924e4627fda376eedb24fbb3fd1b38bf43810"}},{"ruleId":"D2","level":"warning","message":{"text":"PikaH3FlexRef2VASetupStep.__call__ (cognitive 73): PikaH3FlexRef2VASetupStep.__call__ has cognitive complexity 73 (threshold 15). Drivers by points: if/else 27 (57 pts), ternaries 2 (6 pts), boolean chains 5, loops 5 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"525a36bfc0694da7c6e23b88424ecedfe6dba42fdf2da6f7af88406cbfa3607e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetInpaintPipeline.check_inputs (cognitive 73): StableDiffusionControlNetInpaintPipeline.check_inputs has cognitive complexity 73 (threshold 15). Drivers by points: if/else 31 (47 pts), boolean chains 23, loops 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa42d017eefc5fbe9ade24be1674ef4901e257d8caa404115e0041c0aaf32b7"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionPipeline.check_inputs (cognitive 73): StableDiffusionXLControlNetUnionPipeline.check_inputs has cognitive complexity 73 (threshold 15). Drivers by points: if/else 30 (47 pts), boolean chains 15, loops 5 (10 pts), ternaries 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0ff995d63bd1ff95305b74768855dba30aac66129785c186d288fb58641f20"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos3OmniPipeline.prepare_latents (cognitive 73): Cosmos3OmniPipeline.prepare_latents has cognitive complexity 73 (threshold 15). Drivers by points: if/else 33 (56 pts), boolean chains 7, ternaries 4 (6 pts), loops 2 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e5327287a3284233bf218016ecbc631be90f659a5a45601c7fed4941b3d85b"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaFiboEditPipeline.__call__ (cognitive 72): BriaFiboEditPipeline.__call__ has cognitive complexity 72 (threshold 15). Drivers by points: if/else 39 (53 pts), ternaries 6 (8 pts), boolean chains 6, loops 3 (5 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"73310309caed89d39c737a0436fa0d9102791ecbe0d4d212fdda72cd894faa77"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPipeline.check_inputs (cognitive 72): StableDiffusionXLControlNetPipeline.check_inputs has cognitive complexity 72 (threshold 15). Drivers by points: if/else 30 (43 pts), boolean chains 26, loops 2 (3 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd6cb3e940061433623f421a9a275af68fd8190e5dec92cde544372600234a2"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanVideoFramepackPipeline.__call__ (cognitive 72): HunyuanVideoFramepackPipeline.__call__ has cognitive complexity 72 (threshold 15). Drivers by points: if/else 29 (52 pts), boolean chains 8, loops 3 (7 pts), ternaries 2 (5 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45800c9ade428520cc4029e09bf8b302a07f8c5b67cac9f06bebce491b2c3eb"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGPipeline.check_inputs (cognitive 72): StableDiffusionXLControlNetPAGPipeline.check_inputs has cognitive complexity 72 (threshold 15). Drivers by points: if/else 30 (43 pts), boolean chains 26, loops 2 (3 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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"a103ffc155134cdda224f093346ffcbe842e80438ede96c4a6bc377515f4eba1"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaWMTransformer3DModel.forward (cognitive 71): SanaWMTransformer3DModel.forward has cognitive complexity 71 (threshold 15). Drivers by points: if/else 27 (42 pts), loops 5 (18 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":2896}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bb65ea11c26a454cd29bd8e29cdb9257d03c85896985eae88ba956f2a72a72"}},{"ruleId":"D2","level":"warning","message":{"text":"StableCascadeUNet._up_decode (cognitive 71): StableCascadeUNet._up_decode has cognitive complexity 71 (threshold 15). Drivers by points: if/else 10 (34 pts), loops 6 (18 pts), ternaries 2 (12 pts), boolean chains 7 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0aa9849cbde758865e32f005d19960650ebff132116097f8c8f7db284feda7"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLTextEncoderStep.encode_prompt (cognitive 71): StableDiffusionXLTextEncoderStep.encode_prompt has cognitive complexity 71 (threshold 15). Drivers by points: if/else 28 (46 pts), boolean chains 12, ternaries 6 (9 pts), loops 2 (4 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc489e81565f80d539c99966b3fd0401cf57feedf54cbd8d85386b296b5df2f"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxKontextPipeline.__call__ (cognitive 71): FluxKontextPipeline.__call__ has cognitive complexity 71 (threshold 15). Drivers by points: if/else 28 (42 pts), boolean chains 21, loops 2 (4 pts), ternaries 3 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d794f294d1bc6950edc92174ca268ebcbfb59607154b9dd533e3e7b429ad9c"}},{"ruleId":"D2","level":"warning","message":{"text":"Flux2KleinInpaintPipeline.__call__ (cognitive 71): Flux2KleinInpaintPipeline.__call__ has cognitive complexity 71 (threshold 15). Drivers by points: if/else 27 (43 pts), boolean chains 13, ternaries 5 (11 pts), loops 2 (4 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3e7375dae588312fbdb817cb3179e122e07ff03b97d4561407767a140fb756"}},{"ruleId":"D2","level":"warning","message":{"text":"IPAdapterMixin.load_ip_adapter (cognitive 70): IPAdapterMixin.load_ip_adapter has cognitive complexity 70 (threshold 15). Drivers by points: if/else 26 (49 pts), ternaries 3 (9 pts), loops 3 (8 pts), boolean chains 4 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a143fd84813d74468fe1102e9c4fcf63441e9f836a03754cd57f4fb60a02c2"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionImg2ImgPipeline.check_inputs (cognitive 70): StableDiffusionXLControlNetUnionImg2ImgPipeline.check_inputs has cognitive complexity 70 (threshold 15). Drivers by points: if/else 29 (41 pts), boolean chains 18, loops 5 (10 pts), ternaries 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"63cd8b080ae42bf9dd001881a83560b4f0b62b1e4005b131c90535d1665b970c"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPAGInpaintPipeline.check_inputs (cognitive 70): StableDiffusionControlNetPAGInpaintPipeline.check_inputs has cognitive complexity 70 (threshold 15). Drivers by points: if/else 30 (46 pts), boolean chains 21, loops 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9baa8f68600858b051c79e5aa16bfdbb8d0518830085e702c3e4d02a115ca4"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPipeline.check_inputs (cognitive 69): StableDiffusionControlNetPipeline.check_inputs has cognitive complexity 69 (threshold 15). Drivers by points: if/else 28 (42 pts), boolean chains 20, loops 3 (7 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee3c15cf6eb3095d476c3a7df70f25cff9d8e34d9cb438d9d96bd8ca65b9cbf"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3ControlNetPipeline.__call__ (cognitive 69): StableDiffusion3ControlNetPipeline.__call__ has cognitive complexity 69 (threshold 15). Drivers by points: if/else 30 (42 pts), boolean chains 13, loops 4 (7 pts), ternaries 4 (7 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"9695800a34da90e5b254718551120f730054a15533f2377da08caaab7a8d83b2"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionInpaintPipeline.__call__ (cognitive 69): StableDiffusionInpaintPipeline.__call__ has cognitive complexity 69 (threshold 15). Drivers by points: if/else 37 (52 pts), boolean chains 9, loops 2 (4 pts), ternaries 3 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5458184c4ba29d42a90bfb920ee7da400d1c7c89f093b87d9e3aed7ada02825"}},{"ruleId":"D2","level":"warning","message":{"text":"ZImageInpaintPipeline.__call__ (cognitive 68): ZImageInpaintPipeline.__call__ has cognitive complexity 68 (threshold 15). Drivers by points: if/else 31 (50 pts), boolean chains 10, loops 3 (7 pts), ternaries 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f54ac8970ad7befe9f9560ef1a0bb0fa20f9f9359ff4a1cbad3c1ac294ca01b"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosPipeline.__call__ (cognitive 67): HeliosPipeline.__call__ has cognitive complexity 67 (threshold 15). Drivers by points: if/else 30 (46 pts), boolean chains 11, loops 4 (9 pts), ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6caaae0393e4a5a7d278e130faf8e7f2457cafffc28ebd5c6b58a2e3337b569"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImage21Pipeline.__call__ (cognitive 67): QwenImage21Pipeline.__call__ has cognitive complexity 67 (threshold 15). Drivers by points: if/else 22 (34 pts), boolean chains 17, loops 4 (8 pts), ternaries 5 (8 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb2493cb68ee080a0e0170eb1d75d729621a4c7bfc6ddaadc44bc365ca635cc"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLAdapterPipeline.__call__ (cognitive 67): StableDiffusionXLAdapterPipeline.__call__ has cognitive complexity 67 (threshold 15). Drivers by points: if/else 31 (41 pts), boolean chains 13, loops 6 (11 pts), ternaries 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1cf6671e58d96de1f7a10c47bd7ac6db96e9dddc3755886743eeb473aa7005e"}},{"ruleId":"D2","level":"warning","message":{"text":"AnyFlowFARPipeline.__call__ (cognitive 66): AnyFlowFARPipeline.__call__ has cognitive complexity 66 (threshold 15). Drivers by points: if/else 24 (44 pts), loops 4 (11 pts), ternaries 3 (7 pts), boolean chains 4 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b5a4e4e761356aa1f91239ee2998830421f66fa7acf73db1aa3b6e23bb6eee"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxInpaintPipeline.__call__ (cognitive 66): FluxInpaintPipeline.__call__ has cognitive complexity 66 (threshold 15). Drivers by points: if/else 30 (43 pts), boolean chains 17, loops 2 (4 pts), ternaries 2 (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":"src/diffusers/pipelines/flux/pipeline_flux_inpaint.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"9749878822fe5e7475a4f0d9cdb0d8624ba5ae9a9e33ef0c212be9e0644863fb"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2DFRPipeline.__call__ (cognitive 66): LTX2DFRPipeline.__call__ has cognitive complexity 66 (threshold 15). Drivers by points: if/else 30 (42 pts), boolean chains 12, ternaries 6 (10 pts), loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"581ff6c77dacad7ddb3669e9e3da31a499b75e913b8f715d016b191a848f8a6d"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPAGPipeline.check_inputs (cognitive 66): StableDiffusionControlNetPAGPipeline.check_inputs has cognitive complexity 66 (threshold 15). Drivers by points: if/else 27 (41 pts), boolean chains 18, loops 3 (7 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4337c828e5cf3214885a182b1feab05ccef50b0e35fdf6983490f0da8c0a265"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsPAGPipeline.__call__ (cognitive 66): KolorsPAGPipeline.__call__ has cognitive complexity 66 (threshold 15). Drivers by points: if/else 30 (47 pts), boolean chains 13, loops 3 (6 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":"src/diffusers/pipelines/pag/pipeline_pag_kolors.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"986f1561946f4151a7976b5ca474648ceb08b3ee1b6cd59667b4e11cd7310017"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffusionPipeline.to (cognitive 66): DiffusionPipeline.to has cognitive complexity 66 (threshold 15). Drivers by points: if/else 21 (34 pts), boolean chains 19, ternaries 5 (12 pts), loops 1 (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":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc05bf09f8176eced6c803c20e7124afd26c1c90275668c05586b0ca8589ad98"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageControlNetPipeline.__call__ (cognitive 66): QwenImageControlNetPipeline.__call__ has cognitive complexity 66 (threshold 15). Drivers by points: if/else 23 (37 pts), boolean chains 17, loops 4 (7 pts), ternaries 3 (5 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"91304ab06ccbce253be5bac795ff03203ca5f3d11df97009f53b2e703cd57314"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3InpaintPipeline.__call__ (cognitive 66): StableDiffusion3InpaintPipeline.__call__ has cognitive complexity 66 (threshold 15). Drivers by points: if/else 35 (51 pts), boolean chains 9, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ade1201a80ac47dd756299049ef514ec5985b2f1a6e59b45887988237e1cb1"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelMixin.save_pretrained (cognitive 65): ModelMixin.save_pretrained has cognitive complexity 65 (threshold 15). Drivers by points: if/else 23 (44 pts), ternaries 3 (10 pts), boolean chains 6, loops 2 (5 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"b515504e3c931e97a6aa75de94850575bbcc13bcb6a760ec7da5aae0337e40ed"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffControlNetPipeline.check_inputs (cognitive 64): AnimateDiffControlNetPipeline.check_inputs has cognitive complexity 64 (threshold 15). Drivers by points: if/else 29 (45 pts), boolean chains 18, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"4656b443f6f49bf4bff11d6adbaba8d47cbfff1391823eb42ade77896ac5e8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioLDM2Pipeline.encode_prompt (cognitive 64): AudioLDM2Pipeline.encode_prompt has cognitive complexity 64 (threshold 15). Drivers by points: if/else 17 (35 pts), loops 4 (13 pts), ternaries 5 (12 pts), boolean chains 4 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad3d4fd35d008ba201d8860a100806637bbc54807bb8478fc74a29d4aa5cd49"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaFibo2Pipeline.__call__ (cognitive 64): BriaFibo2Pipeline.__call__ has cognitive complexity 64 (threshold 15). Drivers by points: if/else 21 (29 pts), ternaries 8 (16 pts), boolean chains 13, loops 3 (6 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f917b912e4cceee79c714448baae227ed0bd2b9512287927ccaacde38b21c8"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3ControlNetInpaintingPipeline.__call__ (cognitive 64): StableDiffusion3ControlNetInpaintingPipeline.__call__ has cognitive complexity 64 (threshold 15). Drivers by points: if/else 26 (38 pts), boolean chains 13, loops 4 (7 pts), ternaries 3 (6 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf3edda46c5dcb6df83f516403cafd338b732df15db391c082fb59856c0b368"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsImg2ImgPipeline.__call__ (cognitive 64): KolorsImg2ImgPipeline.__call__ has cognitive complexity 64 (threshold 15). Drivers by points: if/else 27 (40 pts), boolean chains 16, loops 2 (4 pts), ternaries 3 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63ade05d672d47f2e0fb099e594654be74bdbaf6bfd90e4ffbd9b53ed282973"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_minimax_h3_lora_to_diffusers (cognitive 63): lora_conversion_utils._convert_non_diffusers_minimax_h3_lora_to_diffusers has cognitive complexity 63 (threshold 15). Drivers by points: if/else 14 (42 pts), loops 8 (18 pts), ternaries 2, boolean chains 1 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":3347}}}],"partialFingerprints":{"codehealthFindingId/v1":"059492e144f506c10e998f921f0432a6f2a244f9578e735640cb838ca3c9994c"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file_utils.convert_ldm_unet_checkpoint (cognitive 63): single_file_utils.convert_ldm_unet_checkpoint has cognitive complexity 63 (threshold 15). Drivers by points: if/else 27 (44 pts), loops 8 (12 pts), boolean chains 7 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"93716025ff945377d1cdd727f27d9d6d42f855e629d441500a3ad9152f58cb14"}},{"ruleId":"D2","level":"warning","message":{"text":"ZImageControlNetModel.forward (cognitive 63): ZImageControlNetModel.forward has cognitive complexity 63 (threshold 15). Drivers by points: if/else 20 (35 pts), loops 13 (22 pts), boolean chains 6 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c107d958985a714b7070105058c6fd6104ae6200f9c8aad5bd13f93e3b615f4"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffusionPipeline.from_pretrained (cognitive 63): DiffusionPipeline.from_pretrained has cognitive complexity 63 (threshold 15). Drivers by points: if/else 32 (41 pts), boolean chains 15, loops 3 (4 pts), ternaries 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d88a86a12b319d001ebe934ccb043faca0be3baf1f0a1ba3e85d198e4a4e75"}},{"ruleId":"D2","level":"warning","message":{"text":"ZImageImg2ImgPipeline.__call__ (cognitive 63): ZImageImg2ImgPipeline.__call__ has cognitive complexity 63 (threshold 15). Drivers by points: if/else 28 (45 pts), boolean chains 11, loops 3 (7 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e002d8f030bb04a96a2efc65b468ad14fd20333923ea7510799dd5189f8951a"}},{"ruleId":"D2","level":"warning","message":{"text":"check_inits.parse_init (cognitive 63): check_inits.parse_init has cognitive complexity 63 (threshold 15). Drivers by points: if/else 15 (38 pts), loops 10 (20 pts), boolean chains 5 (nesting depth added 33). 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":"utils/check_inits.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3253f85c824145f1393f6caf3e3b87af77ea23f4441b5f834d456df09bb83f1f"}},{"ruleId":"D2","level":"warning","message":{"text":"UNetMotionModel.from_unet2d (cognitive 62): UNetMotionModel.from_unet2d has cognitive complexity 62 (threshold 15). Drivers by points: if/else 29 (44 pts), loops 6 (8 pts), ternaries 2 (8 pts), boolean chains 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"b088e88970a9554e80de48eaf447be23ca6d033b5b93b1ebe3cb74cee983adf7"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetImg2ImgPipeline.check_inputs (cognitive 62): StableDiffusionControlNetImg2ImgPipeline.check_inputs has cognitive complexity 62 (threshold 15). Drivers by points: if/else 26 (39 pts), boolean chains 20, loops 2 (3 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"6223a74a4cf35773bb5278f6ca337d632f7c598206063a0ddcfb667a3bc679d3"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingVideoToVideoPipeline.__call__ (cognitive 62): SkyReelsV2DiffusionForcingVideoToVideoPipeline.__call__ has cognitive complexity 62 (threshold 15). Drivers by points: if/else 22 (39 pts), loops 5 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"b258488830a6fce26cc4b891a46dfbbe5cd5430514a6b1c2943b79840068c3e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ZImagePipeline.__call__ (cognitive 62): ZImagePipeline.__call__ has cognitive complexity 62 (threshold 15). Drivers by points: if/else 26 (43 pts), boolean chains 12, loops 3 (7 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff4a3de7e2643214c29132de5b97a40e0c678204d01f677ef10af885aad691b"}},{"ruleId":"D2","level":"warning","message":{"text":"check_forward_call_docstrings.fix_file (cognitive 62): check_forward_call_docstrings.fix_file has cognitive complexity 62 (threshold 15). Drivers by points: if/else 16 (41 pts), loops 6 (11 pts), ternaries 3 (5 pts), boolean chains 4, error handling 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_forward_call_docstrings.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"771dc07f43f5e0c7fbac0905209d8f3911d50ad5357e5d3cbf2b6527911094a9"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3ControlNetInpaintingPipeline.check_inputs (cognitive 61): StableDiffusion3ControlNetInpaintingPipeline.check_inputs has cognitive complexity 61 (threshold 15). Drivers by points: if/else 25 (35 pts), boolean chains 22, loops 2 (3 pts), ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b1cf55442e08dc3ec6f3fb1f97af9628827ee7a470b566a4d09d0daaf2344e"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos3OmniPipeline.check_inputs (cognitive 61): Cosmos3OmniPipeline.check_inputs has cognitive complexity 61 (threshold 15). Drivers by points: if/else 26 (51 pts), boolean chains 10 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc72123dde067432c316ee9482e28bacd7b3ab230e00ced24d341de6578fc0a"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxPipeline.__call__ (cognitive 61): FluxPipeline.__call__ has cognitive complexity 61 (threshold 15). Drivers by points: if/else 24 (36 pts), boolean chains 19, loops 2 (4 pts), ternaries 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a530b588dff9dfc18a980e5001a264f2a374762682ace944fd8549da4914d7f"}},{"ruleId":"D2","level":"warning","message":{"text":"MarigoldDepthPipeline.check_inputs (cognitive 61): MarigoldDepthPipeline.check_inputs has cognitive complexity 61 (threshold 15). Drivers by points: if/else 34 (53 pts), boolean chains 7, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c807e0531627c6c146d20d0a5c05575be10dc63f32775a6093dced427691ad"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3Pipeline.__call__ (cognitive 61): StableDiffusion3Pipeline.__call__ has cognitive complexity 61 (threshold 15). Drivers by points: if/else 24 (40 pts), boolean chains 11, ternaries 3 (6 pts), loops 2 (4 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa4940b22d867106d619ff4aaef4b806c1469db77a7b2e8064e14040f4d3377"}},{"ruleId":"D2","level":"warning","message":{"text":"ZImageControlNetPipeline.__call__ (cognitive 61): ZImageControlNetPipeline.__call__ has cognitive complexity 61 (threshold 15). Drivers by points: if/else 25 (42 pts), boolean chains 12, loops 3 (7 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"b629781a8c37d482662995c750db7338b7b81bae9f27d4b4901688a0f9b48875"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_conversion_utils._convert_fal_kontext_lora_to_diffusers (cognitive 60): lora_conversion_utils._convert_fal_kontext_lora_to_diffusers has cognitive complexity 60 (threshold 15). Drivers by points: if/else 19 (52 pts), loops 6 (8 pts) (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7d1df499e34d98790a5fa6f2382d64d064e227a49aefc804889dee1b4d2fac"}},{"ruleId":"D2","level":"warning","message":{"text":"IPAdapterAttnProcessor2_0.__call__ (cognitive 60): IPAdapterAttnProcessor2_0.__call__ has cognitive complexity 60 (threshold 15). Drivers by points: if/else 25 (49 pts), loops 3 (8 pts), boolean chains 2, ternaries 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4439}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9efa00d415ceb10b21b76a0a6ab679137c120bf2f955f3a7b781defe175f8ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ZImageControlNetInpaintPipeline.__call__ (cognitive 60): ZImageControlNetInpaintPipeline.__call__ has cognitive complexity 60 (threshold 15). Drivers by points: if/else 24 (41 pts), boolean chains 12, loops 3 (7 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"7632157d5840b0d3d1b78e52e40f2f097a69449c003f8d28f94e3eb10b2136c3"}},{"ruleId":"D2","level":"warning","message":{"text":"IPAdapterAttnProcessor.__call__ (cognitive 59): IPAdapterAttnProcessor.__call__ has cognitive complexity 59 (threshold 15). Drivers by points: if/else 24 (48 pts), loops 3 (8 pts), boolean chains 2, ternaries 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4234}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1539607528cbcc43c15cb9924d858482eee8227f6364ddf3904ee386e82e1a"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffSDXLPipeline.__call__ (cognitive 59): AnimateDiffSDXLPipeline.__call__ has cognitive complexity 59 (threshold 15). Drivers by points: if/else 22 (35 pts), boolean chains 12, loops 3 (7 pts), ternaries 3 (5 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60f95483538947bcac44b07d09f6cd2a68c34afc3dd04673696b60a7c943454"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos2_5_PredictBasePipeline.__call__ (cognitive 59): Cosmos2_5_PredictBasePipeline.__call__ has cognitive complexity 59 (threshold 15). Drivers by points: if/else 25 (41 pts), loops 4 (10 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a02059b9c276552500214af7b28c115aa951ee378eed522d9ccdfbf0a3515e6"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniMaxH3Ref2VASetupStep.__call__ (cognitive 58): MiniMaxH3Ref2VASetupStep.__call__ has cognitive complexity 58 (threshold 15). Drivers by points: if/else 22 (47 pts), boolean chains 5, loops 3, ternaries 1 (3 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"5067984edb3e14dbeadac98841b45958052417672629d436dc0a318da8d5ec89"}},{"ruleId":"D2","level":"warning","message":{"text":"ModularPipeline.to (cognitive 58): ModularPipeline.to has cognitive complexity 58 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 18, ternaries 5 (12 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aecc0e4a5b8ff89cd798e801d6350f26e0485bacd4394feb00f1e5683d26323"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaFibo2Pipeline.check_inputs (cognitive 58): BriaFibo2Pipeline.check_inputs has cognitive complexity 58 (threshold 15). Drivers by points: if/else 21 (37 pts), boolean chains 12, ternaries 2 (4 pts), error handling 1 (3 pts), loops 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b2c3db322353cb4921301466ab4578f777079163ba493ae22837446f506f4d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChromaInpaintPipeline.__call__ (cognitive 58): ChromaInpaintPipeline.__call__ has cognitive complexity 58 (threshold 15). Drivers by points: if/else 26 (38 pts), boolean chains 14, loops 2 (4 pts), ternaries 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"935d86d2a5644bed74fa92c50e55f101ad508489fca16becd9a54f9ced92b8d3"}},{"ruleId":"D2","level":"warning","message":{"text":"CosmosVideoToWorldPipeline.__call__ (cognitive 58): CosmosVideoToWorldPipeline.__call__ has cognitive complexity 58 (threshold 15). Drivers by points: if/else 24 (36 pts), loops 4 (10 pts), ternaries 3 (8 pts), boolean chains 4 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"610fb228f39415fc678c333e802d9237c77958f9532144693024c8b851f758c4"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxImg2ImgPipeline.__call__ (cognitive 58): FluxImg2ImgPipeline.__call__ has cognitive complexity 58 (threshold 15). Drivers by points: if/else 24 (35 pts), boolean chains 17, loops 2 (4 pts), ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_img2img.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"11dbd7c51d99c691783f8d766bbd2edd28df7c802fda9b2abcc09ba6261a6c78"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsPipeline.__call__ (cognitive 58): KolorsPipeline.__call__ has cognitive complexity 58 (threshold 15). Drivers by points: if/else 26 (39 pts), boolean chains 13, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af3f1758cb181a4f4ded524f60341c870c5e48d34c892e2d04c056bd686c756"}},{"ruleId":"D2","level":"warning","message":{"text":"MarigoldIntrinsicsPipeline.check_inputs (cognitive 58): MarigoldIntrinsicsPipeline.check_inputs has cognitive complexity 58 (threshold 15). Drivers by points: if/else 33 (52 pts), boolean chains 5, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"252de21aa2c03806f5d4a034039cd999d4ce00ae8862a902ee977522cb514dcd"}},{"ruleId":"D2","level":"warning","message":{"text":"MarigoldNormalsPipeline.check_inputs (cognitive 58): MarigoldNormalsPipeline.check_inputs has cognitive complexity 58 (threshold 15). Drivers by points: if/else 33 (52 pts), boolean chains 5, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_normals.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1063a6b271faeba921d164995320dbdf87b95192be9d495e95d308c3c2b1a72c"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLInstructPix2PixPipeline.encode_prompt (cognitive 58): StableDiffusionXLInstructPix2PixPipeline.encode_prompt has cognitive complexity 58 (threshold 15). Drivers by points: if/else 20 (37 pts), boolean chains 14, loops 2 (4 pts), ternaries 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"20628aad30e57c4a06fd007a8323658e1461aeda908fc4ebf9fd299d5586e5e6"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLInstructPix2PixPipeline.__call__ (cognitive 58): StableDiffusionXLInstructPix2PixPipeline.__call__ has cognitive complexity 58 (threshold 15). Drivers by points: if/else 24 (38 pts), boolean chains 16, ternaries 2 (3 pts), loops 1 (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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2a9d42d4f966c0761752ea6621d1273c830c46e614054bcf077473f77909de"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffusionGemmaPipeline.__call__ (cognitive 57): DiffusionGemmaPipeline.__call__ has cognitive complexity 57 (threshold 15). Drivers by points: if/else 19 (35 pts), loops 4 (11 pts), ternaries 3 (8 pts), boolean chains 3 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"525afdc5b2016df3fd71b60d8d106777bd8ba0f57661b353cb74d6d2a2561a04"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyAnimateControlPipeline.__call__ (cognitive 56): EasyAnimateControlPipeline.__call__ has cognitive complexity 56 (threshold 15). Drivers by points: if/else 26 (35 pts), ternaries 6 (12 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"653d08ccb44a6d9e51f8327813bcee4ca20f7c0a6eaa3a781258616392f4e563"}},{"ruleId":"D2","level":"warning","message":{"text":"LEditsPPPipelineStableDiffusionXL.encode_prompt (cognitive 56): LEditsPPPipelineStableDiffusionXL.encode_prompt has cognitive complexity 56 (threshold 15). Drivers by points: if/else 22 (38 pts), boolean chains 8, ternaries 4 (6 pts), loops 2 (4 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":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"99eb39de26ce1038eaa908c137594bf27b8c516f9a481fa83ff42ceec00e7755"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_conversion_utils._convert_kohya_flux_lora_to_diffusers (cognitive 55): lora_conversion_utils._convert_kohya_flux_lora_to_diffusers has cognitive complexity 55 (threshold 15). Drivers by points: if/else 24 (50 pts), boolean chains 5 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde3cd18e1d681a18c2e6a1260afb36de1c2b066e4b294791a775f1dcf9690f5"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffPipeline.__call__ (cognitive 55): AnimateDiffPipeline.__call__ has cognitive complexity 55 (threshold 15). Drivers by points: if/else 18 (33 pts), boolean chains 9, loops 3 (7 pts), ternaries 4 (6 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46e69a393d77f4470663a6d515cf162388bfcc2df4b2b3422b8666b541e0c77"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffusionPipeline.download (cognitive 55): DiffusionPipeline.download has cognitive complexity 55 (threshold 15). Drivers by points: if/else 20 (32 pts), boolean chains 9, ternaries 5 (7 pts), error handling 3 (5 pts), loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"62497987e5c92cece10fd37e85eef9477096b2e7c74c191fc3b6e8c7e89b0726"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageEditInpaintPipeline.__call__ (cognitive 55): QwenImageEditInpaintPipeline.__call__ has cognitive complexity 55 (threshold 15). Drivers by points: if/else 25 (36 pts), boolean chains 13, loops 2 (4 pts), ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b9b256129d8cfc7747128546af4de2f1e039eb0f67e2d395ac9af0e0c30f6e"}},{"ruleId":"D2","level":"warning","message":{"text":"dynamic_modules_utils.get_cached_module_file (cognitive 55): dynamic_modules_utils.get_cached_module_file has cognitive complexity 55 (threshold 15). Drivers by points: if/else 20 (40 pts), error handling 3 (6 pts), loops 2 (4 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/dynamic_modules_utils.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"31906f6c89310d726b947a6ffbd1d91beb8ca2a27533de19bef55fb253c29c72"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2VideoDiffusionDecoderModel.tiled_decode (cognitive 54): LTX2VideoDiffusionDecoderModel.tiled_decode has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 6 (20 pts), if/else 7 (18 pts), loops 6 (12 pts), boolean chains 4 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ce2165921d255efd52fc816c4ce4c0e624da25411d51a99ea163b7bfd7465f"}},{"ruleId":"D2","level":"warning","message":{"text":"GlmImagePipeline.__call__ (cognitive 54): GlmImagePipeline.__call__ has cognitive complexity 54 (threshold 15). Drivers by points: if/else 19 (27 pts), loops 6 (14 pts), ternaries 4 (7 pts), boolean chains 6 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"466ad2267141b06244c247ae4e1b879dfab462c0c2d5f564e494189541860e68"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageControlNetInpaintPipeline.__call__ (cognitive 54): QwenImageControlNetInpaintPipeline.__call__ has cognitive complexity 54 (threshold 15). Drivers by points: if/else 21 (32 pts), boolean chains 12, loops 3 (5 pts), ternaries 3 (5 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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0416ee5d7363ae8f09a2bc90aa122a0713ff8833a70b4934d3ac06cbd3056ce"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageLayeredPipeline.__call__ (cognitive 54): QwenImageLayeredPipeline.__call__ has cognitive complexity 54 (threshold 15). Drivers by points: if/else 21 (32 pts), boolean chains 14, loops 3 (6 pts), ternaries 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e0cb6c631052ce9da03d059ac2b6da4e7360b68c0fbd1fb4cd2ef5e1532c46"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPipeline.__call__ (cognitive 54): StableDiffusionPipeline.__call__ has cognitive complexity 54 (threshold 15). Drivers by points: if/else 24 (33 pts), boolean chains 9, ternaries 5 (8 pts), loops 2 (4 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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb02044cc54fa9423639e72890f573e42b6e791519aca4539bd538e5d6e1134"}},{"ruleId":"D2","level":"warning","message":{"text":"WanAnimatePipeline.__call__ (cognitive 54): WanAnimatePipeline.__call__ has cognitive complexity 54 (threshold 15). Drivers by points: if/else 25 (38 pts), boolean chains 7, loops 3 (7 pts), ternaries 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_animate.py"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfdef8bf58f526214bdc8f42a4c7895c2212459509b0e1520ee4813430f6ad5"}},{"ruleId":"D2","level":"warning","message":{"text":"UNet2DConditionModel.forward (cognitive 53): UNet2DConditionModel.forward has cognitive complexity 53 (threshold 15). Drivers by points: if/else 26 (37 pts), boolean chains 10, loops 4 (5 pts), ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d587c6854caf844d9dcbb6e04cbcb315581ba45c92d412ab552785cd3b20279"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffVideoToVideoPipeline.__call__ (cognitive 53): AnimateDiffVideoToVideoPipeline.__call__ has cognitive complexity 53 (threshold 15). Drivers by points: if/else 20 (32 pts), boolean chains 8, loops 3 (7 pts), ternaries 4 (6 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4f3ec63d40b56b39d740001ff3acc1f783518df5a1ce9d7a99de71e03a22d6"}},{"ruleId":"D2","level":"warning","message":{"text":"AmusedPipeline.__call__ (cognitive 53): AmusedPipeline.__call__ has cognitive complexity 53 (threshold 15). Drivers by points: if/else 25 (38 pts), boolean chains 13, loops 1, ternaries 1 (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":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3803efe5647a2bde009836cba6e599c8a7bb44d7a410d2c79162547727edd9f"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPipelineSafe.__call__ (cognitive 53): StableDiffusionPipelineSafe.__call__ has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (32 pts), ternaries 8 (14 pts), boolean chains 6, loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f12b491643abed4c695a6c3fcc58e6bca587bb5eb355edbea2b699beb5b2ac"}},{"ruleId":"D2","level":"warning","message":{"text":"Flux2KleinPipeline.__call__ (cognitive 53): Flux2KleinPipeline.__call__ has cognitive complexity 53 (threshold 15). Drivers by points: if/else 21 (33 pts), boolean chains 11, loops 4 (8 pts), ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b89a1eafcbb334bf3f3a95d090d823f47d41076b03c440d9ffa9f3ee38afb2b"}},{"ruleId":"D2","level":"warning","message":{"text":"LTXI2VLongMultiPromptPipeline.vae_decode_tiled (cognitive 53): LTXI2VLongMultiPromptPipeline.vae_decode_tiled has cognitive complexity 53 (threshold 15). Drivers by points: if/else 19 (40 pts), ternaries 3 (8 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddf7f45b2fb2f55c849e1ab8495f110ffb1479175dcbff5611cf11295db565c"}},{"ruleId":"D2","level":"warning","message":{"text":"PixArtSigmaPAGPipeline.__call__ (cognitive 53): PixArtSigmaPAGPipeline.__call__ has cognitive complexity 53 (threshold 15). Drivers by points: if/else 24 (35 pts), boolean chains 9, ternaries 2 (8 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e4e38451335133d2070dbc2f7366dc99c2a13b4631cbb2f97c12dd3a03b5bc"}},{"ruleId":"D2","level":"warning","message":{"text":"PixArtSigmaPipeline.__call__ (cognitive 53): PixArtSigmaPipeline.__call__ has cognitive complexity 53 (threshold 15). Drivers by points: if/else 22 (33 pts), ternaries 3 (10 pts), boolean chains 9, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0495788b9cdbfd802676e561297601d95e260b8f70bbf3431b3af9b2ee5d82"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageEditPlusPipeline.__call__ (cognitive 53): QwenImageEditPlusPipeline.__call__ has cognitive complexity 53 (threshold 15). Drivers by points: if/else 20 (30 pts), boolean chains 15, loops 3 (6 pts), ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa9ebf4bfd6e9fea4c9aa0ab6a598a5e6ecd391ed7ec6a8fd2805922655117d"}},{"ruleId":"D2","level":"warning","message":{"text":"WanImageToVideoPipeline.__call__ (cognitive 53): WanImageToVideoPipeline.__call__ has cognitive complexity 53 (threshold 15). Drivers by points: if/else 29 (39 pts), boolean chains 8, loops 2 (4 pts), ternaries 2 (nesting depth added 12). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_i2v.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a28a9dbb129e93ec29312f6669126a32ebbc757a53905d191111c9b608090b9"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxLoraLoaderMixin._maybe_expand_transformer_param_shape_or_error_ (cognitive 52): FluxLoraLoaderMixin._maybe_expand_transformer_param_shape_or_error_ has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (42 pts), ternaries 2 (6 pts), boolean chains 2, loops 2 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1995}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e667cf37795b12931abb10a08d15155a94246599257896ee727dc0b811e7b04"}},{"ruleId":"D2","level":"warning","message":{"text":"UNetMotionModel.__init__ (cognitive 52): UNetMotionModel.__init__ has cognitive complexity 52 (threshold 15). Drivers by points: if/else 32 (39 pts), loops 4 (6 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"5819c8d78f9dcb849da41491b99ea9d1769024d16a16f9ec474a31d7f74cb964"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentsManager.__repr__ (cognitive 52): ComponentsManager.__repr__ has cognitive complexity 52 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 7 (14 pts), ternaries 5 (11 pts), boolean chains 3 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"d861e5286039cde460f531346c413807a1ae00c0471d43f67a683571f60b883b"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetXSPipeline.__call__ (cognitive 52): StableDiffusionXLControlNetXSPipeline.__call__ has cognitive complexity 52 (threshold 15). Drivers by points: if/else 25 (33 pts), boolean chains 11, loops 2 (4 pts), ternaries 3 (4 pts) (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"139de7c1e1724b1cde2a2777f97582213ed8c05f66809d7a2c93c3c859719fa2"}},{"ruleId":"D2","level":"warning","message":{"text":"LattePipeline.__call__ (cognitive 52): LattePipeline.__call__ has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (28 pts), ternaries 4 (11 pts), boolean chains 9, loops 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"475d2767867f2d583d74be7748ca21b972d88c4730d6d184b01e5726517f4e53"}},{"ruleId":"D2","level":"warning","message":{"text":"PixArtAlphaPipeline.__call__ (cognitive 52): PixArtAlphaPipeline.__call__ has cognitive complexity 52 (threshold 15). Drivers by points: if/else 28 (41 pts), boolean chains 8, ternaries 1 (2 pts), loops 1 (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":"src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"30fbfce162f22019aa454dbdd3200069060850b39a41ef91609acb7759fbb264"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_base._load_lora_into_text_encoder (cognitive 51): lora_base._load_lora_into_text_encoder has cognitive complexity 51 (threshold 15). Drivers by points: if/else 20 (41 pts), loops 2 (5 pts), boolean chains 4, ternaries 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"4630ec1b01592ab45d7fb5cd6a3c81b5deda370e1dea96c10211675598f0fb03"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageInpaintPipeline.__call__ (cognitive 51): QwenImageInpaintPipeline.__call__ has cognitive complexity 51 (threshold 15). Drivers by points: if/else 23 (33 pts), boolean chains 13, loops 2 (4 pts), ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8a770efa145f91218cf49cce85d9ba79b27f5510b325c7d873e816d2b6ce1c"}},{"ruleId":"D2","level":"warning","message":{"text":"TextualInversionLoaderMixin.unload_textual_inversion (cognitive 50): TextualInversionLoaderMixin.unload_textual_inversion has cognitive complexity 50 (threshold 15). Drivers by points: if/else 18 (36 pts), loops 6 (11 pts), boolean chains 3 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/textual_inversion.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"64887b4d47fa61073d3d33302977b76593b573cffb8c28009459330348df910b"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffSparseControlNetPipeline.__call__ (cognitive 50): AnimateDiffSparseControlNetPipeline.__call__ has cognitive complexity 50 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 10, ternaries 6 (8 pts), loops 3 (7 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56ffdd91d06a99f6f808758b2e589de70a13033166edcc9dc561ed6268f89b1"}},{"ruleId":"D2","level":"warning","message":{"text":"ChromaImg2ImgPipeline.__call__ (cognitive 50): ChromaImg2ImgPipeline.__call__ has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (30 pts), boolean chains 14, loops 2 (4 pts), ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d52983e8956199d7ab0f1106df36bc3ec9316a647d3bdc7f06288179d7c94b7"}},{"ruleId":"D2","level":"warning","message":{"text":"ChronoEditPipeline.__call__ (cognitive 50): ChronoEditPipeline.__call__ has cognitive complexity 50 (threshold 15). Drivers by points: if/else 20 (36 pts), loops 3 (7 pts), boolean chains 6, ternaries 1 (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":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f5352fa46a66882d447cc658909fd2745f97b865339c48890d47b0ce94254c"}},{"ruleId":"D2","level":"warning","message":{"text":"RFD4ProteinaPipeline.__call__ (cognitive 50): RFD4ProteinaPipeline.__call__ has cognitive complexity 50 (threshold 15). Drivers by points: if/else 18 (30 pts), ternaries 11 (16 pts), loops 2 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/rfd4_proteina/pipeline_rfd4_proteina.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ccf8b9f4e6399f13127cb96e770ffcf435cf038cc8001e6c70151856d9b7c5"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualClozePipeline.check_inputs (cognitive 50): VisualClozePipeline.check_inputs has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (31 pts), boolean chains 14, loops 2 (5 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":"src/diffusers/pipelines/visualcloze/pipeline_visualcloze_combined.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33f8809eb2d42c13998997d48f7e9c7ea7394197b490c409d0b61ca689c79e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ChromaPipeline.__call__ (cognitive 49): ChromaPipeline.__call__ has cognitive complexity 49 (threshold 15). Drivers by points: if/else 18 (29 pts), boolean chains 14, loops 2 (4 pts), ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"162c04015a2e899ede364560899d92cc826cf18bd1c5944387784f499bdf40c7"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos2VideoToWorldPipeline.__call__ (cognitive 49): Cosmos2VideoToWorldPipeline.__call__ has cognitive complexity 49 (threshold 15). Drivers by points: if/else 21 (31 pts), loops 4 (10 pts), boolean chains 4, ternaries 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01ef8f6a958468398dc89ab660357e61e5ac794dbc443a532815f01e77e29b0"}},{"ruleId":"D2","level":"warning","message":{"text":"CosmosTextToWorldPipeline.__call__ (cognitive 49): CosmosTextToWorldPipeline.__call__ has cognitive complexity 49 (threshold 15). Drivers by points: if/else 20 (32 pts), loops 4 (10 pts), boolean chains 4, ternaries 1 (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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"00472457f762aa81d7632b6db1b7ea8ad7e97cf36444edc3bb774e7eb47179c6"}},{"ruleId":"D2","level":"warning","message":{"text":"WuerstchenDecoderPipeline.__call__ (cognitive 49): WuerstchenDecoderPipeline.__call__ has cognitive complexity 49 (threshold 15). Drivers by points: if/else 26 (36 pts), ternaries 4 (6 pts), loops 2 (4 pts), boolean chains 3 (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":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"e305d8df6d78c27f424e21c44a29cdba1cf29ce838c216df0a473d1abd91395b"}},{"ruleId":"D2","level":"warning","message":{"text":"Flux2KleinKVPipeline.__call__ (cognitive 49): Flux2KleinKVPipeline.__call__ has cognitive complexity 49 (threshold 15). Drivers by points: if/else 19 (29 pts), boolean chains 11, loops 4 (8 pts), ternaries 1 (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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c363bba56d41d651b97bf652fd37bf14574595687be6c043a8abfeb003cbbe0"}},{"ruleId":"D2","level":"warning","message":{"text":"LuminaPipeline.__call__ (cognitive 49): LuminaPipeline.__call__ has cognitive complexity 49 (threshold 15). Drivers by points: if/else 19 (29 pts), ternaries 3 (10 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98663499f2d11be3664f9a2824670c5cd76ce017649483abd79802dd2f2e270"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGPipeline.__call__ (cognitive 49): StableDiffusionPAGPipeline.__call__ has cognitive complexity 49 (threshold 15). Drivers by points: if/else 22 (32 pts), boolean chains 9, loops 3 (6 pts), ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd.py"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f370da1fe1d64a95537407c76f70d8d84ee4f949309358d1c82fdc8d35c5bf"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffPAGPipeline.__call__ (cognitive 49): AnimateDiffPAGPipeline.__call__ has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (29 pts), loops 4 (9 pts), boolean chains 8, ternaries 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fa6e359795c5b3e4cf14cb0cd0b108f94ae83a90f4312a5777a60a60da1b4c"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_conversion_utils._maybe_map_sgm_blocks_to_diffusers (cognitive 48): lora_conversion_utils._maybe_map_sgm_blocks_to_diffusers has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (23 pts), loops 10 (14 pts), ternaries 3 (9 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ac3515bbd6b87375f276d856729cce59844cdc98858dd0842bcde84693dd58"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos2TextToImagePipeline.__call__ (cognitive 48): Cosmos2TextToImagePipeline.__call__ has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (30 pts), loops 4 (10 pts), boolean chains 4, ternaries 2 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f21c86899921b8b34f2d1df361470ee4899086ef24afad36458dce6f5468d75"}},{"ruleId":"D2","level":"warning","message":{"text":"AmusedImg2ImgPipeline.__call__ (cognitive 48): AmusedImg2ImgPipeline.__call__ has cognitive complexity 48 (threshold 15). Drivers by points: if/else 22 (34 pts), boolean chains 12, loops 1, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc689e6e383a08c22aa879784e5b43455a44e51ee53671d47ecdefc25edbe760"}},{"ruleId":"D2","level":"warning","message":{"text":"AmusedInpaintPipeline.__call__ (cognitive 48): AmusedInpaintPipeline.__call__ has cognitive complexity 48 (threshold 15). Drivers by points: if/else 22 (34 pts), boolean chains 12, loops 1, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81f597150e4454e364f978476538a95a6f9b9045b564464ab1b89aea6f8e8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionSAGPipeline.__call__ (cognitive 48): StableDiffusionSAGPipeline.__call__ has cognitive complexity 48 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 10, ternaries 3 (5 pts), loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e23ae0f9fe7b04b4ef20c52d91c30f77b87300fc4b30cf7e431165e740f494c"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanImagePipeline.__call__ (cognitive 48): HunyuanImagePipeline.__call__ has cognitive complexity 48 (threshold 15). Drivers by points: if/else 22 (32 pts), boolean chains 9, loops 3 (6 pts), ternaries 1 (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":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9ddc4fc50913c05aa9c8843a6bec6fc4c79e4e02990191790c216115534791"}},{"ruleId":"D2","level":"warning","message":{"text":"LLaDA2Pipeline.__call__ (cognitive 48): LLaDA2Pipeline.__call__ has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (33 pts), loops 3 (7 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/llada2/pipeline_llada2.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86c3ad1657907a932ba84dccf0045e44167c2ee93e22144812ce4befb2fb701"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageEditPipeline.__call__ (cognitive 48): QwenImageEditPipeline.__call__ has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 15, loops 2 (4 pts), ternaries 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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"74088257c98eaf0a94b80cad783c74f4aaac8e07a7024e78f3e14f60db46fa27"}},{"ruleId":"D2","level":"warning","message":{"text":"WanVACEPipeline.__call__ (cognitive 48): WanVACEPipeline.__call__ has cognitive complexity 48 (threshold 15). Drivers by points: if/else 26 (34 pts), boolean chains 7, loops 2 (4 pts), ternaries 3 (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_vace.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ddeaf4b9ab186c1166c46f27b21974d946e7def92a08e928e5679973a31864"}},{"ruleId":"D2","level":"warning","message":{"text":"schema._schema (cognitive 47): schema._schema has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (24 pts), ternaries 6 (16 pts), loops 2 (4 pts), error handling 2 (3 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/schema.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf913e187f5757e3c610e5ad6413651ff5744db51ac5bac4ef6b530ce54b765"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_z_image_lora_to_diffusers (cognitive 47): lora_conversion_utils._convert_non_diffusers_z_image_lora_to_diffusers has cognitive complexity 47 (threshold 15). Drivers by points: if/else 14 (32 pts), loops 4 (10 pts), boolean chains 5 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2940}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd104d5ff5a6ae8502c1d1dd31e75ceadf0d85e5b89ab1ed41fca8fe804d749"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlNetUnionModel.forward (cognitive 47): ControlNetUnionModel.forward has cognitive complexity 47 (threshold 15). Drivers by points: if/else 22 (33 pts), boolean chains 6, loops 5, ternaries 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_union.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"1199831f70fe03f195ac078b5a37bc5e52acff0bcb77422b36b9129040043464"}},{"ruleId":"D2","level":"warning","message":{"text":"ModularPipeline.save_pretrained (cognitive 47): ModularPipeline.save_pretrained has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (31 pts), loops 3 (6 pts), ternaries 2 (6 pts), boolean chains 4 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2026}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3c01ece92b26fb71db69b80a67820fc2802feebc714f30749d102f809499a6"}},{"ruleId":"D2","level":"warning","message":{"text":"Flux2Pipeline.__call__ (cognitive 47): Flux2Pipeline.__call__ has cognitive complexity 47 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 10, loops 4 (8 pts), ternaries 1 (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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece5317b055dc2cbc7233234beb1b57e6b1228d42a0fe691dfdd4c60d1eb6504"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGImg2ImgPipeline.__call__ (cognitive 47): StableDiffusionPAGImg2ImgPipeline.__call__ has cognitive complexity 47 (threshold 15). Drivers by points: if/else 23 (33 pts), boolean chains 6, loops 3 (6 pts), ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"24975d3e570ad7999ea6a8b8312c9162048686a8b6096a3cbc78b6029eedbd16"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxIPAdapterMixin.load_ip_adapter (cognitive 46): FluxIPAdapterMixin.load_ip_adapter has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (35 pts), loops 2 (5 pts), boolean chains 3, ternaries 1 (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":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b96a2fdd17a65260481a2099bf9129071cb6ea2a6aa0e9d4000b0bb5f8f216"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelMixin._load_pretrained_model (cognitive 46): ModelMixin._load_pretrained_model has cognitive complexity 46 (threshold 15). Drivers by points: if/else 26 (36 pts), loops 2 (4 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"144d083f0979a40e31d66fc4c0b7855206d3b8fb3dee72260201f40b68ac83b0"}},{"ruleId":"D2","level":"warning","message":{"text":"StableCascadeUNet.__init__ (cognitive 46): StableCascadeUNet.__init__ has cognitive complexity 46 (threshold 15). Drivers by points: loops 8 (18 pts), if/else 13 (17 pts), ternaries 3 (10 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9f0db9acc5c0732d55d59aace2408ec2fc17498ccac3015b8bdc2badc42371"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaPipeline.__call__ (cognitive 46): BriaPipeline.__call__ has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (31 pts), boolean chains 8, loops 2 (4 pts), ternaries 2 (3 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":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4d03c0e9b64b8d5cebd59fd017745409fc57c976f002a0f36ba894159508c7"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaFiboPipeline.__call__ (cognitive 46): BriaFiboPipeline.__call__ has cognitive complexity 46 (threshold 15). Drivers by points: if/else 25 (34 pts), boolean chains 4, loops 2 (4 pts), ternaries 3 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"3424605162cdcbc17da376b9662281a7ed874d126b586fc235f56748e4df02e0"}},{"ruleId":"D2","level":"warning","message":{"text":"CogVideoXImageToVideoPipeline.__call__ (cognitive 46): CogVideoXImageToVideoPipeline.__call__ has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (25 pts), ternaries 5 (9 pts), boolean chains 8, loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"4808503388cfe1c41099b80cc767e0baa6ee776545dcdc2b258b23e0b312a722"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2Pipeline.check_inputs (cognitive 46): LTX2Pipeline.check_inputs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 17, ternaries 3 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46df87c004f44c9df23e3822ba77771c835e41b9813241d29a91adbf9316c63"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2ConditionPipeline.check_inputs (cognitive 46): LTX2ConditionPipeline.check_inputs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 17, ternaries 3 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58c887aed14b8a8759d94ac963680c50424407b6a9546d7c6d9d13d39a4a7d4"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2DFRPipeline.check_inputs (cognitive 46): LTX2DFRPipeline.check_inputs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 17, ternaries 3 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04bd7a78a5f32868a79d78618b826427541ac120b45fe98129b1891af8a522a"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2DFRTemporalRefinePipeline.check_inputs (cognitive 46): LTX2DFRTemporalRefinePipeline.check_inputs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 17, ternaries 3 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"473918eae727cb8ae98720804d889b441a1ee40c7b3bd359ead35266bc620af1"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2InContextPipeline.check_inputs (cognitive 46): LTX2InContextPipeline.check_inputs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 17, ternaries 3 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e4d9a3559e0b997a9caf81ece1d918a9412869094dc64a074b1acc8c96fd30"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2ImageToVideoPipeline.check_inputs (cognitive 46): LTX2ImageToVideoPipeline.check_inputs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 17, ternaries 3 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64177b69296fc073a42e324af183df9b09d827fa18ce4f8a9633303500b5ffb"}},{"ruleId":"D2","level":"warning","message":{"text":"MotifVideoImage2VideoPipeline.check_inputs (cognitive 46): MotifVideoImage2VideoPipeline.check_inputs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 19 (34 pts), boolean chains 12 (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":"src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ace04f8644e41f3a41e12c1aab7ef1d2c1d795b1ed40645bda82ac201700120"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualClozeGenerationPipeline.__call__ (cognitive 46): VisualClozeGenerationPipeline.__call__ has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (31 pts), loops 4 (9 pts), boolean chains 4, ternaries 2 (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":"src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4c3711dcacb81d5f4af3979ed972eaf7b4854958939f820be0402c2202a3de"}},{"ruleId":"D2","level":"warning","message":{"text":"run._maybe_submit_remote (cognitive 45): run._maybe_submit_remote has cognitive complexity 45 (threshold 15). Drivers by points: if/else 21 (32 pts), boolean chains 7, loops 1 (3 pts), ternaries 2 (3 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":"src/diffusers/commands/run.py"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"924d3c252984b314f7019da345e3fe20a9b1ee293859168df648c0f827e61b89"}},{"ruleId":"D2","level":"warning","message":{"text":"WuerstchenPriorPipeline.__call__ (cognitive 45): WuerstchenPriorPipeline.__call__ has cognitive complexity 45 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 6, ternaries 3 (5 pts), loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1f58ea86ac3e9765312c2384e024f306a0d2685672c5fd88bfcadfc680e0a6"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3Img2ImgPipeline.__call__ (cognitive 45): StableDiffusion3Img2ImgPipeline.__call__ has cognitive complexity 45 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 9, loops 2 (4 pts), ternaries 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a69360298536b51e546b792671ad0f4533439b9383d0bfab84538f22406d267"}},{"ruleId":"D2","level":"warning","message":{"text":"UniPCMultistepScheduler.set_timesteps (cognitive 45): UniPCMultistepScheduler.set_timesteps has cognitive complexity 45 (threshold 15). Drivers by points: if/else 29 (44 pts), boolean chains 1 (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":"src/diffusers/schedulers/scheduling_unipc_multistep.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b087f6d0f923965696aa95c2ffecc6e2ea10c2dccd7d8d87ce57ef39db4056"}},{"ruleId":"D2","level":"warning","message":{"text":"CogVideoXVideoToVideoPipeline.__call__ (cognitive 44): CogVideoXVideoToVideoPipeline.__call__ has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (26 pts), boolean chains 7, ternaries 4 (7 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c684c6b7550ddea18597db6a752b65abe701ec59ee769d65a1864171840d8c"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionAttendAndExcitePipeline.__call__ (cognitive 44): StableDiffusionAttendAndExcitePipeline.__call__ has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 8, loops 3 (4 pts), ternaries 2 (3 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":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72d7c7ceddc95e6236f325eb704c2efb26ac12724dad48e1f8e0b18814972a3"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2DFRTemporalRefinePipeline.__call__ (cognitive 44): LTX2DFRTemporalRefinePipeline.__call__ has cognitive complexity 44 (threshold 15). Drivers by points: if/else 20 (27 pts), ternaries 8 (9 pts), boolean chains 5, loops 3 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"30abd08b3efc960ee38ce7e48ca921e6985854891ca5d726e0b87e213be97fdf"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualClozeGenerationPipeline.check_inputs (cognitive 44): VisualClozeGenerationPipeline.check_inputs has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 11, loops 2 (5 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":"src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"50707ae3fac11f6033a70158a965e0178f5ae49276e8735cdb4d39d10100e82e"}},{"ruleId":"D2","level":"warning","message":{"text":"remind_link_issue.main (cognitive 44): remind_link_issue.main has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 6, error handling 2 (3 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 17). 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":"utils/remind_link_issue.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"e665a97a63271841cbb1936eb844122d21945782d541271317a542d1c149dcea"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentsManager.get_model_info (cognitive 43): ComponentsManager.get_model_info has cognitive complexity 43 (threshold 15). Drivers by points: if/else 19 (37 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31d8a2d2893146737cbae0ac1d7ada4e7e035e4d49862b55aba29014e565d29"}},{"ruleId":"D2","level":"warning","message":{"text":"CogVideoXPipeline.__call__ (cognitive 43): CogVideoXPipeline.__call__ has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 8, ternaries 3 (6 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a51f782dfde975dd4a0a0e7aac24a6e3d3bb9feb7afd7cca2e64db01e9aa75d"}},{"ruleId":"D2","level":"warning","message":{"text":"AltDiffusionPipeline.__call__ (cognitive 43): AltDiffusionPipeline.__call__ has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 8, ternaries 4 (6 pts), loops 2 (4 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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d8e27538cc0c3c3eb1cb21b91b302cff4b2f7924d7484b7ff39a0f54f4ce1a"}},{"ruleId":"D2","level":"warning","message":{"text":"PIAPipeline.__call__ (cognitive 43): PIAPipeline.__call__ has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 8, loops 3 (7 pts), ternaries 4 (6 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":"src/diffusers/pipelines/deprecated/pia/pipeline_pia.py"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a5ec244416147c92b1c87be547a8a2dcc560cb4e8b45e3644fb98828505591"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionLDM3DPipeline.__call__ (cognitive 43): StableDiffusionLDM3DPipeline.__call__ has cognitive complexity 43 (threshold 15). Drivers by points: if/else 19 (27 pts), boolean chains 9, loops 2 (4 pts), ternaries 2 (3 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":"src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"36fc9d3dc8b77896253923c521da3b7eb567e45d9e2a96cf359eb64ab509f5b9"}},{"ruleId":"D2","level":"warning","message":{"text":"JoyImageEditPipeline.__call__ (cognitive 43): JoyImageEditPipeline.__call__ has cognitive complexity 43 (threshold 15). Drivers by points: if/else 21 (31 pts), boolean chains 5, loops 2 (4 pts), ternaries 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"48745bcb3889396a442237408ffa6b79d2c63c334f51303915424613c6574cef"}},{"ruleId":"D2","level":"warning","message":{"text":"LTXImageToVideoPipeline.__call__ (cognitive 43): LTXImageToVideoPipeline.__call__ has cognitive complexity 43 (threshold 15). Drivers by points: if/else 21 (33 pts), boolean chains 4, 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":"src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"7095ac2a01a6c1945f8bb31d54751a46bec0755ec1a9cdbf73eed02744840988"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline_loading_utils.load_sub_model (cognitive 43): pipeline_loading_utils.load_sub_model has cognitive complexity 43 (threshold 15). Drivers by points: if/else 22 (30 pts), boolean chains 12, 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":"src/diffusers/pipelines/pipeline_loading_utils.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"813b31447c5e24a0dd80c47541fe8eaae9c63f48d92425314ecbe43da3ffab2d"}},{"ruleId":"D2","level":"warning","message":{"text":"PRXPipeline.__call__ (cognitive 43): PRXPipeline.__call__ has cognitive complexity 43 (threshold 15). Drivers by points: if/else 22 (29 pts), boolean chains 10, loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d846443266ed6d0d716137d2035bb31cfad1bb3f380cad82bfc593bf169e2502"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageImg2ImgPipeline.__call__ (cognitive 43): QwenImageImg2ImgPipeline.__call__ has cognitive complexity 43 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 13, loops 2 (4 pts), ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7c963531f690cc6dfa47230a43deb4f8e6c1dc2281203a76e9cad57b7d85dd"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionImg2ImgPipeline.__call__ (cognitive 43): StableDiffusionImg2ImgPipeline.__call__ has cognitive complexity 43 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 7, loops 2 (4 pts), ternaries 3 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2cf0a87ff5aba163e05f0078ee975110f47073380362eefa07334d4b1bb7e4"}},{"ruleId":"D2","level":"warning","message":{"text":"TCDScheduler.set_timesteps (cognitive 43): TCDScheduler.set_timesteps has cognitive complexity 43 (threshold 15). Drivers by points: if/else 19 (37 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_tcd.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"96903e79157c569aecb1d56bfece8e28025d9e741e31e171fd4af2d209e23c42"}},{"ruleId":"D2","level":"warning","message":{"text":"check_ai.main (cognitive 43): check_ai.main has cognitive complexity 43 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 6 (14 pts), boolean chains 3 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_ai.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d471f03e99a338a19c31842643cba161d22276c78df1375eb61d60f718a46a2"}},{"ruleId":"D2","level":"warning","message":{"text":"model_loading_utils.load_model_dict_into_meta (cognitive 42): model_loading_utils.load_model_dict_into_meta has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 6, ternaries 1 (4 pts), loops 2 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/model_loading_utils.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"15afd1a1dd9e053e8b264001b1dfa5762f671c3858b8135eabc0b998f8fed54c"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioLDM2UNet2DConditionModel.__init__ (cognitive 42): AudioLDM2UNet2DConditionModel.__init__ has cognitive complexity 42 (threshold 15). Drivers by points: if/else 29 (32 pts), boolean chains 8, loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10472233f179fb572f48a57a103454d126eec9d8fbe5fbf8e311be3fe01f4b8"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioLDM2UNet2DConditionModel.forward (cognitive 42): AudioLDM2UNet2DConditionModel.forward has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (28 pts), ternaries 3 (7 pts), boolean chains 5, loops 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":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"b098cf4de237e644f7a2c7f391eb884063a468852b174dd450201c65a1513918"}},{"ruleId":"D2","level":"warning","message":{"text":"CogVideoXFunControlPipeline.__call__ (cognitive 42): CogVideoXFunControlPipeline.__call__ has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 8, ternaries 4 (6 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"901423a70c9731d7608da3710b1a17fb9f5559a3f9150a16afc9ac2e250ff7f9"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionDiffEditPipeline.invert (cognitive 42): StableDiffusionDiffEditPipeline.invert has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 3 (9 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f755248d61aa47e83a3a01596c74076ab86c4ae797c715b66d5dbc3286e4f0"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky5I2IPipeline.__call__ (cognitive 42): Kandinsky5I2IPipeline.__call__ has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 6, ternaries 3 (6 pts), loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"384cf04fb7502b98fbb0ee047dd3247dc549b13a5e59fdead2446d094bcfc871"}},{"ruleId":"D2","level":"warning","message":{"text":"MochiPipeline.__call__ (cognitive 42): MochiPipeline.__call__ has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 9, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/mochi/pipeline_mochi.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"34eb8ebb22b124551564bbcee47d6011aaf9d8b2336d664a2800bdd0eeb3dda7"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImagePipeline.__call__ (cognitive 42): QwenImagePipeline.__call__ has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 13, loops 2 (4 pts), ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"19635ad9fbc6a011a4ebb45eb610241b36ae79d9d256cda85287cca133b6d0b2"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaControlNetPipeline.__call__ (cognitive 42): SanaControlNetPipeline.__call__ has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 4, loops 2 (4 pts), ternaries 2 (3 pts), error handling 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_controlnet.py"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"43eaf879c59f63a591d1ca7207cfe9c1233b40a80148d144693e66d4b432c00e"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaImageToVideoPipeline.__call__ (cognitive 42): SanaImageToVideoPipeline.__call__ has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 4, loops 2 (4 pts), ternaries 2 (3 pts), error handling 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3ba9db63f95393452590f13d3ae21d000497446ad640f2faff96e6c9b48327"}},{"ruleId":"D2","level":"warning","message":{"text":"StableCascadeDecoderPipeline.__call__ (cognitive 42): StableCascadeDecoderPipeline.__call__ has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (28 pts), ternaries 4 (6 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4b0a10a9a5e21e2149b97f67d2cb7837eeca46759c749abeec05ca83257be5"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionAdapterPipeline.__call__ (cognitive 42): StableDiffusionAdapterPipeline.__call__ has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19 (24 pts), loops 6 (11 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"61671398099ad4661b6464026ce42478db34a39e45898760bcfe4acba42632f2"}},{"ruleId":"D2","level":"warning","message":{"text":"WanPipeline.__call__ (cognitive 42): WanPipeline.__call__ has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 7, loops 2 (4 pts), ternaries 3 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a80f302375fe7be583faddee84ee9a9e39c832b365ee325823f3f9cef09cec5"}},{"ruleId":"D2","level":"warning","message":{"text":"Attention.__init__ (cognitive 41): Attention.__init__ has cognitive complexity 41 (threshold 15). Drivers by points: if/else 25 (28 pts), ternaries 8 (9 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d982c104e52283ed26c66434dcef3d3f85ca8a816ef930b3b33b9d756d9f42ec"}},{"ruleId":"D2","level":"warning","message":{"text":"StableCascadeUNet._down_encode (cognitive 41): StableCascadeUNet._down_encode has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 6 (18 pts), boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d87a7a7005e3878785858ab2e9556fb310dc18731dd5515502ce7c4d649cad"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffPipeline.encode_prompt (cognitive 41): AnimateDiffPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d29d42397ea363d4a9740ac76a1f7a1ac047d10283d87d7efc988e846756f1a"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffControlNetPipeline.encode_prompt (cognitive 41): AnimateDiffControlNetPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"67551cabb33b5cbf2c34a258ce94d804f967c82f18e5274799189c29995b55e0"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffSparseControlNetPipeline.encode_prompt (cognitive 41): AnimateDiffSparseControlNetPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"1912b766a0b2367c2e97bb6d4c6a9c5fc62129eedf576ff46bac18781958aca4"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffVideoToVideoPipeline.encode_prompt (cognitive 41): AnimateDiffVideoToVideoPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2344ec41aa68a07b38d1c5575b80d69a776aae272f91a85e2d29d1893bfa1c7c"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffVideoToVideoControlNetPipeline.encode_prompt (cognitive 41): AnimateDiffVideoToVideoControlNetPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d0c723ad8508509e6cdd75846713b8a1e1f977ceb9cfeca13204b4a5ec3742"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsisIDPipeline.__call__ (cognitive 41): ConsisIDPipeline.__call__ has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (21 pts), ternaries 5 (9 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/consisid/pipeline_consisid.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"4627e4c7840e3630d7c40115e39e12094f91bf5d379608ad54924e70475e75ad"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPipeline.encode_prompt (cognitive 41): StableDiffusionControlNetPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b44a95b196c728198f1840092b77938fbfd88958441f70f5c155329e305bc0b"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetImg2ImgPipeline.encode_prompt (cognitive 41): StableDiffusionControlNetImg2ImgPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"7633abb46d1defa65f9b842344acdd3b55bb262c24070439ee329b8e4c642d48"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetInpaintPipeline.encode_prompt (cognitive 41): StableDiffusionControlNetInpaintPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc3baec037e76d90d7b966830dca6228d562f99edbd46631dcaf1841f4eb895"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanDiTControlNetPipeline.__call__ (cognitive 41): HunyuanDiTControlNetPipeline.__call__ has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 9, loops 3 (6 pts), ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"9949e22a2059617121afe2cb5585eae7f5530853c39314facd013c7a30c4284a"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3ControlNetPipeline.encode_prompt (cognitive 41): StableDiffusion3ControlNetPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 13, ternaries 6 (11 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb6e116049dad144110976bef9ba790a53deb50e4bf2be872b3dccd7fb718ea"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3ControlNetInpaintingPipeline.encode_prompt (cognitive 41): StableDiffusion3ControlNetInpaintingPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 13, ternaries 6 (11 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb392ce12118b34c4c2ab1475f323a6ca8df6ba1240bb4926907c3ac71cc220"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetXSPipeline.encode_prompt (cognitive 41): StableDiffusionControlNetXSPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"4022c7725bb22941679d6315a0aaa5542e64a2f032e91edf1cdc865b2ab7bfdb"}},{"ruleId":"D2","level":"warning","message":{"text":"PIAPipeline.encode_prompt (cognitive 41): PIAPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/pia/pipeline_pia.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"798cb283010846df544d3032cd1a23e6296b938ecbf220b4a6e029ef156e5bec"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionAttendAndExcitePipeline.encode_prompt (cognitive 41): StableDiffusionAttendAndExcitePipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0776db282631625e5eee0307a7e9dd069dbcaf490a08b27cb572ab9d87dd2c"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionDiffEditPipeline.encode_prompt (cognitive 41): StableDiffusionDiffEditPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc57b94eed0e35e2cc50c965d3675ddc16f6359fa63451a0900feb45c54fdf5"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionGLIGENPipeline.encode_prompt (cognitive 41): StableDiffusionGLIGENPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ac6ab7329de4482e3335a6635723244f6cb4a92615813247bb27182bc54a63"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionGLIGENPipeline.__call__ (cognitive 41): StableDiffusionGLIGENPipeline.__call__ has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (31 pts), boolean chains 7, ternaries 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"1005b9af97741d284816d1e85c120d7428e5dda80df9ba172f1d7c79efaaf0ef"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionGLIGENTextImagePipeline.encode_prompt (cognitive 41): StableDiffusionGLIGENTextImagePipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a9c46a183e868e4e395f457f2efd2c187477446e1f20ce71762d855c1747bc"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionLDM3DPipeline.encode_prompt (cognitive 41): StableDiffusionLDM3DPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b87b67ffa8e5019636ed3dd055eb35116402977d19a66d15472d08a42ebe7f4"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPanoramaPipeline.encode_prompt (cognitive 41): StableDiffusionPanoramaPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62cde2d3dde2c1ebb3ee782a92ae35d1e0014e39648ce73aaf8cebb94d2f9df"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionSAGPipeline.encode_prompt (cognitive 41): StableDiffusionSAGPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8d88a73896ef4eed5242d659ea3369ffa2b65f376a7fd8dca1baa40bc81151"}},{"ruleId":"D2","level":"warning","message":{"text":"CycleDiffusionPipeline.encode_prompt (cognitive 41): CycleDiffusionPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7668015d7eec00aaf6a8c539c87db722aeac6a8ff2f116b1ee3440c737e301f"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionInpaintPipelineLegacy.encode_prompt (cognitive 41): StableDiffusionInpaintPipelineLegacy.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aee6f46d7a6591531c9b94cb4034ba435200b7ccc22baa5ab34f2f590a0a1f3"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionModelEditingPipeline.encode_prompt (cognitive 41): StableDiffusionModelEditingPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"88eccfa727f2fef8a06d60f3989618f56d793528593b8c23d7d694cda00ee711"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionParadigmsPipeline.encode_prompt (cognitive 41): StableDiffusionParadigmsPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf2c452e3ba5af4c8dafa43d7a2231c788a967ca0fd9dcf11002df063778b2a"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPix2PixZeroPipeline.encode_prompt (cognitive 41): StableDiffusionPix2PixZeroPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddaa915bb7c5abb0d62263602d4106d6e00dc7cdae085c42059e4d4e134dade"}},{"ruleId":"D2","level":"warning","message":{"text":"TextToVideoSDPipeline.encode_prompt (cognitive 41): TextToVideoSDPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"73debd9dbb29c80123b5bca1cc815246fea1ebbb7942ca7527f312f8de41a227"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoToVideoSDPipeline.encode_prompt (cognitive 41): VideoToVideoSDPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c7a9c060fcf61d20c0ee2d954965cfd909fb16b72fb31310df8e64906cb249"}},{"ruleId":"D2","level":"warning","message":{"text":"TextToVideoZeroPipeline.encode_prompt (cognitive 41): TextToVideoZeroPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5cb477df028b00028af05e10d0ccf5243270f5fd3aebff319d48bab741c198"}},{"ruleId":"D2","level":"warning","message":{"text":"UniDiffuserPipeline.encode_prompt (cognitive 41): UniDiffuserPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bfe80524484f30fadd7faa5b229d77324a7ff600225e1d1edc621dda4ca4c8"}},{"ruleId":"D2","level":"warning","message":{"text":"UniDiffuserPipeline.check_inputs (cognitive 41): UniDiffuserPipeline.check_inputs has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 14 (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":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"14284d4035080b183e7754ff91513075a61c8e4f99cc603af51a0c8dfa6eab1c"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlInpaintPipeline.__call__ (cognitive 41): FluxControlInpaintPipeline.__call__ has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 6, loops 2 (4 pts), ternaries 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":"src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df22c6788e8b476e98d46e4554a460412966e34c1e1e3cf6cfa436014b36345"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanVideoImageToVideoPipeline.__call__ (cognitive 41): HunyuanVideoImageToVideoPipeline.__call__ has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 7, loops 2 (4 pts), ternaries 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ce2d2ef3c0915b3a599ff061e0996eea9d27341b65c546de48962482e5a542"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky3Pipeline.__call__ (cognitive 41): Kandinsky3Pipeline.__call__ has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 7, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c9d341d5e82bb7eb92333327cddfe1419f8b11fe362ecef4a849d310550fe0"}},{"ruleId":"D2","level":"warning","message":{"text":"LatentConsistencyModelImg2ImgPipeline.encode_prompt (cognitive 41): LatentConsistencyModelImg2ImgPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67cf16bde94cd892eb20a620502d61edaa41c6d9f7d2eb1e4cca037d0d55fd8"}},{"ruleId":"D2","level":"warning","message":{"text":"LatentConsistencyModelPipeline.encode_prompt (cognitive 41): LatentConsistencyModelPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e8ab0a24249678502dd518a9a346b57a4f69992d63ab9bd970098de64c4dc0"}},{"ruleId":"D2","level":"warning","message":{"text":"LTXPipeline.__call__ (cognitive 41): LTXPipeline.__call__ has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (31 pts), boolean chains 4, 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":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdc327d53b4c0ef61a1b09fa04eb37140e036b6cc753550a11f220848cc3eb7"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPAGPipeline.encode_prompt (cognitive 41): StableDiffusionControlNetPAGPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"707bc8b8ab446a3e25c59b7d942c9fe78269f11b6e0b0d3f9a9b2af66bbf553b"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPAGInpaintPipeline.encode_prompt (cognitive 41): StableDiffusionControlNetPAGInpaintPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"5411f763b67e97de28d23e7566215b03cc075b235a2937dc9b2985a5dd045a5f"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGPipeline.encode_prompt (cognitive 41): StableDiffusionPAGPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"73037bc27dc088a30c625f7ef4148676d5298f77906ec62cc0451f428d834d72"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3PAGPipeline.encode_prompt (cognitive 41): StableDiffusion3PAGPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 13, ternaries 6 (11 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"80249008784b403fd422b337866191f268de63982b97f9433733d3496575621e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3PAGImg2ImgPipeline.encode_prompt (cognitive 41): StableDiffusion3PAGImg2ImgPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 13, ternaries 6 (11 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ead039b53abda91fa2b102a541ae08bb91cff6709081f8fe2cf3a639d23269f"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffPAGPipeline.encode_prompt (cognitive 41): AnimateDiffPAGPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba1ada1366efedbaf68c60a4dd9d027d8104d772738758968dd7fa2f1c9b479"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGImg2ImgPipeline.encode_prompt (cognitive 41): StableDiffusionPAGImg2ImgPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"988448694c1bbd3faa82e50da49c0f09a719966935fb3b26b8e8b36d54b3b2bf"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGInpaintPipeline.encode_prompt (cognitive 41): StableDiffusionPAGInpaintPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"b431ff8528f810f355119d0567318dbfba2d800d2521a36a427a7469109a490d"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaPipeline.__call__ (cognitive 41): SanaPipeline.__call__ has cognitive complexity 41 (threshold 15). Drivers by points: if/else 20 (28 pts), boolean chains 4, loops 2 (4 pts), ternaries 2 (3 pts), error handling 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"b560f1ce8356a0350b9a7646054a5bf6b787c8b53d9e70e7f94e4c9b9f779cd8"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaVideoPipeline.__call__ (cognitive 41): SanaVideoPipeline.__call__ has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 4, loops 2 (4 pts), ternaries 2 (3 pts), error handling 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video.py"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"418a4da793af60cd07cfa7fac2f441eab25c27c9c75138244a5484e581daf6e6"}},{"ruleId":"D2","level":"warning","message":{"text":"StableCascadePriorPipeline.__call__ (cognitive 41): StableCascadePriorPipeline.__call__ has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (26 pts), ternaries 5 (8 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd701505a11900d32b13f520befea1a126a1ffe2d3582d224fba014ab4ddeb47"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPipeline.encode_prompt (cognitive 41): StableDiffusionPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"160517db8618b4e61982bb41bac3ad0a5200090097152963815335faa073b7bc"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionDepth2ImgPipeline.encode_prompt (cognitive 41): StableDiffusionDepth2ImgPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"651b258f4315b17e247c5fd8aaf9b03b86be9cf91204d50debdacdacef87c9cf"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionImg2ImgPipeline.encode_prompt (cognitive 41): StableDiffusionImg2ImgPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"906d870695e01b12246a870af122b22023723a7b99a5baf95ca8fe7066dfceb1"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionInpaintPipeline.encode_prompt (cognitive 41): StableDiffusionInpaintPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34f6013fcd23a60e0682b2ce14fcfce8fefbac861797d682b69fd598734988e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionUpscalePipeline.encode_prompt (cognitive 41): StableDiffusionUpscalePipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"79585eeb38785a81f9baf2e215cd3b0dfca8b7ff0e0fe7c954587ba0badbfac2"}},{"ruleId":"D2","level":"warning","message":{"text":"StableUnCLIPPipeline.encode_prompt (cognitive 41): StableUnCLIPPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef833ccfa4ac814b3f9dce5bb1788a2f0bc4735547b58fbc31c1d88e129c9281"}},{"ruleId":"D2","level":"warning","message":{"text":"StableUnCLIPImg2ImgPipeline.encode_prompt (cognitive 41): StableUnCLIPImg2ImgPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd88e4aef505aa3ab14b42b32b69e176e753721ac5febc9bb4f20924300c4651"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3Pipeline.encode_prompt (cognitive 41): StableDiffusion3Pipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 13, ternaries 6 (11 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bea587a1a0b8531abdfb565f94b847174df570a69c4ce9a4a4ce2c575775d2c"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3Img2ImgPipeline.encode_prompt (cognitive 41): StableDiffusion3Img2ImgPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 13, ternaries 6 (11 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8c62cdb196e84aa5bceab4adf7ce562bd5d0ddf858504a87951429ba83a429"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3InpaintPipeline.encode_prompt (cognitive 41): StableDiffusion3InpaintPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 13, ternaries 6 (11 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf23cfb57ffeec57353cf904f68dbf5cb163c866cd52844a99bffb9763aef7f6"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionAdapterPipeline.encode_prompt (cognitive 41): StableDiffusionAdapterPipeline.encode_prompt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 9 (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":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8cd73e4329a9267f8c53179fc376eea44bd2c5d5fd63888fbe0a41a49d0769"}},{"ruleId":"D2","level":"warning","message":{"text":"ModuleGroup._offload_to_memory (cognitive 40): ModuleGroup._offload_to_memory has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 7 (15 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":"src/diffusers/hooks/group_offloading.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"39330a310f28eb8c48a353daa88368db234db5d78169303160c65cdc8ce91f11"}},{"ruleId":"D2","level":"warning","message":{"text":"ModularIPAdapterMixin.load_ip_adapter (cognitive 40): ModularIPAdapterMixin.load_ip_adapter has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (30 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"8834530ed00b1c25a3eb69e1f470f7e4686ff10ad9be0d794b38f89b3b33aef0"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentsManager.search_components (cognitive 40): ComponentsManager.search_components has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (31 pts), ternaries 3 (6 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"af47dcd281ab34eb86e1b7c0a711f1bbfe72fe96be673d7026934b0a875a012d"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionGLIGENTextImagePipeline.__call__ (cognitive 40): StableDiffusionGLIGENTextImagePipeline.__call__ has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 7, ternaries 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fcfad85e63c159de262b92410fa4d8ffff1d129458a77be7ff5e623bf1996ff"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyAnimatePipeline.__call__ (cognitive 40): EasyAnimatePipeline.__call__ has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 5, loops 2 (4 pts), ternaries 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":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea872e90c80fec60c1fd2fc3ab52578a3ba9bd583b2c04b37f165200e5703ee3"}},{"ruleId":"D2","level":"warning","message":{"text":"Flux2KleinInpaintPipeline.check_inputs (cognitive 40): Flux2KleinInpaintPipeline.check_inputs has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (30 pts), boolean chains 10 (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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77ceaa9aa030ba46b1d855c5ad464d03e3f65d097edf41d6096469cd9459e84"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanImageRefinerPipeline.__call__ (cognitive 40): HunyuanImageRefinerPipeline.__call__ has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 8, loops 3 (6 pts), ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"37eddd33be8f9ae1baa995388b8595e746015c5ecf886fe9f1db901afa648d53"}},{"ruleId":"D2","level":"warning","message":{"text":"KandinskyV22InpaintPipeline.__call__ (cognitive 40): KandinskyV22InpaintPipeline.__call__ has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 4, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"257ed164bd956ebcd261748de54060e87ff14011106252bcdbf45f53f4fa8669"}},{"ruleId":"D2","level":"warning","message":{"text":"NunchakuLiteQuantizationConfig.post_init (cognitive 40): NunchakuLiteQuantizationConfig.post_init has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (33 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/quantization_config.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"7578d32e02d15d5f1816341496c98fec197fb877c61afd2c8202966321e64a03"}},{"ruleId":"D2","level":"warning","message":{"text":"layer_skip._apply_layer_skip_hook (cognitive 39): layer_skip._apply_layer_skip_hook has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 4 (9 pts), boolean chains 7 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/layer_skip.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"44797e65c23e73c4094b080b95d504d2fbbfc78842d70de0401fc96fbdc25156"}},{"ruleId":"D2","level":"warning","message":{"text":"ModularPipeline.__init__ (cognitive 39): ModularPipeline.__init__ has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 4 (6 pts), boolean chains 4, ternaries 1 (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":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"215c56d693fe1ece5f703137905c3a6b204f43eee2f1a156ad2f791b57867506"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffSparseControlNetPipeline.check_inputs (cognitive 39): AnimateDiffSparseControlNetPipeline.check_inputs has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 14, loops 1 (3 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36d56d882eb58ac3adb3e7a3afddf2ea5120d5ae73c8bbcb26d66a839ccecea"}},{"ruleId":"D2","level":"warning","message":{"text":"CogView3PlusPipeline.__call__ (cognitive 39): CogView3PlusPipeline.__call__ has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 7, ternaries 2 (5 pts), loops 2 (4 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":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad358ac22c1072927ed0179607f3a16683edc1b6c5186bdb894b48094d3c72b"}},{"ruleId":"D2","level":"warning","message":{"text":"AltDiffusionPipeline.encode_prompt (cognitive 39): AltDiffusionPipeline.encode_prompt has cognitive complexity 39 (threshold 15). Drivers by points: if/else 22 (30 pts), boolean chains 9 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53955fc1437968fe66709709240ba359047a8559210fec55a5f75708817d7b6"}},{"ruleId":"D2","level":"warning","message":{"text":"AltDiffusionImg2ImgPipeline.encode_prompt (cognitive 39): AltDiffusionImg2ImgPipeline.encode_prompt has cognitive complexity 39 (threshold 15). Drivers by points: if/else 22 (30 pts), boolean chains 9 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"beec6a546a1ef877ab3751cfde11ed549bf194966766e74945aba75e54a3d80f"}},{"ruleId":"D2","level":"warning","message":{"text":"UnCLIPPipeline.__call__ (cognitive 39): UnCLIPPipeline.__call__ has cognitive complexity 39 (threshold 15). Drivers by points: if/else 22 (31 pts), ternaries 2 (4 pts), loops 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f367334126f32a267b508fa7449d6ea8f6f6aee668806349016c031786c4254b"}},{"ruleId":"D2","level":"warning","message":{"text":"ErnieImagePipeline.__call__ (cognitive 39): ErnieImagePipeline.__call__ has cognitive complexity 39 (threshold 15). Drivers by points: if/else 26 (31 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bb9fd3a32998546e57d2152cbe4b580751e7038dddd34196ad75c07ffe2fa6"}},{"ruleId":"D2","level":"warning","message":{"text":"Krea2Pipeline.__call__ (cognitive 39): Krea2Pipeline.__call__ has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 6, loops 2 (4 pts), ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6bea860072f7c90d15922a94a3636c99b7652dc6708e6519e6cfc91720784f"}},{"ruleId":"D2","level":"warning","message":{"text":"LucyEditPipeline.__call__ (cognitive 39): LucyEditPipeline.__call__ has cognitive complexity 39 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 6, loops 2 (4 pts), ternaries 2 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"af73027a7e513ae563d85ab150604ad9ddcf4993e27c581ede0b726d3e2ca638"}},{"ruleId":"D2","level":"warning","message":{"text":"MotifVideoPipeline.__call__ (cognitive 39): MotifVideoPipeline.__call__ has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (24 pts), loops 4 (9 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":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5d572ce1c095317974829c0a9e17ca3e7eb07b973deb074c61ab467bc7aed2"}},{"ruleId":"D2","level":"warning","message":{"text":"NucleusMoEImagePipeline.__call__ (cognitive 39): NucleusMoEImagePipeline.__call__ has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 11, loops 2 (4 pts), ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3b1bd80326f7ef118f1cf3d02ada884a9205065c2335a5e101cb2591f1add5"}},{"ruleId":"D2","level":"warning","message":{"text":"log_reports.main (cognitive 39): log_reports.main has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 4 (9 pts), boolean chains 1, ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/log_reports.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ddd8b1b999332831e9c1f93e2ad221eed12b5e622bf6331bf5dbcbb8870a08"}},{"ruleId":"D2","level":"warning","message":{"text":"UNetMotionModel.forward (cognitive 38): UNetMotionModel.forward has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 4, loops 3 (4 pts), ternaries 2 (3 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":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"082064c166dd60370ef5bdbc96a2a7cf48ff7747a6dba4b8473d91fe2f89d3ae"}},{"ruleId":"D2","level":"warning","message":{"text":"AnyFlowPipeline.__call__ (cognitive 38): AnyFlowPipeline.__call__ has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (28 pts), loops 2 (4 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e64fbcd26cc018f2b79e5bf7c54ae74c60b5a55dc9e57bff5d8e7bf77c9f284"}},{"ruleId":"D2","level":"warning","message":{"text":"IFSuperResolutionPipeline.__call__ (cognitive 38): IFSuperResolutionPipeline.__call__ has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 9, ternaries 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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceff7c4550fe4f74a3aa3e3a5214eafc29087cfe11b1b67a6a3f3e5679f7a75b"}},{"ruleId":"D2","level":"warning","message":{"text":"AltDiffusionImg2ImgPipeline.__call__ (cognitive 38): AltDiffusionImg2ImgPipeline.__call__ has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (23 pts), ternaries 4 (6 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b56c97d04421c329ed406f759f1751fe17bc1739c896613edb1400fb674974"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky3Img2ImgPipeline.__call__ (cognitive 38): Kandinsky3Img2ImgPipeline.__call__ has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 7, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbd225c58da7bf1a07e3021343b6c814bae18123bf8a2764a313586c5ac1b8f"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky5T2VPipeline.__call__ (cognitive 38): Kandinsky5T2VPipeline.__call__ has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 5, loops 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"4787f8161ab31ce1c97bef92dc6d7a3d9a30ad06cb7a3d8f64adcd97950d3140"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky5I2VPipeline.__call__ (cognitive 38): Kandinsky5I2VPipeline.__call__ has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 5, loops 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec50f8774c65d538699e3c4194ede65a540f57a897da4f8cc3bd2927a94684bc"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky5T2IPipeline.__call__ (cognitive 38): Kandinsky5T2IPipeline.__call__ has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 5, loops 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"50cd7e4c016511d3269380c5c8e3b8bc30c4b7d8fc588942ed672682b05fb760"}},{"ruleId":"D2","level":"warning","message":{"text":"LEditsPPPipelineStableDiffusion.encode_prompt (cognitive 38): LEditsPPPipelineStableDiffusion.encode_prompt has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (33 pts), boolean chains 5 (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":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93c277e1629ae0233608e0d4bcc2eb21d9c9dff81570966fe22409781e610c2"}},{"ruleId":"D2","level":"warning","message":{"text":"LongCatImageEditPipeline.__call__ (cognitive 38): LongCatImageEditPipeline.__call__ has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 6, ternaries 3, 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":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb3c1aafbbcde08df58311b1b5d19cffbcdc8da317127c20316890d13a45881"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaPAGPipeline.__call__ (cognitive 38): SanaPAGPipeline.__call__ has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 4, loops 2 (4 pts), error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47c33240aeb6cf278e9247f60729f90078fb2ab6a670b12e5ff8a7dd6bb24a3"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGInpaintPipeline.check_inputs (cognitive 38): StableDiffusionXLPAGInpaintPipeline.check_inputs has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 16 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d2cc748887c7f024b6799f29547af4351104e5ec366c3655a22c07a1497513"}},{"ruleId":"D2","level":"warning","message":{"text":"PRXPixelPipeline.__call__ (cognitive 38): PRXPixelPipeline.__call__ has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (26 pts), boolean chains 8, loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx_pixel.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64a9956feed246d425bb50c0f452aa183b86dd9405d35568af3cb2b24c8dca8"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLInpaintPipeline.check_inputs (cognitive 38): StableDiffusionXLInpaintPipeline.check_inputs has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 16 (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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4da2b19b07785265f9d6f8f2dae5114b50de9fb623f9be9be7e6db8be6844c"}},{"ruleId":"D2","level":"warning","message":{"text":"WanAnimatePipeline.check_inputs (cognitive 38): WanAnimatePipeline.check_inputs has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 22, if/else 15 (16 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_animate.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"8865b5f511a05aee9dfb884a88d270b72084fe4ae2311bd7b770969e1056dfb6"}},{"ruleId":"D2","level":"warning","message":{"text":"modular_auto_docstring.find_auto_docstring_classes (cognitive 38): modular_auto_docstring.find_auto_docstring_classes has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (27 pts), boolean chains 5, loops 3 (5 pts), error handling 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/modular_auto_docstring.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b442db790a656530d853d073800accb927dc12e1ae61daad689497a8ac6c58b4"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_lora_to_diffusers (cognitive 37): lora_conversion_utils._convert_non_diffusers_lora_to_diffusers has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (22 pts), ternaries 3 (9 pts), boolean chains 5, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc45871ed6bdf6f0f20172ec01a4e088ed2f5e9d9a1559be934fbdfe2fccb2cb"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file_utils.create_unet_diffusers_config_from_ldm (cognitive 37): single_file_utils.create_unet_diffusers_config_from_ldm has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (23 pts), ternaries 6 (10 pts), boolean chains 2, loops 2 (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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fede3520d57bda7abba450dfe5d46d73b0a5287cfa2d30efca1b5932d9d420e"}},{"ruleId":"D2","level":"warning","message":{"text":"UNet2DConditionLoadersMixin._convert_ip_adapter_attn_to_diffusers (cognitive 37): UNet2DConditionLoadersMixin._convert_ip_adapter_attn_to_diffusers has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 3 (7 pts), ternaries 3 (7 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/unet.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e31d2d0515067f27b94357cdfd293ef9af29e7c1d02380b890faf106c64b58"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlNetModel.forward (cognitive 37): ControlNetModel.forward has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 3, ternaries 2 (3 pts), 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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"8560b46306c40ae1078d87b72e3b2ce8fb5f6eae59eafa0c82abb8dc59261867"}},{"ruleId":"D2","level":"warning","message":{"text":"Flux2Transformer2DModel.forward (cognitive 37): Flux2Transformer2DModel.forward has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 10, loops 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85f1108d706368c8c7276043722dd3d3312fc29197e96575111e269887ac97f"}},{"ruleId":"D2","level":"warning","message":{"text":"IFPipeline.__call__ (cognitive 37): IFPipeline.__call__ has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 9, ternaries 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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"aceb2316e31957c8b8b5a65aaf9d1d9ed5dafe793b4384d7be435ca1f8b1cdb9"}},{"ruleId":"D2","level":"warning","message":{"text":"IFInpaintingSuperResolutionPipeline.check_inputs (cognitive 37): IFInpaintingSuperResolutionPipeline.check_inputs has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23 (24 pts), boolean chains 13 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f95ab5aa3b71881c512fd66ab3f1f390cb0cb5d068baba33f95180c75c53771"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionDiffEditPipeline.__call__ (cognitive 37): StableDiffusionDiffEditPipeline.__call__ has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 8, ternaries 2 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce1329253cde150bc30018c71a17797ce06dd2960569a066ac99750dfb8f484"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxFillPipeline.__call__ (cognitive 37): FluxFillPipeline.__call__ has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 6, loops 2 (4 pts), ternaries 2 (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":"src/diffusers/pipelines/flux/pipeline_flux_fill.py"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9520fe47ad9912ca4b30ed27d3fe1a5fa5dfb2449d3fc3e319d281d3d85acae"}},{"ruleId":"D2","level":"warning","message":{"text":"HiDreamImagePipeline.check_inputs (cognitive 37): HiDreamImagePipeline.check_inputs has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 23, if/else 10 (14 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4a4fbde26b5e5d88f996ba5432ea86a4c17ac91ae31b2d1f86c192891dc8a0"}},{"ruleId":"D2","level":"warning","message":{"text":"HiDreamImagePipeline.__call__ (cognitive 37): HiDreamImagePipeline.__call__ has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 6, loops 2 (4 pts), ternaries 2 (3 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":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a465136b9b58d5e9deadc71fc01eeba2e72bdea8d7c2485ab8a37a31d65c2d"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanDiTPipeline.__call__ (cognitive 37): HunyuanDiTPipeline.__call__ has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 9, loops 2 (4 pts), ternaries 1 (2 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":"src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"1763d189ec436fc0ff0f3fa059145183d3b0003d14d36dfda6ef8259fbbeded4"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky6TI2VAPipeline.__call__ (cognitive 37): Kandinsky6TI2VAPipeline.__call__ has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (29 pts), loops 2 (4 pts), ternaries 3, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"804132202bc060dd570e107293be3e23338ec0f1073886f851a6ba9a307981a9"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2DFRPipeline.denoise (cognitive 37): LTX2DFRPipeline.denoise has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 3 (7 pts), ternaries 1 (5 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81f025aa191817fbc609a775fd150c18e808c8cd5c63a0a45b5fc1eba910498"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2DFRTemporalRefinePipeline.denoise (cognitive 37): LTX2DFRTemporalRefinePipeline.denoise has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 3 (7 pts), ternaries 1 (5 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"60728deadb7ef4cea75429df9b205e0c938422274993fb746d94663122722502"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanDiTPAGPipeline.__call__ (cognitive 37): HunyuanDiTPAGPipeline.__call__ has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 9, loops 2 (4 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":"src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"760570d407178e7501cf6387a824892d1ba5c685fe660ee7bb7228cd9b9da742"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3PAGImg2ImgPipeline.__call__ (cognitive 37): StableDiffusion3PAGImg2ImgPipeline.__call__ has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 6, loops 2 (4 pts), ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"5121f7f143a794e6a4c2b2a3e78e470f9c94625d78d78e4fbb64fd7b65638292"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionInstructPix2PixPipeline.__call__ (cognitive 37): StableDiffusionInstructPix2PixPipeline.__call__ has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 6, loops 2 (4 pts), ternaries 2 (3 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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f98366aca782efce73537063cb7096f196dd839dc0de6231f03d47c73f7cfe"}},{"ruleId":"D2","level":"warning","message":{"text":"WanVACEPipeline.check_inputs (cognitive 37): WanVACEPipeline.check_inputs has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 15 (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":"src/diffusers/pipelines/wan/pipeline_wan_vace.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7a3d3e9940f7df3f09c7ddff505def7517517473837cd54678b289215bd7bd"}},{"ruleId":"D2","level":"warning","message":{"text":"tensor_parallel._resolve_tp_plan (cognitive 36): tensor_parallel._resolve_tp_plan has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (27 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/tensor_parallel.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae8d8a0c5c6c2623983f23e17b093148cdbe347b6583568feb04cc20c7fb6a6"}},{"ruleId":"D2","level":"warning","message":{"text":"LoraBaseMixin.set_lora_device (cognitive 36): LoraBaseMixin.set_lora_device has cognitive complexity 36 (threshold 15). Drivers by points: if/else 6 (26 pts), loops 3 (9 pts), boolean chains 1 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee08a4b261f9c48c9c63680506010beb6371153275c4eeea3ca7f2cd6151432f"}},{"ruleId":"D2","level":"warning","message":{"text":"Attention.set_use_memory_efficient_attention_xformers (cognitive 36): Attention.set_use_memory_efficient_attention_xformers has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 6, ternaries 2 (4 pts), error handling 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5441c124abeb1dfd1464cb2e76d2baeb1c964b5104760b474b617f1612a8e30"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelMixin.enable_parallelism (cognitive 36): ModelMixin.enable_parallelism has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (26 pts), loops 2 (4 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1a8da11ab00350f3cd4ee5622db279dd9f0cfb1465f67f913774a06cbc7d73"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos3LoopDenoiser.__call__ (cognitive 36): Cosmos3LoopDenoiser.__call__ has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 10 (18 pts), if/else 8 (15 pts), loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/denoise.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60deb7b6d636d354488e61530ad02df6c21c2935dd18202a70e0d522fb8e48f"}},{"ruleId":"D2","level":"warning","message":{"text":"IFInpaintingPipeline.__call__ (cognitive 36): IFInpaintingPipeline.__call__ has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 7, ternaries 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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"3694128f6ae7c07703c9680fd4f47056ccc00a48a01d62d6ab6faf5acb3e3364"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlImg2ImgPipeline.__call__ (cognitive 36): FluxControlImg2ImgPipeline.__call__ has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 6, loops 2 (4 pts), ternaries 2 (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":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"848a5d11eb094378d0b09873eb7cae5c5245ea5780f320f6b4136aa1ffebf1b9"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxInpaintPipeline.check_inputs (cognitive 36): FluxInpaintPipeline.check_inputs has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 16 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_inpaint.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"409ae20b75b74efe4b4070f6db98c8588c4c35e1c5c415dc9add458e8d019367"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxKontextInpaintPipeline.check_inputs (cognitive 36): FluxKontextInpaintPipeline.check_inputs has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 16 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"765480d975507ebc6eccc74d992f2a386e9d2994d1c02542cc32a754b7972004"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline_kandinsky_inpaint.prepare_mask (cognitive 36): pipeline_kandinsky_inpaint.prepare_mask has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (28 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c44bf539724e03124f184bb30cb6dfa67dffa50ade2f6d4e8c7a0b57764c9f"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline_kandinsky2_2_inpainting.prepare_mask (cognitive 36): pipeline_kandinsky2_2_inpainting.prepare_mask has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (28 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb381e48bc351fb1cd5edb038e273b6799accb6bd7ca9ce03876d341831d95f7"}},{"ruleId":"D2","level":"warning","message":{"text":"LatentConsistencyModelImg2ImgPipeline.__call__ (cognitive 36): LatentConsistencyModelImg2ImgPipeline.__call__ has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 7, loops 2 (4 pts), ternaries 3 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"7694f91d7a180eaeb3c32f1a07a963034d2b5766b4f5383602340ba21a12fc5e"}},{"ruleId":"D2","level":"warning","message":{"text":"LatentConsistencyModelPipeline.__call__ (cognitive 36): LatentConsistencyModelPipeline.__call__ has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 9, loops 2 (4 pts), ternaries 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"502c11e0f8acd0d932bbf6cfe563b7758da7a721bf58f1fa6f72c87553f228b3"}},{"ruleId":"D2","level":"warning","message":{"text":"LongCatImagePipeline.__call__ (cognitive 36): LongCatImagePipeline.__call__ has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 6, ternaries 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f93eb8c8253098ee1934b3e3417e1844800ec85bc99f557d9afceb4c9fac6da"}},{"ruleId":"D2","level":"warning","message":{"text":"Lumina2Pipeline.__call__ (cognitive 36): Lumina2Pipeline.__call__ has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 7, loops 2 (4 pts), ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina2/pipeline_lumina2.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6abebf0888fca8f6629b4fe1955a49a7be83c40da09851326e24f8d3b9beb5"}},{"ruleId":"D2","level":"warning","message":{"text":"MotifVideoImage2VideoPipeline.__call__ (cognitive 36): MotifVideoImage2VideoPipeline.__call__ has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (25 pts), loops 3 (6 pts), boolean chains 5 (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":"src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9d823697134666d7f59e794fa84e0ad090f3d1b3d6f506c545909c2e678ef3"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3PAGPipeline.__call__ (cognitive 36): StableDiffusion3PAGPipeline.__call__ has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 6, loops 2 (4 pts), ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a2cbf02a4cacf45dd711405c144076b6f93be7c856c36a95fe99bb4e166256"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffusionPipeline.save_pretrained (cognitive 36): DiffusionPipeline.save_pretrained has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d03586b0c3c37d43d566ad788b1616a3249819bcf99c2c5676a1286a2bcec6"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionLatentUpscalePipeline.check_inputs (cognitive 36): StableDiffusionLatentUpscalePipeline.check_inputs has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 11, ternaries 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adadca909ed691a211f333082fd3b3122d2148cc5f2f5df505a1ad9f0acca5e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionUpscalePipeline.__call__ (cognitive 36): StableDiffusionUpscalePipeline.__call__ has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 7, ternaries 3 (4 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"befb5a51a0238eae8938372c91829e4216979849baefc7ed58ed4c9fa97bbdc0"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualClozeProcessor.preprocess_image (cognitive 36): VisualClozeProcessor.preprocess_image has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 7 (13 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/visualcloze/visualcloze_utils.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a759da59d2cb695d01ceb6abedc0acf43bfbc141d0fdcee14158042f43682db4"}},{"ruleId":"D2","level":"warning","message":{"text":"peft_utils.recurse_remove_peft_layers (cognitive 36): peft_utils.recurse_remove_peft_layers has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (26 pts), loops 3 (5 pts), error handling 1 (3 pts), boolean chains 2 (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":"src/diffusers/utils/peft_utils.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5fb2a7c2634035b1ea2ef303f0d8587814db72d4df8de4e46aa0e3c1e607ba8"}},{"ruleId":"D2","level":"warning","message":{"text":"check_copies.is_copy_consistent (cognitive 36): check_copies.is_copy_consistent has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 4 (8 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_copies.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1575296e70dec40a47c9f7cfb7d5c38490f9742edb797abb7d3aad45b088f760"}},{"ruleId":"D2","level":"warning","message":{"text":"VaeImageProcessor.preprocess (cognitive 35): VaeImageProcessor.preprocess has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23b214966897269d618b4b1c24e19faddebe45392d69c6942f34f57abb8253e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetXSPipeline.__call__ (cognitive 35): StableDiffusionControlNetXSPipeline.__call__ has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 7, loops 2 (4 pts), ternaries 3 (4 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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbdd28e74a843421a35be273197a884bf0926a6d4bbafbf7dc2a642256b1d56"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPix2PixZeroPipeline.__call__ (cognitive 35): StableDiffusionPix2PixZeroPipeline.__call__ has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 9, ternaries 2 (4 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3d84ad419b793555fd0073271555842cef0386f91d05af6ee79d3edd4b5b02"}},{"ruleId":"D2","level":"warning","message":{"text":"DreamLitePipeline.__call__ (cognitive 35): DreamLitePipeline.__call__ has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 7, loops 1, ternaries 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":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"873fa9d33349a03b15bf87ff244985ad892f7380d725887e1e177bdd1f047bf5"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlPipeline.__call__ (cognitive 35): FluxControlPipeline.__call__ has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 6, loops 2 (4 pts), ternaries 2 (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":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2bfead746ae348d31486ccadac2b37393572bdf5e71badb5f4f192e96a4646"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline_kandinsky_inpaint.prepare_mask_and_masked_image (cognitive 35): pipeline_kandinsky_inpaint.prepare_mask_and_masked_image has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 7 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fd1b261e5b57641004724b48ced89bb63fe06caa138cae2cc373498040e20a"}},{"ruleId":"D2","level":"warning","message":{"text":"KandinskyV22Pipeline.__call__ (cognitive 35): KandinskyV22Pipeline.__call__ has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (26 pts), loops 2 (4 pts), boolean chains 3, ternaries 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":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba05b66a899edf9362484d02027e5be19337009f9323fa296115fe3b5af17bc7"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline_kandinsky2_2_inpainting.prepare_mask_and_masked_image (cognitive 35): pipeline_kandinsky2_2_inpainting.prepare_mask_and_masked_image has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 7 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a38b40649d21dc6bca0fe0d519af03a7c587f212e078b845fc30bb86b5f4a7c"}},{"ruleId":"D2","level":"warning","message":{"text":"RFD4ProteinaPipeline.check_inputs (cognitive 35): RFD4ProteinaPipeline.check_inputs has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 7, ternaries 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":"src/diffusers/pipelines/rfd4_proteina/pipeline_rfd4_proteina.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9608b22dd87a17a2ad99940db0b78e97f06505869f98c4155f8d7b68ececa7"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaSprintPipeline.__call__ (cognitive 35): SanaSprintPipeline.__call__ has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 4, loops 2 (4 pts), error handling 1 (2 pts), ternaries 1 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"9daacd7d0b39afe40210722c8bcd93e65ff5e9666407d8b41737e8e55baa8c2d"}},{"ruleId":"D2","level":"warning","message":{"text":"convert_from_ckpt.create_unet_diffusers_config (cognitive 35): convert_from_ckpt.create_unet_diffusers_config has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (21 pts), ternaries 6 (10 pts), boolean chains 2, loops 2 (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":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7833a4f87dec5567ab671c5bb4a57ad398d6943bc9a90e306342b3ed8a8314"}},{"ruleId":"D2","level":"warning","message":{"text":"SD3IPAdapterMixin.load_ip_adapter (cognitive 34): SD3IPAdapterMixin.load_ip_adapter has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (24 pts), ternaries 1 (4 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"179ddbb3f00793624bf6485526d20abec53b52491f2d9cef8778a98eeb030d2f"}},{"ruleId":"D2","level":"warning","message":{"text":"LoraBaseMixin.fuse_lora (cognitive 34): LoraBaseMixin.fuse_lora has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 3 (9 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":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"beaf4f1676d8e768705363bf75df4ab79489907f1c3c8b897db1ae30874849f0"}},{"ruleId":"D2","level":"warning","message":{"text":"FromSingleFileMixin.from_single_file (cognitive 34): FromSingleFileMixin.from_single_file has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (23 pts), error handling 2 (5 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc7b4084b810f6cf9c962d29da1fe33340c678930bdf74909ac9c467228857d"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlNetModel.__init__ (cognitive 34): ControlNetModel.__init__ has cognitive complexity 34 (threshold 15). Drivers by points: if/else 20 (23 pts), boolean chains 6, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"2138ffb1f1c840a9e33428d5bff7e2434a079ccf6f8c1430b699d75321c25820"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxMultiControlNetModel.forward (cognitive 34): FluxMultiControlNetModel.forward has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (26 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_flux.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90561d5cd315a440e351cc47b7de4a32e533e09b09d52c56d16d91f24b8f07d"}},{"ruleId":"D2","level":"warning","message":{"text":"encoders.encode_prompt (cognitive 34): encoders.encode_prompt has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 12, ternaries 8 (12 pts), if/else 8 (10 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bc37ee3d1ba4a005449f9c742a784fd40f03deb361f52cf0eab51f3037c630"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioLDM2Pipeline.check_inputs (cognitive 34): AudioLDM2Pipeline.check_inputs has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 16 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd499279ae3b6c77d710632026270b6fafc7188d33ecce1dcf140c3c8017857"}},{"ruleId":"D2","level":"warning","message":{"text":"IFImg2ImgPipeline.__call__ (cognitive 34): IFImg2ImgPipeline.__call__ has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 7, ternaries 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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"1716ac3c9d4db9a5ae286621f7a42beaf80edabbc72e681ad6c3ea2a9f29ec2c"}},{"ruleId":"D2","level":"warning","message":{"text":"IFInpaintingSuperResolutionPipeline.__call__ (cognitive 34): IFInpaintingSuperResolutionPipeline.__call__ has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 6, ternaries 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"820ebc5ab9765bfd6ebcc28a9806dc4522d58422183e72f62f6e7e55eecfcc71"}},{"ruleId":"D2","level":"warning","message":{"text":"DiTPipeline.__call__ (cognitive 34): DiTPipeline.__call__ has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (21 pts), ternaries 4 (10 pts), boolean chains 2, loops 1 (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":"src/diffusers/pipelines/dit/pipeline_dit.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"59763e6e7d293102ca4e0bc0ec7790b51359df3096860698ec36992cbdc42854"}},{"ruleId":"D2","level":"warning","message":{"text":"OvisImagePipeline.__call__ (cognitive 34): OvisImagePipeline.__call__ has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 7, loops 2 (4 pts), ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab51af06fa013d0ea02a8ef2cc9203c08ee195980e923cd59f3104748e5f9e6"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGInpaintPipeline.check_inputs (cognitive 34): StableDiffusionPAGInpaintPipeline.check_inputs has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 12 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb691e019fa68bf2e8d7d886ebac1ac8b82f7dd5b396dd860f4d906ad784b1c"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaSprintImg2ImgPipeline.__call__ (cognitive 34): SanaSprintImg2ImgPipeline.__call__ has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 4, loops 2 (4 pts), error handling 1 (2 pts), ternaries 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":"src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4af2a800b7e425c2b9b41035b02464150f7b0b3c01a1e4cdb65491e4ca5213c"}},{"ruleId":"D2","level":"warning","message":{"text":"StableAudio3Pipeline.__call__ (cognitive 34): StableAudio3Pipeline.__call__ has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (26 pts), loops 2 (4 pts), boolean chains 2, ternaries 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":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"94fccd6a8b6b8da6f9c046bf62f7cce873f8f16dfeffb54b37b8af28b800a25b"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionInpaintPipeline.check_inputs (cognitive 34): StableDiffusionInpaintPipeline.check_inputs has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 12 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8614e702c86ad869b02a0715d3c5ac896611b34f2cb5a2f0ac9ff344a22108d"}},{"ruleId":"D2","level":"warning","message":{"text":"EulerDiscreteScheduler.set_timesteps (cognitive 34): EulerDiscreteScheduler.set_timesteps has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (23 pts), boolean chains 9, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_euler_discrete.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"de45157b55e6432208821f960516bb9a8e943236455cc7157a10c779c52fea57"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosScheduler.multistep_uni_c_bh_update (cognitive 34): HeliosScheduler.multistep_uni_c_bh_update has cognitive complexity 34 (threshold 15). Drivers by points: if/else 24 (29 pts), loops 2, ternaries 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"0032c48485eb037026e13a0928db3bbc20a480a9dc9d48c336ee735c2300b403"}},{"ruleId":"D2","level":"warning","message":{"text":"SASolverScheduler.stochastic_adams_moulton_update (cognitive 34): SASolverScheduler.stochastic_adams_moulton_update has cognitive complexity 34 (threshold 15). Drivers by points: if/else 24 (31 pts), loops 2, ternaries 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_sasolver.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"befb2d027b9d54adab51042e4ff97dc4fbb05b8a0e154bafed1d83b8e5cd3558"}},{"ruleId":"D2","level":"warning","message":{"text":"import_utils._is_package_available (cognitive 34): import_utils._is_package_available has cognitive complexity 34 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 3 (7 pts), loops 2 (7 pts), boolean chains 5, ternaries 1 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/import_utils.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b1c242cc6bbbd7ddba98dfb64d40d6f9b5f6c8bfe752c84d3709e0c28b4d52"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file_utils.convert_controlnet_checkpoint (cognitive 33): single_file_utils.convert_controlnet_checkpoint has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (24 pts), loops 6 (7 pts), boolean chains 2 (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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6363447742089a977be80ddb58210e7d0ee5ab93e42755c118def71d31bf4ff"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file_utils.convert_ldm_vae_checkpoint (cognitive 33): single_file_utils.convert_ldm_vae_checkpoint has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 7, boolean chains 2 (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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ca785c465b30496ebb3ef7f3ebbf36befed0e2c48f86a7289dc2c42126140f"}},{"ruleId":"D2","level":"warning","message":{"text":"TextualInversionLoaderMixin.load_textual_inversion (cognitive 33): TextualInversionLoaderMixin.load_textual_inversion has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 6, loops 2 (3 pts), ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/textual_inversion.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"eadbb52f1ccdc6871bed730a428d92c9d8b1f3d4de22ad87ab22c90981b02748"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderVidTok.tiled_decode (cognitive 33): AutoencoderVidTok.tiled_decode has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 5 (9 pts), ternaries 1 (4 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5910db79e93a3c45093dc70c77060fc5b1db671d1f62ed2c67184554eab8b6"}},{"ruleId":"D2","level":"warning","message":{"text":"Flux3Transformer2DModel.forward (cognitive 33): Flux3Transformer2DModel.forward has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 6, loops 4 (5 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux3.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"157eb69cdbd7522c37484012ceda179b7ea36d5f3ed2582ccc099888396f5a64"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2VideoTransformer3DModel.forward (cognitive 33): LTX2VideoTransformer3DModel.forward has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (15 pts), ternaries 7 (9 pts), boolean chains 8, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a643d00244e80f57e0fea0c4cc06d5cc72348d80491b9e01e68ff048733a16"}},{"ruleId":"D2","level":"warning","message":{"text":"prompt_upsampler.reconcile_boxes (cognitive 33): prompt_upsampler.reconcile_boxes has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 10, loops 6 (7 pts), ternaries 1 (2 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":"src/diffusers/modular_pipelines/flux3/prompt_upsampler.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23c08c79590603d6cdecff9ea2b29e322f60a83ee0e2da647dd5b47bba1c33e"}},{"ruleId":"D2","level":"warning","message":{"text":"AllegroPipeline.__call__ (cognitive 33): AllegroPipeline.__call__ has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 7, loops 2 (4 pts), ternaries 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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad53fe794ebf07e843acdc5ddd43d7fe3ce896868fdf0e262eab4fb0c9993d6b"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetXSPipeline.check_inputs (cognitive 33): StableDiffusionXLControlNetXSPipeline.check_inputs has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 16 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ebaaa187ba22bb4dc6234888c9573cff880843f4be0c8f646eb6a0ba20195a"}},{"ruleId":"D2","level":"warning","message":{"text":"UniDiffuserPipeline.__call__ (cognitive 33): UniDiffuserPipeline.__call__ has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 8, 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":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3fff9b97e975d0a24591bbcf32d8f1f500e62022605b77276fe763c3d22b3d"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanVideo15ImageToVideoPipeline.__call__ (cognitive 33): HunyuanVideo15ImageToVideoPipeline.__call__ has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d779068eddbbf638cf94e0e44259ff1cf6333c0975712dcd214f595e528935"}},{"ruleId":"D2","level":"warning","message":{"text":"LDMBertEncoder.forward (cognitive 33): LDMBertEncoder.forward has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (19 pts), ternaries 7 (11 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f2e99b0d7bcd99ce0d57b3b8c612def10c52439862ff8a03544e7e77d2c9ae"}},{"ruleId":"D2","level":"warning","message":{"text":"LTXConditionPipeline.check_inputs (cognitive 33): LTXConditionPipeline.check_inputs has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 16 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_condition.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"926f5353ffe4e2e93f9499c8bd24fdc17db46fe14870c346d0ef4260607a8ad0"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3PAGImg2ImgPipeline.check_inputs (cognitive 33): StableDiffusion3PAGImg2ImgPipeline.check_inputs has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 20, if/else 11 (13 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5cabc07cf672eb61672a18750661de58513ede59233f067a90d46ebd6e130bd"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGPipeline.check_inputs (cognitive 33): StableDiffusionXLPAGPipeline.check_inputs has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 17, if/else 13 (16 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b562e97e98a5b6c71e3dfe01093bf193bc6493adb8fb8c2b980dc0d2ec35db"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionUpscalePipeline.check_inputs (cognitive 33): StableDiffusionUpscalePipeline.check_inputs has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 15 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"309107a0bc8c6c290df2ef9bda2d5a8a0e0bae919f14a378e0074869dbd05eff"}},{"ruleId":"D2","level":"warning","message":{"text":"StableUnCLIPImg2ImgPipeline.check_inputs (cognitive 33): StableUnCLIPImg2ImgPipeline.check_inputs has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 15 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"85de8dbe1d95a6052d8710f2529d1f0f02806773ed8832f7232491c2c0b0d3bf"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3Img2ImgPipeline.check_inputs (cognitive 33): StableDiffusion3Img2ImgPipeline.check_inputs has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 20, if/else 11 (13 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"1732ebfe1330a489f367f1734570c35609e1a095422198a556515f23294c2503"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3InpaintPipeline.check_inputs (cognitive 33): StableDiffusion3InpaintPipeline.check_inputs has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 20, if/else 11 (13 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c52c01c872d97cead35a5e1299ef303fe4e3e2e172f39a2e9e3e65a0de0d52d"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPipeline.check_inputs (cognitive 33): StableDiffusionXLPipeline.check_inputs has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 17, if/else 13 (16 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8ec22a97a3c2b518b90860eadcba0af221de505ef5c0ec7051336bbf216259"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLAdapterPipeline.check_inputs (cognitive 33): StableDiffusionXLAdapterPipeline.check_inputs has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 17, if/else 13 (16 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"6659dd86ca79a6677b2cf5c45b5b88ba919b7b21af03a3b689216ed5b8a7119c"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockRefinementScheduler.step (cognitive 33): BlockRefinementScheduler.step has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_block_refinement.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5223ee817ab525386edf067acca4dd12f41fe9842aebe3af2b7d075f67304425"}},{"ruleId":"D2","level":"warning","message":{"text":"SeaCacheRootHook.prepare_decoder_stack (cognitive 32): SeaCacheRootHook.prepare_decoder_stack has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 11, error handling 1 (2 pts), ternaries 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":"src/diffusers/hooks/sea_cache.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff0eae122dc76dea02792894014d4a6beffb7d82dc14d996bd8945c3f9c0e19"}},{"ruleId":"D2","level":"warning","message":{"text":"LoraBaseMixin.unfuse_lora (cognitive 32): LoraBaseMixin.unfuse_lora has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 4 (9 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce688b7510ce36dfb53c436d2e1b394a03b1ee5322a954a3b079185518600ae2"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_qwen_lora_to_diffusers (cognitive 32): lora_conversion_utils._convert_non_diffusers_qwen_lora_to_diffusers has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 4 (7 pts), boolean chains 3 (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":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c74a063138ac51ac939fe6fac184c88fddef92665f1f65195a02d532b3aca8"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file_utils.convert_wan_vae_to_diffusers (cognitive 32): single_file_utils.convert_wan_vae_to_diffusers has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (30 pts), boolean chains 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":3363}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3018af3fde52d12f0bb8d25306e58e33edcfe46eb620ef4d8938565434d273"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicTransformerBlockDreamLite.forward (cognitive 32): BasicTransformerBlockDreamLite.forward has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22 (28 pts), ternaries 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d_dreamlite.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a61af1e4f57302bf609a738ddfb64ff326af7e14d068c269f2176755976fb2"}},{"ruleId":"D2","level":"warning","message":{"text":"AuraFlowPipeline.__call__ (cognitive 32): AuraFlowPipeline.__call__ has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 7, loops 2 (4 pts), ternaries 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c02a177b9d0da303ae0f6c6214399627813171103020318cf5194bfafe529a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChromaInpaintPipeline.check_inputs (cognitive 32): ChromaInpaintPipeline.check_inputs has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 12 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd197c1fea43fe179c5e3231daa695520652f6becd19f90bf140e23e0e52a388"}},{"ruleId":"D2","level":"warning","message":{"text":"CogView4Pipeline.__call__ (cognitive 32): CogView4Pipeline.__call__ has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 7, loops 2 (4 pts), ternaries 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44a746ce977a19063b0eb3dca53196f74496407e46972ccb0f393b93addae83"}},{"ruleId":"D2","level":"warning","message":{"text":"CogView4ControlPipeline.__call__ (cognitive 32): CogView4ControlPipeline.__call__ has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 7, loops 2 (4 pts), ternaries 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"99960d3bb75279616d4de229f810a777c2b4e7146a88d84cb37d1d17eaef227a"}},{"ruleId":"D2","level":"warning","message":{"text":"IFImg2ImgSuperResolutionPipeline.__call__ (cognitive 32): IFImg2ImgSuperResolutionPipeline.__call__ has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 6, ternaries 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4a13c1b96b004a8780894310e02a5f84f0efab876fbe754c944bc7337e834b"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPix2PixZeroPipeline.invert (cognitive 32): StableDiffusionPix2PixZeroPipeline.invert has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 3 (7 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"df056d78e12108fa8b55e294664263e0b597bda67a865455dc1b66f6d0a4a3b3"}},{"ruleId":"D2","level":"warning","message":{"text":"UnCLIPImageVariationPipeline.__call__ (cognitive 32): UnCLIPImageVariationPipeline.__call__ has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21 (28 pts), loops 2, ternaries 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":"src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"62db8657bb1f782bc9684447b606664e3409bef2e126368233bb213f3c890560"}},{"ruleId":"D2","level":"warning","message":{"text":"KandinskyV22Img2ImgPipeline.__call__ (cognitive 32): KandinskyV22Img2ImgPipeline.__call__ has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (23 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (2 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":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50d431d1a2ce755265527991ac153fddd77596bde7822303603d0f58c99ea72"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsImg2ImgPipeline.check_inputs (cognitive 32): KolorsImg2ImgPipeline.check_inputs has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 14 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1318780aed03ae13b230b3c5689bf6d125ee1106917fcf03cc75d6730a561e"}},{"ruleId":"D2","level":"warning","message":{"text":"LLaDA2Pipeline._prepare_input_ids (cognitive 32): LLaDA2Pipeline._prepare_input_ids has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 4 (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":"src/diffusers/pipelines/llada2/pipeline_llada2.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d48d5cc12d14eea17617781640fc203a6cc366987982327758d7eae1425e48"}},{"ruleId":"D2","level":"warning","message":{"text":"StableAudio3InpaintPipeline.__call__ (cognitive 32): StableAudio3InpaintPipeline.__call__ has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 3 (6 pts), ternaries 3 (6 pts), boolean chains 4 (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":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a38b06d8e738b98d0a734be44a22e978aa4e546f089b00498cb313228b163f"}},{"ruleId":"D2","level":"warning","message":{"text":"StableCascadePriorPipeline.check_inputs (cognitive 32): StableCascadePriorPipeline.check_inputs has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 12, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3b74434af6245923059495d3038858f547c7938f66931a164d1a7808f3f7bb"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionDepth2ImgPipeline.__call__ (cognitive 32): StableDiffusionDepth2ImgPipeline.__call__ has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 5, loops 2 (4 pts), ternaries 2 (3 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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d02ab4054addda75a5533799ed87834048952c971022b6a5567677c674c8e52"}},{"ruleId":"D2","level":"warning","message":{"text":"StableVideoDiffusionPipeline.__call__ (cognitive 32): StableVideoDiffusionPipeline.__call__ has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 5, loops 2 (4 pts), ternaries 3 (4 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":"src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"1848d1c40af9b88aca5e15045592aec2190e308439912dbccddec95898c47a94"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosScheduler.multistep_uni_p_bh_update (cognitive 32): HeliosScheduler.multistep_uni_p_bh_update has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22 (27 pts), loops 2, ternaries 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc22e5a220b44a89706987debe43a9267a08280e96544b7541446aaad422698"}},{"ruleId":"D2","level":"warning","message":{"text":"UniPCMultistepScheduler.multistep_uni_c_bh_update (cognitive 32): UniPCMultistepScheduler.multistep_uni_c_bh_update has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22 (27 pts), ternaries 3, loops 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_unipc_multistep.py"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"c958f8335ac955c18818bfba7cbda0a9b800bd245c33e42c12594a91885884eb"}},{"ruleId":"D2","level":"warning","message":{"text":"FasterCacheDenoiserHook.new_forward (cognitive 31): FasterCacheDenoiserHook.new_forward has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (21 pts), ternaries 2 (6 pts), boolean chains 4 (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":"src/diffusers/hooks/faster_cache.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda7327b5011b29e239bed2a77e9ff7bd930971a24754c0b0d49050a9fe95a7a"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlNetXSCrossAttnDownBlock2D.forward (cognitive 31): ControlNetXSCrossAttnDownBlock2D.forward has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 2, loops 1 (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":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7887b812f533e386373d76cc9b968d1074a750ad524d4912e3ed7f7536b6c0"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicTransformerBlockDreamLite.__init__ (cognitive 31): BasicTransformerBlockDreamLite.__init__ has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 7, ternaries 2 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d_dreamlite.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"921250b5b405c6ab3301c2f0cd7cf82e847f117b050542f516f9cbbb0d6afb09"}},{"ruleId":"D2","level":"warning","message":{"text":"ZImageTransformer2DModel.forward (cognitive 31): ZImageTransformer2DModel.forward has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 7 (12 pts), boolean chains 7, if/else 6 (7 pts), loops 4 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_z_image.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e55e35e27a181343b222da34e93201e6cc0f5b596ba2f2e54a63963c885f0e8"}},{"ruleId":"D2","level":"warning","message":{"text":"before_denoise.prepare_latents_img2img (cognitive 31): before_denoise.prepare_latents_img2img has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 8 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4352262da7b2e425b8b77550721909607e93c0f1a90627a3fe2185b314d33f2"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetImg2ImgPipeline.prepare_latents (cognitive 31): StableDiffusionXLControlNetImg2ImgPipeline.prepare_latents has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 9 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e2db85b576b67e0ed3ba3ea094e7721f3a2ebe44b8fa904cb9a98459d1c4b4"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionImg2ImgPipeline.prepare_latents (cognitive 31): StableDiffusionXLControlNetUnionImg2ImgPipeline.prepare_latents has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 9 (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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bd83923d92f37168028f430fb535b48ba02b6a3e113b60069873cde94585d5"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3ControlNetPipeline.check_inputs (cognitive 31): StableDiffusion3ControlNetPipeline.check_inputs has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 19, if/else 10 (12 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"f223892ee79e7e23b628072d5262c9aa7446b9e4d30b1c8616df9350b3e33b29"}},{"ruleId":"D2","level":"warning","message":{"text":"I2VGenXLPipeline.encode_prompt (cognitive 31): I2VGenXLPipeline.encode_prompt has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 7 (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":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf5b90d18d3450aee5f85b3b9a6e04a62252e5d3c02e588ba2c717f3caf126d"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline_stable_diffusion_diffedit.preprocess_mask (cognitive 31): pipeline_stable_diffusion_diffedit.preprocess_mask has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (21 pts), ternaries 2 (8 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"78764f0e726eec7838ede832d29c29638b8220f5139138831f3969ecc2ab1cd2"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionModelEditingPipeline.edit_model (cognitive 31): StableDiffusionModelEditingPipeline.edit_model has cognitive complexity 31 (threshold 15). Drivers by points: loops 13 (21 pts), ternaries 4 (6 pts), if/else 2 (4 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"743d225b3792ecc4b53b68c08f5cb3ebb37f34f9d40ef99422c0a71444763aef"}},{"ruleId":"D2","level":"warning","message":{"text":"WuerstchenDiffNeXt.__init__ (cognitive 31): WuerstchenDiffNeXt.__init__ has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 4 (13 pts), loops 6 (12 pts), if/else 3 (5 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_diffnext.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"35300aa20fb0fa9f52a3884231b9b975481b4dcca07b4191ab20bfdf5df8871d"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanSkyreelsImageToVideoPipeline.__call__ (cognitive 31): HunyuanSkyreelsImageToVideoPipeline.__call__ has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 7, loops 2 (4 pts), ternaries 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":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3679533b4ba5aff525fd56595775d687806b7ea517fdd5cb798a05de3704f2"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanVideoPipeline.__call__ (cognitive 31): HunyuanVideoPipeline.__call__ has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 7, loops 2 (4 pts), ternaries 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":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ec9853143ca838f2e27c733bdd631125f81f9d9a81f8bdcc58ae6751802a4d"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsImg2ImgPipeline.prepare_latents (cognitive 31): KolorsImg2ImgPipeline.prepare_latents has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 9 (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":"src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcd8d4c0d0c7a3b89b2de65109812967b3b38cc84fa498061d71790afb3bdd2"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGImg2ImgPipeline.prepare_latents (cognitive 31): StableDiffusionXLControlNetPAGImg2ImgPipeline.prepare_latents has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 9 (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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c96b214f3b1c367bd4af97c04f85c6f0662806632ce21a40904d85bd4562487"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3PAGPipeline.check_inputs (cognitive 31): StableDiffusion3PAGPipeline.check_inputs has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 19, if/else 10 (12 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0368a44b9f501cdf782681b99552df8fcbb43999d8d64e86b6f55c61f02e504"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGImg2ImgPipeline.check_inputs (cognitive 31): StableDiffusionXLPAGImg2ImgPipeline.check_inputs has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 16, if/else 12 (15 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a31c070bc1519b248f5e7177093c95a99daddb28a0831f69d6a8e5947b33666"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGImg2ImgPipeline.prepare_latents (cognitive 31): StableDiffusionXLPAGImg2ImgPipeline.prepare_latents has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 9 (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":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"5339f2359796299dc78b8d3ee6bf28c8d169e595e5086e96810a7a23e1f027a5"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2ImageToVideoPipeline.__call__ (cognitive 31): SkyReelsV2ImageToVideoPipeline.__call__ has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 4, loops 2 (4 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":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3844d244adf5985f9de517d55fdeee3f4cf60a9ccff57cac7dc9ea1b62764e"}},{"ruleId":"D2","level":"warning","message":{"text":"convert_from_ckpt.convert_open_clip_checkpoint (cognitive 31): convert_from_ckpt.convert_open_clip_checkpoint has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 2 (3 pts), boolean chains 2, ternaries 2, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3709efdd0b9651711032c4c933a49124341e97811eea1bb2c6415c254924474"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3Pipeline.check_inputs (cognitive 31): StableDiffusion3Pipeline.check_inputs has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 19, if/else 10 (12 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abbf1e4d637f8dc4865d4c0124fe389687639265b1a55bd550bce7d677c3075"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLImg2ImgPipeline.check_inputs (cognitive 31): StableDiffusionXLImg2ImgPipeline.check_inputs has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 16, if/else 12 (15 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d9732371d980fb4c4de457d3ef76e79e3a9e0cd90959b2056f806452c0113c"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLImg2ImgPipeline.prepare_latents (cognitive 31): StableDiffusionXLImg2ImgPipeline.prepare_latents has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 9 (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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4c643f8e332c56b2a57eecab48b238ca75cc9b2864d8022c64c3b6b1579061"}},{"ruleId":"D2","level":"warning","message":{"text":"LCMScheduler.set_timesteps (cognitive 31): LCMScheduler.set_timesteps has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_lcm.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"630356beb09c3b8d714904c28b81e2fad338a6cf53b953fa10aa469939cf2cb6"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImage21Resample.forward (cognitive 30): QwenImage21Resample.forward has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 2 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"76062e5705ae5b84eb597597125242831f07170bb16fcca028a6d2661e784622"}},{"ruleId":"D2","level":"warning","message":{"text":"ModularPipeline.load_components (cognitive 30): ModularPipeline.load_components has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2489}}}],"partialFingerprints":{"codehealthFindingId/v1":"f801561e8165f5545a92bdb5d6708d4aede60d0bed6141def4f390160f532771"}},{"ruleId":"D2","level":"warning","message":{"text":"CrossAttnDownBlock2D.forward (cognitive 30): CrossAttnDownBlock2D.forward has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 4 (9 pts), boolean chains 5, ternaries 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (CrossAttnUpBlock2D.forward) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"009717958bd8d3711ab942ff08623dcaa9159a3e9bfa00a4d5b0fb95348e4c9b"}},{"ruleId":"D2","level":"warning","message":{"text":"CrossAttnUpBlock2D.forward (cognitive 30): CrossAttnUpBlock2D.forward has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 4 (9 pts), boolean chains 5, ternaries 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (CrossAttnDownBlock2D.forward) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5e7ea1c459525405b4ab0f04829a33f7c3c0d70eca5f34ab96091b3ee8af47"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanDiTControlNetPipeline.check_inputs (cognitive 30): HunyuanDiTControlNetPipeline.check_inputs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 14 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffe85872f1d9930763c64b37bbcfd5848f691150af042c1a9c4458f663a2db7"}},{"ruleId":"D2","level":"warning","message":{"text":"IFInpaintingPipeline.check_inputs (cognitive 30): IFInpaintingPipeline.check_inputs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 12 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"3716789606014009548cd8bff52afaaf5f8bf9722f4dabd7e6832bfd9e613500"}},{"ruleId":"D2","level":"warning","message":{"text":"CycleDiffusionPipeline.__call__ (cognitive 30): CycleDiffusionPipeline.__call__ has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (20 pts), ternaries 4 (6 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f20a77f9ce941519ab4526dc5f299cfd0aca38f00f7ed5d8c9de0c5d9ec6492"}},{"ruleId":"D2","level":"warning","message":{"text":"DreamLiteMobilePipeline.__call__ (cognitive 30): DreamLiteMobilePipeline.__call__ has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 7, loops 1, ternaries 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":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9974b0c8110165a5949ce00b85e21d44f84577ac887405450a891286eebdaa"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanDiTPipeline.check_inputs (cognitive 30): HunyuanDiTPipeline.check_inputs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 14 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"2782a5b01fc6231f110fca067f8342422ada2fb7bdb5372655b0fb4d3bd2d995"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky3Pipeline.check_inputs (cognitive 30): Kandinsky3Pipeline.check_inputs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 13 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3e08f0c9f3ec83387e75409a0a78ae9f9d9fabd8f17f92d8d0c5967efc97d8"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky3Img2ImgPipeline.check_inputs (cognitive 30): Kandinsky3Img2ImgPipeline.check_inputs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 13 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"1898e91c77494d9bbcc034427fa068bea4932baaa7f70366b2d1a8885a51442c"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsPipeline.check_inputs (cognitive 30): KolorsPipeline.check_inputs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 13 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3382727386cb0f9f12585e5c493fe46429cce94be8d62e7a1a8aab81fffcad"}},{"ruleId":"D2","level":"warning","message":{"text":"LTXConditionPipeline.prepare_latents (cognitive 30): LTXConditionPipeline.prepare_latents has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_condition.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf79a9a5a496e275a046e57e2cb5e5dea29ed3fefbfb23fd0410eab913c3a61"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanDiTPAGPipeline.check_inputs (cognitive 30): HunyuanDiTPAGPipeline.check_inputs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 14 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f76d92aae82cbd8f0100fbb36f6ddba983116fa75984bc439598693ca03bc1"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsPAGPipeline.check_inputs (cognitive 30): KolorsPAGPipeline.check_inputs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 13 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_kolors.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f2c82f10244017d5273df55c1e930c2229c22ce02e62882e9a2cbb68a3b555"}},{"ruleId":"D2","level":"warning","message":{"text":"convert_from_ckpt.convert_ldm_vae_checkpoint (cognitive 30): convert_from_ckpt.convert_ldm_vae_checkpoint has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (22 pts), loops 5, boolean chains 2, ternaries 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":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc422fc024b1a82c31c458070ff054076888bc9b47d00dfa205eaf6182aaa985"}},{"ruleId":"D2","level":"warning","message":{"text":"StableUnCLIPPipeline.__call__ (cognitive 30): StableUnCLIPPipeline.__call__ has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 6, ternaries 3 (5 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9aca802dc0b214c6eb7fddd3650ed35ebb117f07b01823ea671d86fd6f6293"}},{"ruleId":"D2","level":"warning","message":{"text":"WanVideoToVideoPipeline.__call__ (cognitive 30): WanVideoToVideoPipeline.__call__ has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_video2video.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5cf7c69516d85ea61dfc2f6337598c9daa621a4fd9eff9a31848d505836a65e"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowMatchEulerDiscreteScheduler.set_timesteps (cognitive 30): FlowMatchEulerDiscreteScheduler.set_timesteps has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc973a50c309c5fb2d10f07d45c9a68f3be648def61fa3417fdaa8b9f06c0431"}},{"ruleId":"D2","level":"warning","message":{"text":"SASolverScheduler.stochastic_adams_bashforth_update (cognitive 30): SASolverScheduler.stochastic_adams_bashforth_update has cognitive complexity 30 (threshold 15). Drivers by points: if/else 21 (27 pts), loops 2, ternaries 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_sasolver.py"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"a371e949db50a755673d6f2c4367643898757b6d5f81db22003483399923e092"}},{"ruleId":"D2","level":"warning","message":{"text":"UniPCMultistepScheduler.multistep_uni_p_bh_update (cognitive 30): UniPCMultistepScheduler.multistep_uni_p_bh_update has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20 (25 pts), ternaries 3, loops 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_unipc_multistep.py"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8fdf82ed0ed9718ff15d5f43184d36b965603d015301f2b9516b87c9ff05bc"}},{"ruleId":"D2","level":"warning","message":{"text":"check_forward_call_docstrings.main (cognitive 30): check_forward_call_docstrings.main has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 6 (12 pts), boolean chains 1 (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":"utils/check_forward_call_docstrings.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ac75606d2f9d056ba4df60385ba5df78cbb17c28733fbf989d3461238223b7"}},{"ruleId":"D2","level":"warning","message":{"text":"FasterCacheBlockHook.new_forward (cognitive 29): FasterCacheBlockHook.new_forward has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (20 pts), loops 2 (5 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/faster_cache.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"80173a44fd90f9d23c39ea71292291452d588414ba2b0dbeb8c91d77fdb9162e"}},{"ruleId":"D2","level":"warning","message":{"text":"group_offloading._apply_group_offloading_block_level (cognitive 29): group_offloading._apply_group_offloading_block_level has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 5 (11 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/group_offloading.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"e064b618adbb7dddd1a9f54a7cdb2350d9d056c30de70a7b84efced8e915f804"}},{"ruleId":"D2","level":"warning","message":{"text":"SeaCacheLeaderBlockHook.new_forward (cognitive 29): SeaCacheLeaderBlockHook.new_forward has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 10, error handling 1 (2 pts), ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/sea_cache.py"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97e22a48dbe0e89893cb53b2aba74c9375af715b7ae2a41d682bc8b1ddc771e"}},{"ruleId":"D2","level":"warning","message":{"text":"UNet2DConditionLoadersMixin._convert_ip_adapter_image_proj_to_diffusers (cognitive 29): UNet2DConditionLoadersMixin._convert_ip_adapter_image_proj_to_diffusers has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 5 (10 pts), ternaries 2 (3 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":"src/diffusers/loaders/unet.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"902f0679f719c5801a2ca83499b7cce81651bdeac760e4489ff2ac6a709ed383"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageResample.forward (cognitive 29): QwenImageResample.forward has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 2 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79f17e841991067052d456c959993d363bc3fa4b987878f4e5c91622b8c459c"}},{"ruleId":"D2","level":"warning","message":{"text":"WanResample.forward (cognitive 29): WanResample.forward has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 2 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_wan.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc2c442a4417826e9cf3f0e4e2686368cad5a1c6230c499ef659b1342a8bfcf"}},{"ruleId":"D2","level":"warning","message":{"text":"MaskConditionDecoder.forward (cognitive 29): MaskConditionDecoder.forward has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/vae.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4aad01e9719986dcf825e6617d65808d60065cc13a40ebf0ace75931684e7c2"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos2_5_TransferPipeline.check_inputs (cognitive 29): Cosmos2_5_TransferPipeline.check_inputs has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 12 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26556db556fca3a15680bc6c13e8de8b602018ed7b7503c94941d72579154bd"}},{"ruleId":"D2","level":"warning","message":{"text":"IFImg2ImgSuperResolutionPipeline.check_inputs (cognitive 29): IFImg2ImgSuperResolutionPipeline.check_inputs has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 11 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98f99b0e99eeb5469c7e2830b393c42097d426e8449350ce2796b18e7fef19e"}},{"ruleId":"D2","level":"warning","message":{"text":"Blip2QFormerEncoder.forward (cognitive 29): Blip2QFormerEncoder.forward has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 6 (8 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/blip_diffusion/modeling_blip2.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3754158f8d57770e489c96bdbe2c4eb1c07ad377398582fc21cc82f626514d"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxImg2ImgPipeline.check_inputs (cognitive 29): FluxImg2ImgPipeline.check_inputs has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 16, if/else 11 (13 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_img2img.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"11dd6dbb1acb7210dc930ce12fb91e8e2c03f0a7ebb604b7f600ac5e41e78c31"}},{"ruleId":"D2","level":"warning","message":{"text":"GlmImagePipeline.generate_prior_tokens (cognitive 29): GlmImagePipeline.generate_prior_tokens has cognitive complexity 29 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 8 (11 pts), boolean chains 3, ternaries 3 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"890d6c7423104c571fea8c5d21dc419aca1a44e167f09709ec419fe17f00baea"}},{"ruleId":"D2","level":"warning","message":{"text":"StableAudioPipeline.__call__ (cognitive 29): StableAudioPipeline.__call__ has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 8, ternaries 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":"src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdad4dab24eba7fddce8e9b556dafe2e00577840ec43cb259ce5787c67bc53f"}},{"ruleId":"D2","level":"warning","message":{"text":"loading_utils.load_video (cognitive 29): loading_utils.load_video has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 3 (6 pts), error handling 2 (4 pts), boolean chains 3, ternaries 1 (2 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":"src/diffusers/utils/loading_utils.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b84fa0db37d34106088f56f43532b018cedd66401481268f582f02c263741e"}},{"ruleId":"D2","level":"warning","message":{"text":"MagCacheHeadHook.new_forward (cognitive 28): MagCacheHeadHook.new_forward has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 2 (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":"src/diffusers/hooks/mag_cache.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcbeb4d7316e8df0f2de1958a63f6cb8f448e5e4f3b1f86c459521e72ecde81"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_base._fetch_state_dict (cognitive 28): lora_base._fetch_state_dict has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 5, error handling 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"e161c0580b72ec0cb344d5d1c812e455b64301879445ff1bf584251be1ff7d40"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxLoraLoaderMixin.unload_lora_weights (cognitive 28): FluxLoraLoaderMixin.unload_lora_weights has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 2 (5 pts), loops 2 (4 pts), boolean chains 3 (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":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ac08c98f397b0a8e30903afde776a3376c23bf7f38d47350000c3ba423a834"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxTransformer2DLoadersMixin._convert_ip_adapter_attn_to_diffusers (cognitive 28): FluxTransformer2DLoadersMixin._convert_ip_adapter_attn_to_diffusers has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 3 (7 pts), ternaries 1 (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":"src/diffusers/loaders/transformer_flux.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d1c7a09cda4cc0e690de26eefc0fbb1c92d299ce0d1467244f581eed9c91b8"}},{"ruleId":"D2","level":"warning","message":{"text":"unet_loader_utils._maybe_expand_lora_scales_for_one_adapter (cognitive 28): unet_loader_utils._maybe_expand_lora_scales_for_one_adapter has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 5 (9 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/unet_loader_utils.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ec2e1b91aba2f53f4694fe3cd04b1b3875977632ce353292db1ad4169706b1"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlNetUnionModel.__init__ (cognitive 28): ControlNetUnionModel.__init__ has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_union.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"42001910659cdc4a79fd1830649227ea9b2d52c283250bffb88a09581d97b8f8"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky6FusedTransformerDecoderBlock.forward (cognitive 28): Kandinsky6FusedTransformerDecoderBlock.forward has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 7 (10 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":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2f634cccd311b94c568a843a5161ed5174dcc9e61e354d209a66cf9493c5a7"}},{"ruleId":"D2","level":"warning","message":{"text":"MotifVideoTransformer3DModel.forward (cognitive 28): MotifVideoTransformer3DModel.forward has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 4 (8 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_motif_video.py"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"825a255a12d9c97d20e24eaf2123dec0b6b0f955f32e989e06f0f73c5fb6767a"}},{"ruleId":"D2","level":"warning","message":{"text":"ZImageTransformer2DModel.patchify_and_embed_omni (cognitive 28): ZImageTransformer2DModel.patchify_and_embed_omni has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (8 pts), ternaries 1 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_z_image.py"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98fe60363d61cd60c5be341037cc8091e1982e0159cdf9da9ddfbbe1f69300c"}},{"ruleId":"D2","level":"warning","message":{"text":"ModularPipelineBlocks.get_block_state (cognitive 28): ModularPipelineBlocks.get_block_state has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9537130de61cbb485e18dffcc5a84340f462f83808813383e326cfdbf1e9b12"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioDiffusionPipeline.__call__ (cognitive 28): AudioDiffusionPipeline.__call__ has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 3, loops 1, ternaries 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":"src/diffusers/pipelines/deprecated/audio_diffusion/pipeline_audio_diffusion.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f43dc3b861ed528b7ad32d94508dc2e02acbad9b49a1020020b41f4f0f5c3e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionInpaintPipelineLegacy.__call__ (cognitive 28): StableDiffusionInpaintPipelineLegacy.__call__ has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 5, ternaries 2 (3 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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd3206be17b866b35166505109433caefcffc7ab5bc83f5cd8b587461abd301"}},{"ruleId":"D2","level":"warning","message":{"text":"TextToVideoZeroSDXLPipeline.check_inputs (cognitive 28): TextToVideoZeroSDXLPipeline.check_inputs has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 16, if/else 10 (12 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31c9758c5a2fddd3536959b0b7059f87fc599eea8d195cf662d1fea29f231fa"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanVideo15Pipeline.__call__ (cognitive 28): HunyuanVideo15Pipeline.__call__ has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 6, loops 2 (3 pts), ternaries 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":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc807ab3b48bc69eb1f4e668709ef633133ec94f3284b11663bd452f6bc450c5"}},{"ruleId":"D2","level":"warning","message":{"text":"KandinskyV22PriorPipeline.__call__ (cognitive 28): KandinskyV22PriorPipeline.__call__ has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (20 pts), loops 2 (4 pts), boolean chains 2, ternaries 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":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"63dc73ea4f31592a6839b4d6851460088eafbd9f47460686975e08eed29476cf"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffusionPipeline.from_pipe (cognitive 28): DiffusionPipeline.from_pipe has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 8, loops 2, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1ea7509fa77edbf39dc431761d20347da8cb5eedc7ed09b9cdc93de33da899"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageEditInpaintPipeline.check_inputs (cognitive 28): QwenImageEditInpaintPipeline.check_inputs has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 11 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"61735fb56a3557df86e8443d92968a91b64ae82e38415eaffca2cae3afa1bfc1"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageInpaintPipeline.check_inputs (cognitive 28): QwenImageInpaintPipeline.check_inputs has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 11 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5d5452a6bbac54b8d0a5cdef4fad9504cb65b00facf7fe704e385e51cca5fa"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaWMLTX2Refiner.__call__ (cognitive 28): SanaWMLTX2Refiner.__call__ has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 5 (9 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_wm/refiner.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"594bc3998463bd63703dda3ff705964f6eca6981317cb0c83a5424ffd1cf101b"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionInstructPix2PixPipeline._encode_prompt (cognitive 28): StableDiffusionInstructPix2PixPipeline._encode_prompt has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 6 (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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf667acff9469ac85c8d1d7058f83684bd55a7602742126d31db4d8181f2d26"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionLatentUpscalePipeline.__call__ (cognitive 28): StableDiffusionLatentUpscalePipeline.__call__ has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (18 pts), ternaries 4 (6 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"7478530ecb570c01f689d5f7ef6c1125939e540d2fbca06157b567c94e840cc4"}},{"ruleId":"D2","level":"warning","message":{"text":"NVIDIAModelOptConfig.get_config_from_quant_type (cognitive 28): NVIDIAModelOptConfig.get_config_from_quant_type has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/quantization_config.py"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"58fbc795772fdd275e9aaf5dc353cbe652af8e7aa57f044b6b5fc91b94ab0b04"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowMatchLCMScheduler.set_timesteps (cognitive 28): FlowMatchLCMScheduler.set_timesteps has cognitive complexity 28 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_match_lcm.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f96a32a2426186c0e877dd0197c5b93afb213a3ddccf8adfa46dfdcfaae12fc"}},{"ruleId":"D2","level":"warning","message":{"text":"EMAModel.step (cognitive 28): EMAModel.step has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/training_utils.py"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"4005731d823282aa96d3ed1c26665a1ee82061e9af956c6eb72a29b021b47c53"}},{"ruleId":"D2","level":"warning","message":{"text":"IPAdapterMixin.set_ip_adapter_scale (cognitive 27): IPAdapterMixin.set_ip_adapter_scale has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 3 (9 pts), ternaries 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"8870eaf345e7320f72d2681f9493fb8984897ab50a1e81ad980a86580b31fdf0"}},{"ruleId":"D2","level":"warning","message":{"text":"LoraBaseMixin.set_adapters (cognitive 27): LoraBaseMixin.set_adapters has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 2 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39e1f5a879f952568bec9880cdb737dc65ce1c7abfbce5e01dfc6c5ddfbc6a0"}},{"ruleId":"D2","level":"warning","message":{"text":"UNet2DConditionLoadersMixin.load_attn_procs (cognitive 27): UNet2DConditionLoadersMixin.load_attn_procs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 5, error handling 1 (3 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/unet.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb6891f1b2a5b14fd748892d27233d4353525a02a6fbe13b75771be308d8d28"}},{"ruleId":"D2","level":"warning","message":{"text":"FreeNoiseTransformerBlock.forward (cognitive 27): FreeNoiseTransformerBlock.forward has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (21 pts), ternaries 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"c239f6e1fac651f384f7c6101c6f3e5565b38916bf9cf2d508f74d05ced3c433"}},{"ruleId":"D2","level":"warning","message":{"text":"VidTokEncoder3D.forward (cognitive 27): VidTokEncoder3D.forward has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 4 (10 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (VidTokDecoder3D.forward) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b533d4103e1c9cfe5f4e0e142402be8a8b129a1f01cb46aea9716859408b510"}},{"ruleId":"D2","level":"warning","message":{"text":"VidTokDecoder3D.forward (cognitive 27): VidTokDecoder3D.forward has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 4 (10 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (VidTokEncoder3D.forward) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfcac7fefeffb418a46c5ab316954964b7641d3888246c09c4b11e3ce76faa2"}},{"ruleId":"D2","level":"warning","message":{"text":"SparseControlNetModel.__init__ (cognitive 27): SparseControlNetModel.__init__ has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_sparsectrl.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb32b0a35bbba81eee9e921627c045facb023d7299a3f446e592c029850abd1"}},{"ruleId":"D2","level":"warning","message":{"text":"AceStepAttnProcessor2_0.__call__ (cognitive 27): AceStepAttnProcessor2_0.__call__ has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/ace_step_transformer.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35ec48a689a9104d5dc7883014f69ffc090b46b1f350ddefe04e7f56403060f"}},{"ruleId":"D2","level":"warning","message":{"text":"CogView4TrainingAttnProcessor.__call__ (cognitive 27): CogView4TrainingAttnProcessor.__call__ has cognitive complexity 27 (threshold 15). Drivers by points: loops 5 (14 pts), if/else 12 (13 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63cde00bc9802feedfb2bbe27766a74e39a4415d3c96243629bc0a4331e7ee9"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImage21Transformer2DModel.forward (cognitive 27): QwenImage21Transformer2DModel.forward has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 5 (10 pts), boolean chains 4, 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":"src/diffusers/models/transformers/transformer_qwenimage21.py"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"a761d9b721cab7cae4e03456c5798d3b97a1bca468d820adcff4a5dd7e8ec1e6"}},{"ruleId":"D2","level":"warning","message":{"text":"UNet2DConditionModel.__init__ (cognitive 27): UNet2DConditionModel.__init__ has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (19 pts), ternaries 3 (5 pts), loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d154db706cbcda8291bc6a7ee13c0bde584064f4633d03f4e62baa134e5a46"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2ConditionEncoderStep.__call__ (cognitive 27): LTX2ConditionEncoderStep.__call__ has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 4 (10 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f787d38cd29b3381a4ae1a3840cec2a47a2682bff291d0533d6c6f4f6589a35"}},{"ruleId":"D2","level":"warning","message":{"text":"UNetMidBlock2DCrossAttn.forward (cognitive 27): UNetMidBlock2DCrossAttn.forward has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (7 pts), boolean chains 5, ternaries 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":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"639b71eafaac1ae45c6da5cd8996af25a6553300a70a6d1692ae0699ed3e090a"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioLDM2Pipeline.__call__ (cognitive 27): AudioLDM2Pipeline.__call__ has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 6, ternaries 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":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f4fa8792fec0f8c2137c3c542855e781f3d25b5f3ed8b7533ec5d1ead146df"}},{"ruleId":"D2","level":"warning","message":{"text":"AuraFlowPipeline.encode_prompt (cognitive 27): AuraFlowPipeline.encode_prompt has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 8, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2a39fd1a40cde154bfc243610e5673de566d07a7f913471d05e037153e4f1a"}},{"ruleId":"D2","level":"warning","message":{"text":"BlipImageProcessor.preprocess (cognitive 27): BlipImageProcessor.preprocess has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11, ternaries 10, boolean chains 6. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/blip_diffusion/blip_image_processing.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad56954d679649fe69161b682e5faacc8839511aad98484e6f6091089128908"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicLDMPipeline.__call__ (cognitive 27): MusicLDMPipeline.__call__ has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 6, ternaries 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":"src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc5e786c6d43cb6476e3bb7c9f5d5c5d81f1f9725759052148814dee8a6d591"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionParadigmsPipeline.__call__ (cognitive 27): StableDiffusionParadigmsPipeline.__call__ has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5, ternaries 2 (4 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"99974159e82440ad38f88b9f355ba465d9afaee1bfc9a6dc624827bef3efa149"}},{"ruleId":"D2","level":"warning","message":{"text":"WuerstchenDiffNeXt._up_decode (cognitive 27): WuerstchenDiffNeXt._up_decode has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (18 pts), ternaries 1 (4 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_diffnext.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2d67bcddc30bb51af02aba72d715c2dccf5424667850d48e698a93b40019d4"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlNetPipeline.check_inputs (cognitive 27): FluxControlNetPipeline.check_inputs has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 15, if/else 10 (12 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ba9d980d186f37578eb7bc8756dda22c13075f4fdb9fa3e5b70f48295b9ebe"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlNetInpaintPipeline.check_inputs (cognitive 27): FluxControlNetInpaintPipeline.check_inputs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 12 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"e685b0eec2eb6156d11f51f8336874ed9f10d02ff46be3a62c492f02ed4a0549"}},{"ruleId":"D2","level":"warning","message":{"text":"GlmImagePipeline.check_inputs (cognitive 27): GlmImagePipeline.check_inputs has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 14, if/else 11 (13 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8c4a6bf0271ece179da3538eecd39389ed1e39cd190045c170077b8ea4f2ec"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanVideoFramepackPipeline.check_inputs (cognitive 27): HunyuanVideoFramepackPipeline.check_inputs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 13 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed9f4d9e0702671987dc96bf5f463a313b78e3b3c5fc9419db52a51a86b56ad"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky5I2VPipeline.check_inputs (cognitive 27): Kandinsky5I2VPipeline.check_inputs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 12 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec68f575e03158de6079d04bab0534d04172ca9ab2258a6411d4c80ef6177a64"}},{"ruleId":"D2","level":"warning","message":{"text":"LLaDA2Pipeline.check_inputs (cognitive 27): LLaDA2Pipeline.check_inputs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/llada2/pipeline_llada2.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"d727896cb3bd77c64b422b80415d468ebaa48917b9468dd36eced807d97ee193"}},{"ruleId":"D2","level":"warning","message":{"text":"Lumina2Pipeline.check_inputs (cognitive 27): Lumina2Pipeline.check_inputs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 12 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina2/pipeline_lumina2.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ac00c6971368cb151e75a30caf0b1c47dc37bb815d9b47fef0a7e70f290146"}},{"ruleId":"D2","level":"warning","message":{"text":"MotifVideoPipeline.check_inputs (cognitive 27): MotifVideoPipeline.check_inputs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 10 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b94ecbe7aca938fe3190a4cbad7d1ac98037bef814b7e531ea127acf66cc160"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImage21Pipeline._get_qwen_prompt_embeds (cognitive 27): QwenImage21Pipeline._get_qwen_prompt_embeds has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 4 (10 pts), boolean chains 2, ternaries 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bee3a71303f74c49be227d46cd0bc3c68ac9b61eacf5f47f613c6e0ba065535"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaImageToVideoPipeline.check_inputs (cognitive 27): SanaImageToVideoPipeline.check_inputs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 12 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"512e14447f97e48ccb3d99ab3ba3e0197c712bb094347a8a836543ab71a24409"}},{"ruleId":"D2","level":"warning","message":{"text":"StableAudioPipeline.check_inputs (cognitive 27): StableAudioPipeline.check_inputs has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 14, if/else 11 (13 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"43353059b6c7dede2c9ecbaf550d8af177dafa3af26e2b1419167526949e633e"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverMultistepScheduler.set_timesteps (cognitive 27): DPMSolverMultistepScheduler.set_timesteps has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"1335d0fb534b4f5ecdf453848145bb8bbfec610177af4e1a9ea7e9949f26f32f"}},{"ruleId":"D2","level":"warning","message":{"text":"hub_utils._get_model_file (cognitive 27): hub_utils._get_model_file has cognitive complexity 27 (threshold 15). Drivers by points: error handling 7 (15 pts), if/else 5 (7 pts), boolean chains 5 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/hub_utils.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"b690b11e7220974822e7abf6539689e6ac5c0f4caab73ed498b5a91b80536ee3"}},{"ruleId":"D2","level":"warning","message":{"text":"custom_init_isort.sort_imports (cognitive 27): custom_init_isort.sort_imports has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 3 (5 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/custom_init_isort.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c4ec28c35a66dd9b6ee8f6813b9e4a3c4197784b2bf623ce573d66e3cc9420"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigMixin.extract_init_dict (cognitive 26): ConfigMixin.extract_init_dict has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 4, loops 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/configuration_utils.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"2807c9f54ed5890ec5dba5d59650036f3e58ce12fdf21c84ef957d5a7b14723a"}},{"ruleId":"D2","level":"warning","message":{"text":"SeaCacheSharedState.resolve_gate (cognitive 26): SeaCacheSharedState.resolve_gate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 7, loops 1 (3 pts), ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/sea_cache.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cdae31160e012360bff0be9310b4ea715bf6d015aa34783afdc4270b4c2a59"}},{"ruleId":"D2","level":"warning","message":{"text":"smoothed_energy_guidance_utils._apply_smoothed_energy_guidance_hook (cognitive 26): smoothed_energy_guidance_utils._apply_smoothed_energy_guidance_hook has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (8 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/smoothed_energy_guidance_utils.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce684d4884e1f6d911e287a7f60d581c9ddd00590dcb9b8f40bac80b3785f8bb"}},{"ruleId":"D2","level":"warning","message":{"text":"VaeImageProcessor.get_crop_region (cognitive 26): VaeImageProcessor.get_crop_region has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ab8e05436cc40c9b497d54899331b63e7339a5f1b03bd992e1837a92b305d7"}},{"ruleId":"D2","level":"warning","message":{"text":"ModularIPAdapterMixin.set_ip_adapter_scale (cognitive 26): ModularIPAdapterMixin.set_ip_adapter_scale has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 3 (9 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6508237789460ae68d1b14b46afbb76ab30c979ea27f4cf0807d3e469bcec83"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_base._func_optionally_disable_offloading (cognitive 26): lora_base._func_optionally_disable_offloading has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 8, loops 2 (5 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":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"446ecf619c8a23d0f19281ff4bede64d4afcd795c02e02b5322a2d37d07ed9af"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniMaxH3LoraLoaderMixin.lora_state_dict (cognitive 26): MiniMaxH3LoraLoaderMixin.lora_state_dict has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, error handling 1 (2 pts), loops 1 (2 pts), ternaries 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":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":7161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8950221e1380f3e6b4758ab1a678c3ab39d731f529f0097d34e3cc949e9f5e94"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicTransformerBlock.__init__ (cognitive 26): BasicTransformerBlock.__init__ has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 6, ternaries 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2b60f0ed44ba3d34773b78e7a230c7d4272dbc5e7901cd8e73522a57ec96a0"}},{"ruleId":"D2","level":"warning","message":{"text":"ModularPipelineBlocks.set_block_state (cognitive 26): ModularPipelineBlocks.set_block_state has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 3 (5 pts), boolean chains 2 (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":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"711268227f49d44e1cf7d8483e49cc346d702b718591c17dfaa6b493e83fb8a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ModularPipeline.register_components (cognitive 26): ModularPipeline.register_components has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 4, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2186}}}],"partialFingerprints":{"codehealthFindingId/v1":"789876e3f7b40072f8926f4c8add173f1ac217be9ae9bd7558b6a4acbcf38ee8"}},{"ruleId":"D2","level":"warning","message":{"text":"AllegroPipeline.check_inputs (cognitive 26): AllegroPipeline.check_inputs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d564d93dea3219b74d6fe753ab09129b9ea151486fd6e7f3e55b042626faed"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaPipeline.encode_prompt (cognitive 26): BriaPipeline.encode_prompt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"0877754647ad617c9066247f43a6c92551a149c397988dbbed224f12a59f6277"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaFiboPipeline.encode_prompt (cognitive 26): BriaFiboPipeline.encode_prompt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7, ternaries 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"3157eaada45facbe5ae771de2edd435dac2957b9a2c4cdbf53d22febbad52d1e"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaFiboEditPipeline.encode_prompt (cognitive 26): BriaFiboEditPipeline.encode_prompt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7, ternaries 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"c241bbc3a318136bd622728c581719b3b65d672c3a4e90955f79ddfb74c48df5"}},{"ruleId":"D2","level":"warning","message":{"text":"ChromaPipeline.encode_prompt (cognitive 26): ChromaPipeline.encode_prompt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 6, ternaries 3 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0ed71421bbb2808f14b0a92fdb74dc8cc7a762c0ced4fc2341165587f1c55e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChromaImg2ImgPipeline.encode_prompt (cognitive 26): ChromaImg2ImgPipeline.encode_prompt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 6, ternaries 3 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31d3782cef33579f77362935cb93e01fdf4e732de292ec248d307497d343576"}},{"ruleId":"D2","level":"warning","message":{"text":"ChromaInpaintPipeline.encode_prompt (cognitive 26): ChromaInpaintPipeline.encode_prompt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 6, ternaries 3 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"b360fde8ca7055436fe952bcdaa6fc1061f3b96f227caf781431e11fc4815c46"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanDiTControlNetPipeline.encode_prompt (cognitive 26): HunyuanDiTControlNetPipeline.encode_prompt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac20ed89a2a58982273664ca4138ced9a212dd1469be15502afef1f728a887e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionAttendAndExcitePipeline.check_inputs (cognitive 26): StableDiffusionAttendAndExcitePipeline.check_inputs has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 15, if/else 10 (11 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9803b7e60ee4a49199417323d153891db67319b9ff1d8f4397af83b8470cec"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionModelEditingPipeline.__call__ (cognitive 26): StableDiffusionModelEditingPipeline.__call__ has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 7, ternaries 2 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6b4c7b0fed8997076d6c21667bcaaa27cb76b1f60d0e55c0b9da6d0f168bc2"}},{"ruleId":"D2","level":"warning","message":{"text":"TextToVideoSDPipeline.__call__ (cognitive 26): TextToVideoSDPipeline.__call__ has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7, ternaries 2 (3 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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"266eb534f270657d9f19c5be69a4f7420de2b2c313f69a94b895efaad8d5bc78"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoToVideoSDPipeline.__call__ (cognitive 26): VideoToVideoSDPipeline.__call__ has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 6, ternaries 2 (3 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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"811a8f187ce3132f9ace31d32ed9cc52113ff69eea10e2464868735cab9592c4"}},{"ruleId":"D2","level":"warning","message":{"text":"UTransformerBlock.forward (cognitive 26): UTransformerBlock.forward has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 4 (8 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":"src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e07eac8c557f159a65f6a805a5d6a66073f7f901c0adfb011e1d37f94050efb"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanDiTPipeline.encode_prompt (cognitive 26): HunyuanDiTPipeline.encode_prompt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a0adbc4330c29f7f6e5a18ff783787feb736c065ace42fd52921c5251a8867"}},{"ruleId":"D2","level":"warning","message":{"text":"KandinskyInpaintPipeline.__call__ (cognitive 26): KandinskyInpaintPipeline.__call__ has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7653542c8d80ddd0cd168bb028ce6d6515e2231d07b22f1395d954e09c9809"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky5T2VPipeline.check_inputs (cognitive 26): Kandinsky5T2VPipeline.check_inputs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 12 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce8cc40cba020119a8c7477df74bdc77280f6982db9c49b7867cae64fa39455"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky5I2IPipeline.check_inputs (cognitive 26): Kandinsky5I2IPipeline.check_inputs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebf1a5ed5fd9506cbc5e7798ffa8d29358db9e67131f5d509509d5782a5838f"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky6SRPipeline.__call__ (cognitive 26): Kandinsky6SRPipeline.__call__ has cognitive complexity 26 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 7, boolean chains 4, ternaries 2 (3 pts) (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_sr.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"65aa2a0b9d31ccd9e578d471ab1688543c209af9bcff8f786beb37d825b5f1d3"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky6TI2VAPipeline.check_inputs (cognitive 26): Kandinsky6TI2VAPipeline.check_inputs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 10 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"c212b815f00278f8bf3004fed83def38db254f4f572ae62b16d712e753c010e5"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2ConditionPipeline.preprocess_conditions (cognitive 26): LTX2ConditionPipeline.preprocess_conditions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 3 (9 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7a29fa443521b0e295980b6adcbe13c14f17c59c83c39d702edc88e84e5521"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2DFRPipeline.preprocess_conditions (cognitive 26): LTX2DFRPipeline.preprocess_conditions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 3 (9 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05dc8bda1c88f979fe40efc9a219cb82ab1ddea84c4f2bf029fffa6dd1515e9"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2DFRTemporalRefinePipeline.preprocess_conditions (cognitive 26): LTX2DFRTemporalRefinePipeline.preprocess_conditions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 3 (9 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"80dfb3b8cd3307f9c1cd447ecc53d543fd1f6f5bf0c58dca079ab4c2c2b5e187"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2InContextPipeline.preprocess_conditions (cognitive 26): LTX2InContextPipeline.preprocess_conditions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 3 (9 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"2edf9b3ca015a65938e920e55f6620ac01c7e87f330dc3f580a7e9882201bc07"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanDiTPAGPipeline.encode_prompt (cognitive 26): HunyuanDiTPAGPipeline.encode_prompt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"572febf0a6ef9afa34be4cb3f6679347df699a9d426a64015fe4018ae22c641a"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2Pipeline.__call__ (cognitive 26): SkyReelsV2Pipeline.__call__ has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"292593bfa3424452bd896cceb4f9859b773e7a924489e133c71c408c199b3d34"}},{"ruleId":"D2","level":"warning","message":{"text":"StableUnCLIPImg2ImgPipeline.__call__ (cognitive 26): StableUnCLIPImg2ImgPipeline.__call__ has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 6, ternaries 3 (5 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cb76b103228e82742369f65806f7e2418f1b538d842eb8b194b4ff9a880668"}},{"ruleId":"D2","level":"warning","message":{"text":"BnB4BitDiffusersQuantizer.create_quantized_param (cognitive 26): BnB4BitDiffusersQuantizer.create_quantized_param has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4, loops 1 (2 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":"src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75ff60d1a4adbf244c97e2175de63b8f132de3e27b3ca63bfe6c65084776537"}},{"ruleId":"D2","level":"warning","message":{"text":"utils._dequantize_and_replace (cognitive 26): utils._dequantize_and_replace has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (22 pts), boolean chains 2, loops 1, ternaries 1 (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":"src/diffusers/quantizers/bitsandbytes/utils.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02dcb8f897c57969b67465c79a892b81fe06f51cb16d7f3c5c1058bc221cd7e"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvironmentCommand.run (cognitive 25): EnvironmentCommand.run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (17 pts), error handling 3 (6 pts), loops 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/env.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb15eb2d8c771f94bfc06d74dd5315b0b19ccce30c0664ab2592bc09d29e4bc2"}},{"ruleId":"D2","level":"warning","message":{"text":"sea_cache.apply_sea_cache (cognitive 25): sea_cache.apply_sea_cache has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 4 (8 pts), boolean chains 5, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/sea_cache.py"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d695f4cc70dd46a736643841ca3fad761ab7cd4ab68f6107f0d58a17106b7d"}},{"ruleId":"D2","level":"warning","message":{"text":"VaeImageProcessorLDM3D.preprocess (cognitive 25): VaeImageProcessorLDM3D.preprocess has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 3 (7 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9980dd08debd2f05b3ec49b60005bb31bfd6d19f875286d7a78a941b05f07c9"}},{"ruleId":"D2","level":"warning","message":{"text":"textual_inversion.load_textual_inversion_state_dicts (cognitive 25): textual_inversion.load_textual_inversion_state_dicts has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 5, error handling 1 (4 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/textual_inversion.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a18268285a942e3426dece7263025cfd73228c121dfbd1b4838e07f35dda2e"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicTransformerBlock.forward (cognitive 25): BasicTransformerBlock.forward has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19 (22 pts), ternaries 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4f70050ca5b9bdf45c6ee02c3a302046cb652534d9f409589423ed0e1abe9a"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLMochi.tiled_decode (cognitive 25): AutoencoderKLMochi.tiled_decode has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 5 (10 pts), boolean chains 1 (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":"src/diffusers/models/autoencoders/autoencoder_kl_mochi.py"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"d711fc881ddf4cd13e8ec91fc9e75f319dd91bff2dd3fbf44e9a71182b951dde"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxTransformer2DModel.forward (cognitive 25): FluxTransformer2DModel.forward has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 3, loops 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux.py"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"68130d1d68acf6a769d90bfad8da1016a7fe7a3af4e079f9cf38885f2b92f3bd"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2PerturbedAttnProcessor.__call__ (cognitive 25): LTX2PerturbedAttnProcessor.__call__ has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 4 (11 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":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2e7a0fcca772a3b855d63142704dae4682fbcff9cc752110bf544ba4a87af7"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaWMLTX2PerturbedAttnProcessor.__call__ (cognitive 25): SanaWMLTX2PerturbedAttnProcessor.__call__ has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 4 (11 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":"src/diffusers/models/transformers/transformer_sana_wm_refiner.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"209dad8a06ed128df97b07e5a0ffe2df6ba03079a5570e7487d83933ca153a46"}},{"ruleId":"D2","level":"warning","message":{"text":"UNet3DConditionModel.forward (cognitive 25): UNet3DConditionModel.forward has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 3 (4 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ba59df95bfd4df6d8182ae5ade35618592a335e8a5c1fe977e3aeb68c51585"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentsManager._lookup_ids (cognitive 25): ComponentsManager._lookup_ids has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 3 (6 pts), boolean chains 3 (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":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"88032d461625acbcc88d5525dae99e304f5e0df89a73db6fb602fe3cda409c6f"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos3TransferSetupStep.__call__ (cognitive 25): Cosmos3TransferSetupStep.__call__ has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (16 pts), ternaries 3 (4 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/before_encoder.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3590e1d0f6cb744287a19137cbf651cb5926fbfc1684df0ae34480139bbf00f"}},{"ruleId":"D2","level":"warning","message":{"text":"AceStepPipeline.prepare_src_latents (cognitive 25): AceStepPipeline.prepare_src_latents has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 2, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ace_step/pipeline_ace_step.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab88fe5e6f128049c3fac8aadd138ef4e827e5cbb31aad687cf0809749f8e904"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffSDXLPipeline.check_inputs (cognitive 25): AnimateDiffSDXLPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 14, if/else 9 (11 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c5262fbda628f93d90cf51a7e4dda68215d28ed244c4f03a07c279d57c34b5"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffVideoToVideoPipeline.check_inputs (cognitive 25): AnimateDiffVideoToVideoPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 10 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"171455bdc95a13f809aaa4dc5a09b46d7d815a3f5b7b21a4ffa7875c0e209f03"}},{"ruleId":"D2","level":"warning","message":{"text":"AuraFlowPipeline.check_inputs (cognitive 25): AuraFlowPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64d898afcad8ba8445d9b30a300da8e73067c4aaa9e4cf368c64de6159612bd"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetXSPipeline.check_inputs (cognitive 25): StableDiffusionControlNetXSPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 10 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"557f1342e87047e14e26900eabce0a9f0f15063015c0404eec08f62b2c878333"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionLDM3DPipeline.check_inputs (cognitive 25): StableDiffusionLDM3DPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40eff340046a93d4e52febf05c675bdfee339d17272ec68ce6ca0ead8a6bc92"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPanoramaPipeline.check_inputs (cognitive 25): StableDiffusionPanoramaPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bfd183d6680145edde15eeef00ec0c5a3e83b1ad78d037c8a4e646f9048a74"}},{"ruleId":"D2","level":"warning","message":{"text":"TextToVideoZeroSDXLPipeline.__call__ (cognitive 25): TextToVideoZeroSDXLPipeline.__call__ has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 6, ternaries 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46e4be0ee898cad5a2b952c1eceebe203b6c9dca402850f3c48366bfb10f2ea"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyAnimateInpaintPipeline.prepare_latents (cognitive 25): EasyAnimateInpaintPipeline.prepare_latents has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 3 (9 pts), boolean chains 3, loops 1 (2 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":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2a262c0474dea3b125871ab46550a52a3e5677fb2ca476b5ce414ca6d16d59"}},{"ruleId":"D2","level":"warning","message":{"text":"KandinskyV22PriorEmb2EmbPipeline.__call__ (cognitive 25): KandinskyV22PriorEmb2EmbPipeline.__call__ has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4663f248138ba849dc5dcc15899e22db376511396022e4741296021557656ff"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky5T2IPipeline.check_inputs (cognitive 25): Kandinsky5T2IPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1166a470a67b96b95479f23e5dec781ff735d86e4f140121f526dcf8d4640a"}},{"ruleId":"D2","level":"warning","message":{"text":"LuminaPipeline.check_inputs (cognitive 25): LuminaPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"1833194ebf073e02608de972bf7aab2b42e93092c7cad7176064be576be520a5"}},{"ruleId":"D2","level":"warning","message":{"text":"PixArtSigmaPAGPipeline.check_inputs (cognitive 25): PixArtSigmaPAGPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, if/else 10 (12 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a1c964905255eded1a23d8fa16b182a6e7a355169e5b74003f4b26d2d18d42"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaPAGPipeline.check_inputs (cognitive 25): SanaPAGPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c0adec3e9dfa68e2d472aff9a2fde6a93c9834aded0ee7dc4f2cc7e313e473"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGPipeline.check_inputs (cognitive 25): StableDiffusionPAGPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bc8933d8c3e58d7634abbc2597c2b5c4ee00c7f9734e8bc5eddf2bc93f69fc"}},{"ruleId":"D2","level":"warning","message":{"text":"PixArtAlphaPipeline.check_inputs (cognitive 25): PixArtAlphaPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, if/else 10 (12 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"6285eb1019e322b1ec27a2f849b795c94bc46c9e9ab70c12f3d96fd2de67289c"}},{"ruleId":"D2","level":"warning","message":{"text":"PixArtSigmaPipeline.check_inputs (cognitive 25): PixArtSigmaPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, if/else 10 (12 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ded9a64c02c8cf855c1a71c8834e050d74539b46f3f9ae65ba8898eb9e4fa5"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaPipeline.check_inputs (cognitive 25): SanaPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02f1dd1056e6dea695c93dbcc718d6bddabcd8630cb6cae727ec9bf7d7e1183"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaControlNetPipeline.check_inputs (cognitive 25): SanaControlNetPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_controlnet.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1562d70284cf0b5cf3fe42302e5b2790b4dd8e94511c7e1d749b9a9b52cc5ed"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaVideoPipeline.check_inputs (cognitive 25): SanaVideoPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"670610e267dd6649fb370df3d4981023e4278632e7879318f33f7577b7951561"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPipeline.check_inputs (cognitive 25): StableDiffusionPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"70eb2bde7be782cc04e5d5dffc18475fc742be55e8ea8b536245235f7b1fc16a"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionImg2ImgPipeline.check_inputs (cognitive 25): StableDiffusionImg2ImgPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b8288740a622a6a00290abdb76c99aa69f0e9ed4326b325652ff3551729c14"}},{"ruleId":"D2","level":"warning","message":{"text":"StableUnCLIPPipeline.check_inputs (cognitive 25): StableUnCLIPPipeline.check_inputs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 12 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ab7b8af806c93ddc83b21dd4210b09bf49a8fd4b9b8541cb922196f9738bcb"}},{"ruleId":"D2","level":"warning","message":{"text":"check_forward_call_docstrings.check_file (cognitive 25): check_forward_call_docstrings.check_file has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 2, boolean chains 1, error handling 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_forward_call_docstrings.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b20e9d3c67ebbd7304be33829ef65eb30d6fde3a4436646ecc7d7b88011d2c2"}},{"ruleId":"D2","level":"warning","message":{"text":"check_inits.analyze_results (cognitive 25): check_inits.analyze_results has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (7 pts), ternaries 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_inits.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a345d202653e00c6c3364a17b766a39c8a658bcc4dc06b1050408bdc193b838"}},{"ruleId":"D2","level":"warning","message":{"text":"schema._parse_docstring_args (cognitive 24): schema._parse_docstring_args has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 2, 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":"src/diffusers/commands/schema.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4b4823797ff9bf407149aae09c7021b68b18b0af2a60a805a5afede5f72efe"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigMixin.load_config (cognitive 24): ConfigMixin.load_config has cognitive complexity 24 (threshold 15). Drivers by points: error handling 7 (13 pts), if/else 8 (9 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/configuration_utils.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9a9782036b708b3a3dd85867d0b8f609362d4d42f5c6ef56ab07369b6dd5f9"}},{"ruleId":"D2","level":"warning","message":{"text":"FrequencyDecoupledGuidance.forward (cognitive 24): FrequencyDecoupledGuidance.forward has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 1 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/frequency_decoupled_guidance.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fb3156ba3d3b89dfdc76fbb6dbaab9106e2a2be87b780cb5528ec643c51a34"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextParallelSplitHook.pre_forward (cognitive 24): ContextParallelSplitHook.pre_forward has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (4 pts), boolean chains 3 (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":"src/diffusers/hooks/context_parallel.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51c7894ddb8d35e34dadd668b1d2b1a8261367e10d26f4ff2df785d528ed372"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupOffloadingHook.pre_forward (cognitive 24): GroupOffloadingHook.pre_forward has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4 (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":"src/diffusers/hooks/group_offloading.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f10d32a3ef7dba2feb5f24dd23734aa60fba69fd4829dd624290a886cc9039"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file.load_single_file_sub_model (cognitive 24): single_file.load_single_file_sub_model has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 8 (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":"src/diffusers/loaders/single_file.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc353417b9ec7ccdd8a81dc05af05b84e3768691b667dd143d9b64d7ba933901"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLAllegro.tiled_encode (cognitive 24): AutoencoderKLAllegro.tiled_encode has cognitive complexity 24 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 3 (10 pts), boolean chains 2 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (AutoencoderKLAllegro.tiled_decode) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"0965f5ab0772013e8354a27df3453a55cb57cbb6cf0a3b791967a588aba4581b"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLAllegro.tiled_decode (cognitive 24): AutoencoderKLAllegro.tiled_decode has cognitive complexity 24 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 3 (10 pts), boolean chains 2 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (AutoencoderKLAllegro.tiled_encode) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"85577ca705864f11ba8000266d897eb72aceb520531cc0115ae76f51dddb6d9e"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLCogVideoX.tiled_decode (cognitive 24): AutoencoderKLCogVideoX.tiled_decode has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 5 (9 pts), ternaries 1 (4 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":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"541824cf4f7a14a5d131ed7bcc48214cbe1c7931c1adf51f3f99a721e20c7149"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlNetModel.forward (cognitive 24): FluxControlNetModel.forward has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 4, ternaries 3, boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_flux.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"53db2ccc2751f6df07123be7308591f889a002992ea8eb11d4173a2479b06040"}},{"ruleId":"D2","level":"warning","message":{"text":"model_loading_utils._load_shard_file_tp (cognitive 24): model_loading_utils._load_shard_file_tp has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/model_loading_utils.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d2a0e99616b15073f9290a541cd76bd8e71dd648c8ae8f720b45f269a433ae"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelMixin.to (cognitive 24): ModelMixin.to has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"634756d5c1201cadcfb69772842ceefe8ab630c64c315212bf992eb915a8d161"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelMixin.num_parameters (cognitive 24): ModelMixin.num_parameters has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":2090}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced6570a1d431b8ed8024ca1e58196d133ee756141ba4fe4f9887a5f1b7c01c4"}},{"ruleId":"D2","level":"warning","message":{"text":"DreamLiteUNetModel.__init__ (cognitive 24): DreamLiteUNetModel.__init__ has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (17 pts), loops 3, ternaries 3, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"304159d1649d6b33e4bc126a1ff2fe25fe73353bf268cd31bff3d4e7429c056b"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentsManager.add (cognitive 24): ComponentsManager.add has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (4 pts), boolean chains 2 (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":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7df720660ce511302e008008b8d5a67dbc8eccecfbd04a7049391956ede7881"}},{"ruleId":"D2","level":"warning","message":{"text":"EchoVaeEncoderStep.__call__ (cognitive 24): EchoVaeEncoderStep.__call__ has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 2 (5 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/echo/encoders.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"25270d558c3480e3fa8d03af70bb0f8f22ad72378ef480834f4593f4bb5970a1"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffPipeline.check_inputs (cognitive 24): AnimateDiffPipeline.check_inputs has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 10 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a10cb519871f0a9cc8d0732f0a514ffad573b1960b17b03dc122bc3b5137e9"}},{"ruleId":"D2","level":"warning","message":{"text":"IFSuperResolutionPipeline.check_inputs (cognitive 24): IFSuperResolutionPipeline.check_inputs has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 11 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd96da6c5131d4a6eb240f9f2846345288f6bb6b75ada9ac7fc9ac456e1a866"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionGLIGENTextImagePipeline.check_inputs (cognitive 24): StableDiffusionGLIGENTextImagePipeline.check_inputs has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 11 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"140c1cc858c07bd9fad29a1d798d61e59a9adde7f205b6c61c4d74a09f8702d9"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxFillPipeline.check_inputs (cognitive 24): FluxFillPipeline.check_inputs has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 14, if/else 9 (10 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_fill.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"15fe2a4ed58f8107cb8e14b59bb0fd930b6f0a2c545a1bffb9fc07fe78dfe8ad"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky3Pipeline.encode_prompt (cognitive 24): Kandinsky3Pipeline.encode_prompt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0101dc7ff377bff4f535915ff17e26a4528fcd1e7b9dd7a9859ecd56617be9f5"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky3Img2ImgPipeline.encode_prompt (cognitive 24): Kandinsky3Img2ImgPipeline.encode_prompt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"49627148dbcc7fbe7edeaeca41f23683b3acc318228e8225207b93b2fb5c6806"}},{"ruleId":"D2","level":"warning","message":{"text":"LongCatAudioDiTPipeline.__call__ (cognitive 24): LongCatAudioDiTPipeline.__call__ has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (20 pts), loops 2 (4 pts) (nesting depth added 6). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_audio_dit/pipeline_longcat_audio_dit.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"a832d9f6e54cce0e6e4ac9e9d1f636d16849649483ad190626e5e0eb88a3bc53"}},{"ruleId":"D2","level":"warning","message":{"text":"MarigoldDepthPipeline.__call__ (cognitive 24): MarigoldDepthPipeline.__call__ has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf21e7eae61fae67a00decb7669614e040736daeea2d37f3623ea8381f5927b5"}},{"ruleId":"D2","level":"warning","message":{"text":"MarigoldIntrinsicsPipeline.__call__ (cognitive 24): MarigoldIntrinsicsPipeline.__call__ has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15c1d16cdb4d2139befac5c7c6403409d7842b8fb5e4daab9dfef26fdfebd25"}},{"ruleId":"D2","level":"warning","message":{"text":"MarigoldNormalsPipeline.__call__ (cognitive 24): MarigoldNormalsPipeline.__call__ has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_normals.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2e5971982931b96c62828aa3f0978e07c04c0baf520d82140312f20515835b"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline_loading_utils.is_safetensors_compatible (cognitive 24): pipeline_loading_utils.is_safetensors_compatible has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3 (4 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":"src/diffusers/pipelines/pipeline_loading_utils.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"799e92e08d91f2d1282412e5c439b251603e883388aab46baad61917363d1ad4"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffusionPipeline.enable_model_cpu_offload (cognitive 24): DiffusionPipeline.enable_model_cpu_offload has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 4, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b965c26064ad623318da1a747d693c24747a4c4d1c22dd900945ad9c8d181b"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaPipeline.encode_prompt (cognitive 24): SanaPipeline.encode_prompt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fba20a7fd7c44f8f9cb0170437c6933738e7510efadcf87639dcf63ab37c114"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaControlNetPipeline.encode_prompt (cognitive 24): SanaControlNetPipeline.encode_prompt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_controlnet.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2475f5ec3b281402cb7dd7e21f63a818c2a3c08577711bdc0de5b6fbf174f59"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaVideoPipeline.encode_prompt (cognitive 24): SanaVideoPipeline.encode_prompt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd01120d7d154310e17b3eb69164eb0463b129992ed8834c9d50534500d72b2"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaImageToVideoPipeline.encode_prompt (cognitive 24): SanaImageToVideoPipeline.encode_prompt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"7334f7695475fc02b4bdcc5570e4c0659329642c3f0ee67b2a488bbd56e2e93f"}},{"ruleId":"D2","level":"warning","message":{"text":"cam_utils.action_string_to_c2w (cognitive 24): cam_utils.action_string_to_c2w has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 4 (8 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_wm/cam_utils.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d3b0a2e30cec592af76f853badfbc5fe2988c2354995afad741dea3639ad20"}},{"ruleId":"D2","level":"warning","message":{"text":"StableAudioPipeline.encode_prompt (cognitive 24): StableAudioPipeline.encode_prompt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 7 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca2ee9ac6b8954b178f7449deed51623f9a49456c6591a4724e213c44082f2a"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionImageVariationPipeline.__call__ (cognitive 24): StableDiffusionImageVariationPipeline.__call__ has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5, ternaries 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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11aafa8b6f5b9aea1f6b94b72444fc7d9673f5dc9d0afd9623056a006796480"}},{"ruleId":"D2","level":"warning","message":{"text":"WanImageToVideoPipeline.check_inputs (cognitive 24): WanImageToVideoPipeline.check_inputs has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 14, if/else 9 (10 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_i2v.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6fa190880458607cba9f45e48007446094e895fc04f7462dd41ea5f0e98a7c"}},{"ruleId":"D2","level":"warning","message":{"text":"WanVACEPipeline.preprocess_conditions (cognitive 24): WanVACEPipeline.preprocess_conditions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_vace.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"543296cabc3356c260c504592a1dca688ae3b258dff8efa996a0446f52ead4f5"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverMultistepScheduler.convert_model_output (cognitive 24): DPMSolverMultistepScheduler.convert_model_output has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (23 pts), ternaries 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":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e78c3998bf64b28329c7d21a83bcef2ee36fbde5dd4f7f2545c4c428085de89"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverMultistepInverseScheduler.convert_model_output (cognitive 24): DPMSolverMultistepInverseScheduler.convert_model_output has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (23 pts), ternaries 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":"src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd71df11c88226025b029d4daeb72fa5c1bad24cb0865e2f4837041a4cfea9f9"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverSinglestepScheduler.convert_model_output (cognitive 24): DPMSolverSinglestepScheduler.convert_model_output has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (23 pts), ternaries 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":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"8783500da1f89616c5749998305627fe41e955a2a64bc6f77e436673f4264b16"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosScheduler.step_unipc (cognitive 24): HeliosScheduler.step_unipc has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"769f5f6786f75e23bbce2472b9b4f5acc6d4d645459fb97613b2d6479a9edcb8"}},{"ruleId":"D2","level":"warning","message":{"text":"SASolverScheduler.convert_model_output (cognitive 24): SASolverScheduler.convert_model_output has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (23 pts), ternaries 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":"src/diffusers/schedulers/scheduling_sasolver.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3ec39879236e85eaeeac58481730f158ad9cecb076509aea9b96e5be89e530"}},{"ruleId":"D2","level":"warning","message":{"text":"custom_init_isort.split_code_in_indented_blocks (cognitive 24): custom_init_isort.split_code_in_indented_blocks has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/custom_init_isort.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfeb6e5f7ffb22320cedf3b0fcf45a370242df13c06e3f373792a1c85b0977c"}},{"ruleId":"D2","level":"warning","message":{"text":"run._save_output (cognitive 23): run._save_output has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (5 pts), boolean chains 2 (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":"src/diffusers/commands/run.py"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebaa26c6363cebb1bac55150dcb485fdf263e2413550f332e99db2791bc3817"}},{"ruleId":"D2","level":"warning","message":{"text":"context_parallel.apply_context_parallel (cognitive 23): context_parallel.apply_context_parallel has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/context_parallel.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fefe490252832e9c673207fb09405655440ff2d70dd12bc6a58b988344ba52"}},{"ruleId":"D2","level":"warning","message":{"text":"tensor_parallel.resolve_tp_shard_specs (cognitive 23): tensor_parallel.resolve_tp_shard_specs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 5 (9 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/tensor_parallel.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca8bbdc004d34afdcbd95ab9e7627c2a03ba69ab38c63ca3bf53262b2edf7cd"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLCogVideoX.tiled_encode (cognitive 23): AutoencoderKLCogVideoX.tiled_encode has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 5 (9 pts), ternaries 1 (4 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":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c2b83d18db83e32628d4dab2ce0e24e8d035bb5bee55d3360b5c0cd683e930"}},{"ruleId":"D2","level":"warning","message":{"text":"KVAESafeConv3d.forward (cognitive 23): KVAESafeConv3d.forward has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (6 pts), boolean chains 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":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9be829c378b9a2d430b67214b05c9c59b21b243cf52de0188b45a06618c25a"}},{"ruleId":"D2","level":"warning","message":{"text":"SparseControlNetModel.forward (cognitive 23): SparseControlNetModel.forward has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 3, loops 2, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_sparsectrl.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc31bdba6413e35d3b95f0be99400792f5daeee64d06961bcd02eaf7e34fb6f6"}},{"ruleId":"D2","level":"warning","message":{"text":"modeling_utils.get_parameter_dtype (cognitive 23): modeling_utils.get_parameter_dtype has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 4 (5 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":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"84dd1351b5608b518562562b01aab244371bfe1b0131446cb9b787d4a9b93807"}},{"ruleId":"D2","level":"warning","message":{"text":"ChromaTransformer2DModel.forward (cognitive 23): ChromaTransformer2DModel.forward has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chroma.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0eef5d8c12d619b3841dce72aa7c994e05d81ca9c49b5952bf05e4e75ca6874"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosTransformer3DModel.forward (cognitive 23): HeliosTransformer3DModel.forward has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, boolean chains 7, loops 2 (4 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_helios.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ab09c88e0bd59aa255856c8405a30739167850ef44921c193e9bd62609786e"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanVideoFramepackTransformer3DModel.forward (cognitive 23): HunyuanVideoFramepackTransformer3DModel.forward has cognitive complexity 23 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 9, boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a94e7daaa60b82e7245698681cdbbf44aeb881b13b025d92638db3dcdaf310"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2VideoTransformerBlock.forward (cognitive 23): LTX2VideoTransformerBlock.forward has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4c624130fd368f90dcf02b083c25b4bdf62b9ea87615682166c64523dfa678"}},{"ruleId":"D2","level":"warning","message":{"text":"RFD4ProteinaTransformer.forward (cognitive 23): RFD4ProteinaTransformer.forward has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (4 pts), ternaries 2 (4 pts), boolean chains 3 (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":"src/diffusers/models/transformers/transformer_rfd4_proteina.py"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35e2c91e3e94dcd9da644c9656088e2fb4e6b649f5ec826036e5f6d166bb360"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentsManager.enable_auto_cpu_offload (cognitive 23): ComponentsManager.enable_auto_cpu_offload has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"889154315977459fc27a3b17c926b189d322f526d7b98385ea3f422fe245bf72"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos3ActionPrepareLatentsStep.__call__ (cognitive 23): Cosmos3ActionPrepareLatentsStep.__call__ has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/before_denoise.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5de6f764d9a5461b5c1f4329b2d5399e3be563e14487a3e1d7c74b60010caf7"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoPipelineForText2Image.from_pipe (cognitive 23): AutoPipelineForText2Image.from_pipe has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/auto_pipeline.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca421dc73ec414f86496224fadc0debd9ebd2c5e1dfddeccc16e2ec2cd11dbf"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoPipelineForImage2Image.from_pipe (cognitive 23): AutoPipelineForImage2Image.from_pipe has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/auto_pipeline.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"50cd25a925734a3eb32d93f729eba452863f26573c35672bf05304f8083dfc7e"}},{"ruleId":"D2","level":"warning","message":{"text":"CogVideoXVideoToVideoPipeline.check_inputs (cognitive 23): CogVideoXVideoToVideoPipeline.check_inputs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 11 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cdc83ff8fceb5e4d697e3e48baa4c01025b9f53a372255b5c53a4abee1df204"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioLDMPipeline.__call__ (cognitive 23): AudioLDMPipeline.__call__ has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, ternaries 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":"src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ab5dda47da27fba298df2d79a6724206f466983ed8b7374f71fa5b85466fc8"}},{"ruleId":"D2","level":"warning","message":{"text":"I2VGenXLPipeline.__call__ (cognitive 23): I2VGenXLPipeline.__call__ has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 6, ternaries 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c88f4da9d4ce8024034ba3ecfacdeb2c5246ffb98333e2601832ee0982d4b6"}},{"ruleId":"D2","level":"warning","message":{"text":"UniDiffuserBlock.forward (cognitive 23): UniDiffuserBlock.forward has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 4 (8 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":"src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7bb35d66a5d512f6c615738ba93064526dbc9f47067a1238f18b40d7bcda25"}},{"ruleId":"D2","level":"warning","message":{"text":"UniDiffuserPipeline._infer_batch_size (cognitive 23): UniDiffuserPipeline._infer_batch_size has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"435736f6f8595cf12c104fdac87664934c05b59077e2451006b046cac4824ab9"}},{"ruleId":"D2","level":"warning","message":{"text":"VQDiffusionPipeline.__call__ (cognitive 23): VQDiffusionPipeline.__call__ has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5, ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3207f1027be67f0b3b83d49f8b4d68576f3e6baed32c0be5a093c474a151cdff"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyAnimatePipeline.encode_prompt (cognitive 23): EasyAnimatePipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb9006dafaf6b61c9fa27b505fe44bdb11b623cfd59f152a1f39799062affc4"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyAnimateControlPipeline.encode_prompt (cognitive 23): EasyAnimateControlPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"46436db3c48f246a1f1b6ceb82bbb7371416de5143a3e9928e7f8e27c243fdf5"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyAnimateInpaintPipeline.encode_prompt (cognitive 23): EasyAnimateInpaintPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70d2b7868397cda5e9c345c95f510ce8d72a7bd2fbe6df240224b0051bbccfc"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxPipeline.encode_prompt (cognitive 23): FluxPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f585e4c92de6a47455ef4cf8df52d53fb9431949816d406956f4230e89371d"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxPipeline.check_inputs (cognitive 23): FluxPipeline.check_inputs has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 14, if/else 8 (9 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5728f0d56decb9f51fd8181d0a82220bc95598693302c61915a179301c93e17"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlPipeline.encode_prompt (cognitive 23): FluxControlPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8d5fc1cc40afca7d197a0e1bbf409db3a7ef41708906f473f343cf5f6d3d37"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlImg2ImgPipeline.encode_prompt (cognitive 23): FluxControlImg2ImgPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"44523697656309ac3440584464f26512e10d817f6c64af3f0d43b58ddef7eda8"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlInpaintPipeline.encode_prompt (cognitive 23): FluxControlInpaintPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb27fdb186db9733cac0b2dc54ed4f02f3df1c9d1b97d24a8449c86ab608227"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlNetPipeline.encode_prompt (cognitive 23): FluxControlNetPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0867328852ce1d227132f7ca2ad774c306bf105df5e5e15379a7233e5ebe89f"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlNetImg2ImgPipeline.encode_prompt (cognitive 23): FluxControlNetImg2ImgPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5246f32d0496e8df07dda14199ef287a77ea672267eb7fac74707b0cfb1db08"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlNetInpaintPipeline.encode_prompt (cognitive 23): FluxControlNetInpaintPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"137a9780d0eeb511b3c8a643e3ebf8888b588131fd58c7f1f37a4da3c8d71ca5"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxFillPipeline.encode_prompt (cognitive 23): FluxFillPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_fill.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"298edbe68cfbd996b9a4963cba1ad91724972c9e9d31622bb6ff377bf115973c"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxImg2ImgPipeline.encode_prompt (cognitive 23): FluxImg2ImgPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_img2img.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c05f775b0bd616a86d5034dbc1c4fcd946c174ad240c91745b0756e25c6b59"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxInpaintPipeline.encode_prompt (cognitive 23): FluxInpaintPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_inpaint.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e773fc41f5b37c9f129e6dfc50b3ca5c2faddafd22fce13f13bba6365d50fa"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxKontextPipeline.encode_prompt (cognitive 23): FluxKontextPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eddf4fbd2f2af3831d0ad784f8066d2420e82b86d5934c9c511f66487a36043"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxKontextPipeline.check_inputs (cognitive 23): FluxKontextPipeline.check_inputs has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 14, if/else 8 (9 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82259acacb693ea6deb183280db6517ecab609bc504003e559c20a7c30119ee"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxKontextInpaintPipeline.encode_prompt (cognitive 23): FluxKontextInpaintPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b1b6ff04acffb23acd0d4e3fbc269b7b6128cc74d5469c9a8f3b6df7324c84"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxKontextInpaintPipeline.prepare_latents (cognitive 23): FluxKontextInpaintPipeline.prepare_latents has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70854fba5e651fffbaebedfb6e98fd28dcc1074821d2de694f9c56fe984dfcc"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxPriorReduxPipeline.encode_prompt (cognitive 23): FluxPriorReduxPipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5a42180f482d41d036356aca3f880dfbced7735a8fb2aba26efb7496d0a119"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanImagePipeline.check_inputs (cognitive 23): HunyuanImagePipeline.check_inputs has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 10 (11 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8f3a19f9599b397a0abcb8546264e673771693ac91889eac9c7795172a53ba"}},{"ruleId":"D2","level":"warning","message":{"text":"LDMTextToImagePipeline.__call__ (cognitive 23): LDMTextToImagePipeline.__call__ has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 4, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"037a15e1e655b6a4b437f2811bb5be369d8f21d74ace69bcb59a007348191184"}},{"ruleId":"D2","level":"warning","message":{"text":"LattePipeline.encode_prompt (cognitive 23): LattePipeline.encode_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"475b96c1ecfef9b2e2e33cc91a4fe0e90a55ff7eaf31b17e85c3bcac272dc491"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2HDRPipeline.check_inputs (cognitive 23): LTX2HDRPipeline.check_inputs has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 9 (11 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a4ce181976f275c3f12590ad4e4287daa64adaa176ae7249dc9f098028c91f"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaSprintImg2ImgPipeline.check_inputs (cognitive 23): SanaSprintImg2ImgPipeline.check_inputs has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 10 (11 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1383d5b1c0aafcc7c4324de0c3ca0caa4b144df2074b448c81fa89965297e7d"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionInstructPix2PixPipeline.check_inputs (cognitive 23): StableDiffusionInstructPix2PixPipeline.check_inputs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 10 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8a41a23bd300ef635d3b9845c6f6f0dd3e0b3cc5d8406b553ffb540ebd44a0"}},{"ruleId":"D2","level":"warning","message":{"text":"utils._replace_with_bnb_linear (cognitive 23): utils._replace_with_bnb_linear has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 1 (5 pts), boolean chains 3, loops 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/bitsandbytes/utils.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bbb645bdc796129605b1a28877012c68a95676e5dcae633a739cb01a971da6"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverSinglestepScheduler.set_timesteps (cognitive 23): DPMSolverSinglestepScheduler.set_timesteps has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, boolean chains 9. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"941fd74a98ccdfa81994fa47944c8ffe853055242c88262da1a5ca6c02077d6e"}},{"ruleId":"D2","level":"warning","message":{"text":"check_return_annotations.main (cognitive 23): check_return_annotations.main has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 3, 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":"utils/check_return_annotations.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a444610d11fb558364442d127f344af74a93f9a979d47227e18e916eceec2be"}},{"ruleId":"D2","level":"warning","message":{"text":"MagCacheBlockHook.new_forward (cognitive 22): MagCacheBlockHook.new_forward has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/mag_cache.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88ef6564729ad3f6d43e115bbbab892571bc6174014cd4a86f44a29b2059297"}},{"ruleId":"D2","level":"warning","message":{"text":"tensor_parallel._check_tp_supported (cognitive 22): tensor_parallel._check_tp_supported has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/tensor_parallel.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37fed5e11eccc03a4ceac92f34e2a8d75b7c638cbe623341da0e64f89062e7a"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_conversion_utils._convert_xlabs_flux_lora_to_diffusers (cognitive 22): lora_conversion_utils._convert_xlabs_flux_lora_to_diffusers has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"08709445bdbf853a8067b34fe07a602f440afa542057593ffecf8872a31a1d88"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_conversion_utils._convert_non_diffusers_ideogram4_lora_to_diffusers (cognitive 22): lora_conversion_utils._convert_non_diffusers_ideogram4_lora_to_diffusers has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 5 (8 pts), ternaries 2 (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":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":3174}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d5ba12126c215b2fb564555bf41c199b41d456a1584ddc9e85f48171220caa"}},{"ruleId":"D2","level":"warning","message":{"text":"WanLoraLoaderMixin._maybe_expand_t2v_lora_for_i2v (cognitive 22): WanLoraLoaderMixin._maybe_expand_t2v_lora_for_i2v has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (5 pts), boolean chains 3 (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. This shape REPEATS in the file: one other method here (SkyReelsV2LoraLoaderMixin._maybe_expand_t2v_lora_for_i2v) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":4155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef47692647e167b8b801b46fea4c3fa4e960ec34af2281fb470eddf5e4f42ee7"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2LoraLoaderMixin._maybe_expand_t2v_lora_for_i2v (cognitive 22): SkyReelsV2LoraLoaderMixin._maybe_expand_t2v_lora_for_i2v has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (5 pts), boolean chains 3 (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. This shape REPEATS in the file: one other method here (WanLoraLoaderMixin._maybe_expand_t2v_lora_for_i2v) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":4420}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5a6846f6b49d1e2d765188619f34f2394b81a20a46e9cdf3d413bda64447da"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniMaxH3LoraLoaderMixin.load_lora_weights (cognitive 22): MiniMaxH3LoraLoaderMixin.load_lora_weights has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 6 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":7274}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f97da0afad480bc71a70b6e2be2c24377a83975a7f236fd5ff9f0661ebd80c0"}},{"ruleId":"D2","level":"warning","message":{"text":"attention_dispatch._check_attention_backend_requirements (cognitive 22): attention_dispatch._check_attention_backend_requirements has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (21 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":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8dc717be54918789f9cb04a512aba327b48ddf6142812924b38f6d31b10a713"}},{"ruleId":"D2","level":"warning","message":{"text":"CosmosControlNetModel.forward (cognitive 22): CosmosControlNetModel.forward has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_cosmos.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abc9d3c91a39ec6b77116ce532f1cb34c0ff5449f4ca2c87437217d260f140d"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaTransformer2DModel.forward (cognitive 22): SanaTransformer2DModel.forward has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f1075f8a0ae9400aab3a4464fa8e73d791fc28ba7d8574408d56f810fd68d8"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaVideoTransformer3DModel.forward (cognitive 22): SanaVideoTransformer3DModel.forward has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_video.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"4034f206609ec4a09d25057eec918db48dccc67cfec9c8126be6235054854b49"}},{"ruleId":"D2","level":"warning","message":{"text":"ResnetBlock2DDreamLite.__init__ (cognitive 22): ResnetBlock2DDreamLite.__init__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (19 pts), ternaries 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88e55968974ad7675876039623c77bd948e2a33f7ee545689ea537f20bb1545"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxTextEncoderStep.encode_prompt (cognitive 22): FluxTextEncoderStep.encode_prompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, ternaries 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"446efaf0541142e86df003a6f89b1e2eda643275cffa4d8068186648ec7c0c6a"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaFiboEditPipeline.check_inputs (cognitive 22): BriaFiboEditPipeline.check_inputs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 9, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94b384f19b294b50725e963740a2538fad69e2b9deb7f69d4dd46b57286aefe"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos3MixedPrecisionConfig.resolve (cognitive 22): Cosmos3MixedPrecisionConfig.resolve has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 4, ternaries 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/mixed_precision.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8127044efd7e121a69055ba92af9a81fecd2c9795a7056f5d15cc674d5307793"}},{"ruleId":"D2","level":"warning","message":{"text":"IFPipeline.encode_prompt (cognitive 22): IFPipeline.encode_prompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a213edd21d681580d0c68a13ddf69dd4229cc06dd72f22bf3b3525744d6b7c"}},{"ruleId":"D2","level":"warning","message":{"text":"IFImg2ImgPipeline.encode_prompt (cognitive 22): IFImg2ImgPipeline.encode_prompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be331c6dfd42fd2293a216d1d98c6de07fc9ab56003d1fb8e4a0254b9086174"}},{"ruleId":"D2","level":"warning","message":{"text":"IFImg2ImgPipeline.check_inputs (cognitive 22): IFImg2ImgPipeline.check_inputs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 10 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3202aa87ac1c2e4021d0c0385ce57e53a0429201a6b9057ac686d14c83a290"}},{"ruleId":"D2","level":"warning","message":{"text":"IFImg2ImgSuperResolutionPipeline.encode_prompt (cognitive 22): IFImg2ImgSuperResolutionPipeline.encode_prompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"e320a8b047269f3a3e91bf36136170d834c0a17273eb47486efb11a0c73351aa"}},{"ruleId":"D2","level":"warning","message":{"text":"IFInpaintingPipeline.encode_prompt (cognitive 22): IFInpaintingPipeline.encode_prompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a7341f75f8be54f1bb057f4f903c3e330e9e718f01f696a54ea55b4ce2a71b"}},{"ruleId":"D2","level":"warning","message":{"text":"IFInpaintingSuperResolutionPipeline.encode_prompt (cognitive 22): IFInpaintingSuperResolutionPipeline.encode_prompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"231149089f53db67d6595f926df035f92da6e7d52bf5f6bae28478c68ae30222"}},{"ruleId":"D2","level":"warning","message":{"text":"IFSuperResolutionPipeline.encode_prompt (cognitive 22): IFSuperResolutionPipeline.encode_prompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f672d8672211cf8e193bf3ceaa0e4a749eac0c58406aeb46e3d74be803c2c5c"}},{"ruleId":"D2","level":"warning","message":{"text":"PIAPipeline.check_inputs (cognitive 22): PIAPipeline.check_inputs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/pia/pipeline_pia.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d9f65b43f2c18afc844ef51fe912ffc64ecf58318a9124da4eab68d24f8f16"}},{"ruleId":"D2","level":"warning","message":{"text":"KandinskyPipeline.__call__ (cognitive 22): KandinskyPipeline.__call__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"99906b4b6136b71b2328b4120f1471fd569854d2e1500944977b64ad896c6044"}},{"ruleId":"D2","level":"warning","message":{"text":"KandinskyImg2ImgPipeline.__call__ (cognitive 22): KandinskyImg2ImgPipeline.__call__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b2c93ac195aa9b82400da7398e579fd4b0de483feb40be19f7ce1b9d12f9a9"}},{"ruleId":"D2","level":"warning","message":{"text":"KandinskyPriorPipeline.__call__ (cognitive 22): KandinskyPriorPipeline.__call__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fdeb999a4f6c41b2bfdebb07d982ae41fb6d169fa252bfc75f8c1d8b2affd9"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsPipeline.encode_prompt (cognitive 22): KolorsPipeline.encode_prompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9a0243cf6f60b80aae4c4558eabb78ce761086608f8f76271e3dacb2b38b4a"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsImg2ImgPipeline.encode_prompt (cognitive 22): KolorsImg2ImgPipeline.encode_prompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"136baa304e09a6073199ef1d37b8e585107fac42c1223e94179b0727b8dd9e3b"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2LatentUpsamplePipeline.__call__ (cognitive 22): LTX2LatentUpsamplePipeline.__call__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc97a7c7e3a1c8407b64290fdc87ed6fd425cb1eb5e13f013d5c9a57d49bb7e5"}},{"ruleId":"D2","level":"warning","message":{"text":"MarigoldImageProcessor.load_image_canonical (cognitive 22): MarigoldImageProcessor.load_image_canonical has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/marigold_image_processing.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"644ca76f6f5503b627dfe7130dd1df9ccd9dae02ea1318bbc224cd6cf05d2e63"}},{"ruleId":"D2","level":"warning","message":{"text":"OmniGenPipeline.check_inputs (cognitive 22): OmniGenPipeline.check_inputs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3, loops 1 (2 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":"src/diffusers/pipelines/omnigen/pipeline_omnigen.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e3633e90d957bc3cf28c1dd967a18314930082797220224401ecabec465e14"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsPAGPipeline.encode_prompt (cognitive 22): KolorsPAGPipeline.encode_prompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_kolors.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2864fbb103072491b26bb6d9eaf62745b692f3e38b04cb767be022df04eb89"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffPAGPipeline.check_inputs (cognitive 22): AnimateDiffPAGPipeline.check_inputs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d320af2351c04514f5cbf7eac09e354a5ccc158d8d5a392b067b57412fe8746"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGImg2ImgPipeline.check_inputs (cognitive 22): StableDiffusionPAGImg2ImgPipeline.check_inputs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd3d04b4deff0fe24f37117c50df3931ada7f0c6823c063353b83c148c18ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"ShapEImg2ImgPipeline.__call__ (cognitive 22): ShapEImg2ImgPipeline.__call__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 3 (5 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b04832697878503bc3c3e88b8bce37a13550f338abdd6d38aa37090d68daf9"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingImageToVideoPipeline.check_inputs (cognitive 22): SkyReelsV2DiffusionForcingImageToVideoPipeline.check_inputs has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (9 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c9890e0571081ffbeafe34e5a20ab6621e0257cbd7e743105f34bba62d466a"}},{"ruleId":"D2","level":"warning","message":{"text":"convert_from_ckpt.assign_to_checkpoint (cognitive 22): convert_from_ckpt.assign_to_checkpoint has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (6 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"618885b3d9c71ff416c9bca299b41968ec872ca1f4e244b954053ad8572ac74f"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionAdapterPipeline.check_inputs (cognitive 22): StableDiffusionAdapterPipeline.check_inputs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 10 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee9239a6ee4c868f29330c1ed4cf53d537fda6eb683560b36af17b722fc809e"}},{"ruleId":"D2","level":"warning","message":{"text":"BFLQuantizedParameter.__torch_function__ (cognitive 22): BFLQuantizedParameter.__torch_function__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 8, ternaries 2 (4 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/bfl/utils.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"33445a7b876558526d7ecc606e8f34ceab542d2d3f6a0030456cb20337667ad2"}},{"ruleId":"D2","level":"warning","message":{"text":"hub_utils.load_or_create_model_card (cognitive 22): hub_utils.load_or_create_model_card has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 1 (4 pts), boolean chains 3, error handling 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":"src/diffusers/utils/hub_utils.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a064ef2f50640858444b96bdf059f04c09afcc9984b8b3131d9151588ef455"}},{"ruleId":"D2","level":"warning","message":{"text":"hub_utils._get_checkpoint_shard_files (cognitive 22): hub_utils._get_checkpoint_shard_files has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 4 (6 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/hub_utils.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"71297c0d650dbb1ea47e4646eaa3b8a322f4eac30936d6b2087895fad21c6cbd"}},{"ruleId":"D2","level":"warning","message":{"text":"TaylorSeerState.update (cognitive 21): TaylorSeerState.update has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (6 pts), boolean chains 1 (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":"src/diffusers/hooks/taylorseer_cache.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a4fab45f8f23a5fffc3e976e2dce8dda2a51a6f443377340770cac31bc995d"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file_utils._legacy_load_scheduler (cognitive 21): single_file_utils._legacy_load_scheduler has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (16 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ec93bc01b478d0044f3468966064d3f763a3167f0b7a80213b62c0947d45f0"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2AudioEncoder.__init__ (cognitive 21): LTX2AudioEncoder.__init__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (3 pts), ternaries 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":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"2144f602ba3c8368e89b7fa9372a350102ed335b5241066c22c901961e9cc69a"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImage21Encoder3d.__init__ (cognitive 21): QwenImage21Encoder3d.__init__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 2 (7 pts), loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7afb47f8e10b855899651c5b2b3319342f82167dad590c35b99033308899263"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLQwenImage21.tiled_encode (cognitive 21): AutoencoderKLQwenImage21.tiled_encode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 5 (9 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":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"43bc99df8d8e265b93f68fff011b3b35cbff105801d7b68f446058818af4c529"}},{"ruleId":"D2","level":"warning","message":{"text":"WanEncoder3d.__init__ (cognitive 21): WanEncoder3d.__init__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 2 (7 pts), loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_wan.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"70009612c22700cfd97b85d785c6161eb06d2652aebb2dfc59466590546ca1f0"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLWan.tiled_encode (cognitive 21): AutoencoderKLWan.tiled_encode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 5 (9 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":"src/diffusers/models/autoencoders/autoencoder_kl_wan.py"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b026ad7cbe63aa696de6360b5c2b6a0cf014ebac08adadec7a4415e111f1bbc"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderVidTok.forward (cognitive 21): AutoencoderVidTok.forward has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (20 pts), ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9db048190f39d62e89e8583b8ca312a89faaf4462b136511dc5b584e206a69"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaFibo2Transformer2DModel.forward (cognitive 21): BriaFibo2Transformer2DModel.forward has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, loops 3, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria_fibo2.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7fb29b94da2ead0d74990994f3c9bf0ea14089e7607d7d95a46ebb3277acfe"}},{"ruleId":"D2","level":"warning","message":{"text":"HiDreamImageTransformer2DModel.forward (cognitive 21): HiDreamImageTransformer2DModel.forward has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hidream_image.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c09cba6a5e1e96a0123d0b76aa261135c0ec156e349120991523df7b17dbbe"}},{"ruleId":"D2","level":"warning","message":{"text":"MotifVideoAttnProcessor2_0.__call__ (cognitive 21): MotifVideoAttnProcessor2_0.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_motif_video.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad789ea6a1199c3e26c5f6f7bf29b8a23ebc0aae4646c3d66a6fc3a2d59e9ecc"}},{"ruleId":"D2","level":"warning","message":{"text":"BidirectionalGDNUCPESinglePathLiteLA.forward (cognitive 21): BidirectionalGDNUCPESinglePathLiteLA.forward has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61bedff83151717c1a44bd7e6a74c6cc70bf1b6b305a4e928a53a3afd8f0453"}},{"ruleId":"D2","level":"warning","message":{"text":"WanVACETransformer3DModel.forward (cognitive 21): WanVACETransformer3DModel.forward has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_wan_vace.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7dc655b45f5f742a7522ff989da79ff0531686b900b423c661ccfbeb4b7f1f"}},{"ruleId":"D2","level":"warning","message":{"text":"UNet2DModel.forward (cognitive 21): UNet2DModel.forward has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2, loops 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9458ab5904da20b7eab2fcdb487067243658b2a8bff1c8b34b1855cbd3793b"}},{"ruleId":"D2","level":"warning","message":{"text":"EchoPrepareLatentsStep.__call__ (cognitive 21): EchoPrepareLatentsStep.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/echo/before_denoise.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1734341e99ade51dc6e83ab74f497c215acd586e30780715c6e352fb89346c"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosPyramidChunkDenoiseInner.__call__ (cognitive 21): HeliosPyramidChunkDenoiseInner.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 4 (7 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"5944ae1d3588ed9f124983e8e48d5662081fec6f1c9783afb01c50b80537f4ac"}},{"ruleId":"D2","level":"warning","message":{"text":"WanVaceEncoderStep.preprocess_conditions (cognitive 21): WanVaceEncoderStep.preprocess_conditions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53588c4e314e57dc81aef6293bd25223f11d35522daec0076e7e054572bf01a"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffVideoToVideoPipeline.prepare_latents (cognitive 21): AnimateDiffVideoToVideoPipeline.prepare_latents has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4b22d008a1c45d48e63d523c9503300af739725b2cc57a78430185518a30f8"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffVideoToVideoControlNetPipeline.prepare_latents (cognitive 21): AnimateDiffVideoToVideoControlNetPipeline.prepare_latents has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"95166abebdf0893f7d13e0f69ed008e85664dbac818738223e76cccbe97722d3"}},{"ruleId":"D2","level":"warning","message":{"text":"ChromaImg2ImgPipeline.check_inputs (cognitive 21): ChromaImg2ImgPipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (10 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfbbd2b11a048429a16e8b6a310058f88e231688e62233c58f98b95c80166b2"}},{"ruleId":"D2","level":"warning","message":{"text":"CogVideoXFunControlPipeline.check_inputs (cognitive 21): CogVideoXFunControlPipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb298cde6538036c3685be357d77d275eab6a7e2b333547733a7ffa812405ca1"}},{"ruleId":"D2","level":"warning","message":{"text":"CogVideoXImageToVideoPipeline.check_inputs (cognitive 21): CogVideoXImageToVideoPipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dba49262603c14557b18c80fafdbd98587c68780402703ddaa4d69fb0d7dd97"}},{"ruleId":"D2","level":"warning","message":{"text":"CogView4Pipeline.check_inputs (cognitive 21): CogView4Pipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"7817ffc96a7bf13105d97d9820860706b790a0e7c89775bce79f3ce4e2193a5a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsisIDPipeline.check_inputs (cognitive 21): ConsisIDPipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/consisid/pipeline_consisid.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82770a550b94618ad43ebb490cd492bc6e7ba93f9f6e4147440dbf970706b4b"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyAnimatePipeline.check_inputs (cognitive 21): EasyAnimatePipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a619bf0b09dd18bf95315b812a4d7957a11b3b2d227f63c5a248717fe6e977f"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyAnimateControlPipeline.check_inputs (cognitive 21): EasyAnimateControlPipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6f2adf3375f7163d7d2a06ed2ee2d0c4f5ccfda37dafe4f2200947953d11ba"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyAnimateInpaintPipeline.check_inputs (cognitive 21): EasyAnimateInpaintPipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac409c4667be7d8208ecfee1340e0a94bdc05ab5e52922f45c87a12e14fa8aa"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanVideoImageToVideoPipeline.check_inputs (cognitive 21): HunyuanVideoImageToVideoPipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 10 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f99bebfe9943b4c2884564ec968751142da0411729c6f572cc87ec1e188c7e0"}},{"ruleId":"D2","level":"warning","message":{"text":"KandinskyV22ControlnetPipeline.__call__ (cognitive 21): KandinskyV22ControlnetPipeline.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9804c63227830473c5ad2a7d827020afa947b1e3d5dbcf5f90ea087dffeb0ec8"}},{"ruleId":"D2","level":"warning","message":{"text":"KandinskyV22ControlnetImg2ImgPipeline.__call__ (cognitive 21): KandinskyV22ControlnetImg2ImgPipeline.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"39401fe772f514e3c884ea9c5064e33f17665695935d82749e0186ddce686413"}},{"ruleId":"D2","level":"warning","message":{"text":"LEditsPPPipelineStableDiffusionXL.invert (cognitive 21): LEditsPPPipelineStableDiffusionXL.invert has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4, ternaries 2 (3 pts), loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fda16865012a350917f23f098966f8e90440aecc913f6acfbe9b9210fa376b"}},{"ruleId":"D2","level":"warning","message":{"text":"LTXPipeline.check_inputs (cognitive 21): LTXPipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cb68744e304b995831303982b5618bba168436d08a3bee4955941b8adbc64a"}},{"ruleId":"D2","level":"warning","message":{"text":"LTXImageToVideoPipeline.check_inputs (cognitive 21): LTXImageToVideoPipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"0223bc0f66deacc5865d060e8d84c9df1c6fdc332285c9370adb0cae0c6057bc"}},{"ruleId":"D2","level":"warning","message":{"text":"MochiPipeline.check_inputs (cognitive 21): MochiPipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/mochi/pipeline_mochi.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"54eb872d8996025103c6f3c0f3a6affb2bef5ab7ad2d212a7d73333fa9fd8e24"}},{"ruleId":"D2","level":"warning","message":{"text":"OmniGenPipeline.__call__ (cognitive 21): OmniGenPipeline.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 2 (4 pts), boolean chains 2, ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/omnigen/pipeline_omnigen.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a16bd9914cb09e9d48511eea31a848e3aba625829930ae87d271da5fba2657"}},{"ruleId":"D2","level":"warning","message":{"text":"OmniGenMultiModalProcessor.__call__ (cognitive 21): OmniGenMultiModalProcessor.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (3 pts), boolean chains 2, ternaries 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":"src/diffusers/pipelines/omnigen/processor_omnigen.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a677c3df80832ff655f4ae22dcbc0f6b43ca36a2a647fa4fa839ec328cf3f7"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageImg2ImgPipeline.check_inputs (cognitive 21): QwenImageImg2ImgPipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (10 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"b269c0abec090a41ec4ad265a97b39cfd39309bfb6baf263643467918617102e"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaSprintPipeline.check_inputs (cognitive 21): SanaSprintPipeline.check_inputs has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (10 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f8de590743c5e4041ba6ee6b85b85ceeed302611acb5236da3feccc55dfb18"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaWMPipeline.__call__ (cognitive 21): SanaWMPipeline.__call__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 4 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"8146ebfec73660dfaa19cf9866e045aa42c176a41a0c19bfd4188c0c48f862e5"}},{"ruleId":"D2","level":"warning","message":{"text":"peft_utils._maybe_warn_for_unhandled_keys (cognitive 21): peft_utils._maybe_warn_for_unhandled_keys has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/peft_utils.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f748595f73ad8677572b94d3499da13c57cf80200dfafd39bfe5825f390f24f"}},{"ruleId":"D2","level":"warning","message":{"text":"overwrite_expected_slice.overwrite_file (cognitive 21): overwrite_expected_slice.overwrite_file has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/overwrite_expected_slice.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d977fb4f79fed0e542f20240a7521b8ef053f6a469832732554bc1010af46f5a"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxLoraLoaderMixin.lora_state_dict (cognitive 20): FluxLoraLoaderMixin.lora_state_dict has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e572a3c0525fc0a9050d33d2e6e1e55d9d60f2bbebf9a929a7e7934969920c3"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file_utils.convert_open_clip_checkpoint (cognitive 20): single_file_utils.convert_open_clip_checkpoint has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 3 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8e5b5f05827385f7cda69b57eafa6843136add6ad4f4397c7bf98aa62cd369"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file_utils.convert_auraflow_transformer_checkpoint_to_diffusers (cognitive 20): single_file_utils.convert_auraflow_transformer_checkpoint_to_diffusers has cognitive complexity 20 (threshold 15). Drivers by points: loops 9 (18 pts), if/else 2 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":2942}}}],"partialFingerprints":{"codehealthFindingId/v1":"32babafc34cab25d266adc521c8f5ec5fcea6d0dba1879fa3371c3346a230bee"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoModel.from_pretrained (cognitive 20): AutoModel.from_pretrained has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, ternaries 2 (4 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/auto_model.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d9d67545034739bf929b1c210b6215880505eb11610ad8243c5107ee9833d3"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2AudioResnetBlock.__init__ (cognitive 20): LTX2AudioResnetBlock.__init__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 1, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b043aa76016ac15676d3177e2d30029e78974e2fdba8b875ad3a08c352c4f91"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2AudioDecoder.__init__ (cognitive 20): LTX2AudioDecoder.__init__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d588350720a9f6af14af57237bf69252880d5bb9a19edc298c7934ca9c15c8"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLQwenImage.tiled_encode (cognitive 20): AutoencoderKLQwenImage.tiled_encode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 5 (9 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":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67d0c30b6e8ff93de439b48f2a06441bb99f5830ba8335d3b77cf9605486fd4"}},{"ruleId":"D2","level":"warning","message":{"text":"UNetControlNetXSModel.forward (cognitive 20): UNetControlNetXSModel.forward has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 2 (3 pts), loops 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0254ca5ae4b21ec2f7d1ef8aee845d0d56d9431b9b673d24587ace35b8fc48a"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaTransformer2DModel.forward (cognitive 20): BriaTransformer2DModel.forward has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d3e797333c3af7f4bf3ddee1b684e398ece047ea5fbfb15a1fb6f7129d0f3a"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanVideoAttnProcessor2_0.__call__ (cognitive 20): HunyuanVideoAttnProcessor2_0.__call__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"500e899d41b092a6389b93ab7b9ec9966a9cbda38ff46ac07a4cd56b2df59014"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanImageAttnProcessor.__call__ (cognitive 20): HunyuanImageAttnProcessor.__call__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuanimage.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0531dffa7515f4779cf771eb3f73df3172688403b30f330f3df643790e0c5a74"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaWMLTX2RefinerAttnProcessor.__call__ (cognitive 20): SanaWMLTX2RefinerAttnProcessor.__call__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 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":"src/diffusers/models/transformers/transformer_sana_wm_refiner.py"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d1a2d69dc3b3d677264d2c5137b2595cc78e4ae155f1515fda4a9b5936d3be"}},{"ruleId":"D2","level":"warning","message":{"text":"ZImageTransformer2DModel._build_unified_sequence (cognitive 20): ZImageTransformer2DModel._build_unified_sequence has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_z_image.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"9417c89a0685dff5d62d969132477a5b8848abf1599c5469da784e839c899cb0"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLIPAdapterStep.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLIPAdapterStep.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06d353267c5d123ce152fbc209dbebe88fb8c9a349de77ea8f5e6b42617ac83"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffPipeline.prepare_ip_adapter_image_embeds (cognitive 20): AnimateDiffPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef466052e8a56779234dbb01b59360e9914c2d5b9c2d2da87773b5b38777a56f"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffControlNetPipeline.prepare_ip_adapter_image_embeds (cognitive 20): AnimateDiffControlNetPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc44aef8ad5a6edda696e402bdc9b63f9d946a248229b6badc29be3c8d5a5480"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffSDXLPipeline.prepare_ip_adapter_image_embeds (cognitive 20): AnimateDiffSDXLPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1629c4b3ab03abfac6bec7f07eeda33779b47af8000f3f197593a70e55ce22"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffSparseControlNetPipeline.prepare_ip_adapter_image_embeds (cognitive 20): AnimateDiffSparseControlNetPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22814427c764bf40c55639af215de55bff874afb97fd777e68597317533bfc3"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffVideoToVideoPipeline.prepare_ip_adapter_image_embeds (cognitive 20): AnimateDiffVideoToVideoPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"475295acd1a72368be340cb6f844177284974fc571e9466f19fda52310b1c95d"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffVideoToVideoControlNetPipeline.prepare_ip_adapter_image_embeds (cognitive 20): AnimateDiffVideoToVideoControlNetPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7df6cfdc453104267d05a76a5a3a3041841f967e155c9352d32baae60534f5"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoPipelineForInpainting.from_pipe (cognitive 20): AutoPipelineForInpainting.from_pipe has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/auto_pipeline.py"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"156cf7bba7cd9281caf30ac2ac0cde7571a5494d265937722e18ca7b351d6594"}},{"ruleId":"D2","level":"warning","message":{"text":"ChronoEditPipeline.check_inputs (cognitive 20): ChronoEditPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea15818de7e11e48d9c9d4a1fb9e84cde79ca15440d534104a692f59687a99eb"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionControlNetPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"e434664addc99794a6778b90316d96be599646da0a4b89af1a23fcec7b10b65a"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetImg2ImgPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionControlNetImg2ImgPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf147fd098992b70adbbfa7cb5fd2b257d00f67dd9f431741b5bfac153adda5a"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetInpaintPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionControlNetInpaintPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5beffb40a3b6b1e16e8a4484fcee71eb73bd04d0f42e373377a71833ef3e03"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetInpaintPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLControlNetInpaintPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3855ac2be00b4d585c3dd4cd317945a1169fa65001b0c7dbd1ee8646a20834"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetInpaintPipeline.prepare_latents (cognitive 20): StableDiffusionXLControlNetInpaintPipeline.prepare_latents has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1962e873d1bf02623599f6d46dbec9e8e1ceea0aeb165282624cb8a6b0417d1"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLControlNetPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d1656033f62db26c2cfccbd9e0f9716948692fe44a482048f5572867a573b0"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetImg2ImgPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLControlNetImg2ImgPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"8846ca9695b861559acf4757eda2f641e5e6b75f756cfb8b7e2c96822c72d900"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionInpaintPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLControlNetUnionInpaintPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3af271ddcab6d78b4e3fd458d8da45a392e712080c0d4f2b06b30a1abb53402"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionInpaintPipeline.prepare_latents (cognitive 20): StableDiffusionXLControlNetUnionInpaintPipeline.prepare_latents has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"258e7fda6384f76208960efe2719354429b2cbdfa3b5883b2106cbedcf6d867e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLControlNetUnionPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4b64a5c4b38f15985649ad2f45845fb51048ae417b1b10056739ba73e1dbfc"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetUnionImg2ImgPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLControlNetUnionImg2ImgPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"5445811dde8507347e422a925d39d7d57e113080df9cd111837098c0bb215682"}},{"ruleId":"D2","level":"warning","message":{"text":"AltDiffusionPipeline.check_inputs (cognitive 20): AltDiffusionPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb37121b99a0c414a9c29d05e6336bd1ea16b112b31c325e3727ed6c23072c6"}},{"ruleId":"D2","level":"warning","message":{"text":"AltDiffusionImg2ImgPipeline.check_inputs (cognitive 20): AltDiffusionImg2ImgPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd27e2c5b76cc64300d51bfbda7bb2c19e113d66444e9e8ff06765ceabca6093"}},{"ruleId":"D2","level":"warning","message":{"text":"PIAPipeline.prepare_ip_adapter_image_embeds (cognitive 20): PIAPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/deprecated/pia/pipeline_pia.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19a45d7aa1b08522cd63a77f82942e389943c338c02bad4163b5631db93b5da"}},{"ruleId":"D2","level":"warning","message":{"text":"SemanticStableDiffusionPipeline.check_inputs (cognitive 20): SemanticStableDiffusionPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7dbbf54eb6e6648125a9a0fb94ae23435bb1f7ebcb2badceb64d521951be6d"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionLDM3DPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionLDM3DPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"586275928fcd18ef607f97444045c6c59946fa0ec8fa999d0e832743a8956429"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPanoramaPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionPanoramaPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7bce5753d7ae1164a3f60a9bc6d6228134bde76fd1cd9660ea1c60b03f9ed88"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPipelineSafe.check_inputs (cognitive 20): StableDiffusionPipelineSafe.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"11be70f601467324cf0812ffa3f447654898e26bfb78a12a682a6948685e1cdd"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionSAGPipeline.check_inputs (cognitive 20): StableDiffusionSAGPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"658e7169b7472baa26be5f07b3411f8a5ac091093f23b4d0cd439c028eb1f998"}},{"ruleId":"D2","level":"warning","message":{"text":"CycleDiffusionPipeline.check_inputs (cognitive 20): CycleDiffusionPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25188c4ae8090ec6f3e152c085ad33888b70013fa6d5987fa3af813e365a8e4"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionInpaintPipelineLegacy.check_inputs (cognitive 20): StableDiffusionInpaintPipelineLegacy.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8d49c1da286b353782255c06c4f88b5a628750a5acfdf2322a773e2d885711"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionModelEditingPipeline.check_inputs (cognitive 20): StableDiffusionModelEditingPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8de06a2ae6f01b3eb678fc58bf0513e7f967b66c20b7f266a7d1805c9ac035"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionParadigmsPipeline.check_inputs (cognitive 20): StableDiffusionParadigmsPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea689a60544efa0c0bd84e844a92756ba75c41df1627ed21c369d9ac157c7fbf"}},{"ruleId":"D2","level":"warning","message":{"text":"TextToVideoSDPipeline.check_inputs (cognitive 20): TextToVideoSDPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d3db4c581fa01639ea143e31ead1cbe368ab19978d6f3ea1540211946e07de"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoToVideoSDPipeline.check_inputs (cognitive 20): VideoToVideoSDPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c5a76bc184098248b581220bfd60916d31096567a4a094a80f52ead338b1cf"}},{"ruleId":"D2","level":"warning","message":{"text":"TextToVideoZeroPipeline.check_inputs (cognitive 20): TextToVideoZeroPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbe7b361ff2568f5b006f143a18621ac169fb4ea0da18bc43a2cb3015017fd7"}},{"ruleId":"D2","level":"warning","message":{"text":"VersatileDiffusionTextToImagePipeline.check_inputs (cognitive 20): VersatileDiffusionTextToImagePipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e047837d276b6d779f47b96ab78d88f63f276058e1cd3de6b9a99c0de14d126a"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlImg2ImgPipeline.check_inputs (cognitive 20): FluxControlImg2ImgPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a21ca688f4914074db2abbbf3c6fc67da90da4737ad47c3153a10d41a822c4"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlInpaintPipeline.check_inputs (cognitive 20): FluxControlInpaintPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4498baffc54419af1a4fa1e4e28cae01b9e72379612070c0e8704224330bf8"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlNetImg2ImgPipeline.check_inputs (cognitive 20): FluxControlNetImg2ImgPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fdcfafed9fab7a4c2af8515e13028fbacb9c02cb445163673b183b9e8e86c0"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanVideo15Pipeline.check_inputs (cognitive 20): HunyuanVideo15Pipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b560e92b0e4ec70187cfcbf5554d054f3268e3559e8978bebafbebdea4ac669"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsPipeline.prepare_ip_adapter_image_embeds (cognitive 20): KolorsPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/kolors/pipeline_kolors.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57c7575c40c2ee7cfb238f162a914f55fda4bfa30a9f30c2d044a038344b695"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsImg2ImgPipeline.prepare_ip_adapter_image_embeds (cognitive 20): KolorsImg2ImgPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"2829456a81d9638049bbcd39f983d877461289b38b5293dad35af7c1752912ea"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatGLMModel.forward (cognitive 20): ChatGLMModel.forward has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, ternaries 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/text_encoder.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"d567ca142cdf832bd706ecc9a8b5f27e6081878f327dc3a30332a9caba28beba"}},{"ruleId":"D2","level":"warning","message":{"text":"LatentConsistencyModelImg2ImgPipeline.prepare_ip_adapter_image_embeds (cognitive 20): LatentConsistencyModelImg2ImgPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca32f979653f1006fc782a852c1de472200c330a0c07d677c49e9cc9ef89f88"}},{"ruleId":"D2","level":"warning","message":{"text":"LatentConsistencyModelPipeline.prepare_ip_adapter_image_embeds (cognitive 20): LatentConsistencyModelPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"300976ba66c3df5a0644b8b1ecd74b64d21e6e5e0c576df036731f8693bcf163"}},{"ruleId":"D2","level":"warning","message":{"text":"LTXLatentUpsamplePipeline.__call__ (cognitive 20): LTXLatentUpsamplePipeline.__call__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (20 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2068e9548a782d38cb39b54d379c22b8b0e9d855968166d24549698223349f72"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2InContextPipeline.prepare_latents (cognitive 20): LTX2InContextPipeline.prepare_latents has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 2 (4 pts), boolean chains 3, loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d6c0a11c0cafce01ca8be07e760be0455adb94cf72b1adca7e8b62c373ef63"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPAGPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionControlNetPAGPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"426b51bb67af85163780d72c5f57e412eeb6e389b4ef737e5b1dd75648de7d66"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPAGInpaintPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionControlNetPAGInpaintPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fb140a88c3fff161ffc0e189307acb64c57114fa027875ec27856777ca7450"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLControlNetPAGPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"614f9f745505b2f6aad0292f21a52b912d139195f0a6ed7a6c8fbd8eaab05db2"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetPAGImg2ImgPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLControlNetPAGImg2ImgPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd4897e7e6d47eea12702c603a8b76f19c859074dc84be51033e24def5737b5"}},{"ruleId":"D2","level":"warning","message":{"text":"KolorsPAGPipeline.prepare_ip_adapter_image_embeds (cognitive 20): KolorsPAGPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/pag/pipeline_pag_kolors.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb183a10d7fc84c2b5b705fc9d7108c3a6b1ec7b24afd66b332771c3c4ac35a0"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionPAGPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/pag/pipeline_pag_sd.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"994ba3580b16eaf807afd11a77a48cd8006060ef6a0d1f84056c26c8bd4a9bb1"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffPAGPipeline.prepare_ip_adapter_image_embeds (cognitive 20): AnimateDiffPAGPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2dd3950f023400be2d805f0eec2db5b5102c39fd1481011bbc024732d20bfe"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGImg2ImgPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionPAGImg2ImgPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"05da65282d1f5e970dd3249e23ded4870941eecc9a37c5d6ee5c5ebc0499d34c"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGInpaintPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionPAGInpaintPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4ebb46b8dc6ce27449a7c05163cf3ac3b2e7bc34841342420283bf69c69d7d"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLPAGPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"2793a755b2cef40bc5b9b40537831a64036abb293b7b98313416f855beaac467"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGImg2ImgPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLPAGImg2ImgPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8fbeecf88a67049da4d8d80911459089120e4248bbbee2a223f4cb73edc2d7"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGInpaintPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLPAGInpaintPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3693ccad27c365c21ba29c27d18529e52c0f6531c515e77a898a3ec7917d1c"}},{"ruleId":"D2","level":"warning","message":{"text":"ShapEPipeline.__call__ (cognitive 20): ShapEPipeline.__call__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 3 (5 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/shap_e/pipeline_shap_e.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d1a3686d23d01f7b8a036343fc4728968411d81baab3bbb3c875f1841a1dd1"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2ImageToVideoPipeline.check_inputs (cognitive 20): SkyReelsV2ImageToVideoPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5dc58506822e21a088bc264432c075b35c09e55d55931db6a9679aa18ee50df"}},{"ruleId":"D2","level":"warning","message":{"text":"StableAudio3AudioToAudioPipeline.__call__ (cognitive 20): StableAudio3AudioToAudioPipeline.__call__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 2 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"2abdd40471da7d22bece64e973d3a050249af7f24627211feda0c7c45f29654f"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e451c367adf635af66f7b42f4bfb86dfb8c639de84960b926f7d32cffac9a1"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionDepth2ImgPipeline.check_inputs (cognitive 20): StableDiffusionDepth2ImgPipeline.check_inputs has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2eba078b538d6e61c82714db28162175e51e56fed1be76d115f67d99dfdb8b"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionImg2ImgPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionImg2ImgPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f376fa6edeeeb64cc4be6a3f61baeed594ef3dcc9d9ad1740a32b210d36de4"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionInpaintPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionInpaintPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"718828047a4108aa9194a29368a92b8c40b9cc0b5da66835a565aa3a2c395cb3"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionSafetyChecker.forward (cognitive 20): StableDiffusionSafetyChecker.forward has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/safety_checker.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"283dd72f94ec7cc1b714ab777eacae917198f4c03c0b08b20b2fc03c0cd09cb0"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"23204552369a1103addcc677e1506fe71216b24d677cb9a8048551aa04ae9212"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLImg2ImgPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLImg2ImgPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"6435dc527a5d5f072de712c598d05df055682d03ecd1b75fcccc53992e363f8f"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLInpaintPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLInpaintPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92d82c8670f9d5fb8d9d5363126aee7bedf35870ff893f4d45dd7df022ff8f7"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLAdapterPipeline.prepare_ip_adapter_image_embeds (cognitive 20): StableDiffusionXLAdapterPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 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":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51a6d7fcf07a800a3b9db35e6a0da59dafb2d370a9ff32c7842aa6725b068c5"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualClozePipeline.__call__ (cognitive 20): VisualClozePipeline.__call__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (5 pts), ternaries 3 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/visualcloze/pipeline_visualcloze_combined.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4417ca60697f621bfd7d35a0e6568002acf6dd3a1e5d66696d95cccca5262c"}},{"ruleId":"D2","level":"warning","message":{"text":"remote_utils.postprocess_decode (cognitive 20): remote_utils.postprocess_decode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 6 (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":"src/diffusers/utils/remote_utils.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd6105b7e98a7a977e532026d81b49aa7e9d75737f46ce490c99af88b3c9337"}},{"ruleId":"D2","level":"warning","message":{"text":"versions.require_version (cognitive 20): versions.require_version has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (6 pts), error handling 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/versions.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a901293105f1494552ec2af3a50a4aea042965957db4823863bd83d4f5be0e6"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsCommand._update (cognitive 19): SkillsCommand._update has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (4 pts), ternaries 3, error handling 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/skills.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3bf2ba03f1e80ba87a1d4ae4b1e4cbb3ea0970959aa155af20a44da66a05690"}},{"ruleId":"D2","level":"warning","message":{"text":"sea_cache._prepare_cosmos3_raw_vision_metadata (cognitive 19): sea_cache._prepare_cosmos3_raw_vision_metadata has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/sea_cache.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"1968d9c99c639f2ce5437bc6c8c15ff2f384dd37ee4193b87f0e270f9f9aba68"}},{"ruleId":"D2","level":"warning","message":{"text":"lora_pipeline._maybe_dequantize_weight_for_expanded_lora (cognitive 19): lora_pipeline._maybe_dequantize_weight_for_expanded_lora has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, ternaries 3 (6 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71f510789fc19ebcb8a956cde626954013e07af97d3299b5eee0b8fd9f437e3"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file_utils.create_diffusers_clip_model_from_ldm (cognitive 19): single_file_utils.create_diffusers_clip_model_from_ldm has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5, ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"3542e54214b50cf5fe2822a8a52e865a2407d9e01e51d0ff54ec0501c01a84a9"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file_utils.convert_sd3_transformer_checkpoint_to_diffusers (cognitive 19): single_file_utils.convert_sd3_transformer_checkpoint_to_diffusers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":2018}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac76912a172c3bf15023362ef3d1b2efa69d45a90be33c5a8c2f36e29dc788d3"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextParallelConfig.__post_init__ (cognitive 19): ContextParallelConfig.__post_init__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/_modeling_parallel.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"857ae8f5039d6811d837038e5627f2ef6947edb04ffed3f57da2e457fe5b5951"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLQwenImage21.tiled_decode (cognitive 19): AutoencoderKLQwenImage21.tiled_decode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 5 (9 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":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0521ee2679e16d4a27081584b806d681d1232c2c4483bd5e26c86794dd4dc0"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLWan.tiled_decode (cognitive 19): AutoencoderKLWan.tiled_decode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 5 (9 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":"src/diffusers/models/autoencoders/autoencoder_kl_wan.py"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d638ad864f3082b9e9372ef36ae1225e59a0f45be66fa31ec7deb6648b76dfc"}},{"ruleId":"D2","level":"warning","message":{"text":"SD3ControlNetModel.forward (cognitive 19): SD3ControlNetModel.forward has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, loops 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_sd3.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"6434227b84de2d0422ae8916671b1adb17c5266acc86288e428b84dc2dda596f"}},{"ruleId":"D2","level":"warning","message":{"text":"UNetControlNetXSModel.__init__ (cognitive 19): UNetControlNetXSModel.__init__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 3, loops 3, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae976391c42f5d85f6eb750331316ad60ed8212c47e99cc088caacb8efd3266d"}},{"ruleId":"D2","level":"warning","message":{"text":"ResnetBlock2D.__init__ (cognitive 19): ResnetBlock2D.__init__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (16 pts), ternaries 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/resnet.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"452a5f3077e5abe56a8c483533a9e08c42011c0b10a97de8114f3bcf475d1fd3"}},{"ruleId":"D2","level":"warning","message":{"text":"PriorTransformer.forward (cognitive 19): PriorTransformer.forward has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/prior_transformer.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4974b59836d1e9cb1fcfec1fb94a30f36358db87555e1d1fe4d2fa01cf2edf0"}},{"ruleId":"D2","level":"warning","message":{"text":"Transformer2DModel.__init__ (cognitive 19): Transformer2DModel.__init__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 8, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9c0e18931fb519f35495054f52125368e30951642f2b68b5d32e6e2bf444dd"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanImageTransformer2DModel.forward (cognitive 19): HunyuanImageTransformer2DModel.forward has cognitive complexity 19 (threshold 15). Drivers by points: loops 6 (11 pts), if/else 6, boolean chains 2 (nesting depth added 5). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuanimage.py"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d27899c62add0fdfa5ece0cf9a1f4727b8e6e6449d97fc717d10942d364d48"}},{"ruleId":"D2","level":"warning","message":{"text":"Kandinsky6Transformer3DModel.forward (cognitive 19): Kandinsky6Transformer3DModel.forward has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 5, loops 3, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe2a73c1af65a024135c772967af5c2df17e6c9466bd9bce04ce3abf87c98ea"}},{"ruleId":"D2","level":"warning","message":{"text":"WanAnimate2Transformer3DModel.forward (cognitive 19): WanAnimate2Transformer3DModel.forward has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 4, boolean chains 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_wan_animate_2.py"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1fbae5fb40f100280673991e0f89abbed25cfab632f20242918ff9c6c969f5"}},{"ruleId":"D2","level":"warning","message":{"text":"UNet2DConditionModel._check_config (cognitive 19): UNet2DConditionModel._check_config has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d1dc813b6504e490d841d40fc4fb720254de14b847e501825a9914d001b2c4"}},{"ruleId":"D2","level":"warning","message":{"text":"I2VGenXLUNet.forward (cognitive 19): I2VGenXLUNet.forward has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 2, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_i2vgen_xl.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac9be79344b970ca233999c4d62ba2f7e3dffee71cb184b72f3a6f1e0bf2f47"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2ReferenceEncoderStep.__call__ (cognitive 19): LTX2ReferenceEncoderStep.__call__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, ternaries 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7fb1431fa432eb2a98f8f0a11c8b755ed55e5bf6d9bae34f761b18a01ddb94"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentSpec.load (cognitive 19): ComponentSpec.load has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), error handling 2 (4 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"429f6d0386bc66abe10bc77fd552acd2a31e3c9eb6c1af0d19d1ba8227c42d53"}},{"ruleId":"D2","level":"warning","message":{"text":"modular_pipeline_utils.format_params (cognitive 19): modular_pipeline_utils.format_params has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 2 (4 pts), boolean chains 1, 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":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a096c3aeb0c510bcb655c2fe1e6bb01a3929cde6eb3d01ab57b9adc65402ee"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLInputStep.check_inputs (cognitive 19): StableDiffusionXLInputStep.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"25aa435d788c32446c567993cacf82d055ac7bd36c1d08374721ece8dc774292"}},{"ruleId":"D2","level":"warning","message":{"text":"AceStepPipeline.check_inputs (cognitive 19): AceStepPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 6 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ace_step/pipeline_ace_step.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5b7f78211c6f7e23994f8adb7537ea1db108bfa04319e34b6288c8745210ad"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaPipeline.check_inputs (cognitive 19): BriaPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"01864f90157ec350018d23f32cfed741965d7434e05a25d8ea73e526e1513327"}},{"ruleId":"D2","level":"warning","message":{"text":"ChromaPipeline.check_inputs (cognitive 19): ChromaPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (9 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c8982af2d242baaf1631de94866a3215c4ad528a3a2919989f3db3695f5a88"}},{"ruleId":"D2","level":"warning","message":{"text":"CogVideoXPipeline.check_inputs (cognitive 19): CogVideoXPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8307466397a69b21493956ba04b2da6e12f08354025dbb77ad6f4bf9d26af40"}},{"ruleId":"D2","level":"warning","message":{"text":"CogView3PlusPipeline.check_inputs (cognitive 19): CogView3PlusPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fd4aab447d281843cce6d6aa395735dff25758b2a6955d15ea974cc2a98fa0"}},{"ruleId":"D2","level":"warning","message":{"text":"CogView4ControlPipeline.check_inputs (cognitive 19): CogView4ControlPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"affb008865e726b02d16992c9fb840b55f35344adbede23a51856c0e227e21cd"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetInpaintPipeline.prepare_latents (cognitive 19): StableDiffusionControlNetInpaintPipeline.prepare_latents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3ab1cb0e6155d250c83c32c5c9a7eb27de058c5162493594b754c41a305803"}},{"ruleId":"D2","level":"warning","message":{"text":"mixed_precision.parse_diffusion_step_policy (cognitive 19): mixed_precision.parse_diffusion_step_policy has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/mixed_precision.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff943710007c5d7bf257075b4f6c668b5d8e1a7927d0cfe7c6c111cbdbc1425"}},{"ruleId":"D2","level":"warning","message":{"text":"CosmosActionCondition.__post_init__ (cognitive 19): CosmosActionCondition.__post_init__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af49033a394db0d4395b2164419670977768d80de1e25ccda807c5a3a013dba"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionDiffEditPipeline.check_inputs (cognitive 19): StableDiffusionDiffEditPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (7 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"d299a225d9c5f25466aa19ed8adf45f6c77aca6892b446bbae25d4b784053a59"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimateDiffFreeNoiseMixin._prepare_latents_free_noise (cognitive 19): AnimateDiffFreeNoiseMixin._prepare_latents_free_noise has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (2 pts), boolean chains 1, ternaries 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":"src/diffusers/pipelines/free_noise_utils.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7968b39cb1ce8556b903ccb5ae9637390bf901ab8f7f5cf4529ea294b3ed175"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanSkyreelsImageToVideoPipeline.check_inputs (cognitive 19): HunyuanSkyreelsImageToVideoPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4dff4b3edee4a68bc57bca1c64a19bbcb13bb4cacce76e6c36e8f2bc1aa869"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanVideoPipeline.check_inputs (cognitive 19): HunyuanVideoPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"8907bfc398196dcbd670c037e68e36e2a9fc093a213c0eb4458904e035709963"}},{"ruleId":"D2","level":"warning","message":{"text":"Krea2Pipeline.check_inputs (cognitive 19): Krea2Pipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (9 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"7782a4a343012cb51d4408a89202f6781d17e5de99b1514dc2027e72bbe54ea2"}},{"ruleId":"D2","level":"warning","message":{"text":"LatentConsistencyModelImg2ImgPipeline.check_inputs (cognitive 19): LatentConsistencyModelImg2ImgPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0d243ee542bd1f673cb1709fba5a8912ab9b33114e6489b8ed23288ebf28a3"}},{"ruleId":"D2","level":"warning","message":{"text":"LatentConsistencyModelPipeline.check_inputs (cognitive 19): LatentConsistencyModelPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e2b3cadcda968ccc708a2f2b3fa478b6c1d4208e95cd33899b5554467f7aa5"}},{"ruleId":"D2","level":"warning","message":{"text":"LattePipeline.check_inputs (cognitive 19): LattePipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"1791267ab3ce3eb44218db25c522af950cbb64449bccef9d0f8a08116853d44c"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetPAGInpaintPipeline.prepare_latents (cognitive 19): StableDiffusionControlNetPAGInpaintPipeline.prepare_latents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"3093865bf05f9f2f7bfa08ba3c8d50f556f9ce445d9fccdc705f55043e590484"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGInpaintPipeline.prepare_latents (cognitive 19): StableDiffusionPAGInpaintPipeline.prepare_latents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"6deda5cf5e38f2dd50f0aa1d719fc6807777556b15a849385a11c5654738a7e5"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline_loading_utils.variant_compatible_siblings (cognitive 19): pipeline_loading_utils.variant_compatible_siblings has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, ternaries 1 (3 pts), loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_loading_utils.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffaaa5e7d6925e8c499cc14a4488badca4f9133f201b31817b97da6d5d50880"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline_loading_utils._get_final_device_map (cognitive 19): pipeline_loading_utils._get_final_device_map has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 3 (6 pts), ternaries 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_loading_utils.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d4cc6f54fffb2c9b6a753a5cfd041962a1e999a3c87384f5eea032e5a85014"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImagePipeline.check_inputs (cognitive 19): QwenImagePipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (9 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5809cf4d6a9bca3046dc561b2a94c6efa168da6d7ffc44b5cc23e196f55cd9"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageControlNetPipeline.check_inputs (cognitive 19): QwenImageControlNetPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (9 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"850914bbfe9aceec09beccb2da45fb7f3dac45a046d77944c4a9c4b67591b40e"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageControlNetInpaintPipeline.check_inputs (cognitive 19): QwenImageControlNetInpaintPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (9 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31b712df8fc6fa008ca3e2408f4de4fe5bcc68c42f8102d561b120da3f8fd04"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageEditPipeline.check_inputs (cognitive 19): QwenImageEditPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (9 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"176d8ca45a08d39a3327f8bf302c4b1a5ca730e4c30a44c3ca74ef283a328ae3"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageEditPlusPipeline.check_inputs (cognitive 19): QwenImageEditPlusPipeline.check_inputs has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (9 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e236907cf26ba80baff315cf2173893b5e7dbeda9b851cd9765fb127d54c8df"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageEditPlusPipeline.prepare_latents (cognitive 19): QwenImageEditPlusPipeline.prepare_latents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ab4de88bfeb962456f44381a04064bb0f24de739dbe5d3c8d1789b6ccce48d"}},{"ruleId":"D2","level":"warning","message":{"text":"convert_from_ckpt.convert_ldm_clip_checkpoint (cognitive 19): convert_from_ckpt.convert_ldm_clip_checkpoint has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 3 (5 pts), error handling 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b9c42ed66a8ec3d866e5b1d8446e5de5266d798f9a7f18b94b59b3b5c69af8"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionInpaintPipeline.prepare_latents (cognitive 19): StableDiffusionInpaintPipeline.prepare_latents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f86118473f640a2defed66233cf6484abe681846c2d92732ae6248262b536e"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualClozeGenerationPipeline.encode_prompt (cognitive 19): VisualClozeGenerationPipeline.encode_prompt has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 6, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45f18d0a07ac72b4c2ae53f6218f39bb4cbea9ae33d2eeb8c307ebe98a2a989"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverSDEScheduler.step (cognitive 19): DPMSolverSDEScheduler.step has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 2 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_sde.py"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"14806f2524c09dfe106664d1795feaa76350ff6da8aad215faf2d50bccdc7268"}},{"ruleId":"D2","level":"warning","message":{"text":"peft_utils._create_lokr_config (cognitive 19): peft_utils._create_lokr_config has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (4 pts), error handling 2 (3 pts), loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/peft_utils.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c308c2405c52cb7199506f58256b8f9c3abe6582f6c156fe3aafe0bbec9b9da"}},{"ruleId":"D2","level":"warning","message":{"text":"check_doc_toc.check_pipeline_doc (cognitive 19): check_doc_toc.check_pipeline_doc has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (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. This shape REPEATS in the file: one other method here (check_doc_toc.check_model_doc) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_doc_toc.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc12beb0554e9cd327f88df605e4ffa75eb8a62d42aedfb095e1ff523baeb2f"}},{"ruleId":"D2","level":"warning","message":{"text":"check_doc_toc.check_model_doc (cognitive 19): check_doc_toc.check_model_doc has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (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. This shape REPEATS in the file: one other method here (check_doc_toc.check_pipeline_doc) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_doc_toc.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ffcd3bc0e22ea6e68d55af5c5bc7ed29d12fb3406b8b061eac0694cf1bbbcc"}},{"ruleId":"D2","level":"warning","message":{"text":"check_dummies.read_init (cognitive 19): check_dummies.read_init has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (8 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":"utils/check_dummies.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabdccc55b25fc0e285d16a3227e120318b04144c2f3dce27cbda3803a99386f"}},{"ruleId":"D2","level":"warning","message":{"text":"single_file_utils.convert_flux3_transformer_checkpoint_to_diffusers (cognitive 18): single_file_utils.convert_flux3_transformer_checkpoint_to_diffusers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":4017}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79f6d23cef5e1425e5fe8f12d11b152f8f24ab5dcab4986000032177b985e17"}},{"ruleId":"D2","level":"warning","message":{"text":"UNet2DConditionLoadersMixin.save_attn_procs (cognitive 18): UNet2DConditionLoadersMixin.save_attn_procs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/unet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"080c0ca41154e3a9025a614bdef443efb6ebdcf61f342408c2f2410b2e5cc5b4"}},{"ruleId":"D2","level":"warning","message":{"text":"LatteTransformer3DModel.forward (cognitive 18): LatteTransformer3DModel.forward has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, 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":"src/diffusers/models/transformers/latte_transformer_3d.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f02bc9e5ba88ac82b93d0daf5d07564728489bd92d5ea8ed81b7d6753d71d2"}},{"ruleId":"D2","level":"warning","message":{"text":"CosmosTransformer3DModel.forward (cognitive 18): CosmosTransformer3DModel.forward has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 3, boolean chains 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cosmos.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"138ae2a5b89c7fd4eb95075dffb8a354e16f777ae308955cc17bd8a08ddf84bc"}},{"ruleId":"D2","level":"warning","message":{"text":"EasyAnimateAttnProcessor2_0.__call__ (cognitive 18): EasyAnimateAttnProcessor2_0.__call__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_easyanimate.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21e09814724684c5d7f6f879f852599865e28928b50ec5c1a5d3d53d5e2b056"}},{"ruleId":"D2","level":"warning","message":{"text":"KandinskyS2VTransformer3DModel.forward (cognitive 18): KandinskyS2VTransformer3DModel.forward has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky_s2v.py"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20bc9dd07eac9908912440955a309f3d095381c0bc32d0fda30989533e1f505"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImage21AttnProcessor.__call__ (cognitive 18): QwenImage21AttnProcessor.__call__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (8 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_qwenimage21.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fc3f51e784b0f8b7233ad5527a2642761634564a192d36685267776f884b0f"}},{"ruleId":"D2","level":"warning","message":{"text":"BidirectionalGDNUCPESinglePathLiteLA.__init__ (cognitive 18): BidirectionalGDNUCPESinglePathLiteLA.__init__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"92677837cd3e3e1c274f9e5b623e0896b5df6bdcc8bf83cd672ad6225eaabe8f"}},{"ruleId":"D2","level":"warning","message":{"text":"UNet2DModel.__init__ (cognitive 18): UNet2DModel.__init__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7, ternaries 4 (7 pts), boolean chains 2, loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"2161be600e3e0870f454bc6f814211148aac47cd0e8fe7761f29ea7710a4703b"}},{"ruleId":"D2","level":"warning","message":{"text":"UNetSpatioTemporalConditionModel.forward (cognitive 18): UNetSpatioTemporalConditionModel.forward has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 2, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_spatio_temporal_condition.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b2fa46d0e4ffa3de2c8e2dc00ad94dfc1748ec0a03d912bc954262be235b2d"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomOffloadHook.pre_forward (cognitive 18): CustomOffloadHook.pre_forward has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (3 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":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8081cf4005ce377d1f896c514f86ae40e02e5237c215ee89c532b4c634544115"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosPyramidDistilledChunkDenoiseInner.__call__ (cognitive 18): HeliosPyramidDistilledChunkDenoiseInner.__call__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 4 (7 pts), boolean chains 4 (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":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb043540bb799b81814de4b4299491da2711d61f0a64326237661b55f25154e7"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2InContextPrepareLatentsStep.__call__ (cognitive 18): LTX2InContextPrepareLatentsStep.__call__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2, ternaries 1 (2 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"92640ad096325a7591b5410c56eff9c45f10072492d9dd3c0409df94b6d53d4d"}},{"ruleId":"D2","level":"warning","message":{"text":"MellonPipelineConfig.from_custom_block (cognitive 18): MellonPipelineConfig.from_custom_block has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/mellon_node_utils.py"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a62fa1836a8827984302e3613d7600219f2c828d22afbb9c220d26bd3ec3fb"}},{"ruleId":"D2","level":"warning","message":{"text":"ModularPipeline.update_components (cognitive 18): ModularPipeline.update_components has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2408}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b73abb144162cfbcef6935e7ecc9c8afa52971e8ccb26d8182c38280c05af9"}},{"ruleId":"D2","level":"warning","message":{"text":"ModularPipeline.__call__ (cognitive 18): ModularPipeline.__call__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 3 (5 pts), boolean chains 2, error handling 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2958}}}],"partialFingerprints":{"codehealthFindingId/v1":"521ffd53f543e9e5c20478cf8fa92d14fa463691fc851e39d2c734939593e5b4"}},{"ruleId":"D2","level":"warning","message":{"text":"modular_pipeline_utils.combine_inputs (cognitive 18): modular_pipeline_utils.combine_inputs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 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":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f31fc00c35f5402d3e5f4f29d305bc5bfa1399231bfb61aa58495f3ff1e1694"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetInputStep.__call__ (cognitive 18): StableDiffusionXLControlNetInputStep.__call__ has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 6, ternaries 3 (5 pts), if/else 4, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdddbe60e725a425fd3bd5ccb011c7744bd20917e3dfdc3a2ed701c831404c6"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLDecodeStep.__call__ (cognitive 18): StableDiffusionXLDecodeStep.__call__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/decoders.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcc82fba953b9def08eead2ba0e8b3588b99e38d91ac0efde4693b5a487373d"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLControlNetLoopDenoiser.__call__ (cognitive 18): StableDiffusionXLControlNetLoopDenoiser.__call__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef46c24332926b59c6222c0d6f9cde5b53fef570d73570cc8aa71a3d1c879fc"}},{"ruleId":"D2","level":"warning","message":{"text":"AnyFlowFARPipeline.check_inputs (cognitive 18): AnyFlowFARPipeline.check_inputs has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (7 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef248a6a7051e2b16d8f02453ec6a09b9bfdc28c9b9441b8af5ab054d91869a"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline_bria_fibo_edit.paste_mask_on_image (cognitive 18): pipeline_bria_fibo_edit.paste_mask_on_image has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c576759681dd5fa2422751fb7a2742a72129d1260061c8bb3598a3863eb6260a"}},{"ruleId":"D2","level":"warning","message":{"text":"SpectrogramDiffusionPipeline.__call__ (cognitive 18): SpectrogramDiffusionPipeline.__call__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/spectrogram_diffusion/pipeline_spectrogram_diffusion.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbf644ff89593a82c1f4a91ed9ed7a1fb40158aea25c2c810bb6d24d37cfd70"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionDiffEditPipeline.generate_mask (cognitive 18): StableDiffusionDiffEditPipeline.generate_mask has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 6, ternaries 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae106d5c0253d29043117b490eefebca6abd04ce07636e7daaa0e93ad40c64b6"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionGLIGENPipeline.check_inputs (cognitive 18): StableDiffusionGLIGENPipeline.check_inputs has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba737af3d8ad0d8af05d5f049df3d7f92892a28c47e676aa6016d043f6daf09"}},{"ruleId":"D2","level":"warning","message":{"text":"TextToVideoZeroSDXLPipeline.backward_loop (cognitive 18): TextToVideoZeroSDXLPipeline.backward_loop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"210a65b6a6223d2f09f507bc958deb927483d217d640de64f502c5a1fa138b6e"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxControlPipeline.check_inputs (cognitive 18): FluxControlPipeline.check_inputs has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (7 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"544a98da1f6fe14a78709a022fe13d704cb86a9a3ec8af320bc8dac8878a4589"}},{"ruleId":"D2","level":"warning","message":{"text":"FluxPriorReduxPipeline.check_inputs (cognitive 18): FluxPriorReduxPipeline.check_inputs has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (5 pts), ternaries 2, loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2af6943353829ce11661a142fff87d990224dd9b2106b509d21945de6da16d"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosPyramidPipeline.check_inputs (cognitive 18): HeliosPyramidPipeline.check_inputs has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (7 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios_pyramid.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd6a4caa8941f8e782ffc8e040824a07f0174f8a3f702c1ef4e46860793c2cd"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanVideo15ImageToVideoPipeline.check_inputs (cognitive 18): HunyuanVideo15ImageToVideoPipeline.check_inputs has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae67750ebd75d062f21dc69984579ed3067b8f7c6a7b262af8bbbd9b92cd5b9"}},{"ruleId":"D2","level":"warning","message":{"text":"GLMTransformer.forward (cognitive 18): GLMTransformer.forward has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, ternaries 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/text_encoder.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f08cee3360a0c79806d4742b70a8b05003537be7e09587111f230925bd0a606"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline_ltx_i2v_long_multi_prompt.parse_prompt_segments (cognitive 18): pipeline_ltx_i2v_long_multi_prompt.parse_prompt_segments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 4 (9 pts) (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7bd1ddf43e1c43cf7d44bc00fe5482337e09f6bb3cabeaad7fec9418731119c"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaPAGPipeline.encode_prompt (cognitive 18): SanaPAGPipeline.encode_prompt has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f361d1a5dcc53e96a09a25111a4fb180502cccc48e5ed0a0da1673d5570f8e3"}},{"ruleId":"D2","level":"warning","message":{"text":"PRXPipeline.check_inputs (cognitive 18): PRXPipeline.check_inputs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f955afeb71202e52672d6390629faed723763a4fd8f54d4c57cd5c4d16989f"}},{"ruleId":"D2","level":"warning","message":{"text":"PRXPixelPipeline.check_inputs (cognitive 18): PRXPixelPipeline.check_inputs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx_pixel.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"5400e55b942c66094a66a6c4c6e42f81cfec2976731ce6358942d7813b059990"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingPipeline.generate_timestep_matrix (cognitive 18): SkyReelsV2DiffusionForcingPipeline.generate_timestep_matrix has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df68e7bf27869c68b2dec48ce3852e36c51d531802365d057787edabc1a6ce3"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingImageToVideoPipeline.generate_timestep_matrix (cognitive 18): SkyReelsV2DiffusionForcingImageToVideoPipeline.generate_timestep_matrix has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bf53d3b7eda8ec9f2bdbb06bcdb310f7aaf3a9821ee295b7644a7563c38336"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingVideoToVideoPipeline.check_inputs (cognitive 18): SkyReelsV2DiffusionForcingVideoToVideoPipeline.check_inputs has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (7 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc419a00322d0cf10cbaeecb4c047d16569182ae04187803b61b3c2452c80cf6"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingVideoToVideoPipeline.generate_timestep_matrix (cognitive 18): SkyReelsV2DiffusionForcingVideoToVideoPipeline.generate_timestep_matrix has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b96f7deb81bc05fcee9969c8602b69a6e58e89447c2aa623976481159d0d8e1"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLInstructPix2PixPipeline.check_inputs (cognitive 18): StableDiffusionXLInstructPix2PixPipeline.check_inputs has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (9 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5a185a4dea7fa6374d283025997f6b9ef3e737f6c4a018136bd0e2968d6794"}},{"ruleId":"D2","level":"warning","message":{"text":"CosineDPMSolverMultistepScheduler.step (cognitive 18): CosineDPMSolverMultistepScheduler.step has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, ternaries 1 (3 pts), loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24dcf7d807fe742951fc37becebadda14b812e1cd81904b8e1c6063d25d3f0b"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverMultistepScheduler.__init__ (cognitive 18): DPMSolverMultistepScheduler.__init__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a120d8848138caf97e4da3c4da8b237a6c44c7183913d0007e13257c224022b"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowMapEulerDiscreteScheduler.step (cognitive 18): FlowMapEulerDiscreteScheduler.step has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 2 (5 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef72bc5ebcac97b8ea89299a4dadac98e143b7d43441f61b73a201a1c561b31"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosScheduler.convert_model_output (cognitive 18): HeliosScheduler.convert_model_output has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e70af7f66548b074470603f6cf2062469f2a8540ce4a03d481cd6b44aadc22"}},{"ruleId":"D2","level":"warning","message":{"text":"torch_utils.randn_tensor (cognitive 18): torch_utils.randn_tensor has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/torch_utils.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"80aab71ccfe5d8088f6d68c4fcb97e01a45e33638493b488aca57c10951e33a7"}},{"ruleId":"D2","level":"warning","message":{"text":"run._resolve_media_inputs (cognitive 17): run._resolve_media_inputs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/run.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"734d281b926c32be2a07ec4213cfce4d284c91171b1dcff657ebd30a721b7447"}},{"ruleId":"D2","level":"warning","message":{"text":"context_parallel._find_submodule_by_name (cognitive 17): context_parallel._find_submodule_by_name has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/context_parallel.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"26cecbd7f2340f093e93bb393979d5560f8d4d0fb719cf999de492f0eb4b1062"}},{"ruleId":"D2","level":"warning","message":{"text":"ModuleGroup._process_tensors_from_modules (cognitive 17): ModuleGroup._process_tensors_from_modules has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (10 pts), loops 5 (7 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/group_offloading.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6937da3e04696634ed1334413b7f851d2fcb7e8ca2e2c178763b4f011cf0031"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderDC.tiled_encode (cognitive 17): AutoencoderDC.tiled_encode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_dc.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"883de585d2146e1657e4fa74e7c99009126000080443ba98d16eacd9a531877e"}},{"ruleId":"D2","level":"warning","message":{"text":"KVAEDecoder2D.forward (cognitive 17): KVAEDecoder2D.forward has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8916858e0df3800787c43ea827b64b914c6cc477dd18de9ad0dc6a22bfdb87f"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLMiniMaxH3._decode (cognitive 17): AutoencoderKLMiniMaxH3._decode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (3 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f079419715ab8ba91c065b3d9ed9ae983383cdd31629abb0ec35411a1e8cd8"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelMixin._fix_state_dict_keys_on_load (cognitive 17): ModelMixin._fix_state_dict_keys_on_load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":2190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35a5d19d4590571d108d4211b407cbe363eb5d2acd645dcf660a2e3d799e991"}},{"ruleId":"D2","level":"warning","message":{"text":"ResnetBlock2D.forward (cognitive 17): ResnetBlock2D.forward has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/resnet.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9237d843031410dc2b3b3915ec996f8eae406f5182c0f3b60c217388a2a22a"}},{"ruleId":"D2","level":"warning","message":{"text":"BriaFiboTransformer2DModel.forward (cognitive 17): BriaFiboTransformer2DModel.forward has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 3, boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria_fibo.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3722025172213107eaffdd74a34de6ae08a70143b1dd634658a1a3821d30c4b"}},{"ruleId":"D2","level":"warning","message":{"text":"JoyImageEditTransformer3DModel.forward (cognitive 17): JoyImageEditTransformer3DModel.forward has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6e7b8b06c42f137bbdfc20a9053515fd3ce51c130d81ae7d3a85284c5265b6"}},{"ruleId":"D2","level":"warning","message":{"text":"LongCatAudioDiTTransformer.forward (cognitive 17): LongCatAudioDiTTransformer.forward has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), loops 2 (4 pts), boolean chains 1, ternaries 1 (nesting depth added 3). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_longcat_audio_dit.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41f76bff87c8dd010de4854367fe1f08fec1c923548350cf0d23428d6aeb4e7"}},{"ruleId":"D2","level":"warning","message":{"text":"SanaWMTransformer3DModel.__init__ (cognitive 17): SanaWMTransformer3DModel.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":2710}}}],"partialFingerprints":{"codehealthFindingId/v1":"009ba1d7c3398dcce77f67678e4167c6c95f234ad294e24293b7e09ebab56e89"}},{"ruleId":"D2","level":"warning","message":{"text":"UNet1DModel.__init__ (cognitive 17): UNet1DModel.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 3, ternaries 2 (3 pts), loops 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_1d.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f2d2f04ca93e65f71c4c9603c351771044696cd2fb27472870afacfc673d5e"}},{"ruleId":"D2","level":"warning","message":{"text":"UNetMidBlock2D.__init__ (cognitive 17): UNetMidBlock2D.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 3 (6 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d82313a40b28853d03bbbef63e10c5edf8e7aa037c142f60a7a134484c9804"}},{"ruleId":"D2","level":"warning","message":{"text":"UNetSpatioTemporalConditionModel.__init__ (cognitive 17): UNetSpatioTemporalConditionModel.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, loops 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_spatio_temporal_condition.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"977ad3863258d7e643bf7d0a6eeecfe6f4727816db55c833234f81ca9341547d"}},{"ruleId":"D2","level":"warning","message":{"text":"Upsample2D.forward (cognitive 17): Upsample2D.forward has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/upsampling.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"89abd94afc805aad88cb8479ad26b05edc7299e21dc0aec8832d29d1561a19b8"}},{"ruleId":"D2","level":"warning","message":{"text":"MellonPipelineConfig.load (cognitive 17): MellonPipelineConfig.load has cognitive complexity 17 (threshold 15). Drivers by points: error handling 7 (13 pts), if/else 3 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/mellon_node_utils.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82ca422fd68b913bf945947dc9fd9b3d3069a90d00df05de6297cbddc8be53d"}},{"ruleId":"D2","level":"warning","message":{"text":"modular_pipeline_utils.format_components (cognitive 17): modular_pipeline_utils.format_components has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (3 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c311908cdc5e02666e49c62ca5b7db7ff29f087242ab176ad6a229f13a3aac9"}},{"ruleId":"D2","level":"warning","message":{"text":"Cosmos2_5_PredictBasePipeline.prepare_latents (cognitive 17): Cosmos2_5_PredictBasePipeline.prepare_latents has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f7bc7d3c748675d765b5877575d01d6070ffe2c2a9b6f4ef5ce4590ebd1d15"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioLDMPipeline.check_inputs (cognitive 17): AudioLDMPipeline.check_inputs has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9193a5db08e0a81fc9d3fe94bb3b00e6393fdca06c89ce3c4cce1ccd08981a4"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicLDMPipeline.check_inputs (cognitive 17): MusicLDMPipeline.check_inputs has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da3657ae69c056daf298a3cc596fd938343225d7db153799c254422a075dd93"}},{"ruleId":"D2","level":"warning","message":{"text":"UNetMidBlockFlat.__init__ (cognitive 17): UNetMidBlockFlat.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 3 (6 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b13893efb0511af1f3e56855b05245f6f526de66bd6ce63e3a7babea69726d"}},{"ruleId":"D2","level":"warning","message":{"text":"HunyuanImageRefinerPipeline.check_inputs (cognitive 17): HunyuanImageRefinerPipeline.check_inputs has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c33f5857f3e166ab6be6de03396d92bf5555935c5b9f461f22c0b7f4240be3d"}},{"ruleId":"D2","level":"warning","message":{"text":"LeditsAttentionStore.between_steps (cognitive 17): LeditsAttentionStore.between_steps has cognitive complexity 17 (threshold 15). Drivers by points: loops 2 (9 pts), if/else 5 (8 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d19a5d8649083bad1a5306a5d817d26f46585f6bd7f052c7432b4e6d548273"}},{"ruleId":"D2","level":"warning","message":{"text":"LeditsAttentionStore.between_steps (cognitive 17): LeditsAttentionStore.between_steps has cognitive complexity 17 (threshold 15). Drivers by points: loops 2 (9 pts), if/else 5 (8 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"446ac25771cb7aa61f7b692d7bf693bd7f90f6e0e65c694fefde59b8c6293c9e"}},{"ruleId":"D2","level":"warning","message":{"text":"dfr_layout.epilogue_tiles (cognitive 17): dfr_layout.epilogue_tiles has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, ternaries 2 (3 pts), loops 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/dfr_layout.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fea4b1163ab4f461bdef1b87265985b7080934f677fa69af39397b98a6389b"}},{"ruleId":"D2","level":"warning","message":{"text":"LucyEditPipeline.check_inputs (cognitive 17): LucyEditPipeline.check_inputs has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (7 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9fcbacfacfeb5422882d5437f8235fdea764c8659142ef05e7aed13593c862"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGInpaintPipeline.prepare_latents (cognitive 17): StableDiffusionXLPAGInpaintPipeline.prepare_latents has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, boolean chains 6, ternaries 2 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"36aa5990ad6ad6abbebd1c1753488ddf50e1cdd66f796d2ea04769c1f17db1fd"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLPAGInpaintPipeline.prepare_mask_latents (cognitive 17): StableDiffusionXLPAGInpaintPipeline.prepare_mask_latents has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ce83ec2874cf1a8bb0eb62063690cf1486b549852ee7caf1aa65571e37361c"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffusionPipeline._execution_device (cognitive 17): DiffusionPipeline._execution_device has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0b020820aa1c9d6a73dfa516c7ad1fe55d0d4b65837480bd9514bf6eba1c26"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffusionPipeline.enable_group_offload (cognitive 17): DiffusionPipeline.enable_group_offload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba80cf2422d86ef3dc8ff7535eecc9e3563c74d285dd9673b5ebe08fedcd07b"}},{"ruleId":"D2","level":"warning","message":{"text":"cam_utils._parse_action_string (cognitive 17): cam_utils._parse_action_string has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_wm/cam_utils.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7715eda8e699a8651eabdaa9100361529a1960cd1f5103efe512b53c592a1fec"}},{"ruleId":"D2","level":"warning","message":{"text":"StableAudio3Pipeline.check_inputs (cognitive 17): StableAudio3Pipeline.check_inputs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c19a0cba23c0ba0cb4421f8b77db9f5ee15869fcf5c5b6ffc68fc43f537c655"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionInstructPix2PixPipeline.prepare_ip_adapter_image_embeds (cognitive 17): StableDiffusionInstructPix2PixPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 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":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bc49f05dedaef03260d66777207baa8a95e51e35c87bcfccb38b26151e45ec"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionLatentUpscalePipeline.encode_prompt (cognitive 17): StableDiffusionLatentUpscalePipeline.encode_prompt has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4aa087244717f030ddc5f32436de7111b70c507c33ad4975c6cf35192d543c"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3InpaintPipeline.prepare_latents (cognitive 17): StableDiffusion3InpaintPipeline.prepare_latents has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a4d3f49b7092e043e0bbc5c68abb47db79580b8b308d7e5a995e8c0b28805c"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLInpaintPipeline.prepare_latents (cognitive 17): StableDiffusionXLInpaintPipeline.prepare_latents has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, boolean chains 6, ternaries 2 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cc7689fd2b05cf8ab205ead6c47bc3ee2d5b0edcca2d6c67528e085a918bda"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionXLInpaintPipeline.prepare_mask_latents (cognitive 17): StableDiffusionXLInpaintPipeline.prepare_mask_latents has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e8b79437bc410dc8653b219ea07f6b1da32dca1f4b80e09964d91c20c57f28"}},{"ruleId":"D2","level":"warning","message":{"text":"WanAnimatePipeline.prepare_prev_segment_cond_latents (cognitive 17): WanAnimatePipeline.prepare_prev_segment_cond_latents has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 2, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_animate.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf79ad3396b8e863364cac4d0af3ad249346468798be72c93817c9b1ba3c1d37"}},{"ruleId":"D2","level":"warning","message":{"text":"CMStochasticIterativeScheduler.set_timesteps (cognitive 17): CMStochasticIterativeScheduler.set_timesteps has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_consistency_models.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"2464f0c6946068e0550a6ddc62d35165a6dba9c7364e5f9cf7c7d6045de60de1"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverMultistepScheduler.multistep_dpm_solver_second_order_update (cognitive 17): DPMSolverMultistepScheduler.multistep_dpm_solver_second_order_update has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"f300cd1dd825159805f6494dbaa4048964c4e35c1aaeedfcf0e09b8b3900d959"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverMultistepInverseScheduler.multistep_dpm_solver_second_order_update (cognitive 17): DPMSolverMultistepInverseScheduler.multistep_dpm_solver_second_order_update has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"beaf878cc7c17a6504d99a861a6c17d6f124c59baf3c516e0a83248699ce2a64"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowMapEulerDiscreteScheduler.set_timesteps (cognitive 17): FlowMapEulerDiscreteScheduler.set_timesteps has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"3263bf193dc7bb8e4e9109cefd305baf82f042cb89cf698b6dafad7c015725d7"}},{"ruleId":"D2","level":"warning","message":{"text":"export_utils.encode_video (cognitive 17): export_utils.encode_video has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 4 (7 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/export_utils.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"590a6c06a4878ea13d5636bd61fca48254dcf228fb1009782dcceb37562f125f"}},{"ruleId":"D2","level":"warning","message":{"text":"check_forward_call_docstrings._extract_documented_args (cognitive 17): check_forward_call_docstrings._extract_documented_args has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_forward_call_docstrings.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a9a6e7a16d535ddd2a41af37939b2d37fb3f996f72c6e6794413a5e30dab2f"}},{"ruleId":"D2","level":"warning","message":{"text":"check_inits.get_transformers_submodules (cognitive 17): check_inits.get_transformers_submodules has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_inits.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"01afac0a002018fd553b40f4d40e05f6faade4b3501a9a785a8bf32e8f63d783"}},{"ruleId":"D2","level":"warning","message":{"text":"run._load_pipeline (cognitive 16): run._load_pipeline has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/run.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd112f546e024a9ff11fcf5fb0dc8fa3c48a81155045800f3f39e10d428e6f74"}},{"ruleId":"D2","level":"warning","message":{"text":"run._upload_inputs_to_sandbox (cognitive 16): run._upload_inputs_to_sandbox has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (4 pts), boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/run.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8641a08b55278874947a5be27cad0faf399883c2fc12257db8e72385b73d71"}},{"ruleId":"D2","level":"warning","message":{"text":"skills._skill_description (cognitive 16): skills._skill_description has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/skills.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9c03663f490d71e724d12a2249c9605785e5be529c206bdbac5b2a5c717fab"}},{"ruleId":"D2","level":"warning","message":{"text":"attention_dispatch._native_flex_attention (cognitive 16): attention_dispatch._native_flex_attention has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":3702}}}],"partialFingerprints":{"codehealthFindingId/v1":"311dd74dd4886c75c21b7a0eb5f7ad55840de3b6e29f41d41ffeb0b85653a3f1"}},{"ruleId":"D2","level":"warning","message":{"text":"XLAFlashAttnProcessor2_0.__call__ (cognitive 16): XLAFlashAttnProcessor2_0.__call__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 2 (3 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2794}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d04fe8735633131543ac583f5ee8755ae4462907b23294b8847c2a6903b169b"}},{"ruleId":"D2","level":"warning","message":{"text":"FusedHunyuanAttnProcessor2_0.__call__ (cognitive 16): FusedHunyuanAttnProcessor2_0.__call__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3223}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e85c4782abdbebfa9b1fc70486f44353d88e43ef4d94d852f4377dc994f47a"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKL.tiled_encode (cognitive 16): AutoencoderKL.tiled_encode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (AutoencoderKL.tiled_decode) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8f81bd8852aff22857864062694dcb3fab883141b2b11d1804173957f0b869"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKL.tiled_decode (cognitive 16): AutoencoderKL.tiled_decode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (AutoencoderKL.tiled_encode) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bf7809415876ce164d3eeab478d69e3dc1b2d1f1037f0ef5b0202184c63bcb"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLFlux2.tiled_encode (cognitive 16): AutoencoderKLFlux2.tiled_encode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (AutoencoderKLFlux2.tiled_decode) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_flux2.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fe63fef160b5934ca9d8d0fabf58386d2cc422d05e5245fc18568c0bb67e87"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLFlux2.tiled_decode (cognitive 16): AutoencoderKLFlux2.tiled_decode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (AutoencoderKLFlux2.tiled_encode) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_flux2.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1182afa36e87663f8e390de586a20b2b4e2c3ba18096103ae8420fa84a06fa"}},{"ruleId":"D2","level":"warning","message":{"text":"KVAEEncoder2D.forward (cognitive 16): KVAEEncoder2D.forward has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ebf13cabdf8ad0e5007f3f2e0784d046891e909d396b52d2d1505b3027d8ce"}},{"ruleId":"D2","level":"warning","message":{"text":"KVAECachedEncoder3D.forward (cognitive 16): KVAECachedEncoder3D.forward has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5625ae5c8ae3bb96a4efeddbb530797d7c75627be8e58193cf5169ee6c3b436"}},{"ruleId":"D2","level":"warning","message":{"text":"KVAECachedDecoder3D.forward (cognitive 16): KVAECachedDecoder3D.forward has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"034bed33e9937cd7b7822ffa552db61e532ff3c1f2b80c425868bb2d4c94c19e"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLMagvit.tiled_decode (cognitive 16): AutoencoderKLMagvit.tiled_decode has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 3 (7 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_magvit.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd4efa3a1d8b85f82f54028c5608063f4d993880639561bdb4edfd7b91cb570"}},{"ruleId":"D2","level":"warning","message":{"text":"MochiDownBlock3D.forward (cognitive 16): MochiDownBlock3D.forward has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_mochi.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"779c0bf481e468d60b686f3720ee0f377755f54bf617285b2ed4f4d55715818e"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLMochi.tiled_encode (cognitive 16): AutoencoderKLMochi.tiled_encode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_mochi.py"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b76a7857b60d669fc663fa84e75582a735eb2ad4c58a96cece694104ad90a12"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoencoderKLQwenImage.tiled_decode (cognitive 16): AutoencoderKLQwenImage.tiled_decode has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 3 (7 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c31a1365da45789929ffee2d4515d5e3854f97c1fceab57ecbc9a1172fec8d5"}},{"ruleId":"D2","level":"warning","message":{"text":"RMSNorm.forward (cognitive 16): RMSNorm.forward has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 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":"src/diffusers/models/normalization.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"5949ddc059ccdf0aec8218e4fb7fbf520fc983ff7587fe023447f8212d4bd36e"}},{"ruleId":"D2","level":"warning","message":{"text":"Lumina2Transformer2DModel.forward (cognitive 16): Lumina2Transformer2DModel.forward has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 2 (6 pts), loops 5, if/else 3 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_lumina2.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fbfd6a119c88dcd4bfd57c13a04d31a2e37943cbfebdffe5391d831bbefb6f"}},{"ruleId":"D2","level":"warning","message":{"text":"transformer_sana_wm._prepare_ucpe_ray_transforms (cognitive 16): transformer_sana_wm._prepare_ucpe_ray_transforms has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3 (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":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"be129fce6fa7a49543aa75edfa61397012b10042f9731cf7f9dfb4f6f13b8cca"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2Transformer3DModel.forward (cognitive 16): SkyReelsV2Transformer3DModel.forward has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_skyreels_v2.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ad9e4d4224a8f65ab872474ae67a442d0c263b388c940620600728132f4359"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosAdditionalInputsStep.__init__ (cognitive 16): HeliosAdditionalInputsStep.__init__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"4835215757aad24550049df1956e0fe0d6170bb853aca2bf5958c0bb62add0fb"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2ConditionPrepareLatentsStep.__call__ (cognitive 16): LTX2ConditionPrepareLatentsStep.__call__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 2, ternaries 1 (2 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"15089f4123be3fec4e4fe01634bfa5d0ca039fd43587c7abba0ca4885e3337b4"}},{"ruleId":"D2","level":"warning","message":{"text":"ModularPipeline._execution_device (cognitive 16): ModularPipeline._execution_device has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (4 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2306}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c217832a61eef8de388cfc8339450b55edac5cb82f54aa9d5468181b98c577"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentSpec.create (cognitive 16): ComponentSpec.create has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd185daf5264809f173fc5ac790cc91334a427ee6e5b42aeb14eba24df970c2"}},{"ruleId":"D2","level":"warning","message":{"text":"modular_pipeline_utils.format_params_markdown (cognitive 16): modular_pipeline_utils.format_params_markdown has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 3 (6 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"327d7dc8844c9a560763d662c2f76d54a48082063c817a4fc1388d3ee6ee8db7"}},{"ruleId":"D2","level":"warning","message":{"text":"modular_pipeline_utils._validate_requirements (cognitive 16): modular_pipeline_utils._validate_requirements has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 1 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"10583709181d15c15b3d1af2f68f6da63b584190b527a9bc4d3ca25ae088c97d"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageAdditionalInputsStep.__init__ (cognitive 16): QwenImageAdditionalInputsStep.__init__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (QwenImageEditPlusAdditionalInputsStep.__init__, QwenImageLayeredAdditionalInputsStep.__init__) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/inputs.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3394496e134fca1d10fa968ea88fa5c2a6494e41c7cdbabad0f0e5eabde1ff"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageEditPlusAdditionalInputsStep.__init__ (cognitive 16): QwenImageEditPlusAdditionalInputsStep.__init__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (QwenImageAdditionalInputsStep.__init__, QwenImageLayeredAdditionalInputsStep.__init__) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/inputs.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff469c3cb9083e36bd1cb7b8fdc80a44bf3298ccc3382f79b7ee46f2ff57ea8"}},{"ruleId":"D2","level":"warning","message":{"text":"QwenImageLayeredAdditionalInputsStep.__init__ (cognitive 16): QwenImageLayeredAdditionalInputsStep.__init__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (QwenImageAdditionalInputsStep.__init__, QwenImageEditPlusAdditionalInputsStep.__init__) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/inputs.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f74f4d87b67e9315906b9fc9ab51ff5045ec71de26a1e59101c2d1e3e3466a9"}},{"ruleId":"D2","level":"warning","message":{"text":"encoders.get_qwenimage21_prompt_embeds (cognitive 16): encoders.get_qwenimage21_prompt_embeds has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 2 (5 pts), ternaries 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage21/encoders.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bee46273a9f204ef6d63a954bf1ee6cfc77be661c0e0e2a31886a1810618c2"}},{"ruleId":"D2","level":"warning","message":{"text":"AnyFlowPipeline.check_inputs (cognitive 16): AnyFlowPipeline.check_inputs has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"933d34e9d160cb3298cff52d5e47848e9a68ed5142b4725038631e657674f834"}},{"ruleId":"D2","level":"warning","message":{"text":"ChromaImg2ImgPipeline.prepare_ip_adapter_image_embeds (cognitive 16): ChromaImg2ImgPipeline.prepare_ip_adapter_image_embeds has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b1db7a9f0da901ddeb5cd8c4d8df3e72f03614105d2704723e3d74dcf1a4fe"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionControlNetImg2ImgPipeline.prepare_latents (cognitive 16): StableDiffusionControlNetImg2ImgPipeline.prepare_latents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d315d281b757186e2b9024335091d88b0e438ac59cf27cf082abbc8cbc2d3fc"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusion3ControlNetPipeline.__init__ (cognitive 16): StableDiffusion3ControlNetPipeline.__init__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 4, ternaries 3, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efb8b170b690e208079418cd32546fc21e8ccf089e2296950b3f805bdafa1c1"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPipelineSafe._encode_prompt (cognitive 16): StableDiffusionPipelineSafe._encode_prompt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"005b75d4ae85e0d8960ebaf0d15fa5a0fb2eef8d85777c184c71cd694bf5a09b"}},{"ruleId":"D2","level":"warning","message":{"text":"UTransformerBlock.__init__ (cognitive 16): UTransformerBlock.__init__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, ternaries 3 (5 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (UniDiffuserBlock.__init__) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"394ddd24ee8706d421a9136f7d3a91445a01557c4a20faec9c3292931552f1e2"}},{"ruleId":"D2","level":"warning","message":{"text":"UniDiffuserBlock.__init__ (cognitive 16): UniDiffuserBlock.__init__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, ternaries 3 (5 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (UTransformerBlock.__init__) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d41530c469376ac416dff9d07a493451711931fb6658c5c6cc6478a21e2758c"}},{"ruleId":"D2","level":"warning","message":{"text":"WuerstchenDiffNeXt._down_encode (cognitive 16): WuerstchenDiffNeXt._down_encode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 1 (4 pts), loops 2 (3 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":"src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_diffnext.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79760217d4c19b4afa01e36914dc8eabb97f3463966fee97585001d038a2835"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline_easyanimate_inpaint.get_image_to_video_latent (cognitive 16): pipeline_easyanimate_inpaint.get_image_to_video_latent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d66fbe1f3d0ca54d265d89fe6f2ed68ab5346a9612909c1a75ed8f61566443c"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosPipeline.check_inputs (cognitive 16): HeliosPipeline.check_inputs has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"2356f8b2fdb35ac39dff256133247982c007313fb0d054865e67f45560d9f463"}},{"ruleId":"D2","level":"warning","message":{"text":"LatentConsistencyModelImg2ImgPipeline.prepare_latents (cognitive 16): LatentConsistencyModelImg2ImgPipeline.prepare_latents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7fac25cfd235b6d7e2f7cc7b93faf4ac5bdb01a23871b5a3125f0dc55429d73"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2DFRPipeline.prepare_latents (cognitive 16): LTX2DFRPipeline.prepare_latents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 3, boolean chains 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a68f411063a554c1c6cce08dc7fd54a921424cebb63b2da45939cc02c0f40a6"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2DFRTemporalRefinePipeline.prepare_latents (cognitive 16): LTX2DFRTemporalRefinePipeline.prepare_latents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 3, boolean chains 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c47e5efce32f7275ea4b072ea4adb16020dff0358eb62ff3a513d03e25b3f38"}},{"ruleId":"D2","level":"warning","message":{"text":"LTX2InContextPipeline._encode_reference_conditions (cognitive 16): LTX2InContextPipeline._encode_reference_conditions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6eed6c3a7486d311af66f6a4b476b59a41af9d0a99c66127d588031ea6bdd89"}},{"ruleId":"D2","level":"warning","message":{"text":"Lumina2Pipeline.encode_prompt (cognitive 16): Lumina2Pipeline.encode_prompt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 3 (5 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina2/pipeline_lumina2.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b4dd64d892644597440f19097360cadc43ede539153c98c18fe442ffa7ebff"}},{"ruleId":"D2","level":"warning","message":{"text":"MarigoldImageProcessor.preprocess (cognitive 16): MarigoldImageProcessor.preprocess has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/marigold_image_processing.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25197b36fd078a46c55b1b95ec779ce0e97e5a99023a452b304c4055789b36a"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionPAGImg2ImgPipeline.prepare_latents (cognitive 16): StableDiffusionPAGImg2ImgPipeline.prepare_latents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"197d0bf6427f9d4d094abdf8ea92b2ee4acf946843f057bb4063afb7b39d4cae"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffusionPipeline.enable_sequential_cpu_offload (cognitive 16): DiffusionPipeline.enable_sequential_cpu_offload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b34ec7834e1b767f122f0fdef31d67def7cc4a11b1c75cf957403407ce417f"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffusionPipeline._get_signature_types (cognitive 16): DiffusionPipeline._get_signature_types has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b399fbc3e574071f70886844311894995819974aedbbb8adefaced6dd6e2b9"}},{"ruleId":"D2","level":"warning","message":{"text":"SkyReelsV2DiffusionForcingPipeline.check_inputs (cognitive 16): SkyReelsV2DiffusionForcingPipeline.check_inputs has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddb6fb9508289caa9dfaa5ffb760773c25f7538a3af21f0a4595bc6e84ce34a"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionDepth2ImgPipeline.prepare_latents (cognitive 16): StableDiffusionDepth2ImgPipeline.prepare_latents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"da78a33f32fa0d2873274238b60b9c0a96133c0a49d6bdd356cfe656f82185b9"}},{"ruleId":"D2","level":"warning","message":{"text":"StableDiffusionImg2ImgPipeline.prepare_latents (cognitive 16): StableDiffusionImg2ImgPipeline.prepare_latents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab73432ca5ca6662bd886c5be5953cf76a22194f5c6f69608360f2e57e7741e1"}},{"ruleId":"D2","level":"warning","message":{"text":"WanPipeline.check_inputs (cognitive 16): WanPipeline.check_inputs has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"95efe4090c9d07593221f4635ef9b3f84b7863f04f233aee01855f44f696d9b6"}},{"ruleId":"D2","level":"warning","message":{"text":"WanVideoToVideoPipeline.check_inputs (cognitive 16): WanVideoToVideoPipeline.check_inputs has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_video2video.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"efafea07efcbb25c7b9704de241848d00d3b67558d6647811018d8b58be2006b"}},{"ruleId":"D2","level":"warning","message":{"text":"ZImageInpaintPipeline.check_inputs (cognitive 16): ZImageInpaintPipeline.check_inputs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24975ca43382abe999e691e4c973eca89d8a7fd9cc2c32f0c730354d1de8dde"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffusersAutoQuantizer.merge_quantization_configs (cognitive 16): DiffusersAutoQuantizer.merge_quantization_configs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/auto.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b31565384064ebf6fb4ab77008662949e7f2de4384b76ef52a4f1f70017974c"}},{"ruleId":"D2","level":"warning","message":{"text":"DDPMScheduler.set_timesteps (cognitive 16): DDPMScheduler.set_timesteps has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddpm.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb98c18eee89565f7397a41efa95fe123f15fe789b5a90fd6492c10f390311b6"}},{"ruleId":"D2","level":"warning","message":{"text":"DDPMParallelScheduler.set_timesteps (cognitive 16): DDPMParallelScheduler.set_timesteps has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddpm_parallel.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"48023102adc63b7a6df4bad3a2c84251b3f3a07d66da7393fcbfcd526191a688"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverMultistepScheduler.step (cognitive 16): DPMSolverMultistepScheduler.step has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 7, loops 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad54488e56dff4c67b1398ce3016b1e503ca8043afe718cb5bad757d0c235f47"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverMultistepInverseScheduler.step (cognitive 16): DPMSolverMultistepInverseScheduler.step has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 7, loops 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"691a8f86a2f1cbbb5662cc2caa0d654b1d088999170a8929e776702a1d0111c7"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverSinglestepScheduler.__init__ (cognitive 16): DPMSolverSinglestepScheduler.__init__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"a598a9e2a4ab5fbc684c54ea81eecef6dd17d4e8143159b1a1503cb71f7316e3"}},{"ruleId":"D2","level":"warning","message":{"text":"HeliosScheduler.set_timesteps (cognitive 16): HeliosScheduler.set_timesteps has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e984715d86a6a3250b44fe8cd5dd20aec1c05972468728d1927dfcc2985bc68"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniMaxH3Scheduler.step (cognitive 16): MiniMaxH3Scheduler.step has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_minimax_h3.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f123e8e57d3f22d84079bb5edf376cd03edd2f68d08a1f4606207f1505db6b"}},{"ruleId":"D2","level":"warning","message":{"text":"check_repo.get_model_modules (cognitive 16): check_repo.get_model_modules has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 2 (4 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":"utils/check_repo.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0eeb05b632d5f965ddee4fe94f23bcc2104681b68c295a75d3bd4420673878"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: unets/unet_2d_blocks.py: FileTooLong \u2014 2822 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2322 over it, 5.64\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c526763c89acfe44537262ef425e491a6ef621b60e5fb3cc9b0cca9c193870"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/lora_conversion_utils.py: FileTooLong \u2014 2513 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2013 over it, 5.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":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62b97f30463ee46f2af33c081cb22c31e850988974d00c221459955d56c497d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/single_file_utils.py: FileTooLong \u2014 2378 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1878 over it, 4.76\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c580284f432671da4cdf28c239ec548441a5ccd224fb959fa8bb58eaba5f16c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_sana_wm.py: FileTooLong \u2014 1741 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1241 over it, 3.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7688988c712a8fb46707b52f1d61393d94f1e3d42ff985e7d694aeca3eea3d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/attention_dispatch.py: FileTooLong \u2014 1692 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1192 over it, 3.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a89aaf1c76f72f17a98b55bf8793bb5cc4fb5a9b664f8f2c74f0af5a885aea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modular_pipelines/modular_pipeline.py: FileTooLong \u2014 1544 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1044 over it, 3.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4e15bda4b3daa9224f8f5a22ba6474e65398443abe7b08b872f9ae9be62337"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stable_diffusion/convert_from_ckpt.py: FileTooLong \u2014 1277 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 777 over it, 2.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d522581705a847abf328c5f0967514484f6f94ca1b26f43c3de4fd10c16acefe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: unets/unet_3d_blocks.py: FileTooLong \u2014 1138 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 638 over it, 2.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4da7a86a5f06a847f2a73e6a02671f65aed1e71c1a401fa8a6b0fa761bb564"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cosmos/pipeline_cosmos3_omni.py: FileTooLong \u2014 1079 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 579 over it, 2.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd77cb3fd82df7f64f4ca1e7f1912a68fe4d21987e9dd10904ba8fa9db4f998"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cosmos/before_denoise.py: FileTooLong \u2014 1063 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 563 over it, 2.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/before_denoise.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b3db1cd56f64d3c179a2dbba811e3743970283a42e64d55251f3c03839dcb0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwenimage/encoders.py: FileTooLong \u2014 1044 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 544 over it, 2.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d0d25c52ae1fad5947f71f5309df18c3f1d96552a7622ca23fc0297de10ebc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/testing_utils.py: FileTooLong \u2014 972 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 472 over it, 1.94\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/testing_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c162b8116c14d9e27ed5cbe6da35d664da8267ce0d8efca951ac49c63a9a78f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/attention_processor.py: FileTooLong \u2014 969 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 469 over it, 1.94\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"feac457374302bae2a72a6ccac5b80d34b352f958057351079e1aecf2fe0e957"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: unets/unet_motion_model.py: FileTooLong \u2014 967 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 467 over it, 1.93\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed85d7ce9f55ad7455521ebf831cc5c019a56a5d83aa5ee97b41c32603854354"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ltx2/encoders.py: FileTooLong \u2014 953 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 453 over it, 1.91\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b861dcfd38e35812920a11a97ff6370605cc845eb316ee786cf11da44679d3ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controlnets/controlnet_xs.py: FileTooLong \u2014 949 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 449 over it, 1.90\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d1b4e8231ca6fc01de81a6bfdd853db1f33561c95adc5570282ca9f5207fff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: unets/unet_dreamlite.py: FileTooLong \u2014 937 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 437 over it, 1.87\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acc2511ad0355486108db988600d334641f0462902c4e539d83c5f07c8272bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_flux2.py: FileTooLong \u2014 929 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 429 over it, 1.86\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"381691d81dc4ddb3559a83ff82f3ab2c505352fd10a006fa9677eaef6bef9b1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/run.py: FileTooLong \u2014 905 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 405 over it, 1.81\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/run.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"129371c19a3d8b5bef6d3176493698ffc4578a33248b636e6b74984bd8dc09c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/embeddings.py: FileTooLong \u2014 881 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 381 over it, 1.76\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0189fe0222db9abae892ec7f178c8bcef28d7bbc91098c5e8fce15f2f8af343f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cosmos/encoders.py: FileTooLong \u2014 863 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 363 over it, 1.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6f4959b10fb4bb7ff65c454f915df9d0ed3ac5cb7da8e5a8b8f2b72f7976ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_z_image.py: FileTooLong \u2014 790 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 290 over it, 1.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_z_image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e13b10ec0bece4cc3e40b75f8a642e1aa9148d63d7467aad98cebc03683fa3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipelines/pipeline_loading_utils.py: FileTooLong \u2014 784 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 284 over it, 1.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_loading_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0985c493759b92bdc8e2bb4a769ca4d78ded5893f53a5503654ba060d9bfc6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_wan_animate.py: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 271 over it, 1.54\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_wan_animate.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52395d50b1c047191bfe49269df38dbec3ca47ef9b6b79b26696abd3d5b0ea0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipelines/auto_pipeline.py: FileTooLong \u2014 764 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 264 over it, 1.53\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/auto_pipeline.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2a95da4818cb9119bb886082a62c13c6256d223c7f681f0e219fa636358dcc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_rfd4_proteina.py: FileTooLong \u2014 763 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 263 over it, 1.53\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_rfd4_proteina.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9526552d20f5cf3500c73daa9bf6a4e0a6b0e57f031fb1382285eaa3547fa768"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/lora_pipeline.py: FileTooLong \u2014 747 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 247 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08671895434294c48834e8b0994b966494cc38641b49963d8abbd190a50c640"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cosmos/denoise.py: FileTooLong \u2014 738 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 238 over it, 1.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/denoise.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b464e5b28d43521084565d1851a2670731e47a0a57ad84e01a4b66b304120c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: helios/denoise.py: FileTooLong \u2014 723 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 223 over it, 1.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42a238fa23b6e809da06719149ba4da73cc22e5dac2211c7c43a6fb23572bf2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schedulers/scheduling_dpmsolver_multistep.py: FileTooLong \u2014 718 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 218 over it, 1.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"caac6a4851a3acb540b5ac42afbab0661f88c044e153261f9d2c29ccd2d7a8b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_hidream_image.py: FileTooLong \u2014 716 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 216 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hidream_image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa27382e4236302145279466883717dea0a010ea8a06898dd08caaf0a6960b9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: autoencoders/autoencoder_kl_cosmos.py: FileTooLong \u2014 714 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 214 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"964bfe88f32f7695beab1a810f4a04572ed7d2eb90a877ef433e3f0fe30fd823"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modular_pipelines/modular_pipeline_utils.py: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 205 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f6983ecd070ef5f9f108467a5fb574f0640f9f6c974299806b36dfe1a6bbd8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schedulers/scheduling_dpmsolver_singlestep.py: FileTooLong \u2014 703 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 203 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81dfc86826758b36e52ddd332e22683154517b4cfad82edb2a724ee6bfd59647"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modular_pipelines/mellon_node_utils.py: FileTooLong \u2014 698 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 198 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/mellon_node_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb3d044d0a3f9eca057ef3fdbc44f9f2bd37169b217af6cc35e03e668649bab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_hunyuan_video.py: FileTooLong \u2014 683 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 183 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc86e23103c57e2f53c56207ea4941c04cba545fb75ecfa28e10cc5cf14f6d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_anyflow_far.py: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 147 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow_far.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0c5d411f7af532d2c90346e7830d93ceb68fd06bda26efad7a76fcf7b615b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modular_pipelines/components_manager.py: FileTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 143 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7f9897dd3c6e354b80ea961a49f75a15488b154676cde4c2ed8a654d3cf8db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schedulers/scheduling_dpmsolver_multistep_inverse.py: FileTooLong \u2014 637 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 137 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3654dd3aacb5fddf74bf8d53d4cf26554e01a5c7e23f57a5ebdd7bf6d32a46f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_cosmos3.py: FileTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 131 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cosmos3.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4f6922e50a08fef599e2976e1b771cfa458c978f8a00266d88250cb2da9323"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: audioldm2/pipeline_audioldm2.py: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 122 over it, 1.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4d463875d591cff74da3c1ed575e45ffb96bceb572824868d9a386e43b56ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_qwenimage.py: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 106 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_qwenimage.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98d76c32b95401c373af261ef48015fb0c511b4186b7bf1ca5879c19091f41f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipelines/pipeline_utils.py: FileTooLong \u2014 602 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 102 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fb8966f738bfb324586bd45d2683e908d2d33e34ce885f479c56b98b5e84db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ltx2/pipeline_ltx2_dfr.py: FileTooLong \u2014 598 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 98 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"379dd4da6db76391defe8b79315bc01b359268e7f73e9fe50efe2b3e6d63a948"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_motif_video.py: FileTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 89 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_motif_video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1eac6569c0b93f3eeabd1179abb44aae695cfa4f27060204b11f4ae2462d7cd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelMixin: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf4665d6b142cbd780beed105bb9546369b5580fc630f8e7542fac99218cacf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/model_loading_utils.py: FileTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 79 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/model_loading_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b7892b85d3e35f02847c4f4e4c768450207569ad217735bfdf921e283847e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wan_animate_2/denoise.py: FileTooLong \u2014 570 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 70 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan_animate_2/denoise.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36751e6369c153d00f5e467d84aee9c7a3d1a8ac002542ac2837ea274b413951"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_nucleusmoe_image.py: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 68 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb421f2d394a78c385b18ed68136132ff0b9bbb4417de32af3e1cabd177ab352"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/ip_adapter.py: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 67 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cd303df56880648ab09126c02b1ac48076816fbc72f78803cd1868b251ed76"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ace_step/pipeline_ace_step.py: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 60 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ace_step/pipeline_ace_step.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22aa593ba550fcee7c254254a4720277cbd31e6ecd6dffd76324e8c74912d757"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_flux.py: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 58 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2485de4bc699bbfcb432268a5e9eb3cabe1cc01e54e3a80c401d06f2390f30"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stable_diffusion_xl/denoise.py: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 58 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5d1338409b3ab15f5b44af85ea1793b81b22e566d21d391084e8e604719922"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_kandinsky6.py: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 56 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebcda911946814ab0fd6451d36917df981300318582a35f98272edf35949453"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: helios/before_denoise.py: FileTooLong \u2014 545 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 45 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e960209d3d558d406ba9346401caa9f7a3ba85973808eb3fd2ed4b16f3fec759"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwenimage/inputs.py: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 33 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/inputs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fe2f27ce43788f073eff7aa6634ba5d1f03ba3c320a791aba41f35977412ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hooks/sea_cache.py: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 31 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/sea_cache.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10ee83e27540bb40da48e7aab0d9c39c61cdc2cf2efb4ab87eaecb67397d33d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_kandinsky_s2v.py: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 31 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky_s2v.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79ef264d4bd69753f2ea6555884d1e2737e503113e0bc997eb65a0e64226e96"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/lora_base.py: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 30 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc161d50a100559e4d7b7a460f003e3bc18b259d168ace4d0e36a88b339dfaa7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: autoencoders/autoencoder_kl_ltx2_audio.py: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 28 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ccd46cc2fa7ebea1bdc0c9158bbc90b32c19ceb152cbbb035bebac01f587ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schedulers/scheduling_deis_multistep.py: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 26 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b736647783509e6915f9645da0985a902c59873aa420d7ace3b2adb52517fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: unets/unet_1d_blocks.py: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 24 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_1d_blocks.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9c4fa2d0314260d2d762a6548086dcccc536a52fda1e65f8c72aacf9964edb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transformers/transformer_hunyuanimage.py: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuanimage.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e5f68a32027104baae309c9db9be5d3a9b03919a81de6b461483359504a3d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwenimage21/encoders.py: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 16 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":"src/diffusers/modular_pipelines/qwenimage21/encoders.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b36520964240b1cb32260b3d126b7e3479807006b088269caef6dfe4598b21"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: autoencoders/autoencoder_vidtok.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":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07565f167f53a3d412f2f784130b44182422a49786c9d1ac7a53f3cc25624a50"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: autoencoders/ltx2_diffusion_decoder.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":"src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6a57f8b2b0248855073839c540fab7c527282dc95f3978c540576eb7efbf7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: flux2/pipeline_flux2_klein_inpaint.py: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 9 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96f61de809b2a61250c271059a488f045a2cde3bd6e617a5dbdefa1083c4957"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ltx2/pipeline_ltx2_dfr_temporal_refine.py: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 7 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02ed31de2c87d15e7ac7f10da38dcd93a00d8682d71f56a08a8317f45db58fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (75 members, 32 shared lines): examples/community/adaptive_mask_inpainting.py:504-652 | examples/community/composable_stable_diffusion.py:173-275 | examples/community/fresco_v2v.py:1429-1596 | examples/community/gluegen.py:262-431 | examples/community/instaflow_one_step.py:234-380 | examples/community/ip_adapter_face_id.py:496-663 | examples/community/latent_consistency_interpolate.py:293-460 | examples/community/llm_grounded_diffusion.py:1244-1413 | examples/community/pipeline_animatediff_controlnet.py:210-377 | examples/community/pipeline_animatediff_img2video.py:327-494 | examples/community/pipeline_animatediff_ipex.py:181-349 | examples/community/pipeline_fabric.py:201-349 | examples/community/pipeline_prompt2prompt.py:262-431 | examples/community/pipeline_stable_diffusion_boxdiff.py:599-766 | examples/community/pipeline_stable_diffusion_pag.py:566-732 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:205-372 | examples/community/pipeline_zero1to3.py:202-328 | examples/community/regional_prompting_stable_diffusion.py:543-711 | examples/community/regional_prompting_stable_diffusion.py:1127-1236 | examples/community/sd_text2img_k_diffusion.py:124-226 | examples/community/stable_diffusion_controlnet_img2img.py:195-320 | examples/community/stable_diffusion_controlnet_inpaint.py:294-419 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:279-404 | examples/community/stable_diffusion_ipex.py:321-455 | examples/community/stable_diffusion_reference.py:424-591 | examples/community/stable_diffusion_repaint.py:295-428 | examples/research_projects/anytext/anytext.py:1372-1540 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:334-501 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:166-334 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:211-379 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:220-388 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:268-436 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:299-467 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:310-478 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:288-456 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:294-462 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:339-506 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:367-534 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:244-412 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:172-329 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:228-396 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:308-476 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:434-602 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:232-400 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:263-431 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:324-492 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:295-463 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:198-322 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:223-391 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:300-468 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:271-439 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:204-372 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:201-369 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:419-587 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:171-339 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:206-374 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:828-996 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:107-216 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:253-421 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:238-406 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:287-455 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:263-431 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:316-484 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:177-345 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:311-479 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:346-514 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:344-512 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:216-384 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:370-538 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:324-492 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:506-643 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:229-397 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:309-477 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:271-439 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:323-491 \u2014 These 75 members are variants of one another: a block of 32 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 75 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 75 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"55aabf8b52c279ca73891151324b8f8e479d6b4ea14e16e4f575b5f72200571a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (65 members, 48 shared lines): examples/community/adaptive_mask_inpainting.py:504-652 | examples/community/fresco_v2v.py:1429-1596 | examples/community/instaflow_one_step.py:234-380 | examples/community/ip_adapter_face_id.py:496-663 | examples/community/latent_consistency_interpolate.py:293-460 | examples/community/llm_grounded_diffusion.py:1244-1413 | examples/community/matryoshka.py:3805-3990 | examples/community/pipeline_animatediff_controlnet.py:210-377 | examples/community/pipeline_animatediff_img2video.py:327-494 | examples/community/pipeline_animatediff_ipex.py:181-349 | examples/community/pipeline_fabric.py:201-349 | examples/community/pipeline_prompt2prompt.py:262-431 | examples/community/pipeline_stable_diffusion_boxdiff.py:599-766 | examples/community/pipeline_stable_diffusion_pag.py:566-732 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:205-372 | examples/community/regional_prompting_stable_diffusion.py:543-711 | examples/community/stable_diffusion_ipex.py:321-455 | examples/community/stable_diffusion_reference.py:424-591 | examples/community/stable_diffusion_repaint.py:295-428 | examples/research_projects/anytext/anytext.py:1372-1540 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:334-501 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:166-334 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:211-379 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:220-388 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:268-436 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:299-467 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:310-478 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:288-456 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:294-462 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:339-506 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:367-534 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:244-412 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:228-396 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:308-476 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:434-602 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:232-400 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:263-431 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:324-492 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:295-463 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:223-391 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:300-468 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:271-439 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:204-372 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:201-369 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:419-587 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:171-339 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:206-374 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:828-996 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:253-421 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:238-406 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:287-455 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:263-431 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:316-484 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:177-345 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:311-479 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:346-514 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:344-512 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:216-384 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:370-538 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:324-492 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:506-643 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:229-397 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:309-477 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:271-439 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:323-491 \u2014 These 65 members are variants of one another: a block of 48 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 65 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 65 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9cd8824d4689332f7717baf8562ab5a5fc5acfa5b3e0333630c81d32008982"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (64 members, 34 shared lines): examples/community/adaptive_mask_inpainting.py:504-652 | examples/community/fresco_v2v.py:1429-1596 | examples/community/gluegen.py:262-431 | examples/community/instaflow_one_step.py:234-380 | examples/community/ip_adapter_face_id.py:496-663 | examples/community/latent_consistency_interpolate.py:293-460 | examples/community/llm_grounded_diffusion.py:1244-1413 | examples/community/pipeline_animatediff_controlnet.py:210-377 | examples/community/pipeline_animatediff_img2video.py:327-494 | examples/community/pipeline_animatediff_ipex.py:181-349 | examples/community/pipeline_fabric.py:201-349 | examples/community/pipeline_prompt2prompt.py:262-431 | examples/community/pipeline_stable_diffusion_boxdiff.py:599-766 | examples/community/pipeline_stable_diffusion_pag.py:566-732 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:205-372 | examples/community/regional_prompting_stable_diffusion.py:543-711 | examples/community/stable_diffusion_reference.py:424-591 | examples/research_projects/anytext/anytext.py:1372-1540 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:334-501 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:166-334 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:211-379 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:220-388 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:268-436 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:299-467 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:310-478 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:288-456 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:294-462 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:339-506 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:367-534 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:244-412 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:228-396 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:308-476 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:434-602 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:232-400 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:263-431 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:324-492 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:295-463 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:223-391 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:300-468 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:271-439 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:204-372 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:201-369 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:419-587 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:171-339 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:206-374 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:828-996 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:376-544 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:253-421 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:238-406 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:287-455 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:263-431 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:316-484 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:177-345 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:311-479 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:346-514 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:344-512 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:216-384 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:370-538 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:324-492 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:506-643 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:229-397 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:309-477 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:271-439 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:323-491 \u2014 These 64 members are variants of one another: a block of 34 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 64 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 64 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fbf9770577730deb80b14e5c50d9a8c42070028ab3d623fc86fee623990a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (63 members, 40 shared lines): examples/community/adaptive_mask_inpainting.py:504-652 | examples/community/fresco_v2v.py:1429-1596 | examples/community/instaflow_one_step.py:234-380 | examples/community/ip_adapter_face_id.py:496-663 | examples/community/latent_consistency_interpolate.py:293-460 | examples/community/llm_grounded_diffusion.py:1244-1413 | examples/community/pipeline_animatediff_controlnet.py:210-377 | examples/community/pipeline_animatediff_img2video.py:327-494 | examples/community/pipeline_animatediff_ipex.py:181-349 | examples/community/pipeline_fabric.py:201-349 | examples/community/pipeline_prompt2prompt.py:262-431 | examples/community/pipeline_stable_diffusion_boxdiff.py:599-766 | examples/community/pipeline_stable_diffusion_pag.py:566-732 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:205-372 | examples/community/regional_prompting_stable_diffusion.py:543-711 | examples/community/stable_diffusion_ipex.py:321-455 | examples/community/stable_diffusion_reference.py:424-591 | examples/community/stable_diffusion_repaint.py:295-428 | examples/research_projects/anytext/anytext.py:1372-1540 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:334-501 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:166-334 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:211-379 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:220-388 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:310-478 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:288-456 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:294-462 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:339-506 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:367-534 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:244-412 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:228-396 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:308-476 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:434-602 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:232-400 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:263-431 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:324-492 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:295-463 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:223-391 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:300-468 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:271-439 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:204-372 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:201-369 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:419-587 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:171-339 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:206-374 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:828-996 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:376-544 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:253-421 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:238-406 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:287-455 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:263-431 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:316-484 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:177-345 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:311-479 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:346-514 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:344-512 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:216-384 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:370-538 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:324-492 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:506-643 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:229-397 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:309-477 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:271-439 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:323-491 \u2014 These 63 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 63 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 63 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb954c5d6153aa8408b57ad3d72408a700c4eba76d86243984bd46ed78886e56"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (61 members, 35 shared lines): examples/community/fresco_v2v.py:1429-1596 | examples/community/gluegen.py:262-431 | examples/community/ip_adapter_face_id.py:496-663 | examples/community/latent_consistency_interpolate.py:293-460 | examples/community/llm_grounded_diffusion.py:1244-1413 | examples/community/pipeline_animatediff_controlnet.py:210-377 | examples/community/pipeline_animatediff_img2video.py:327-494 | examples/community/pipeline_animatediff_ipex.py:181-349 | examples/community/pipeline_prompt2prompt.py:262-431 | examples/community/pipeline_stable_diffusion_boxdiff.py:599-766 | examples/community/pipeline_stable_diffusion_pag.py:566-732 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:205-372 | examples/community/regional_prompting_stable_diffusion.py:543-711 | examples/community/stable_diffusion_reference.py:424-591 | examples/research_projects/anytext/anytext.py:1372-1540 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:334-501 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:166-334 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:211-379 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:220-388 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:268-436 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:299-467 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:310-478 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:288-456 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:294-462 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:339-506 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:367-534 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:244-412 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:172-329 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:228-396 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:308-476 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:434-602 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:232-400 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:263-431 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:324-492 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:295-463 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:223-391 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:300-468 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:271-439 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:204-372 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:201-369 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:419-587 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:171-339 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:206-374 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:828-996 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:376-544 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:253-421 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:238-406 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:287-455 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:263-431 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:316-484 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:177-345 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:311-479 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:346-514 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:344-512 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:216-384 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:370-538 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:324-492 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:229-397 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:309-477 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:271-439 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:323-491 \u2014 These 61 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 61 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 61 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"f410f5a91d1c2bd8dadd68b1a84af0816859878cd736363c20b6476449449c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (58 members, 59 shared lines): examples/community/fresco_v2v.py:1429-1596 | examples/community/gluegen.py:262-431 | examples/community/ip_adapter_face_id.py:496-663 | examples/community/latent_consistency_interpolate.py:293-460 | examples/community/llm_grounded_diffusion.py:1244-1413 | examples/community/matryoshka.py:3805-3990 | examples/community/pipeline_animatediff_controlnet.py:210-377 | examples/community/pipeline_animatediff_img2video.py:327-494 | examples/community/pipeline_prompt2prompt.py:262-431 | examples/community/pipeline_stable_diffusion_boxdiff.py:599-766 | examples/community/pipeline_stable_diffusion_pag.py:566-732 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:205-372 | examples/community/regional_prompting_stable_diffusion.py:543-711 | examples/community/stable_diffusion_reference.py:424-591 | examples/research_projects/anytext/anytext.py:1372-1540 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:334-501 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:166-334 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:211-379 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:220-388 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:310-478 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:288-456 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:294-462 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:339-506 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:367-534 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:244-412 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:228-396 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:308-476 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:434-602 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:232-400 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:263-431 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:324-492 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:295-463 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:223-391 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:300-468 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:271-439 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:204-372 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:201-369 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:419-587 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:171-339 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:206-374 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:828-996 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:376-544 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:253-421 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:238-406 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:287-455 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:263-431 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:316-484 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:177-345 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:311-479 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:346-514 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:344-512 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:216-384 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:370-538 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:324-492 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:229-397 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:309-477 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:271-439 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:323-491 \u2014 These 58 members are variants of one another: a block of 59 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 58 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 58 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7e2ec16b21a472793c4a6240584bf38d29e3fbb431f62a5da5365c611481a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (58 members, 46 shared lines): examples/community/fresco_v2v.py:1429-1596 | examples/community/gluegen.py:262-431 | examples/community/ip_adapter_face_id.py:496-663 | examples/community/latent_consistency_interpolate.py:293-460 | examples/community/llm_grounded_diffusion.py:1244-1413 | examples/community/matryoshka.py:3805-3990 | examples/community/pipeline_animatediff_controlnet.py:210-377 | examples/community/pipeline_animatediff_img2video.py:327-494 | examples/community/pipeline_animatediff_ipex.py:181-349 | examples/community/pipeline_prompt2prompt.py:262-431 | examples/community/pipeline_stable_diffusion_boxdiff.py:599-766 | examples/community/pipeline_stable_diffusion_pag.py:566-732 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:205-372 | examples/community/regional_prompting_stable_diffusion.py:543-711 | examples/community/stable_diffusion_reference.py:424-591 | examples/research_projects/anytext/anytext.py:1372-1540 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:334-501 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:166-334 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:211-379 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:220-388 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:310-478 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:288-456 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:294-462 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:339-506 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:367-534 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:244-412 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:228-396 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:308-476 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:434-602 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:232-400 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:263-431 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:324-492 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:295-463 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:223-391 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:300-468 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:271-439 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:204-372 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:201-369 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:419-587 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:171-339 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:206-374 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:828-996 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:253-421 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:238-406 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:287-455 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:263-431 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:316-484 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:177-345 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:311-479 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:346-514 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:344-512 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:216-384 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:370-538 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:324-492 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:229-397 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:309-477 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:271-439 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:323-491 \u2014 These 58 members are variants of one another: a block of 46 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 58 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 58 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4efec21467a5d77deea8bbb5de98afd9d40a33c0d5842e589a8d10674f7c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (48 members, 8 shared lines): examples/community/matryoshka.py:4019-4059 | examples/community/pipeline_controlnet_xl_kolors.py:403-430 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:458-498 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:508-549 | examples/community/pipeline_kolors_differential_img2img.py:418-458 | examples/research_projects/anytext/anytext.py:1571-1611 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:148-188 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:365-405 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:410-450 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:596-636 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:419-459 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:467-507 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:498-538 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:509-549 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:487-527 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:493-533 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:560-600 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:568-608 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:560-600 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:549-589 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:560-600 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:579-619 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:521-561 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:523-563 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:494-534 | src/diffusers/pipelines/kolors/pipeline_kolors.py:392-432 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:412-452 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:452-492 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:437-477 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:486-526 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:462-502 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:575-615 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:565-605 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:409-449 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:515-555 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:376-416 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:510-550 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:545-585 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:562-602 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:816-856 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:358-398 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:541-581 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:569-609 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:523-563 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:552-592 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:803-843 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:362-402 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:580-620 \u2014 These 48 members are variants of one another: a block of 8 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 48 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 48 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":4019}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f91f2cf4ef27e73287b86726f08834ccfd3217d35ee83eaf1ab9d92f2011f9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (39 members, 21 shared lines): examples/community/pipeline_flux_differential_img2img.py:451-502 | examples/community/pipeline_flux_kontext_multiple_images.py:515-567 | examples/community/pipeline_flux_rf_inversion.py:442-487 | examples/community/pipeline_flux_semantic_guidance.py:580-640 | examples/community/pipeline_flux_with_cfg.py:406-464 | examples/community/pipeline_stg_hunyuan_video.py:411-446 | examples/community/pipeline_stg_wan.py:319-348 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:481-534 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:683-739 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:336-376 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:575-646 | src/diffusers/pipelines/flux/pipeline_flux.py:453-505 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:471-524 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:504-556 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:470-520 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:508-550 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:342-413 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These 39 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 39 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 39 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"b299ac9c76238360b0f374505815359ab2763d12810aef7994ecfa3a837fafc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (32 members, 45 shared lines): examples/community/fresco_v2v.py:1735-1875 | examples/community/matryoshka.py:4091-4145 | examples/community/pipeline_animatediff_ipex.py:472-521 | examples/community/pipeline_controlnet_xl_kolors.py:493-629 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/community/pipeline_kolors_differential_img2img.py:495-566 | examples/community/pipeline_kolors_inpainting.py:702-772 | examples/community/regional_prompting_stable_diffusion.py:727-781 | examples/research_projects/anytext/anytext.py:1673-1787 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:506-584 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:569-624 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:466-515 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:612-666 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:621-675 | src/diffusers/pipelines/kolors/pipeline_kolors.py:468-536 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:489-560 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:486-554 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These 32 members are variants of one another: a block of 45 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 32 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 32 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e877c8908d58c6fe9fdda2e064c6e5981aeb68add2ebafc8f00f62965b4986"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (31 members, 71 shared lines): examples/community/lpw_stable_diffusion_xl.py:739-916 | examples/community/mixture_tiling_sdxl.py:404-624 | examples/community/mod_controlnet_tile_sr_sdxl.py:411-631 | examples/community/pipeline_demofusion_sdxl.py:199-380 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1283-1499 | examples/community/pipeline_sdxl_style_aligned.py:524-743 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:710-926 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:257-476 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:404-623 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:284-503 | examples/community/pipeline_stable_diffusion_xl_ipex.py:284-503 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:312-536 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:343-565 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:307-529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:315-537 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:307-529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:296-518 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:307-529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:326-548 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:239-461 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:601-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:322-544 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:312-534 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:309-531 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:327-549 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:417-639 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:299-521 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:317-539 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:421-643 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:228-419 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:327-549 \u2014 These 31 members are variants of one another: a block of 71 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 31 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 31 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf6551f0281031ee7150306ff7fa99739a47d2e8f5c46e6cbca0bdb39ee1a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (31 members, 25 shared lines): examples/community/pipeline_hunyuandit_differential_img2img.py:564-621 | examples/community/pipeline_stg_ltx.py:403-443 | examples/community/pipeline_stg_ltx_image2video.py:427-467 | examples/community/pipeline_stg_mochi.py:410-450 | src/diffusers/pipelines/allegro/pipeline_allegro.py:381-435 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:177-230 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:491-549 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:433-473 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:544-584 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:586-626 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 | src/diffusers/pipelines/ltx/pipeline_ltx.py:377-417 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:469-529 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:401-441 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:476-572 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:529-625 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:290-386 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:306-402 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:551-647 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:482-578 | src/diffusers/pipelines/lumina/pipeline_lumina.py:400-454 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:371-428 | src/diffusers/pipelines/mochi/pipeline_mochi.py:348-388 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:374-424 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:364-416 | src/diffusers/pipelines/sana/pipeline_sana.py:440-492 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:455-507 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:463-515 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:462-517 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:288-351 \u2014 These 31 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 31 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 31 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d165c1a02cfbdd82324a154cc745353930edc85daf6e39ef806507f36588a69"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (31 members, 21 shared lines): examples/community/pipeline_hunyuandit_differential_img2img.py:564-621 | examples/community/pipeline_stg_ltx.py:403-443 | examples/community/pipeline_stg_ltx_image2video.py:427-467 | examples/community/pipeline_stg_mochi.py:410-450 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:491-547 | src/diffusers/pipelines/allegro/pipeline_allegro.py:381-435 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:177-230 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:491-549 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 | src/diffusers/pipelines/ltx/pipeline_ltx.py:377-417 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:469-529 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:401-441 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:476-572 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:529-625 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:290-386 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:306-402 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:551-647 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:482-578 | src/diffusers/pipelines/lumina/pipeline_lumina.py:400-454 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:371-428 | src/diffusers/pipelines/mochi/pipeline_mochi.py:348-388 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:356-409 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:364-416 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:468-521 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:413-466 | src/diffusers/pipelines/sana/pipeline_sana.py:440-492 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:455-507 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:463-515 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:462-517 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:288-351 \u2014 These 31 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 31 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 31 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c2ebfced45996a7654040acf58c13ad27ce14594d3b721dcde0878d67c410a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (31 members, 20 shared lines): examples/community/pipeline_stg_ltx.py:403-443 | examples/community/pipeline_stg_ltx_image2video.py:427-467 | examples/community/pipeline_stg_mochi.py:410-450 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:491-547 | src/diffusers/pipelines/allegro/pipeline_allegro.py:381-435 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:177-230 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:433-473 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:544-584 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:586-626 | src/diffusers/pipelines/ltx/pipeline_ltx.py:377-417 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:469-529 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:401-441 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:476-572 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:529-625 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:290-386 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:306-402 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:551-647 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:482-578 | src/diffusers/pipelines/lumina/pipeline_lumina.py:400-454 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:371-428 | src/diffusers/pipelines/mochi/pipeline_mochi.py:348-388 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:374-424 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:356-409 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:364-416 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:468-521 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:413-466 | src/diffusers/pipelines/sana/pipeline_sana.py:440-492 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:455-507 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:463-515 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:462-517 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:288-351 \u2014 These 31 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 31 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 31 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16e5be48b1d70cfca1c451e852140af24ab24ffb8d41aa81b0186197e4657b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (30 members, 50 shared lines): examples/community/mixture_tiling_sdxl.py:404-624 | examples/community/mod_controlnet_tile_sr_sdxl.py:411-631 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1283-1499 | examples/community/pipeline_sdxl_style_aligned.py:524-743 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:710-926 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:257-476 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:404-623 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:284-503 | examples/community/pipeline_stable_diffusion_xl_ipex.py:284-503 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:312-536 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:343-565 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:307-529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:315-537 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:307-529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:296-518 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:307-529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:326-548 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:239-461 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:601-823 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:414-617 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:322-544 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:312-534 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:309-531 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:327-549 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:417-639 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:299-521 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:317-539 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:421-643 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:228-419 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:327-549 \u2014 These 30 members are variants of one another: a block of 50 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 30 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 30 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32c6b0cb9c358589fac8a91ba2c297c182e4bf256169f2d94dab0882d01fe1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (30 members, 37 shared lines): examples/community/adaptive_mask_inpainting.py:370-461 | examples/community/composable_stable_diffusion.py:90-170 | examples/community/instaflow_one_step.py:110-191 | examples/community/ip_adapter_face_id.py:192-274 | examples/community/llm_grounded_diffusion.py:337-423 | examples/community/lpw_stable_diffusion.py:497-580 | examples/community/pipeline_prompt2prompt.py:132-214 | examples/community/pipeline_stable_diffusion_boxdiff.py:418-500 | examples/community/pipeline_stable_diffusion_pag.py:385-467 | examples/community/pipeline_zero1to3.py:109-189 | examples/community/stable_diffusion_ipex.py:106-186 | examples/community/stable_diffusion_reference.py:133-228 | examples/community/stable_diffusion_repaint.py:188-282 | examples/community/stable_diffusion_tensorrt_img2img.py:711-815 | examples/community/stable_diffusion_tensorrt_inpaint.py:715-819 | examples/community/stable_diffusion_tensorrt_txt2img.py:627-731 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:211-293 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:239-321 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:303-386 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:79-166 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:185-252 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:135-223 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:317-409 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:217-301 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:212-296 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:244-331 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:212-298 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:89-142 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:240-322 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:186-276 \u2014 These 30 members are variants of one another: a block of 37 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 30 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 30 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a2abd029b80e377bf6c87d0b7f4ae5d87240284b9ac4b4da00855e07c8705b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (30 members, 30 shared lines): examples/community/adaptive_mask_inpainting.py:370-461 | examples/community/composable_stable_diffusion.py:90-170 | examples/community/instaflow_one_step.py:110-191 | examples/community/ip_adapter_face_id.py:192-274 | examples/community/llm_grounded_diffusion.py:337-423 | examples/community/lpw_stable_diffusion.py:497-580 | examples/community/matryoshka.py:3680-3763 | examples/community/pipeline_prompt2prompt.py:132-214 | examples/community/pipeline_stable_diffusion_boxdiff.py:418-500 | examples/community/pipeline_stable_diffusion_pag.py:385-467 | examples/community/pipeline_zero1to3.py:109-189 | examples/community/stable_diffusion_ipex.py:106-186 | examples/community/stable_diffusion_reference.py:133-228 | examples/community/stable_diffusion_repaint.py:188-282 | examples/community/stable_diffusion_tensorrt_img2img.py:711-815 | examples/community/stable_diffusion_tensorrt_inpaint.py:715-819 | examples/community/stable_diffusion_tensorrt_txt2img.py:627-731 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:211-293 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:239-321 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:303-386 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:79-166 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:185-252 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:135-223 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:317-409 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:217-301 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:212-296 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:244-331 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:212-298 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:240-322 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:186-276 \u2014 These 30 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 30 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 30 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7eb0ac2e53702dbe7dd63d05eb942dd89b92d236bb93ab4d2213dc2ac8c270"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (29 members, 48 shared lines): examples/community/lpw_stable_diffusion_xl.py:269-464 | examples/community/mixture_tiling_sdxl.py:404-624 | examples/community/mod_controlnet_tile_sr_sdxl.py:411-631 | examples/community/pipeline_sdxl_style_aligned.py:524-743 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:710-926 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:257-476 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:404-623 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:284-503 | examples/community/pipeline_stable_diffusion_xl_ipex.py:284-503 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:312-536 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:343-565 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:307-529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:315-537 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:307-529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:296-518 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:307-529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:326-548 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:239-461 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:601-823 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:414-617 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:322-544 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:312-534 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:309-531 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:327-549 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:417-639 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:299-521 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:317-539 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:421-643 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:327-549 \u2014 These 29 members are variants of one another: a block of 48 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 29 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 29 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ddea1e6deed023d2e10ffe383b5348bc9144e8355878d969eb5e4f3ffd98e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (27 members, 23 shared lines): examples/community/pipeline_stg_cogvideox.py:310-377 | examples/community/pipeline_stg_wan.py:240-307 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:192-259 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:209-276 | src/diffusers/pipelines/bria/pipeline_bria.py:158-241 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:254-321 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:256-323 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:265-332 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:275-342 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:281-348 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:222-293 | src/diffusers/pipelines/consisid/pipeline_consisid.py:367-434 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:266-335 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:285-354 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:251-320 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:295-364 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:252-319 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:210-277 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:231-298 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:236-303 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:292-359 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:253-320 | src/diffusers/pipelines/wan/pipeline_wan.py:212-279 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:303-370 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:266-333 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:259-326 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:277-344 \u2014 These 27 members are variants of one another: a block of 23 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 27 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 27 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d10615c3a616a138b3a058361777132bc2e0f0d27e64d2d6e952342b4e86e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (26 members, 32 shared lines): src/diffusers/loaders/lora_pipeline.py:250-352 | src/diffusers/loaders/lora_pipeline.py:672-774 | src/diffusers/loaders/lora_pipeline.py:984-1029 | src/diffusers/loaders/lora_pipeline.py:1268-1313 | src/diffusers/loaders/lora_pipeline.py:2369-2414 | src/diffusers/loaders/lora_pipeline.py:2554-2599 | src/diffusers/loaders/lora_pipeline.py:2742-2791 | src/diffusers/loaders/lora_pipeline.py:2935-2990 | src/diffusers/loaders/lora_pipeline.py:3151-3196 | src/diffusers/loaders/lora_pipeline.py:3529-3578 | src/diffusers/loaders/lora_pipeline.py:3721-3771 | src/diffusers/loaders/lora_pipeline.py:3915-3960 | src/diffusers/loaders/lora_pipeline.py:4633-4678 | src/diffusers/loaders/lora_pipeline.py:4821-4870 | src/diffusers/loaders/lora_pipeline.py:5013-5065 | src/diffusers/loaders/lora_pipeline.py:5208-5259 | src/diffusers/loaders/lora_pipeline.py:5402-5459 | src/diffusers/loaders/lora_pipeline.py:5603-5650 | src/diffusers/loaders/lora_pipeline.py:5788-5857 | src/diffusers/loaders/lora_pipeline.py:5995-6038 | src/diffusers/loaders/lora_pipeline.py:6182-6227 | src/diffusers/loaders/lora_pipeline.py:6370-6423 | src/diffusers/loaders/lora_pipeline.py:6566-6623 | src/diffusers/loaders/lora_pipeline.py:6768-6813 | src/diffusers/loaders/lora_pipeline.py:6956-7004 | src/diffusers/loaders/lora_pipeline.py:7550-7593 \u2014 These 26 members are variants of one another: a block of 32 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 26 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 26 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c741673b52cfc7c7105439f83da7d101f148e3dfabd0fc5b14e5cbf38376e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (26 members, 26 shared lines): examples/community/adaptive_mask_inpainting.py:370-461 | examples/community/composable_stable_diffusion.py:90-170 | examples/community/instaflow_one_step.py:110-191 | examples/community/ip_adapter_face_id.py:192-274 | examples/community/llm_grounded_diffusion.py:337-423 | examples/community/lpw_stable_diffusion.py:497-580 | examples/community/pipeline_prompt2prompt.py:132-214 | examples/community/pipeline_stable_diffusion_boxdiff.py:418-500 | examples/community/pipeline_stable_diffusion_pag.py:385-467 | examples/community/pipeline_zero1to3.py:109-189 | examples/community/stable_diffusion_ipex.py:106-186 | examples/community/stable_diffusion_reference.py:133-228 | examples/community/stable_diffusion_repaint.py:188-282 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:211-293 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:239-321 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:303-386 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:185-252 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:135-223 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:317-409 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:217-301 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:212-296 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:244-331 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:212-298 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:131-168 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:240-322 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:186-276 \u2014 These 26 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 26 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 26 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"447fc3e5e38865dd5d58322127964cd77bf272d464963ff356b79803ef24539d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (24 members, 31 shared lines): examples/community/adaptive_mask_inpainting.py:698-736 | examples/community/instaflow_one_step.py:441-476 | examples/community/llm_grounded_diffusion.py:502-545 | examples/community/lpw_stable_diffusion.py:674-712 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:418-491 | examples/community/rerender_a_video.py:402-494 | examples/community/stable_diffusion_controlnet_img2img.py:409-522 | examples/community/stable_diffusion_controlnet_inpaint.py:506-635 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:455-595 | examples/community/stable_diffusion_ipex.py:502-537 | examples/community/stable_diffusion_repaint.py:479-514 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:361-393 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:388-449 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:542-638 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:393-489 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:545-674 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:500-566 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:289-335 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:326-372 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:534-594 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:658-695 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:446-487 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:439-512 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:549-595 \u2014 These 24 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 24 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 24 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e8083e2400ec0cff8ff2b7ae4c973f664b8e6ce5335f7f12328536c251d04e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (24 members, 31 shared lines): examples/community/adaptive_mask_inpainting.py:698-736 | examples/community/instaflow_one_step.py:441-476 | examples/community/lpw_stable_diffusion.py:674-712 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:418-491 | examples/community/rerender_a_video.py:402-494 | examples/community/stable_diffusion_controlnet_img2img.py:409-522 | examples/community/stable_diffusion_controlnet_inpaint.py:506-635 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:455-595 | examples/community/stable_diffusion_ipex.py:502-537 | examples/community/stable_diffusion_repaint.py:479-514 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:361-393 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:388-449 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:542-638 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:393-489 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:545-674 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:500-566 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:289-335 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:326-372 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:534-594 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:658-695 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:446-487 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:317-389 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:439-512 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:549-595 \u2014 These 24 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 24 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 24 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"736712d820924f4c0b1910af719fd3f86a2a5dcd2f446b3385989148cb2b4a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (24 members, 24 shared lines): examples/community/adaptive_mask_inpainting.py:370-461 | examples/community/instaflow_one_step.py:110-191 | examples/community/ip_adapter_face_id.py:192-274 | examples/community/llm_grounded_diffusion.py:337-423 | examples/community/lpw_stable_diffusion.py:497-580 | examples/community/pipeline_fabric.py:151-187 | examples/community/pipeline_prompt2prompt.py:132-214 | examples/community/pipeline_stable_diffusion_boxdiff.py:418-500 | examples/community/pipeline_stable_diffusion_pag.py:385-467 | examples/community/stable_diffusion_reference.py:133-228 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:211-293 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:239-321 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:303-386 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:185-252 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:135-223 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:317-409 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:217-301 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:212-296 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:244-331 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:212-298 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:131-168 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:89-142 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:240-322 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:186-276 \u2014 These 24 members are variants of one another: a block of 24 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 24 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 24 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b8f5715b092ab1e9583d34eafdc0c720d98abe728d83865c27e913fdd297e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (24 members, 21 shared lines): examples/community/pipeline_hunyuandit_differential_img2img.py:564-621 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:491-547 | src/diffusers/pipelines/allegro/pipeline_allegro.py:381-435 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:177-230 | src/diffusers/pipelines/chroma/pipeline_chroma.py:430-469 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:459-501 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:491-549 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:431-475 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:518-560 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 | src/diffusers/pipelines/lumina/pipeline_lumina.py:400-454 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:371-428 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:356-409 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:364-416 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:468-521 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:413-466 | src/diffusers/pipelines/sana/pipeline_sana.py:440-492 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:455-507 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:463-515 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:462-517 \u2014 These 24 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 24 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 24 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea809a08a6232a3ee2fd1adbed3583141f43e78c12ee97dbd398c286c27989b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (23 members, 116 shared lines): examples/community/matryoshka.py:4278-4577 | examples/community/pipeline_controlnet_xl_kolors.py:821-1338 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:995-1540 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1163-1854 | examples/community/pipeline_kolors_inpainting.py:1121-1707 | examples/community/stable_diffusion_xl_controlnet_reference.py:375-1368 | examples/community/stable_diffusion_xl_reference.py:317-1202 | examples/research_projects/anytext/anytext.py:1970-2360 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:940-1361 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:938-1336 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1029-1525 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1214-1888 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1043-1602 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1122-1666 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1194-1900 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1114-1713 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:807-1107 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:885-1163 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:912-1363 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:196-494 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:863-1311 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1018-1494 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1128-1736 \u2014 These 23 members are variants of one another: a block of 116 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 23 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 23 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":4278}}}],"partialFingerprints":{"codehealthFindingId/v1":"783f043c2e3024165c8536f8df685b1d216019f2361027385a900da41ece8031"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (22 members, 37 shared lines): examples/community/fresco_v2v.py:1735-1875 | examples/community/pipeline_animatediff_controlnet.py:498-626 | examples/community/pipeline_controlnet_xl_kolors.py:493-629 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/community/rerender_a_video.py:402-494 | examples/research_projects/anytext/anytext.py:1673-1787 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:672-847 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:677-830 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:661-810 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:641-788 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These 22 members are variants of one another: a block of 37 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 22 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 22 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"349fe51af4237e7da7acb46199f1a182a1a7411814fb010bb9b65a4fd038b867"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (22 members, 29 shared lines): examples/community/matryoshka.py:4091-4145 | examples/community/pipeline_animatediff_ipex.py:472-521 | examples/community/pipeline_prompt2prompt.py:480-524 | examples/community/pipeline_stable_diffusion_pag.py:847-891 | examples/community/regional_prompting_stable_diffusion.py:727-781 | examples/community/stable_diffusion_reference.py:286-359 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:456-510 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:506-584 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:569-624 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:427-471 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:448-493 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:466-515 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:612-666 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:621-675 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:288-351 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These 22 members are variants of one another: a block of 29 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 22 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 22 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":4091}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc91e81b73b3e3ab4e9eff42258e7bf0be1b960c233d3b15b6cff6254566922"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (21 members, 83 shared lines): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:614-725 | src/diffusers/pipelines/allegro/pipeline_allegro.py:464-575 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:434-545 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:478-589 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:231-342 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:518-629 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:233-344 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:189-300 | src/diffusers/pipelines/latte/pipeline_latte.py:451-562 | src/diffusers/pipelines/lumina/pipeline_lumina.py:483-594 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:438-549 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:445-556 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:550-661 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:495-606 | src/diffusers/pipelines/prx/pipeline_prx.py:129-231 | src/diffusers/pipelines/sana/pipeline_sana.py:521-632 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:536-647 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:412-523 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:436-547 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:544-655 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:546-657 \u2014 These 21 members are variants of one another: a block of 83 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 21 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 21 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"832556fc56d0e4d8e763b3a7b2fba14f1a05b58efb4639a9cbbd28210b33555b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (20 members, 48 shared lines): examples/community/fresco_v2v.py:1735-1875 | examples/community/pipeline_controlnet_xl_kolors.py:493-629 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/research_projects/anytext/anytext.py:1673-1787 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:672-847 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:677-830 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:661-810 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:641-788 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These 20 members are variants of one another: a block of 48 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e17f0803585414af3a295b254067d1669a66a316e9e725a73b2809d9aa2d067"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (20 members, 26 shared lines): examples/community/pipeline_flux_differential_img2img.py:340-406 | examples/community/pipeline_flux_kontext_multiple_images.py:382-448 | examples/community/pipeline_flux_rf_inversion.py:337-403 | examples/community/pipeline_flux_semantic_guidance.py:341-407 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:370-436 | src/diffusers/modular_pipelines/flux/encoders.py:415-457 | src/diffusers/pipelines/flux/pipeline_flux.py:323-389 | src/diffusers/pipelines/flux/pipeline_flux_control.py:337-403 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:348-414 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:387-453 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:355-421 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:349-415 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:360-426 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:432-498 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:346-412 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:350-416 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:371-437 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:404-470 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:310-376 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:304-380 \u2014 These 20 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f89e16ddbe6f3ce72b1bcfbdec181ecea21f5df630b8b2fa6bf528f93ecbdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (20 members, 19 shared lines): examples/community/pipeline_flux_differential_img2img.py:340-406 | examples/community/pipeline_flux_kontext_multiple_images.py:382-448 | examples/community/pipeline_flux_rf_inversion.py:337-403 | examples/community/pipeline_flux_semantic_guidance.py:341-407 | examples/community/pipeline_flux_with_cfg.py:304-389 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:370-436 | src/diffusers/pipelines/flux/pipeline_flux.py:323-389 | src/diffusers/pipelines/flux/pipeline_flux_control.py:337-403 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:348-414 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:387-453 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:355-421 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:349-415 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:360-426 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:432-498 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:346-412 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:350-416 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:371-437 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:404-470 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:310-376 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:304-380 \u2014 These 20 members are variants of one another: a block of 19 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91837a6cfcc661bae4762d03cc14f4f84f9f4852eebe0260a029ece505ed14c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (20 members, 18 shared lines): examples/community/pipeline_flux_kontext_multiple_images.py:515-567 | examples/community/pipeline_hunyuandit_differential_img2img.py:564-621 | src/diffusers/pipelines/allegro/pipeline_allegro.py:381-435 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:177-230 | src/diffusers/pipelines/chroma/pipeline_chroma.py:430-469 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:459-501 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:491-549 | src/diffusers/pipelines/flux/pipeline_flux.py:453-505 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:504-556 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 | src/diffusers/pipelines/lumina/pipeline_lumina.py:400-454 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:371-428 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:364-416 | src/diffusers/pipelines/sana/pipeline_sana.py:440-492 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:455-507 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:463-515 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:462-517 \u2014 These 20 members are variants of one another: a block of 18 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33405187df28d54a6d47615c10692c2cfc76c82995d390e57a1e7f2890df827"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (20 members, 13 shared lines): examples/community/pipeline_stg_wan.py:195-226 | src/diffusers/modular_pipelines/helios/encoders.py:63-101 | src/diffusers/modular_pipelines/wan/encoders.py:68-90 | src/diffusers/modular_pipelines/wan_animate_2/encoders.py:48-69 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:145-177 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:162-194 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:194-226 | src/diffusers/pipelines/helios/pipeline_helios.py:163-194 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:181-212 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:205-237 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:163-195 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:184-216 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:189-221 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:245-277 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:193-225 | src/diffusers/pipelines/wan/pipeline_wan.py:166-198 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:243-275 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:207-239 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:212-244 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:230-262 \u2014 These 20 members are variants of one another: a block of 13 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e81c038770596d0385d2b44b8daa4565a3be04bb554f5b68ac090afebd702a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (19 members, 39 shared lines): examples/community/fresco_v2v.py:1735-1875 | examples/community/pipeline_animatediff_controlnet.py:498-626 | examples/community/pipeline_controlnet_xl_kolors.py:493-629 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/community/rerender_a_video.py:402-494 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:504-627 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These 19 members are variants of one another: a block of 39 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c88b1e8cd7da191bb4e5406eefd2285d35558ef0e4b7728da808f4c8af3c5e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (19 members, 35 shared lines): examples/community/matryoshka.py:4091-4145 | examples/community/pipeline_animatediff_ipex.py:472-521 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:538-611 | examples/community/regional_prompting_stable_diffusion.py:727-781 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:456-510 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:506-584 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:569-624 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:466-515 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:612-666 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:621-675 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These 19 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":4091}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57c331a7669c8f012a5148ec6067db2515cdabccfb90f6440ddea8836dd1057"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (17 members, 15 shared lines): examples/community/pipeline_flux_kontext_multiple_images.py:733-793 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:590-628 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:566-601 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:610-650 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:551-583 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:590-622 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:552-584 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:580-617 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:647-682 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:625-660 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:646-686 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:625-673 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:701-788 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:571-620 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:489-539 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:418-460 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:445-495 \u2014 These 17 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9e84722ac6387c222ed77336995a25422cb1690f0453cb8fce0617a2236ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 47 shared lines): examples/community/fresco_v2v.py:1735-1875 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:626-752 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:773-899 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These 16 members are variants of one another: a block of 47 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40b06b8e7285e7c15baacbe34202d5c62c525e3f8b8920a980531c6a46d1ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 44 shared lines): examples/community/pipeline_animatediff_controlnet.py:498-626 | examples/community/pipeline_controlnet_xl_kolors.py:493-629 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/research_projects/anytext/anytext.py:1673-1787 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:504-627 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:672-847 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These 16 members are variants of one another: a block of 44 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79069964576925b2bb3f102a1de2b0dc0e80adcac1d10e293686a480403f618"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 42 shared lines): examples/community/fresco_v2v.py:1429-1596 | examples/community/gluegen.py:262-431 | examples/community/ip_adapter_face_id.py:496-663 | examples/community/latent_consistency_interpolate.py:293-460 | examples/community/llm_grounded_diffusion.py:1244-1413 | examples/community/pipeline_animatediff_controlnet.py:210-377 | examples/community/pipeline_animatediff_img2video.py:327-494 | examples/community/pipeline_prompt2prompt.py:262-431 | examples/community/pipeline_stable_diffusion_boxdiff.py:599-766 | examples/community/pipeline_stable_diffusion_pag.py:566-732 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:205-372 | examples/community/stable_diffusion_reference.py:424-591 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:334-501 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:339-506 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:367-534 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:533-706 \u2014 These 16 members are variants of one another: a block of 42 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf1ecf2c46cea7643105b6b40e88503c5e2107ad9fcccafe9a549d95e46e34a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 41 shared lines): examples/community/fresco_v2v.py:1735-1875 | examples/community/pipeline_animatediff_controlnet.py:498-626 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:626-752 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:773-899 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:504-627 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These 16 members are variants of one another: a block of 41 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"85652411d62ff67c11ecb9f2a176ab326679fa3656ea4d9a983a3f30e1270585"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 40 shared lines): examples/community/pipeline_animatediff_controlnet.py:498-626 | examples/community/pipeline_controlnet_xl_kolors.py:493-629 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:626-752 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:773-899 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:504-627 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These 16 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45b9688e80beee8f3cdc5783d1f78ceafcbf6ea7a2457d5a5cf62a12f2b71ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 27 shared lines): examples/community/pipeline_hunyuandit_differential_img2img.py:564-621 | src/diffusers/pipelines/allegro/pipeline_allegro.py:381-435 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:177-230 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:491-549 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 | src/diffusers/pipelines/lumina/pipeline_lumina.py:400-454 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:371-428 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:374-424 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:481-549 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:364-416 | src/diffusers/pipelines/sana/pipeline_sana.py:440-492 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:455-507 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:463-515 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:462-517 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:288-351 \u2014 These 16 members are variants of one another: a block of 27 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59f3f1747e187cc36682464987d0b5bd4735620b64ba24003f5b6803580ac8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 22 shared lines): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:491-547 | src/diffusers/pipelines/allegro/pipeline_allegro.py:381-435 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:177-230 | src/diffusers/pipelines/lumina/pipeline_lumina.py:400-454 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:371-428 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:374-424 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:481-549 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:356-409 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:364-416 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:468-521 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:413-466 | src/diffusers/pipelines/sana/pipeline_sana.py:440-492 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:455-507 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:463-515 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:462-517 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:288-351 \u2014 These 16 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b42ee00f96e564fdc33bd94855736fc99c98d1a047a8f84e8a0221924421573"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 17 shared lines): examples/community/adaptive_mask_inpainting.py:811-844 | examples/community/lpw_stable_diffusion_xl.py:1265-1310 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1064-1109 | examples/community/pipeline_kolors_inpainting.py:869-914 | examples/community/pipeline_sdxl_style_aligned.py:1065-1110 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1143-1186 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1005-1048 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:913-950 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1004-1043 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:983-1022 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:318-355 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:864-901 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:797-834 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:862-907 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:771-808 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:862-907 \u2014 These 16 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebc5bb257ceb2abaa8384495a9fe3df456c32dd8406ac22ecc3cdb7c444556d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 40 shared lines): examples/community/mod_controlnet_tile_sr_sdxl.py:668-788 | examples/community/pipeline_animatediff_controlnet.py:498-626 | examples/community/pipeline_controlnet_xl_kolors.py:493-629 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:504-627 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These 15 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c96a37694dc500df991ad5fac3282b8525237122dd2d54734f72e7a29310aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 40 shared lines): examples/community/mod_controlnet_tile_sr_sdxl.py:668-788 | examples/community/pipeline_animatediff_controlnet.py:498-626 | examples/community/pipeline_controlnet_xl_kolors.py:493-629 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:626-752 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:773-899 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:504-627 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These 15 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea250e5efb3c45bbeeb0a703fdd3d50b8a2a892fa6be2b734be5bb53fea9168c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 37 shared lines): examples/community/hd_painter.py:38-97 | examples/community/hd_painter.py:121-398 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:187-237 | examples/community/pipeline_stable_diffusion_xl_instantid.py:187-237 | src/diffusers/models/attention_processor.py:1118-1172 | src/diffusers/models/attention_processor.py:2014-2084 | src/diffusers/models/attention_processor.py:2501-2567 | src/diffusers/models/attention_processor.py:2592-2681 | src/diffusers/models/attention_processor.py:2703-2775 | src/diffusers/models/attention_processor.py:2804-2891 | src/diffusers/models/attention_processor.py:3131-3207 | src/diffusers/models/attention_processor.py:4244-4393 | src/diffusers/models/attention_processor.py:4449-4625 | src/diffusers/models/attention_processor.py:4689-4857 | src/diffusers/models/unets/unet_dreamlite.py:307-388 \u2014 These 15 members are variants of one another: a block of 37 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8181c658429e267698bda289afac75e9b9ad0fbe01c14e3771102a4039e5721"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 30 shared lines): examples/community/adaptive_mask_inpainting.py:504-652 | examples/community/composable_stable_diffusion.py:173-275 | examples/community/instaflow_one_step.py:234-380 | examples/community/pipeline_fabric.py:201-349 | examples/community/pipeline_zero1to3.py:202-328 | examples/community/sd_text2img_k_diffusion.py:124-226 | examples/community/stable_diffusion_controlnet_img2img.py:195-320 | examples/community/stable_diffusion_controlnet_inpaint.py:294-419 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:279-404 | examples/community/stable_diffusion_ipex.py:321-455 | examples/community/stable_diffusion_repaint.py:295-428 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:198-322 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:157-245 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:107-216 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:506-643 \u2014 These 15 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc8826ec204ec9363c818b395fc5f780ad51a16f069ef607a5d4596149411d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 30 shared lines): examples/community/matryoshka.py:4091-4145 | examples/community/pipeline_prompt2prompt.py:480-524 | examples/community/pipeline_stable_diffusion_pag.py:847-891 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:538-611 | examples/community/regional_prompting_stable_diffusion.py:727-781 | examples/community/stable_diffusion_reference.py:286-359 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:456-510 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:612-666 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:621-675 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These 15 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":4091}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f669c71b61dab1db4151d1ec740cb834eba39bb05f0e6304a1e415384a71959"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 20 shared lines): examples/community/pipeline_stg_cogvideox.py:264-296 | examples/community/pipeline_stg_ltx.py:268-306 | examples/community/pipeline_stg_ltx_image2video.py:291-329 | examples/community/pipeline_stg_mochi.py:267-313 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:210-242 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:218-250 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:228-260 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:234-266 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:176-208 | src/diffusers/pipelines/consisid/pipeline_consisid.py:320-352 | src/diffusers/pipelines/ltx/pipeline_ltx.py:242-280 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:328-366 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:511-549 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:265-303 | src/diffusers/pipelines/mochi/pipeline_mochi.py:205-251 \u2014 These 15 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"b666ef53f30dca8a878eadaa6241ff2422f81b6dbaa99b0d2eaa91f389a21f9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (14 members, 44 shared lines): examples/community/fresco_v2v.py:1735-1875 | examples/community/pipeline_animatediff_controlnet.py:498-626 | examples/community/pipeline_controlnet_xl_kolors.py:493-629 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/research_projects/anytext/anytext.py:1673-1787 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:504-627 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 \u2014 These 14 members are variants of one another: a block of 44 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"64921256434485db7b99dd32f6e47571ee32d5075f778fffe1ec9cc5ca0b246c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (14 members, 31 shared lines): examples/community/pipeline_animatediff_ipex.py:472-521 | examples/community/pipeline_kolors_differential_img2img.py:495-566 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:504-627 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:506-584 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:569-624 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/bria/pipeline_bria.py:281-319 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:491-554 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:466-515 | src/diffusers/pipelines/kolors/pipeline_kolors.py:468-536 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:489-560 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:486-554 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 \u2014 These 14 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"493bfc28d1e87000126f62566f5189071f9376a9dd0b3f80e9d9f68a8e1379b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (14 members, 30 shared lines): examples/community/lpw_stable_diffusion_xl.py:1099-1234 | examples/community/masked_stable_diffusion_xl_img2img.py:560-637 | examples/community/mod_controlnet_tile_sr_sdxl.py:873-954 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:791-855 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:867-931 | examples/community/pipeline_kolors_differential_img2img.py:609-690 | examples/community/pipeline_sdxl_style_aligned.py:922-1057 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:652-715 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:906-987 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:897-978 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:606-687 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:912-993 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:704-785 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:691-772 \u2014 These 14 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"a717442e7b5956fc955fac39e577fd70429951affac74361ce8dda6198d700ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (14 members, 26 shared lines): examples/community/latent_consistency_interpolate.py:249-278 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:125-157 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:160-196 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:71-100 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:231-260 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:155-184 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:216-248 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:246-276 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:217-247 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:94-156 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:121-153 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:339-371 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:193-223 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:140-170 \u2014 These 14 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb21090765c63d618f11de8c3c9dda172d312ef97f5c234b9a181ec0b58f4a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (14 members, 25 shared lines): examples/community/mod_controlnet_tile_sr_sdxl.py:970-1006 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1239-1275 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1097-1131 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:807-843 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1162-1198 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1095-1129 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1003-1039 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1074-1108 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:994-1030 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1009-1045 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:872-908 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:963-999 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:858-894 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:963-999 \u2014 These 14 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"619b531ac9a8181acfd82fbe6b86bb7974527e33fc13d2f66adf33a489b149ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (14 members, 23 shared lines): examples/community/mod_controlnet_tile_sr_sdxl.py:873-954 | examples/community/pipeline_kolors_differential_img2img.py:609-690 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:123-195 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:814-876 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:906-987 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:897-978 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:606-687 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:511-573 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:912-993 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:660-722 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:704-785 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:496-558 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:736-798 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:691-772 \u2014 These 14 members are variants of one another: a block of 23 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cfb88367166ba420a80f1b2bc8c7310cae33ca2476cb3a6ee03b7adfe4352c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (14 members, 17 shared lines): examples/community/pipeline_flux_differential_img2img.py:451-502 | examples/community/pipeline_kolors_differential_img2img.py:495-566 | src/diffusers/pipelines/allegro/pipeline_allegro.py:381-435 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:336-376 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:467-516 | src/diffusers/pipelines/consisid/pipeline_consisid.py:569-618 | src/diffusers/pipelines/kolors/pipeline_kolors.py:468-536 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:489-560 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:486-554 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:369-407 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:390-460 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These 14 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c4d4ff27f4604061d227a4eede9b417d6b692ae5e9c36b5fc99cd8418859bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 42 shared lines): examples/community/fresco_v2v.py:1735-1875 | examples/community/mod_controlnet_tile_sr_sdxl.py:668-788 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These 13 members are variants of one another: a block of 42 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca25c98651c64a5adede47cb64c91357800ee5199788f0979d86cab69ce9ba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 29 shared lines): examples/community/adaptive_mask_inpainting.py:698-736 | examples/community/instaflow_one_step.py:441-476 | examples/community/llm_grounded_diffusion.py:502-545 | examples/community/pipeline_demofusion_sdxl.py:415-482 | examples/community/stable_diffusion_controlnet_img2img.py:409-522 | examples/community/stable_diffusion_controlnet_inpaint.py:506-635 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:455-595 | examples/community/stable_diffusion_ipex.py:502-537 | examples/community/stable_diffusion_repaint.py:479-514 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:534-594 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:446-487 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:966-1060 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:549-595 \u2014 These 13 members are variants of one another: a block of 29 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"7879e95d183ea59e53f9842a7a16bf14834950c33fe8ef360fbde9254adb6850"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 20 shared lines): examples/community/pipeline_stable_diffusion_pag.py:72-164 | examples/community/pipeline_stable_diffusion_pag.py:186-276 | src/diffusers/models/attention_processor.py:2014-2084 | src/diffusers/models/attention_processor.py:2592-2681 | src/diffusers/models/attention_processor.py:2703-2775 | src/diffusers/models/attention_processor.py:2804-2891 | src/diffusers/models/attention_processor.py:3131-3207 | src/diffusers/models/attention_processor.py:3232-3310 | src/diffusers/models/attention_processor.py:3335-3433 | src/diffusers/models/attention_processor.py:3458-3557 | src/diffusers/models/attention_processor.py:3681-3755 | src/diffusers/models/attention_processor.py:5051-5127 | src/diffusers/models/attention_processor.py:5150-5230 \u2014 These 13 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ee32dc8846561c77939fc63cbb692d5a84ddc4120b9d8dcfac22a135015c38"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 19 shared lines): examples/community/pipeline_sdxl_style_aligned.py:219-282 | examples/community/pipeline_stable_diffusion_pag.py:72-164 | examples/community/pipeline_stable_diffusion_pag.py:186-276 | src/diffusers/models/attention_processor.py:2014-2084 | src/diffusers/models/attention_processor.py:2703-2775 | src/diffusers/models/attention_processor.py:2804-2891 | src/diffusers/models/attention_processor.py:3131-3207 | src/diffusers/models/attention_processor.py:3232-3310 | src/diffusers/models/attention_processor.py:3335-3433 | src/diffusers/models/attention_processor.py:3458-3557 | src/diffusers/models/attention_processor.py:3681-3755 | src/diffusers/models/attention_processor.py:5051-5127 | src/diffusers/models/attention_processor.py:5150-5230 \u2014 These 13 members are variants of one another: a block of 19 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b9b2c3dc1c17e3678e1ddcab4005017ec18efc770775823a10d8effe20cf8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 15 shared lines): examples/community/adaptive_mask_inpainting.py:811-844 | examples/community/pipeline_flux_differential_img2img.py:607-662 | examples/community/pipeline_z_image_differential_img2img.py:387-427 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:645-699 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:667-723 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:674-735 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:634-688 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:703-759 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:806-862 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:557-615 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:512-570 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:773-814 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:329-384 \u2014 These 13 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3428121bf7f7eee2bce296d8e6b7455b0b161ab98d0dd9b044c1486b86989e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 9 shared lines): examples/community/fresco_v2v.py:1303-1381 | examples/community/rerender_a_video.py:312-388 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:204-241 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:225-262 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:203-240 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:267-296 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:258-288 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:259-288 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:277-307 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:192-220 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:233-272 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:273-303 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:261-293 \u2014 These 13 members are variants of one another: a block of 9 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"028b51d5f799f1e8cfe5e86660a08e980e2e72c1c86ab9847ea89dd82f3ea12d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 37 shared lines): examples/community/pipeline_stg_wan.py:437-661 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:497-753 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:476-737 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:400-617 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:627-979 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:676-1061 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:714-1068 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:505-750 | src/diffusers/pipelines/wan/pipeline_wan.py:406-684 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:537-844 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:718-1047 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:506-743 \u2014 These 12 members are variants of one another: a block of 37 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cdb159eab89250c67da858c6bd1902197211492b001383c0f624aa4ca34f69"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 26 shared lines): examples/community/composable_stable_diffusion.py:173-275 | examples/community/pipeline_zero1to3.py:202-328 | examples/community/stable_diffusion_controlnet_img2img.py:195-320 | examples/community/stable_diffusion_controlnet_inpaint.py:294-419 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:279-404 | examples/community/stable_diffusion_ipex.py:321-455 | examples/community/stable_diffusion_repaint.py:295-428 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:142-234 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:175-267 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:306-398 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:506-643 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:177-283 \u2014 These 12 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"6984fac22b8237047b653c4e2612bec127cbba5881d6002fd66cd934da495f5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 25 shared lines): examples/community/fresco_v2v.py:1962-2022 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1751-1799 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:705-743 | examples/community/rerender_a_video.py:539-593 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:814-876 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:663-718 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:511-573 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:660-722 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:496-558 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:736-798 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:865-901 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:513-565 \u2014 These 12 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb8636bbdf113367f8b40fa5ce5c43f494205aa3eb2055ab4cf87e13d9a4cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 21 shared lines): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:174-223 | scripts/convert_i2vgen_to_diffusers.py:31-76 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:81-127 | scripts/convert_ms_text_to_video_to_diffusers.py:27-72 | scripts/convert_original_audioldm2_to_diffusers.py:159-199 | scripts/convert_original_audioldm_to_diffusers.py:152-197 | scripts/convert_original_musicldm_to_diffusers.py:152-197 | scripts/convert_svd_to_diffusers.py:126-183 | scripts/convert_unidiffuser_to_diffusers.py:118-167 | scripts/convert_versatile_diffusion_to_diffusers.py:198-244 | scripts/convert_zero123_to_diffusers.py:146-195 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:172-221 \u2014 These 12 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c42012b07a5d338ada590eee0ad0f990bdb013d05a4046abc88252bd60b40d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 19 shared lines): examples/community/fresco_v2v.py:1962-2022 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1751-1799 | examples/community/rerender_a_video.py:539-593 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:123-195 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:814-876 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:663-718 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:511-573 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:660-722 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:496-558 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:736-798 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:865-901 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:513-565 \u2014 These 12 members are variants of one another: a block of 19 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"13660744a82cfa5b4abd293b014f10c8dfee6e4246a7e9fb8f72ce5085ed4e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 18 shared lines): examples/community/pipeline_sdxl_style_aligned.py:219-282 | examples/community/pipeline_stable_diffusion_pag.py:72-164 | examples/community/pipeline_stable_diffusion_pag.py:186-276 | src/diffusers/models/attention_processor.py:2014-2084 | src/diffusers/models/attention_processor.py:2592-2681 | src/diffusers/models/attention_processor.py:2703-2775 | src/diffusers/models/attention_processor.py:2804-2891 | src/diffusers/models/attention_processor.py:3131-3207 | src/diffusers/models/attention_processor.py:3335-3433 | src/diffusers/models/attention_processor.py:3458-3557 | src/diffusers/models/attention_processor.py:5051-5127 | src/diffusers/models/attention_processor.py:5150-5230 \u2014 These 12 members are variants of one another: a block of 18 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b2979d07438554fdbdcc30afa5e84d5d926efed792dfcb5084068ec0487a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 12 shared lines): examples/community/fresco_v2v.py:1962-2022 | examples/community/pipeline_hunyuandit_differential_img2img.py:648-701 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:601-642 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:814-876 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:663-718 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:471-512 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:511-573 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:659-706 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:660-722 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:496-558 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:736-798 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:675-722 \u2014 These 12 members are variants of one another: a block of 12 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"865cf377a448043e14c3cd1e4ad7443bedb45405c98b3a129937ad9cbf9d20cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 63 shared lines): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:707-809 | scripts/convert_gligen_to_diffusers.py:83-197 | scripts/convert_original_audioldm2_to_diffusers.py:502-604 | scripts/convert_original_audioldm_to_diffusers.py:486-588 | scripts/convert_original_musicldm_to_diffusers.py:482-584 | scripts/convert_svd_to_diffusers.py:625-730 | scripts/convert_unidiffuser_to_diffusers.py:349-493 | scripts/convert_vae_pt_to_diffusers.py:20-133 | scripts/convert_versatile_diffusion_to_diffusers.py:576-676 | scripts/convert_zero123_to_diffusers.py:519-621 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:645-747 \u2014 These 11 members are variants of one another: a block of 63 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"1006d170b550ac284aaded749d51f6316346f0305b3ec71f7fb3ed4315dad379"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 62 shared lines): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:400-702 | scripts/convert_gligen_to_diffusers.py:201-368 | scripts/convert_i2vgen_to_diffusers.py:136-445 | scripts/convert_if.py:299-536 | scripts/convert_ms_text_to_video_to_diffusers.py:141-401 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 | scripts/convert_svd_to_diffusers.py:250-541 | scripts/convert_versatile_diffusion_to_diffusers.py:370-571 | scripts/convert_zero123_to_diffusers.py:254-490 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:398-640 \u2014 These 11 members are variants of one another: a block of 62 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"90579e77ab3bfb39b45ea065b92e39ad17a7b5ae3f39dcad4c4a952057bbdf07"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 60 shared lines): examples/community/pipeline_controlnet_xl_kolors.py:493-629 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:538-611 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:672-847 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:661-810 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These 11 members are variants of one another: a block of 60 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c17164ec460173f6488d4f4e7ac03f1aacff37490221c3e27384243848a83ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 29 shared lines): examples/community/pipeline_stg_ltx.py:323-390 | examples/community/pipeline_stg_ltx_image2video.py:346-413 | examples/community/pipeline_stg_mochi.py:330-397 | src/diffusers/pipelines/chroma/pipeline_chroma.py:278-366 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:305-393 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:307-395 | src/diffusers/pipelines/ltx/pipeline_ltx.py:297-364 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:383-450 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:566-633 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:320-387 | src/diffusers/pipelines/mochi/pipeline_mochi.py:268-335 \u2014 These 11 members are variants of one another: a block of 29 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"005efb195f24fb98caf0c9b8123837b2493397be2a9fffea5f7a02f7381b7eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 16 shared lines): examples/community/mixture_tiling_sdxl.py:354-380 | examples/community/pipeline_demofusion_sdxl.py:157-182 | examples/community/pipeline_stable_diffusion_xl_ipex.py:240-266 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:407-434 | src/diffusers/pipelines/kolors/pipeline_kolors.py:178-197 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:197-216 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:192-213 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:260-290 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:253-281 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:185-211 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:287-308 \u2014 These 11 members are variants of one another: a block of 16 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f61e036922908b8e58d59c7f38b8ac0740379c5a8b25da43fc3675c3eba2064"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 13 shared lines): examples/community/mod_controlnet_tile_sr_sdxl.py:873-954 | examples/community/pipeline_kolors_differential_img2img.py:609-690 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:689-720 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:628-659 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:751-782 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:906-987 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:897-978 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:606-687 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:912-993 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:704-785 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:691-772 \u2014 These 11 members are variants of one another: a block of 13 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0f905eda40857d8bf6017739d676e1224e02b62d6ec1aa3ce124b1ac7574a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 58 shared lines): examples/community/pipeline_kolors_inpainting.py:702-772 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:966-1048 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:672-847 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:680-762 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:683-765 \u2014 These 10 members are variants of one another: a block of 58 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45c911a3d1fa11e6e378a6a0a8f88ac4a150502cf7e0fe8bdb8396406ac51ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 54 shared lines): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:516-587 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:585-662 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:575-646 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:641-788 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:537-626 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:546-623 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:563-643 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-631 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:581-661 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:588-668 \u2014 These 10 members are variants of one another: a block of 54 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf16f50ec923024cfdffa4e89ed3feb1dcd01e8fe4db74d08db23c66e194b93e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 32 shared lines): examples/community/pipeline_flux_differential_img2img.py:451-502 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:481-534 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:491-554 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:471-524 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \u2014 These 10 members are variants of one another: a block of 32 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc9a295151a7166e67177e90872a57b97aa41e30dfab754f066b735fc21b877"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 31 shared lines): examples/community/fresco_v2v.py:1017-1191 | examples/community/pipeline_sdxl_style_aligned.py:219-282 | src/diffusers/models/attention_processor.py:2014-2084 | src/diffusers/models/attention_processor.py:2592-2681 | src/diffusers/models/attention_processor.py:2703-2775 | src/diffusers/models/attention_processor.py:2804-2891 | src/diffusers/models/attention_processor.py:3014-3109 | src/diffusers/models/attention_processor.py:3131-3207 | src/diffusers/models/attention_processor.py:3232-3310 | src/diffusers/models/attention_processor.py:3681-3755 \u2014 These 10 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"b229383948ebb1efe25ab37fc4ed4019d672731c4ffd6b1bc9f9096924a6b98c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 26 shared lines): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:130-202 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:151-234 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:142-234 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:175-267 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:306-398 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:315-402 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:273-360 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:308-395 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:149-241 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:168-260 \u2014 These 10 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39444bfacb00b9899aec824fe09c61bd46d96322d147ffd1f78384f9c17ef87"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 20 shared lines): src/diffusers/models/attention_processor.py:2014-2084 | src/diffusers/models/attention_processor.py:2703-2775 | src/diffusers/models/attention_processor.py:2804-2891 | src/diffusers/models/attention_processor.py:3014-3109 | src/diffusers/models/attention_processor.py:3131-3207 | src/diffusers/models/attention_processor.py:3232-3310 | src/diffusers/models/attention_processor.py:3335-3433 | src/diffusers/models/attention_processor.py:3458-3557 | src/diffusers/models/attention_processor.py:3681-3755 | src/diffusers/models/transformers/sana_transformer.py:140-187 \u2014 These 10 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2fe6839b218ece4a08173441636266fff4e9ec68016524fc3e96c7ddc83695"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 18 shared lines): examples/community/fresco_v2v.py:1962-2022 | examples/community/rerender_a_video.py:539-593 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:814-876 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:663-718 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:511-573 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:659-706 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:660-722 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:496-558 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:736-798 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:675-722 \u2014 These 10 members are variants of one another: a block of 18 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5d473e69498f5c4ae830df7c3820cb81cf382ded59f964def941b0dd6dbb31"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 16 shared lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:99-118 | src/diffusers/pipelines/deprecated/repaint/pipeline_repaint.py:32-51 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:169-188 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:42-61 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:181-200 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:70-89 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:100-119 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:47-66 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:59-81 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:53-75 \u2014 These 10 members are variants of one another: a block of 16 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6960baa1b8cd2026a8e504fd6afba671420c932ef1fbee48dd64dfdf63213cff"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 15 shared lines): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:283-328 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:328-373 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:128-165 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:317-362 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:339-384 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:287-332 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:303-348 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:297-342 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:322-367 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:328-373 \u2014 These 10 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d41267dc6ab4cfe9d16d57e2c0cb02f5ceaceb0146cbdcc6be84bdf70386a9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 109 shared lines): examples/community/ip_adapter_face_id.py:867-1129 | examples/community/latent_consistency_interpolate.py:683-999 | examples/community/pipeline_stable_diffusion_pag.py:1126-1502 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1660-2297 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:599-873 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:731-994 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:781-1049 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:831-1201 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:665-925 \u2014 These 9 members are variants of one another: a block of 109 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9fd256e81b0b1f2be5786604486035cbaf3ce8f42812f04a5cf19651ac1bf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 101 shared lines): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:349-498 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:394-566 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:384-556 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:406-578 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:354-526 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:370-542 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:363-535 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:389-561 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:395-567 \u2014 These 9 members are variants of one another: a block of 101 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eff36f20bb1529920250351b2093a40f19063f4d59848df899b7e3b2e573962"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 64 shared lines): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:400-702 | scripts/convert_gligen_to_diffusers.py:201-368 | scripts/convert_i2vgen_to_diffusers.py:136-445 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:131-317 | scripts/convert_ms_text_to_video_to_diffusers.py:141-401 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 | scripts/convert_zero123_to_diffusers.py:254-490 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:398-640 \u2014 These 9 members are variants of one another: a block of 64 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6eebc5142a5bdb12b9eade190071b699c2c1555610b8c3c9739179c3c6d7102"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 34 shared lines): examples/community/gluegen.py:262-431 | examples/community/pipeline_zero1to3.py:202-328 | examples/community/stable_diffusion_controlnet_img2img.py:195-320 | examples/community/stable_diffusion_controlnet_inpaint.py:294-419 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:279-404 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:118-245 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:172-329 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:139-260 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:151-234 \u2014 These 9 members are variants of one another: a block of 34 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"4686b0818abe528e3ba967a0efa75c334fb038f999df6c17d028649ce39b3037"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 32 shared lines): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:368-403 \u2014 These 9 members are variants of one another: a block of 32 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbcb7eeac175fb3ff5a8b651d43eae1e99245d09c738bc5987961d6a6abe2dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 30 shared lines): examples/community/pipeline_flux_differential_img2img.py:607-662 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:645-699 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:667-723 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:674-735 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:634-688 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:703-759 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:806-862 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:557-615 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:512-570 \u2014 These 9 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e9b1fd1ded464b0a3b27a2c894cf961dbe381b9aad977ae5580b8fe9fdc0b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 30 shared lines): examples/community/pipeline_kolors_inpainting.py:702-772 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:491-554 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 \u2014 These 9 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c38fbf8c168f0d7b472e610038402070e795786696cd7913d73aa122a193274"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 28 shared lines): examples/community/stable_diffusion_controlnet_img2img.py:151-183 | examples/community/stable_diffusion_controlnet_inpaint.py:249-282 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:204-241 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:225-262 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:203-240 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:206-246 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:233-272 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:207-248 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:242-275 \u2014 These 9 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4430dae28a84cca1930ec74227539cedf1db6b6e63a52e29515a510d2c46caab"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 24 shared lines): examples/community/pipeline_z_image_differential_img2img.py:387-427 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:645-699 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:667-723 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:674-735 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:634-688 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:703-759 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:806-862 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:557-615 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:512-570 \u2014 These 9 members are variants of one another: a block of 24 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f342d1f1b10a61c961b4ad2023dd547b96b98b3fd7e6e39e00d20480af05e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 17 shared lines): examples/community/latent_consistency_img2img.py:557-588 | examples/community/latent_consistency_txt2img.py:469-500 | examples/community/matryoshka.py:386-423 | src/diffusers/schedulers/scheduling_ddim.py:212-243 | src/diffusers/schedulers/scheduling_ddim_parallel.py:218-249 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:190-226 | src/diffusers/schedulers/scheduling_euler_discrete.py:223-275 | src/diffusers/schedulers/scheduling_lcm.py:224-259 | src/diffusers/schedulers/scheduling_tcd.py:225-260 \u2014 These 9 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89dc97d80867255e3d0da2ee77f4d26b95b35ffdf757ca3f9b1413ec4de344c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 12 shared lines): examples/community/pipeline_stg_cogvideox.py:594-876 | src/diffusers/pipelines/allegro/pipeline_allegro.py:692-936 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:531-798 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:578-851 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:625-908 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:602-877 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:432-685 | src/diffusers/pipelines/consisid/pipeline_consisid.py:690-975 | src/diffusers/pipelines/latte/pipeline_latte.py:640-884 \u2014 These 9 members are variants of one another: a block of 12 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc722617007de5ffdab81b9a146e43aed3768abdf61d5bce99bdd12a955208c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 85 shared lines): examples/community/pipeline_controlnet_xl_kolors.py:245-398 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:266-427 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:318-477 | examples/community/pipeline_kolors_differential_img2img.py:238-387 | examples/community/pipeline_kolors_inpainting.py:505-664 | src/diffusers/pipelines/kolors/pipeline_kolors.py:212-361 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:232-381 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:229-378 \u2014 These 8 members are variants of one another: a block of 85 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"56022f8988886155c8c011ba795bb4ecc87d662dc7adca43d586fba5ff57eeb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 63 shared lines): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:400-702 | scripts/convert_gligen_to_diffusers.py:201-368 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:131-317 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 | scripts/convert_versatile_diffusion_to_diffusers.py:370-571 | scripts/convert_zero123_to_diffusers.py:254-490 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:398-640 \u2014 These 8 members are variants of one another: a block of 63 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2afbe0f1017eef102c04f93d527fa433423513c0fab990487ab03a48a537fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 62 shared lines): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:400-702 | scripts/convert_gligen_to_diffusers.py:201-368 | scripts/convert_i2vgen_to_diffusers.py:136-445 | scripts/convert_ms_text_to_video_to_diffusers.py:141-401 | scripts/convert_original_audioldm2_to_diffusers.py:298-497 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:398-640 \u2014 These 8 members are variants of one another: a block of 62 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a7fa6ad8568fc0bd66bb626a51f89a4a0923f01d0823a2879e916ffe067f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 61 shared lines): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:180-320 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:204-344 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:357-497 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:208-348 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:359-499 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:315-455 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:105-239 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:120-254 \u2014 These 8 members are variants of one another: a block of 61 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a51a248768a8ac94a5e31ea186576111cddfdcdf72f3ac5b565bca3ca0f2a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 58 shared lines): examples/community/matryoshka.py:2600-2662 | src/diffusers/models/controlnets/controlnet.py:538-600 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:470-532 | src/diffusers/models/controlnets/controlnet_union.py:477-539 | src/diffusers/models/unets/unet_2d_condition.py:726-788 | src/diffusers/models/unets/unet_3d_condition.py:291-353 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:430-492 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:902-964 \u2014 These 8 members are variants of one another: a block of 58 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2600}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0b03be4382650fc5268d010f7314ccb633883bf566ba1de44ce3f28fc52e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 36 shared lines): examples/community/lpw_stable_diffusion_xl.py:1099-1234 | examples/community/pipeline_kolors_inpainting.py:791-838 | examples/community/pipeline_sdxl_style_aligned.py:922-1057 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:918-965 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:925-973 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:902-950 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:782-829 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:784-831 \u2014 These 8 members are variants of one another: a block of 36 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29a834cd1e307e1e572569e3604b99bce493554e8e8e41146b843ef0aa57312"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 31 shared lines): examples/community/lpw_stable_diffusion_xl.py:1099-1234 | examples/community/pipeline_kolors_inpainting.py:791-838 | examples/community/pipeline_sdxl_style_aligned.py:922-1057 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:739-780 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:925-973 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:902-950 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:782-829 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:784-831 \u2014 These 8 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e20af928fce75c4277890e1f3561639118e2dca2b0b3b8ae8b6da9a236c3b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 31 shared lines): examples/community/pipeline_kolors_differential_img2img.py:495-566 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:569-624 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:605-754 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:467-516 | src/diffusers/pipelines/consisid/pipeline_consisid.py:569-618 | src/diffusers/pipelines/kolors/pipeline_kolors.py:468-536 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:489-560 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:486-554 \u2014 These 8 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"50496cb1bba17685cde9b7166b9e5c0194b1be8532b859328ef92bb623bc3e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 28 shared lines): examples/community/lpw_stable_diffusion_xl.py:1099-1234 | examples/community/pipeline_kolors_inpainting.py:791-838 | examples/community/pipeline_sdxl_style_aligned.py:922-1057 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1067-1109 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:918-965 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:739-780 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:782-829 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:784-831 \u2014 These 8 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bea9ffef490d5664a42c86bdf2667f614fc0e6478bfbc7990b1767f95ab7dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 27 shared lines): examples/community/pipeline_flux_differential_img2img.py:607-662 | examples/community/pipeline_z_image_differential_img2img.py:387-427 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:645-699 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:667-723 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:674-735 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:634-688 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:703-759 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:806-862 \u2014 These 8 members are variants of one another: a block of 27 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"1055605448480ac52da8dead789dad017839ff80e1a6732e8422efe76e5156e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 27 shared lines): examples/community/unclip_text_interpolation.py:132-212 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:136-216 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:142-234 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:175-267 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:306-398 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:315-402 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:273-360 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:308-395 \u2014 These 8 members are variants of one another: a block of 27 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_text_interpolation.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0d9c340a981296b77744ef4e14b11062a955a79255a8e2609b6dc6b58ca542"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 25 shared lines): examples/community/latent_consistency_img2img.py:557-588 | examples/community/latent_consistency_txt2img.py:469-500 | examples/community/matryoshka.py:386-423 | examples/community/scheduling_ufogen.py:206-241 | src/diffusers/schedulers/scheduling_ddim.py:212-243 | src/diffusers/schedulers/scheduling_ddim_parallel.py:218-249 | src/diffusers/schedulers/scheduling_lcm.py:224-259 | src/diffusers/schedulers/scheduling_tcd.py:225-260 \u2014 These 8 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4df615b7ff8785ce5d7385f5b7ebb78ebc8b99040e5a5245cae84c34b74032"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 20 shared lines): src/diffusers/models/transformers/transformer_bria.py:137-185 | src/diffusers/models/transformers/transformer_bria_fibo.py:83-131 | src/diffusers/models/transformers/transformer_flux.py:92-142 | src/diffusers/models/transformers/transformer_flux.py:196-275 | src/diffusers/models/transformers/transformer_flux2.py:343-395 | src/diffusers/models/transformers/transformer_flux2.py:425-494 | src/diffusers/models/transformers/transformer_longcat_image.py:84-132 | src/diffusers/models/transformers/transformer_ovis_image.py:84-132 \u2014 These 8 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"194d357588fc2d63daa9bf4ad94b80895849109a1feb287580cf6faac3f56df6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 18 shared lines): examples/community/pipeline_flux_rf_inversion.py:611-631 | examples/community/pipeline_flux_semantic_guidance.py:742-762 | src/diffusers/pipelines/bria/pipeline_bria.py:389-409 | src/diffusers/pipelines/chroma/pipeline_chroma.py:523-543 | src/diffusers/pipelines/flux/pipeline_flux.py:558-578 | src/diffusers/pipelines/flux/pipeline_flux_control.py:510-530 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:604-624 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:415-435 \u2014 These 8 members are variants of one another: a block of 18 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39e26eaa942fabb75ea5996ffaf020b760cfc2a3fc32694a0c2ad45adc23ece"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 15 shared lines): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:239-344 | scripts/convert_gligen_to_diffusers.py:394-435 | scripts/convert_original_audioldm2_to_diffusers.py:213-254 | scripts/convert_original_audioldm_to_diffusers.py:214-262 | scripts/convert_original_musicldm_to_diffusers.py:211-259 | scripts/convert_zero123_to_diffusers.py:39-140 | src/diffusers/loaders/single_file_utils.py:896-1021 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:237-342 \u2014 These 8 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebaf4b5ca0624d0ac5dece427d62755dfb28a217eb5f8b586f86687240d6966"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 140 shared lines): examples/community/pipeline_controlnet_xl_kolors.py:821-1338 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:995-1540 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1163-1854 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:590-1077 | examples/community/pipeline_stable_diffusion_xl_instantid.py:586-1066 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1043-1602 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1122-1666 \u2014 These 7 members are variants of one another: a block of 140 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c8066863811c0160c9f60666afad1e261c36a1bb558f50a448c4a5a389e203"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 116 shared lines): examples/community/pipeline_z_image_differential_img2img.py:477-844 | src/diffusers/pipelines/z_image/pipeline_z_image.py:322-604 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:414-741 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:423-768 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:396-716 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:564-939 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:387-750 \u2014 These 7 members are variants of one another: a block of 116 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"d262ad3219fce94761f291e9a92561cde2a67ed3b89774b7890f370e0d23c068"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 101 shared lines): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:434-723 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:541-966 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:531-852 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:668-1083 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:553-896 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:510-826 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:623-1012 \u2014 These 7 members are variants of one another: a block of 101 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ba6b11884ec43038e0f42a17e68b5b1a3c6093dd396adc04e6b263f361f0c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 91 shared lines): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:434-723 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:531-852 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:668-1083 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:553-896 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:510-826 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:623-1012 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:566-913 \u2014 These 7 members are variants of one another: a block of 91 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0058c2e9ee84b0eb880f6ff84b30a149c6c4f248b0e717393261fd07a12853"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 68 shared lines): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:180-320 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:204-344 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:357-497 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:208-348 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:359-499 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:315-455 | src/diffusers/pipelines/latte/pipeline_latte.py:219-353 \u2014 These 7 members are variants of one another: a block of 68 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c961b0f4e13c91fe92eaeca0984e78f416738aeb76b6bde4f09df498425ed8d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 58 shared lines): examples/community/pipeline_stg_wan.py:437-661 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:497-753 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:476-737 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:400-617 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:505-750 | src/diffusers/pipelines/wan/pipeline_wan.py:406-684 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:506-743 \u2014 These 7 members are variants of one another: a block of 58 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7d6d0f3465ca7b206686b458ed4b4a075fa221199fbd3a0579f6ca98139083"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 36 shared lines): examples/community/adaptive_mask_inpainting.py:206-319 | examples/community/pipeline_kolors_inpainting.py:123-237 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:326-433 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:175-283 | examples/community/stable_diffusion_repaint.py:43-139 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:127-241 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:125-239 \u2014 These 7 members are variants of one another: a block of 36 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bea85b28b5539809bf515424475de8dddb415ce5b7a0621728166dc9b227e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 34 shared lines): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:255-301 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:296-351 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:185-237 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:201-251 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:306-361 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:319-373 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:258-304 \u2014 These 7 members are variants of one another: a block of 34 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f8761619b2c2ba6f8031932b97a31dbcbad4710a82fc8d8a7135772f751c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 26 shared lines): examples/community/lpw_stable_diffusion_xl.py:661-691 | examples/community/pipeline_sdxl_style_aligned.py:475-506 | examples/community/pipeline_stable_diffusion_xl_ipex.py:240-266 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:407-434 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:359-397 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:260-290 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:253-281 \u2014 These 7 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4820a2844853997a2c233f7ca36215a49ca79b8432df44d9410b35480c66aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 26 shared lines): examples/community/pipeline_hunyuandit_differential_img2img.py:770-1144 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:666-1050 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:550-773 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:699-1009 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:819-1244 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:600-912 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:616-968 \u2014 These 7 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c7e54c02d61f846e4a9334825f691900e552470dc2e420c2c17500c6f5acf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 22 shared lines): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:235-262 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:232-271 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:190-219 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:206-235 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:204-231 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:224-254 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:223-260 \u2014 These 7 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c38694c52b10f7031f8cd956d473c7d475a9e7643882d85ecee15222dc6575"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 18 shared lines): examples/community/pipeline_flux_differential_img2img.py:556-592 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:590-628 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:610-650 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:580-617 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:646-686 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:489-539 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:445-495 \u2014 These 7 members are variants of one another: a block of 18 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee87fbdf609179ffa628120a1ad9280f691935f82614f41f3003b348ccddda0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 16 shared lines): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:333-458 | src/diffusers/pipelines/allegro/pipeline_allegro.py:230-348 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:246-373 | src/diffusers/pipelines/latte/pipeline_latte.py:219-353 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:205-323 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:318-436 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:262-380 \u2014 These 7 members are variants of one another: a block of 16 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"85903cb6297d62cd8cb6f03a9977cfc2a4499ea83a85004caa525fcbeaef2e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 8 shared lines): src/diffusers/pipelines/pag/pipeline_pag_sana.py:634-918 | src/diffusers/pipelines/sana/pipeline_sana.py:712-980 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:763-1075 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:598-862 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:668-952 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:752-1029 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:780-1082 \u2014 These 7 members are variants of one another: a block of 8 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd36849fc5449216de8994c5b39f10ed0f310892995f2d1cb07eed425e2d7f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 7 shared lines): examples/community/pipline_flux_fill_controlnet_Inpaint.py:752-814 | examples/community/stable_diffusion_controlnet_reference.py:69-96 | examples/community/stable_diffusion_reference.py:751-790 | examples/community/stable_diffusion_repaint.py:564-607 | examples/community/stable_diffusion_xl_controlnet_reference.py:195-232 | examples/community/stable_diffusion_xl_reference.py:141-178 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:356-418 \u2014 These 7 members are variants of one another: a block of 7 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7ae6f69ed04125fac7b13a1e080e2a88ab853fbc38cef844f0687a4fa9be20"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 114 shared lines): examples/community/pipeline_controlnet_xl_kolors.py:821-1338 | examples/community/pipeline_stable_diffusion_xl_instantid.py:586-1066 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:938-1339 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:940-1361 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1043-1602 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:897-1343 \u2014 These 6 members are variants of one another: a block of 114 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca3ac22738cb9053f9fb7f92c1c725add8fe87d31046f52d6468d53c6cbe8f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 99 shared lines): examples/community/fresco_v2v.py:2082-2512 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:938-1339 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:940-1361 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:938-1336 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1029-1525 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:897-1343 \u2014 These 6 members are variants of one another: a block of 99 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89540f66ad3341a14ca6547899d62e7095382283ea7bdf39f356ba023c6ec4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 92 shared lines): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:434-723 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:541-966 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:607-937 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:531-852 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:668-1083 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:553-896 \u2014 These 6 members are variants of one another: a block of 92 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae0e4ec33adc20bc5cc93ae45ba39fbf18ffe3b5e47987a73b0d852ee6a1102"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 91 shared lines): examples/community/fresco_v2v.py:2082-2512 | examples/research_projects/anytext/anytext.py:1970-2360 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:938-1339 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:940-1361 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:938-1336 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:897-1343 \u2014 These 6 members are variants of one another: a block of 91 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9d56b93abc286249420334aa473182903be358064554ea31d187ff45fa14b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 82 shared lines): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:235-449 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:311-528 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:149-331 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:201-381 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:357-581 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:422-634 \u2014 These 6 members are variants of one another: a block of 82 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c373b4bc6bacdfdfc43ed35d03e0abd322ecc7f9c182999f835b360e2628bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 75 shared lines): examples/community/ip_adapter_face_id.py:867-1129 | examples/community/regional_prompting_stable_diffusion.py:814-1112 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:731-994 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:797-1049 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:807-1107 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:885-1163 \u2014 These 6 members are variants of one another: a block of 75 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fcf3db747134bb8514a22b895d6fc498994ae73a46230414da678fe7a6ec4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 67 shared lines): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:400-702 | scripts/convert_original_audioldm2_to_diffusers.py:298-497 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 | scripts/convert_versatile_diffusion_to_diffusers.py:370-571 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:398-640 \u2014 These 6 members are variants of one another: a block of 67 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f44be6c07fb29b3def019d07906607d8829b9ab155894091b082e7d91101fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 64 shared lines): src/diffusers/pipelines/sana/pipeline_sana.py:296-408 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:311-423 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:244-315 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:252-323 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:319-431 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:317-429 \u2014 These 6 members are variants of one another: a block of 64 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ccadfe21afc6a8f90b033a3c4e500354f85c88978c429958f5671945ced0f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 60 shared lines): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:400-702 | scripts/convert_if.py:861-1116 | scripts/convert_ms_text_to_video_to_diffusers.py:141-401 | scripts/convert_svd_to_diffusers.py:250-541 | scripts/convert_zero123_to_diffusers.py:254-490 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:398-640 \u2014 These 6 members are variants of one another: a block of 60 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cdd8a39317eb20aef58a8b7166223d07abf344edf642d0b8f97893eed582b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 36 shared lines): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:333-458 | src/diffusers/pipelines/allegro/pipeline_allegro.py:230-348 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:205-323 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:203-331 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:318-436 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:262-380 \u2014 These 6 members are variants of one another: a block of 36 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"9973decd6e07cf0e41681b62460afda3efb3f2893aa25fb7916cca29b331e9ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 33 shared lines): examples/community/adaptive_mask_inpainting.py:754-789 | examples/community/stable_diffusion_tensorrt_inpaint.py:871-916 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:859-904 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:810-855 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:728-773 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:704-749 \u2014 These 6 members are variants of one another: a block of 33 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"f521755445305584d96c283b151595500655bcd8c0ef1e7311773f5eeae7f984"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 31 shared lines): src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:118-245 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:139-260 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:130-202 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:151-234 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:149-241 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:168-260 \u2014 These 6 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5102e00d4df16c721184a7020fd6cfbd7b6b6e8c59e2b0655ca47669ad66324"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 27 shared lines): examples/community/fresco_v2v.py:1627-1673 | examples/community/pipeline_animatediff_ipex.py:380-426 | examples/community/pipeline_kolors_inpainting.py:444-490 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:645-691 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:746-792 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:673-727 \u2014 These 6 members are variants of one another: a block of 27 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd25fe27b3b2a6717eb6080fa62319727eb73706abbd49adfccd26855fc396f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 22 shared lines): src/diffusers/schedulers/scheduling_ddim_cogvideox.py:206-248 | src/diffusers/schedulers/scheduling_deis_multistep.py:177-245 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:208-250 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:191-274 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:255-301 | src/diffusers/schedulers/scheduling_sasolver.py:189-246 \u2014 These 6 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim_cogvideox.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69d7e6dd8a10cbc6b626b102b8d20a86b1522dd3e9adbd62c720080c2296f32"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 20 shared lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:336-405 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:308-377 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:266-335 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:285-354 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:251-320 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:295-364 \u2014 These 6 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"61345a2072eb852efa56a87599498495971a5ac07d068ab979f4e017ea2938aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 10 shared lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1751-1799 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:705-743 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:579-631 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:618-662 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:865-901 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:513-565 \u2014 These 6 members are variants of one another: a block of 10 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1751}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e95ec3f14ec78c837672176ecfaa932d3ec7c765d0d3700c0fdce1d655a623"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 179 shared lines): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:978-1672 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1398-2126 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1084-1616 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1830-2559 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1034-1776 \u2014 These 5 members are variants of one another: a block of 179 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"078c09ddd1c17f04dae8aeaafe8d3ac6384fd227a8dfd155b74a6727ef02ddf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 142 shared lines): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:689-910 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:774-1027 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:787-1032 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:868-1140 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:639-883 \u2014 These 5 members are variants of one another: a block of 142 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d042066dc86baf6072bc935af9a18d1690564a9570935bc2f4804d65ddb0c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 140 shared lines): examples/community/masked_stable_diffusion_xl_img2img.py:90-521 | examples/community/pipeline_kolors_inpainting.py:1121-1707 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1660-2297 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1018-1494 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1128-1736 \u2014 These 5 members are variants of one another: a block of 140 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8007b44d9fecb633c58f3654b516d76bf8fbdb58e36f13cb9d2a98c14e50129"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 140 shared lines): examples/community/pipeline_kolors_inpainting.py:1121-1707 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1033-1541 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1129-1777 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1018-1494 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1128-1736 \u2014 These 5 members are variants of one another: a block of 140 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a731ff991b5d11fad6882fd32b0787bec6e0952d5463a2a54a8ddf1e91a67758"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 129 shared lines): examples/community/masked_stable_diffusion_xl_img2img.py:90-521 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1660-2297 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1129-1777 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1018-1494 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1128-1736 \u2014 These 5 members are variants of one another: a block of 129 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"318fb29807005de298d78d70143c1873033be75be2a5766bc4bf6b968b5ed538"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 129 shared lines): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:590-1077 | examples/community/pipeline_stable_diffusion_xl_instantid.py:586-1066 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:938-1339 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:940-1361 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:897-1343 \u2014 These 5 members are variants of one another: a block of 129 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0ad26042241957b07daaaf056b407c586f93bb48ff0c5bf57face1783df3ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 128 shared lines): examples/community/masked_stable_diffusion_xl_img2img.py:90-521 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1660-2297 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:978-1452 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1018-1494 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1128-1736 \u2014 These 5 members are variants of one another: a block of 128 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"935fc92a9edbb1de3d959ac7278abbb8afb6370a6c9cb34277fc751ce08409e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 128 shared lines): examples/community/masked_stable_diffusion_xl_img2img.py:90-521 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1033-1541 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1129-1777 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1018-1494 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1128-1736 \u2014 These 5 members are variants of one another: a block of 128 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"86131b972cb8a3c14746bb9fbb788f97737145f5626b5d79958e7a0abf5c39c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 108 shared lines): examples/community/masked_stable_diffusion_xl_img2img.py:90-521 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:978-1452 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:797-1049 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:734-996 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:657-897 \u2014 These 5 members are variants of one another: a block of 108 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d35e0aebfe641cb1106ddabb0c4731e15068d14bffa9f4e56fa9bc1245d0dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 107 shared lines): examples/community/fresco_v2v.py:2082-2512 | examples/research_projects/anytext/anytext.py:1970-2360 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:940-1361 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:938-1336 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1029-1525 \u2014 These 5 members are variants of one another: a block of 107 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cf146303ede2318cb56c3491647e22a22a45c238e5af897ed4a84fab205cda"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 107 shared lines): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1024-1414 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:714-1203 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:667-1015 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:541-966 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:607-937 \u2014 These 5 members are variants of one another: a block of 107 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfd3e28e0c050c0e86873818ef4458b757011b93cb46586b72809eb705c812c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 106 shared lines): examples/community/pipeline_flux_with_cfg.py:632-874 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:699-977 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:677-1008 | src/diffusers/pipelines/flux/pipeline_flux.py:632-973 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:510-826 \u2014 These 5 members are variants of one another: a block of 106 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"273028a29a9e13cdefd1dc38ed0f2359a301645028c4788e7ecbbf8acf80a8f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 104 shared lines): examples/research_projects/anytext/anytext.py:1970-2360 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:938-1339 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:940-1361 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:938-1336 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1029-1525 \u2014 These 5 members are variants of one another: a block of 104 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext.py"},"region":{"startLine":1970}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4e91f1033abd0b0ec6f3c02cf63e4b79d1a56355efeff80b403f0eb6ea04d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 102 shared lines): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:434-723 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:541-966 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:607-937 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:510-826 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:623-1012 \u2014 These 5 members are variants of one another: a block of 102 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"7730968d266a51cfbb8b10f82bea2a53f87b0d828a8fd84243a1815e3cb1760f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 85 shared lines): examples/community/ip_adapter_face_id.py:867-1129 | examples/community/pipeline_stable_diffusion_boxdiff.py:1353-1727 | examples/community/regional_prompting_stable_diffusion.py:814-1112 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:731-994 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:807-1107 \u2014 These 5 members are variants of one another: a block of 85 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c49cb95811f800c99961669676b4d4456bce9af96e7ad12009ff1528c55348d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 85 shared lines): examples/community/pipeline_flux_differential_img2img.py:708-1023 | src/diffusers/pipelines/flux/pipeline_flux_control.py:607-863 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:662-947 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:781-1116 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:727-1014 \u2014 These 5 members are variants of one another: a block of 85 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"95356d7b96d00c784a1b38157a6a4545c1ac8b204a40a4bf4e9e35e515aa5230"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 81 shared lines): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:896-1266 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:856-1254 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1024-1414 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:809-1152 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:864-1173 \u2014 These 5 members are variants of one another: a block of 81 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa2efe124ee093c16b0ea441b4a73d5eb72e083fd9c147fa5f515817f3a4f5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 80 shared lines): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:706-975 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:775-1052 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:559-816 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:885-1294 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1084-1616 \u2014 These 5 members are variants of one another: a block of 80 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0fdf458c503d414b339e2d028d6d057249438ffa0627fcf69fe5604f43b77b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 74 shared lines): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:476-737 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:505-750 | src/diffusers/pipelines/wan/pipeline_wan.py:406-684 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:537-844 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:718-1047 \u2014 These 5 members are variants of one another: a block of 74 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"8671a679f82831f1f575333907c57724056a26b1afa5a56cc831f46d711f7956"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 73 shared lines): examples/community/pipeline_flux_differential_img2img.py:708-1023 | examples/community/pipeline_flux_rf_inversion.py:695-954 | src/diffusers/pipelines/flux/pipeline_flux_control.py:607-863 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:662-947 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:781-1116 \u2014 These 5 members are variants of one another: a block of 73 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31000148a52039ab353fce785228526cd5a829b4cac27d0abd601a55fbb6618"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 70 shared lines): examples/community/pipeline_flux_rf_inversion.py:695-954 | src/diffusers/pipelines/flux/pipeline_flux_control.py:607-863 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:662-947 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:781-1116 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:727-1014 \u2014 These 5 members are variants of one another: a block of 70 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4f951a0a7a2f2bafe90debdf5f07fe7e985f19be2d3d61b9b7a387d3d79d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 68 shared lines): examples/community/pipeline_flux_differential_img2img.py:708-1023 | examples/community/pipeline_flux_rf_inversion.py:695-954 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:662-947 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:781-1116 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:727-1014 \u2014 These 5 members are variants of one another: a block of 68 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac3b5d7a72ddcfc8f0edaf99113ca538a552c9ea66d7e0b56762c05a4598aff"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 66 shared lines): examples/community/ip_adapter_face_id.py:867-1129 | examples/community/regional_prompting_stable_diffusion.py:814-1112 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:731-994 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:775-1082 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:807-1107 \u2014 These 5 members are variants of one another: a block of 66 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ff209eeb9dcd632649619017a6456b5ea2912586f7c0e746657acd521f6243"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 65 shared lines): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:400-702 | scripts/convert_if.py:299-536 | scripts/convert_if.py:861-1116 | scripts/convert_zero123_to_diffusers.py:254-490 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:398-640 \u2014 These 5 members are variants of one another: a block of 65 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e60ff82d0286ffc7528a345bb8830d2675724898e40caeba8c13ba18096bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 46 shared lines): examples/community/pipeline_animatediff_img2video.py:766-984 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:585-789 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:636-832 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:471-657 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:536-716 \u2014 These 5 members are variants of one another: a block of 46 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"874315ba1e832bb3dc2dd23efc35abd09d46188db0676cede48275fb8e29b53b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 42 shared lines): src/diffusers/modular_pipelines/ltx2/encoders.py:1011-1116 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:854-962 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:715-823 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:656-764 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:877-985 \u2014 These 5 members are variants of one another: a block of 42 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7394243550fc10d3c6ca315d223edff8144e6f4820ea82137e796cc83dfcd10"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 41 shared lines): src/diffusers/loaders/lora_pipeline.py:2742-2791 | src/diffusers/loaders/lora_pipeline.py:3721-3771 | src/diffusers/loaders/lora_pipeline.py:5603-5650 | src/diffusers/loaders/lora_pipeline.py:6370-6423 | src/diffusers/loaders/lora_pipeline.py:6566-6623 \u2014 These 5 members are variants of one another: a block of 41 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":2742}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a46130d007ad9d1a342930ce9fd4fef42ecab794f52c52200e0f8655f63e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 40 shared lines): src/diffusers/pipelines/allegro/pipeline_allegro.py:230-348 | src/diffusers/pipelines/latte/pipeline_latte.py:219-353 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:205-323 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:318-436 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:262-380 \u2014 These 5 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fa4c64a4c79f5b5a0961dbf3a7d4fbe0a34bcf875e9b6be096d96fecbc965d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 39 shared lines): examples/community/matryoshka.py:1131-1186 | src/diffusers/models/unets/unet_2d_blocks.py:2416-2471 | src/diffusers/models/unets/unet_dreamlite.py:1039-1080 | src/diffusers/models/unets/unet_dreamlite.py:1199-1240 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1951-2006 \u2014 These 5 members are variants of one another: a block of 39 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cb3ad61179ad86fe7ca3e117305951507a34d57b0209f02f152526c1921898"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 39 shared lines): scripts/convert_flux_to_diffusers.py:74-272 | scripts/convert_hunyuan_image_to_diffusers.py:160-499 | scripts/convert_ovis_image_to_diffusers.py:63-240 | src/diffusers/loaders/single_file_utils.py:2295-2488 | src/diffusers/loaders/single_file_utils.py:3571-3736 \u2014 These 5 members are variants of one another: a block of 39 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_flux_to_diffusers.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d349dcb240fe4f08c8a75ed38fa7ee5720842d816803e3e7158114de9717aa15"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 38 shared lines): src/diffusers/pipelines/pag/pipeline_pag_sana.py:203-331 | src/diffusers/pipelines/sana/pipeline_sana.py:296-408 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:311-423 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:319-431 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:317-429 \u2014 These 5 members are variants of one another: a block of 38 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"55811b2bdb8c7e29826da3c9bdcdb80a532f6654c7f9e5df570bec429c8cc208"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 37 shared lines): examples/community/pipeline_hunyuandit_differential_img2img.py:564-621 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:491-549 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:537-626 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 \u2014 These 5 members are variants of one another: a block of 37 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"b867d5a72314524c102c2b5965415df0790c76f01a322e135ed76ee2f5a9a5a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 32 shared lines): examples/community/unclip_image_interpolation.py:130-190 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:130-190 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:315-402 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:273-360 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:308-395 \u2014 These 5 members are variants of one another: a block of 32 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e35720a7b9b70e0c2dfb4a5521a5fac62691345e2d8efe9b30d4880dd177dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 31 shared lines): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:130-202 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:151-234 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:138-245 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:149-241 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:168-260 \u2014 These 5 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3af2b70b02c9451a6b58f96238168e4cd2fb3c3ecab8c75d378245cfc0a87b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 31 shared lines): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:149-331 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:201-381 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:321-566 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:357-581 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:422-634 \u2014 These 5 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8340bf5992f5a15b1a7ad010b12b4fff17ef7b1dd19186ccd5a662af73a5b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 30 shared lines): examples/community/pipeline_stable_diffusion_pag.py:72-164 | examples/community/pipeline_stable_diffusion_pag.py:186-276 | src/diffusers/models/attention_processor.py:4449-4625 | src/diffusers/models/attention_processor.py:5051-5127 | src/diffusers/models/attention_processor.py:5150-5230 \u2014 These 5 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdaa9f99a1f1654077d86871e0d4fa7fd9b995fb1767c0a546a8cf9c0ecec228"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 30 shared lines): src/diffusers/models/attention_processor.py:1118-1172 | src/diffusers/models/attention_processor.py:2501-2567 | src/diffusers/models/attention_processor.py:2592-2681 | src/diffusers/models/attention_processor.py:2703-2775 | src/diffusers/models/attention_processor.py:3681-3755 \u2014 These 5 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbf79f647a89676147fe5c4ef2f4bc8d644ec1ee86b38e3c3ecc85647225f1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 28 shared lines): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:929-1045 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:782-898 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:837-941 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:951-1066 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:551-616 \u2014 These 5 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c0d3a2f288ed943d5150455f8bc9942a49476e428b3a0b61558c056556dd2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 27 shared lines): examples/community/matryoshka.py:1070-1118 | src/diffusers/models/unets/unet_2d_blocks.py:2340-2403 | src/diffusers/models/unets/unet_3d_blocks.py:1339-1380 | src/diffusers/models/unets/unet_dreamlite.py:958-1026 | src/diffusers/models/unets/unet_dreamlite.py:1116-1186 \u2014 These 5 members are variants of one another: a block of 27 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e6115017b9c7e3ac0a29c017cbf3eafd9acb5a9652a976564d9c1e37c46596"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 26 shared lines): examples/community/pipeline_stg_hunyuan_video.py:112-142 | src/diffusers/models/transformers/transformer_hunyuan_video.py:633-663 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:477-507 | src/diffusers/models/transformers/transformer_hunyuanimage.py:584-614 | src/diffusers/models/transformers/transformer_motif_video.py:685-727 \u2014 These 5 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f6523325b618301e55e0ab59c252c121430677a8b6e7af5e5b9aa296351edc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 25 shared lines): src/diffusers/models/transformers/transformer_chronoedit.py:196-227 | src/diffusers/models/transformers/transformer_helios.py:177-219 | src/diffusers/models/transformers/transformer_skyreels_v2.py:196-224 | src/diffusers/models/transformers/transformer_wan.py:191-222 | src/diffusers/models/transformers/transformer_wan_animate.py:665-696 \u2014 These 5 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c1ed7d9ef7af8ac33e6cba43976cbf54399a7bb597d7fe98112c8870fa79ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 25 shared lines): src/diffusers/models/transformers/transformer_ltx.py:65-106 | src/diffusers/models/transformers/transformer_ltx2.py:164-222 | src/diffusers/models/transformers/transformer_ltx2.py:244-315 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:148-206 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:229-300 \u2014 These 5 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f2be91e98e42331461e892d20a42c1492585a82ec94a7f63d1438c564c1db2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 22 shared lines): examples/community/adaptive_mask_inpainting.py:206-319 | examples/community/stable_diffusion_repaint.py:43-139 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:59-155 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:127-241 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:125-239 \u2014 These 5 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"7810c3b93fb8bf4e529b8f3011ec30e6dc1ddd93e5bbb5e9ca676609e5cf8abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 20 shared lines): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:235-262 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:209-249 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:190-219 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:206-235 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:204-231 \u2014 These 5 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5a335bf1751e03990034d4fd3b84c341d0febc9e8191167ce2bb1c31564fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 20 shared lines): src/diffusers/models/transformers/transformer_chronoedit.py:89-165 | src/diffusers/models/transformers/transformer_skyreels_v2.py:92-167 | src/diffusers/models/transformers/transformer_wan.py:86-162 | src/diffusers/models/transformers/transformer_wan_animate.py:569-645 | src/diffusers/models/transformers/transformer_wan_animate_2.py:301-339 \u2014 These 5 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80b3d9151ce411f042600f822a177f94985d30ca1d2f3cd7e53a665a9597c75"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 18 shared lines): examples/community/pipeline_flux_kontext_multiple_images.py:733-793 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:625-673 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:423-476 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:443-482 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:459-504 \u2014 These 5 members are variants of one another: a block of 18 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcfe21ef1e714e8675afc9005f00e65aeb6d8532b8684c57f796395643af649"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 17 shared lines): examples/community/fresco_v2v.py:1962-2022 | examples/community/latent_consistency_img2img.py:180-241 | examples/community/rerender_a_video.py:539-593 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:663-718 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:471-512 \u2014 These 5 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"819687457a4704e78d35baf54ce88f84243099c77a7c2576fb9b4dab865891c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 16 shared lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1751-1799 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:705-743 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:123-195 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:865-901 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:513-565 \u2014 These 5 members are variants of one another: a block of 16 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1751}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d07364487bdee8c53d0df982d465121eb7d89dd5d9fadd7240e99a86189f1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 15 shared lines): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:392-444 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:672-717 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:387-461 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:390-453 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:410-484 \u2014 These 5 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb20fcc789cbc25117118c5abe606e5a6121b64fe62fb9bcbcf70fd987aacb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 15 shared lines): src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:191-251 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:161-187 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:160-187 | src/diffusers/schedulers/scheduling_lms_discrete.py:159-192 | src/diffusers/schedulers/scheduling_pndm.py:133-170 \u2014 These 5 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9a27d79e5ac4f663018f2ebeeb1e5fe3909cb4a86857a2a245d33a2c1ee691"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 305 shared lines): examples/community/pipeline_kolors_differential_img2img.py:819-1266 | src/diffusers/pipelines/kolors/pipeline_kolors.py:683-1063 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:818-1243 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:703-1129 \u2014 These 4 members are variants of one another: a block of 305 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"85142f1fbf1d8511ca2702a0b2b69cdeeec1dde075f0cd71139729ec9a1e2099"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 252 shared lines): examples/community/pipeline_hunyuandit_differential_img2img.py:770-1144 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:666-1050 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:600-912 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:616-968 \u2014 These 4 members are variants of one another: a block of 252 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54d556a1c2d0d82bffc5f3b469c542c99f3c6d62957901ddf1d947c25be3844"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 250 shared lines): examples/community/pipeline_kolors_inpainting.py:1121-1707 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1660-2297 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1129-1777 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1128-1736 \u2014 These 4 members are variants of one another: a block of 250 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb68cafee17e3d771a26074a98b84f0e6e7b7f66a6150e044ac39524d25c15eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 215 shared lines): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:897-1343 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1007-1552 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1047-1618 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1125-1686 \u2014 These 4 members are variants of one another: a block of 215 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"8506e7900051c5d91e3d5bd63767c99841350e59164c8ba845428916fbc2a139"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 167 shared lines): examples/community/pipline_flux_fill_controlnet_Inpaint.py:865-1319 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:714-1203 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:667-1015 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:774-1212 \u2014 These 4 members are variants of one another: a block of 167 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"4521c37701033e4203c5c2eb325c8aed57014ecfbf0ff08f1729ecd69bc5426d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 150 shared lines): src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1043-1602 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1122-1666 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1020-1612 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1114-1713 \u2014 These 4 members are variants of one another: a block of 150 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8978cdf039dbb7050b5dee27ea0d679a9405defd2597a805fc0aa6dd2fb3a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 147 shared lines): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:896-1266 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:727-1014 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:712-1061 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:716-1001 \u2014 These 4 members are variants of one another: a block of 147 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cda9992f4b02feb4158c1112d3d8583f8686a3e246b097303da621fd13ef977"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 143 shared lines): examples/community/pipeline_hunyuandit_differential_img2img.py:360-513 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:291-439 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:263-411 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:273-421 \u2014 These 4 members are variants of one another: a block of 143 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6cdda478dbddabee7e3b06b0175a02b2c3b67f5b8a7cc599a641a0a3f715133"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 139 shared lines): src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1043-1602 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1122-1666 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1047-1618 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1125-1686 \u2014 These 4 members are variants of one another: a block of 139 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dab1f67b8e905c9ffc9fa5c546f5bac86decba01c9753701be3e4e127ec1d3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 137 shared lines): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:590-1077 | examples/community/pipeline_stable_diffusion_xl_instantid.py:586-1066 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1043-1602 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1020-1612 \u2014 These 4 members are variants of one another: a block of 137 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e69238dbc7e8276db879c7d2b0cf164016363ce235c7c63dad7e15c84d9f1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 134 shared lines): examples/community/pipeline_kolors_inpainting.py:1121-1707 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:978-1452 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1018-1494 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1128-1736 \u2014 These 4 members are variants of one another: a block of 134 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a4896bc6dffc320e00fcf34f7e572a37cbb3bb297820998febdb8422c5d467"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 134 shared lines): examples/community/pipeline_stg_cogvideox.py:594-876 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:531-798 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:625-908 | src/diffusers/pipelines/consisid/pipeline_consisid.py:690-975 \u2014 These 4 members are variants of one another: a block of 134 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3257700410630affa6041726344c47e388c3877fde44026adfc0cf86847469"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 133 shared lines): examples/community/pipeline_controlnet_xl_kolors.py:821-1338 | examples/community/pipeline_stable_diffusion_xl_instantid.py:586-1066 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1043-1602 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1020-1612 \u2014 These 4 members are variants of one another: a block of 133 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"5440458b60c140832427815bfeba00b9e61efa9e839297ed3f6228dff972e3b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 130 shared lines): examples/community/pipeline_kolors_differential_img2img.py:819-1266 | src/diffusers/pipelines/kolors/pipeline_kolors.py:683-1063 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:818-1243 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:863-1311 \u2014 These 4 members are variants of one another: a block of 130 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd9f2a471dd56e7e160d9d2a8c5f12293d2f1873f0a2c5092162ba895ec8e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 125 shared lines): examples/community/pipeline_flux_kontext_multiple_images.py:851-1224 | src/diffusers/pipelines/flux/pipeline_flux.py:632-973 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:730-1112 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:923-1431 \u2014 These 4 members are variants of one another: a block of 125 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ea2a0bb097636039349e7b698c5c54290eda2cf4ef032573cf8273bcbe7947"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 123 shared lines): examples/community/pipeline_stable_diffusion_xl_instantid.py:586-1066 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1043-1602 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1020-1612 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1047-1618 \u2014 These 4 members are variants of one another: a block of 123 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instantid.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1345a718e58eeed9fec3d56cbc076a713db0c4fe2ebd317bf74b02e6f7dbc4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 120 shared lines): examples/community/pipeline_controlnet_xl_kolors_img2img.py:995-1540 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:590-1077 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1122-1666 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1125-1686 \u2014 These 4 members are variants of one another: a block of 120 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2dd9e4bb6b032b569dcb6220b582784ac4faa11589ae786d0abd9f1d76b951"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 116 shared lines): examples/community/pipeline_controlnet_xl_kolors.py:821-1338 | examples/community/pipeline_stable_diffusion_xl_instantid.py:586-1066 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1043-1602 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1047-1618 \u2014 These 4 members are variants of one another: a block of 116 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"377c8c627d4c6948bd72998ed8d308468ea4c11d83ceea57635c4adde8610c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 116 shared lines): examples/community/pipeline_flux_kontext_multiple_images.py:851-1224 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:712-1061 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:814-1234 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:923-1431 \u2014 These 4 members are variants of one another: a block of 116 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cfdc2a0268d8cc01f8ce2fbdc6915ca5eb66847354415423aab34efd173653e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 116 shared lines): src/diffusers/pipelines/controlnet/pipeline_controlnet.py:940-1361 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1043-1602 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1122-1666 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:897-1343 \u2014 These 4 members are variants of one another: a block of 116 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26ec3f0a27622b0cf7e5333322d8433a82fe7203395790173b6cc615d176c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 116 shared lines): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:706-975 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:593-862 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:775-1052 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:559-816 \u2014 These 4 members are variants of one another: a block of 116 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4fa80d2c620c5bb9cfa6704084361ff2fa4a814e3697cb4fdd23ae88c7c787"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 114 shared lines): examples/community/pipeline_controlnet_xl_kolors_img2img.py:995-1540 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:590-1077 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:938-1336 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1122-1666 \u2014 These 4 members are variants of one another: a block of 114 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0484ed3fb6443b10558a0a212bf21cd2aeb18a860dbc952c4d01c2ff4281172"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 111 shared lines): examples/community/unclip_image_interpolation.py:222-452 | examples/community/unclip_text_interpolation.py:231-528 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:237-503 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:221-430 \u2014 These 4 members are variants of one another: a block of 111 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"f307cc883d2141a336b3ad3ae5586686de7c1944d7b69f103d54a677ee2c67bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 110 shared lines): src/diffusers/pipelines/kolors/pipeline_kolors.py:683-1063 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:703-1129 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:877-1349 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:863-1311 \u2014 These 4 members are variants of one another: a block of 110 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors.py"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8a75112279b8a5290f87fd1d0ef692afc9d21c0dd0c89d86e7deaaf9baa49c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 107 shared lines): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:599-873 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:752-1122 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:774-1072 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:944-1360 \u2014 These 4 members are variants of one another: a block of 107 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c436734cdfd533f9c3b766a28e95fd104cdaeb874101e7307f737607df5557d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 105 shared lines): examples/community/pipeline_flux_kontext_multiple_images.py:851-1224 | src/diffusers/pipelines/chroma/pipeline_chroma.py:616-925 | src/diffusers/pipelines/flux/pipeline_flux.py:632-973 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:730-1112 \u2014 These 4 members are variants of one another: a block of 105 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c09f8c71a9a2b62ab29c8271bacc15ae667a038136286ff2185370ca6bde4ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 104 shared lines): examples/community/pipeline_flux_kontext_multiple_images.py:851-1224 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:799-1201 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:730-1112 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:923-1431 \u2014 These 4 members are variants of one another: a block of 104 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cad5ed70294cf2c5a1034ed13772e5e4a762ce3101f92dfafb951c2046f71e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 103 shared lines): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:856-1254 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1024-1414 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:864-1173 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:959-1387 \u2014 These 4 members are variants of one another: a block of 103 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"73308f1c7bddfaada1b1ffe994704632f4365810503655a613d7b1ef927f99c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 102 shared lines): examples/community/instaflow_one_step.py:522-693 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:598-879 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:636-832 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:513-798 \u2014 These 4 members are variants of one another: a block of 102 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/instaflow_one_step.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"411d81a9b24b46eaa8f4e6d03240c2d3aa1e38e5c0b3034c0f15d04d1aabdaf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 99 shared lines): examples/community/pipeline_flux_kontext_multiple_images.py:851-1224 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:712-1061 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:814-1234 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:730-1112 \u2014 These 4 members are variants of one another: a block of 99 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"692fd7022f162b63a8938a7468bc21a34782cdc474672fe637c37184ca30d55f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 97 shared lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:759-1159 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:909-1312 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:877-1349 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:863-1311 \u2014 These 4 members are variants of one another: a block of 97 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5248ac0129da7c5d26abc2bdb36ff886f37e9b09a2e1a2e724fdf124dd21435"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 97 shared lines): examples/community/pipline_flux_fill_controlnet_Inpaint.py:865-1319 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:774-1212 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:814-1234 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:623-1012 \u2014 These 4 members are variants of one another: a block of 97 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28626dbcf4b0c05318f2216913f46b22a7a65864864eccb83ddae5edbd4b13d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 96 shared lines): examples/community/pipeline_sdxl_style_aligned.py:1409-1903 | examples/community/pipeline_stable_diffusion_xl_ipex.py:759-1159 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:877-1349 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:863-1311 \u2014 These 4 members are variants of one another: a block of 96 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa640cee8d58097730595bc09f29dda7c70e7a46b18b2c71e9bed2fd9ea0794"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 94 shared lines): src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:662-947 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:727-1014 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:712-1061 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:814-1234 \u2014 These 4 members are variants of one another: a block of 94 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"0423c46f0f9078f18e94669be2f13addf336a447dd7a014393221aa1000dc9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 93 shared lines): examples/community/pipeline_flux_kontext_multiple_images.py:851-1224 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:799-1201 | src/diffusers/pipelines/flux/pipeline_flux.py:632-973 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:730-1112 \u2014 These 4 members are variants of one another: a block of 93 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"86533b3dccb17e00a3f3a722fd94cf8e9a880f3e068399e8ecd348529c45ba7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 93 shared lines): src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:662-947 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:781-1116 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:712-1061 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:814-1234 \u2014 These 4 members are variants of one another: a block of 93 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffcf5febcb76cba6b5bb1e858ab482e12fa5328c50eb2d97c2a2003b7b9f1a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 89 shared lines): src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:405-646 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:434-723 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:541-966 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:607-937 \u2014 These 4 members are variants of one another: a block of 89 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5dbe91c14c85af1101855bb44c0c2cc607715862cef4cdddfb39a36339b9f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 88 shared lines): examples/community/pipline_flux_fill_controlnet_Inpaint.py:865-1319 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:799-1201 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:774-1212 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:814-1234 \u2014 These 4 members are variants of one another: a block of 88 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b3295c7c7cad7c5275cc0bbf0971fd7838759ea665196fa528f575f99fa237"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 87 shared lines): examples/community/pipeline_animatediff_controlnet.py:777-1129 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:938-1339 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:940-1361 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:938-1336 \u2014 These 4 members are variants of one another: a block of 87 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"364fe4b3d4439c7d9deecc4100f46657e47d7dcd0fd40b8defd22329885d462e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 87 shared lines): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:896-1266 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:809-1152 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:864-1173 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:959-1387 \u2014 These 4 members are variants of one another: a block of 87 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"367270a1dfb10fc221723c118fd367b283ac3856702e8a53591a0f2eaf447972"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 86 shared lines): examples/research_projects/anytext/anytext_controlnet.py:273-456 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:198-386 | src/diffusers/models/controlnets/controlnet.py:618-801 | src/diffusers/models/controlnets/controlnet_union.py:559-779 \u2014 These 4 members are variants of one another: a block of 86 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7daaab7423533eb320b43e93f774e6ce3dd1f5ffe1c240492182ef0005e41ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 85 shared lines): examples/community/pipeline_stable_diffusion_pag.py:1126-1502 | examples/community/regional_prompting_stable_diffusion.py:814-1112 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:775-1082 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:807-1107 \u2014 These 4 members are variants of one another: a block of 85 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe0a39583ab4218c6c3c7cb20872e774add936b3677694ba92e5298eeb2f517"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 85 shared lines): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:400-617 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:505-750 | src/diffusers/pipelines/wan/pipeline_wan.py:406-684 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:537-844 \u2014 These 4 members are variants of one another: a block of 85 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f7358b6153a75f4c8dbaa4f9e92a2adb0b4cfe70d8141bea7e9cc8dc1873be"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 83 shared lines): examples/community/matryoshka.py:2031-2298 | src/diffusers/models/unets/unet_2d_condition.py:239-496 | src/diffusers/models/unets/unet_dreamlite.py:1671-1912 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:430-826 \u2014 These 4 members are variants of one another: a block of 83 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2031}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b01fa7507a074a63cc02db0e8cf063b0a3d8ae0b9eb7be03415ddc4d42fae8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 81 shared lines): examples/community/gluegen.py:607-816 | examples/community/ip_adapter_face_id.py:867-1129 | examples/community/regional_prompting_stable_diffusion.py:814-1112 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:807-1107 \u2014 These 4 members are variants of one another: a block of 81 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ccedfda70e92bc66500db3e46150ebe572d277ae8465b04a4845f820445a8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 80 shared lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:531-798 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:578-851 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:625-908 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:602-877 \u2014 These 4 members are variants of one another: a block of 80 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc5caede8f996c2f7835526976fefb28991ea998aa75b556ea50913bd92bbd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 79 shared lines): examples/community/pipeline_flux_differential_img2img.py:708-1023 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:662-947 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:781-1116 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:712-1061 \u2014 These 4 members are variants of one another: a block of 79 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7efe1b1302a3b47a8fc8c7cc25861c114651f8db19f3c4f7c2975803296136"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 77 shared lines): src/diffusers/pipelines/sana/pipeline_sana.py:712-980 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:763-1075 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:752-1029 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:780-1082 \u2014 These 4 members are variants of one another: a block of 77 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee9feacb184c426057c38da5d72dd8b1643c680d8ab9f56624d2ddb0bf2d687"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 75 shared lines): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:820-1098 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:604-882 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:715-984 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:660-910 \u2014 These 4 members are variants of one another: a block of 75 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"d641fc80ff597289bbe2da46f003d5f89f44db870ea6043cafaf68e79bdcb2da"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 74 shared lines): examples/community/pipeline_stg_cogvideox.py:594-876 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:531-798 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:578-851 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:602-877 \u2014 These 4 members are variants of one another: a block of 74 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ea2e86a357ceb2987b26cf0567cd3fe748de4e231b2437c8ec4d64c97106e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 73 shared lines): examples/community/gluegen.py:607-816 | examples/community/ip_adapter_face_id.py:867-1129 | examples/community/regional_prompting_stable_diffusion.py:814-1112 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:885-1163 \u2014 These 4 members are variants of one another: a block of 73 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"d927b19e7b246452867f84fc347a295009940243c4c0d6fc9688222881930778"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 72 shared lines): src/diffusers/pipelines/flux/pipeline_flux_control.py:607-863 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:662-947 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:667-1015 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:727-1014 \u2014 These 4 members are variants of one another: a block of 72 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e1b182d3729b9d16d000e74efcf9dab74911d0dacb5bd2e9c7a70fa6a3b9fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 69 shared lines): examples/community/pipeline_stg_wan.py:437-661 | src/diffusers/pipelines/wan/pipeline_wan.py:406-684 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:537-844 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:506-743 \u2014 These 4 members are variants of one another: a block of 69 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8931e343afe74e08ad000cc4df118a51ce52798731e73a5b3d5317144b847c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 69 shared lines): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:570-786 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:689-910 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:787-1032 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:639-883 \u2014 These 4 members are variants of one another: a block of 69 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70e621b6aee8857991605c9f9f0aa3c7fe41e10c908d0df1179843c686cc157"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 66 shared lines): examples/community/matryoshka.py:4278-4577 | examples/community/regional_prompting_stable_diffusion.py:814-1112 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:781-1049 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:807-1107 \u2014 These 4 members are variants of one another: a block of 66 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":4278}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d11573a5fb357c7f93fbea541a03bc4abdd8d70a5351d4e7dd9dc85bb33f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 65 shared lines): examples/community/ip_adapter_face_id.py:867-1129 | examples/community/matryoshka.py:4278-4577 | examples/community/regional_prompting_stable_diffusion.py:814-1112 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:807-1107 \u2014 These 4 members are variants of one another: a block of 65 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d659b95e75745be33c8f0ea3db799580c0db36657986aaf134f64e4e5a865a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 62 shared lines): examples/community/ip_adapter_face_id.py:867-1129 | examples/community/regional_prompting_stable_diffusion.py:814-1112 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:781-1049 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:807-1107 \u2014 These 4 members are variants of one another: a block of 62 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e5cb919977a0ab12a103a4040498f6bda86add70762a4800b8aa9c10cc72fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 61 shared lines): examples/community/pipeline_stg_cogvideox.py:594-876 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:531-798 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:602-877 | src/diffusers/pipelines/consisid/pipeline_consisid.py:690-975 \u2014 These 4 members are variants of one another: a block of 61 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"300f70508f696a42c91af566b7f85bae81c58adce908e26cd7c2f0efd3287da9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 61 shared lines): examples/community/pipeline_stg_cogvideox.py:594-876 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:531-798 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:625-908 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:602-877 \u2014 These 4 members are variants of one another: a block of 61 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9932fd33d8ee49eccd8b5199dd9a544cdb622185c7a190f528ee89ba42a3ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 60 shared lines): scripts/convert_pixart_alpha_to_diffusers.py:16-177 | scripts/convert_pixart_sigma_to_diffusers.py:16-198 | scripts/convert_sd3_to_diffusers.py:45-238 | src/diffusers/loaders/single_file_utils.py:2019-2209 \u2014 These 4 members are variants of one another: a block of 60 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_pixart_alpha_to_diffusers.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c43c5d0f12a9cc9f79918307dbac0aa5593fa7e996724a67ca19a987b31cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 56 shared lines): examples/research_projects/anytext/anytext_controlnet.py:273-456 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:198-386 | src/diffusers/models/controlnets/controlnet.py:618-801 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:548-714 \u2014 These 4 members are variants of one another: a block of 56 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"2162ef42a4f9f1d2ec8b8b971d7e3927d4219e2f6b808cfb5dfd8b3d0d1e3e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 48 shared lines): src/diffusers/pipelines/bria/pipeline_bria.py:158-241 | src/diffusers/pipelines/chroma/pipeline_chroma.py:278-366 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:305-393 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:307-395 \u2014 These 4 members are variants of one another: a block of 48 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5337f68e365e779a134031eba65b4f9eeda9d67808d1f3f0387e3b3ff88f2a05"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 44 shared lines): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:526-595 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:404-480 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:561-634 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:395-467 \u2014 These 4 members are variants of one another: a block of 44 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7639bbf325d973168eabe068659d690ce7f18a540334de70eb20ab0e238c1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 40 shared lines): src/diffusers/models/unets/unet_2d_blocks.py:1172-1237 | src/diffusers/models/unets/unet_dreamlite.py:576-650 | src/diffusers/models/unets/unet_dreamlite.py:724-800 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1628-1693 \u2014 These 4 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"615ceb358267baade4513746ab62659a45dde7b1f713741fb4e812fe5c7c0796"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 38 shared lines): scripts/convert_pixart_alpha_to_diffusers.py:16-177 | scripts/convert_pixart_sigma_to_diffusers.py:16-198 | scripts/convert_sana_controlnet_to_diffusers.py:21-152 | src/diffusers/loaders/single_file_utils.py:3107-3208 \u2014 These 4 members are variants of one another: a block of 38 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_pixart_alpha_to_diffusers.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa043b2b66e60664b729aeb6ee635d7a138df26197bba23ca0732aed1efd957"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 36 shared lines): examples/community/stable_unclip.py:77-150 | examples/community/unclip_text_interpolation.py:132-212 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:136-216 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:179-261 \u2014 These 4 members are variants of one another: a block of 36 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_unclip.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7e84c8f61e1ab9e48b4322308f8fef81b2a98943a065fa97600745ec87435e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 36 shared lines): src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:118-245 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:139-260 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:151-234 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:138-245 \u2014 These 4 members are variants of one another: a block of 36 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74668ca2d758d2728c228dce7aaf94624bf305e387aa94ce51428b5d8195f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 32 shared lines): examples/community/pipeline_stg_hunyuan_video.py:586-818 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:514-786 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:470-738 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:655-964 \u2014 These 4 members are variants of one another: a block of 32 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"40aa112a5777ed64d311e93575d85e2cc0e1c92d3eaf7cd4b02b81cad201b987"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 32 shared lines): src/diffusers/models/unets/unet_2d_blocks.py:2340-2403 | src/diffusers/models/unets/unet_dreamlite.py:958-1026 | src/diffusers/models/unets/unet_dreamlite.py:1116-1186 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1875-1938 \u2014 These 4 members are variants of one another: a block of 32 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2340}}}],"partialFingerprints":{"codehealthFindingId/v1":"438fc334521f8f57be51e661e50c611c80f94a12b8605dd848096e41d767121e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 31 shared lines): scripts/convert_cogview3_to_diffusers.py:63-150 | scripts/convert_cogview4_to_diffusers.py:72-158 | scripts/convert_mochi_to_diffusers.py:44-153 | src/diffusers/loaders/single_file_utils.py:2699-2809 \u2014 These 4 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_cogview3_to_diffusers.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b0dc8b25648d7816bda6749ef676809fbf0db8c629baa039f785aea90aa4b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 31 shared lines): src/diffusers/models/transformers/transformer_hunyuan_video.py:63-159 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:63-137 | src/diffusers/models/transformers/transformer_hunyuanimage.py:64-154 | src/diffusers/models/transformers/transformer_motif_video.py:128-218 \u2014 These 4 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa5d924db9387b78347822656ad034eeb1d75770527ecc415e2f27bb2c438d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 28 shared lines): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:256-415 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:317-500 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:177-327 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:218-370 \u2014 These 4 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc81e756f0bf93ec92251c2e4ee1e13778e2a9463e7ec9002599619664b4c1b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 27 shared lines): src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:147-179 | src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:262-295 | src/diffusers/pipelines/ace_step/modeling_ace_step.py:171-201 | src/diffusers/pipelines/ace_step/modeling_ace_step.py:263-296 \u2014 These 4 members are variants of one another: a block of 27 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/condition_embedders/condition_embedder_ace_step.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"58302c7edf9bbe8988c9dcac964304f18c330d56c550f05d66866fe5c83cd369"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 26 shared lines): examples/community/matryoshka.py:1131-1186 | src/diffusers/models/unets/unet_2d_blocks.py:2416-2471 | src/diffusers/models/unets/unet_motion_model.py:665-716 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1951-2006 \u2014 These 4 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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":"examples/community/matryoshka.py"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9020571aec4be60ec78925d916b5652a5a6e1cab1852d3c8d1c1310fe483bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 26 shared lines): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1055-1142 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:909-996 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:951-1066 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:623-670 \u2014 These 4 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"2745843e4a4215c63cfdf2c5e14913b3ef4779a3ae2ded3ab54abbb9444f93d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 24 shared lines): src/diffusers/schedulers/scheduling_deis_multistep.py:177-245 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:246-341 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:191-274 | src/diffusers/schedulers/scheduling_sasolver.py:189-246 \u2014 These 4 members are variants of one another: a block of 24 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3400c16fd85452c5b68d7d13ee0025b140cb3665d69e2577a4c6662d9f90b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 22 shared lines): src/diffusers/models/attention_processor.py:1013-1100 | src/diffusers/models/transformers/transformer_hunyuan_video.py:63-159 | src/diffusers/models/transformers/transformer_hunyuanimage.py:64-154 | src/diffusers/models/transformers/transformer_motif_video.py:128-218 \u2014 These 4 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f5b5c071f61e6c9a74277d90407bfad526f9c664c7131c6b9d6202c47d7183"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 22 shared lines): src/diffusers/models/embeddings.py:959-1006 | src/diffusers/models/transformers/transformer_nucleusmoe_image.py:46-85 | src/diffusers/models/transformers/transformer_qwenimage.py:102-141 | src/diffusers/models/transformers/transformer_qwenimage21.py:94-133 \u2014 These 4 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"4141413652aefd33f8d7e0b14f38b4c87a4e3cef26e6b0a3bf34a45fe468f76e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 21 shared lines): examples/community/stable_diffusion_controlnet_inpaint.py:152-183 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:151-182 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:669-715 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:747-793 \u2014 These 4 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"87dffa8b33da0e9ddb5b53f8a1e9022c9ae476fc970ccf9f65b1bf39ceb0a4ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 21 shared lines): src/diffusers/models/transformers/transformer_chronoedit.py:89-165 | src/diffusers/models/transformers/transformer_helios.py:118-156 | src/diffusers/models/transformers/transformer_wan.py:86-162 | src/diffusers/models/transformers/transformer_wan_animate.py:569-645 \u2014 These 4 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf24ba181be9432881aa4dd9aa7a92ce6766962ab574483b22f1c613eb5ffa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 20 shared lines): src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:423-476 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:443-482 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:459-504 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:469-515 \u2014 These 4 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e16b9f71bdece5efc714b4458cd2400a30ac6153154868c5e283791849e6652"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 18 shared lines): src/diffusers/models/transformers/transformer_anyflow.py:76-111 | src/diffusers/models/transformers/transformer_anyflow.py:136-164 | src/diffusers/models/transformers/transformer_anyflow_far.py:244-279 | src/diffusers/models/transformers/transformer_anyflow_far.py:305-333 \u2014 These 4 members are variants of one another: a block of 18 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc241ef8dd6d2f8472e5e369b1a522c324401f17bba6a85506aef78098dfcf6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 17 shared lines): examples/community/clip_guided_stable_diffusion_img2img.py:188-237 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:778-824 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:732-778 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:558-606 \u2014 These 4 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c1444ae8c4fa85dcc16451e872cc62daacda9dde4181800d42f92c5ceb5715"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 17 shared lines): examples/community/clip_guided_stable_diffusion_img2img.py:188-237 | examples/community/rerender_a_video.py:539-593 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:778-824 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:732-778 \u2014 These 4 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3801f27b2a2a17b11d4139c54478db0473f0a9c6067a92ded099ae6badfba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 14 shared lines): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:454-487 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:855-919 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:707-771 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:508-543 \u2014 These 4 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e9167d0a22c7ca23ee41003fa9fe6ffc3df00291a88df3810244c3fc44aebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 12 shared lines): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:855-919 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:707-771 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:770-827 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:508-543 \u2014 These 4 members are variants of one another: a block of 12 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29d379cba454fb13fb171284bbf984fdd0128e42592b7677c8778a12a84233a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 10 shared lines): src/diffusers/models/transformers/transformer_sana_video.py:217-237 | src/diffusers/models/transformers/transformer_skyreels_v2.py:415-435 | src/diffusers/models/transformers/transformer_wan.py:396-416 | src/diffusers/models/transformers/transformer_wan_animate.py:875-895 \u2014 These 4 members are variants of one another: a block of 10 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_video.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0c954e920a6ae3de7071514ed5ba2ca48f2d1de21bfd5fe9d62f80e7f14246"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 187 shared lines): src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:109-342 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:123-363 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py:140-394 \u2014 These 3 members are variants of one another: a block of 187 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2972715848d205af75848dc7799a669c3e1cf1fe5215c5e401ec06388302cd4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 150 shared lines): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:871-1100 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:381-558 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:456-655 \u2014 These 3 members are variants of one another: a block of 150 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f82b4c2d1ae9185c5d6c0b8b4e6940902e899cddbf2204c14fee779b63045a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 114 shared lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:770-1036 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:638-930 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:632-889 \u2014 These 3 members are variants of one another: a block of 114 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea66bac5d9922cedae50fd83ee9443b733a8a3ed9563180ed8d587e3d91d2702"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 56 shared lines): src/diffusers/models/controlnets/controlnet.py:223-442 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:199-386 | src/diffusers/models/controlnets/controlnet_union.py:198-387 \u2014 These 3 members are variants of one another: a block of 56 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"0468804b477cfe09d369ca29ba8f376b2e97515d80214f80795ff40c98f1b99a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 44 shared lines): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:418-557 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:390-556 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:412-569 \u2014 These 3 members are variants of one another: a block of 44 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f635df8876afc190586190a29c9eaee416704f3cdce4e0bb9ae32b20c95337"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 42 shared lines): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:422-632 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:446-596 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:479-656 \u2014 These 3 members are variants of one another: a block of 42 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3dd3535d548f79d29acf82a960d1c18434f2691a2a33b368e1455d43dfa83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 41 shared lines): src/diffusers/models/attention_processor.py:1524-1661 | src/diffusers/models/attention_processor.py:1682-1826 | src/diffusers/models/attention_processor.py:1845-1905 \u2014 These 3 members are variants of one another: a block of 41 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5fc4ee0853b57242f5168fa12da9cfc1159e72a290b60a8fdc356fefd79129"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 37 shared lines): src/diffusers/models/attention.py:819-959 | src/diffusers/models/attention.py:1422-1508 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:100-251 \u2014 These 3 members are variants of one another: a block of 37 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e8dd26222d38d334a3ca42d98d9d610720733509e4a318037baa05dd711833"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 29 shared lines): src/diffusers/modular_pipelines/helios/denoise.py:408-473 | src/diffusers/modular_pipelines/helios/denoise.py:529-669 | src/diffusers/modular_pipelines/helios/denoise.py:872-1011 \u2014 These 3 members are variants of one another: a block of 29 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8d33568984711d1b54df187101598b460fcec4600afa204098f90dd864ee8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 24 shared lines): examples/community/pipline_flux_fill_controlnet_Inpaint.py:231-261 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:250-276 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:219-249 \u2014 These 3 members are variants of one another: a block of 24 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edb8f43a15fe27b3c16b3e3fad73a45467205414e454cd884b241a1f762a205"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 17 shared lines): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:369-396 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:367-390 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:370-393 \u2014 These 3 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"106a22700d1283df87f3611eb74ca91ca02af9d378721cd43cd8a93cc1237077"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 13 shared lines): src/diffusers/pipelines/wan/pipeline_wan_animate.py:501-539 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:562-654 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:666-686 \u2014 These 3 members are variants of one another: a block of 13 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_animate.py"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd4ba74eb45adc077e8433b2988b12937d504e84dadd93553de1b946591d90c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 9 shared lines): src/diffusers/models/transformers/transformer_anyflow.py:365-385 | src/diffusers/models/transformers/transformer_anyflow_far.py:730-750 | src/diffusers/models/transformers/transformer_sana_wm.py:481-496 \u2014 These 3 members are variants of one another: a block of 9 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"1370063f8f5d22e3fd16e8e07215fe39b66577a49e69233a51c5e9be0338f638"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (619 shared lines): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1286-1924 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1175-1821 \u2014 These two members are variants of one another: 619 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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"84785b641ce5fad87af38532fd04ee272a68f34af544ea5701cc37ac692eb897"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (332 shared lines): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:749-1221 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:817-1376 \u2014 These two members are variants of one another: 332 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef08db0b94a947fa16827b25dd6f5ee196b4cd9015652505cffa74e2a7efe29f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (316 shared lines): src/diffusers/pipelines/helios/pipeline_helios.py:487-951 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:556-1131 \u2014 These two members are variants of one another: 316 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e490da091343c69f8d0e78e499fcaf89c50be6f37c3fd8a415f60821817a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (247 shared lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:566-861 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:745-1053 \u2014 These two members are variants of one another: 247 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d711f0d85b2c9ca41fac5be6baf5fde940557507eb519e624c9a21019fbb4eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (230 shared lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:428-687 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:461-739 \u2014 These two members are variants of one another: 230 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bdcfa82961dae85cd0b03648366cc0433293f06fc2be7d3d49f06858d20b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (226 shared lines): examples/community/hd_painter.py:490-890 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:912-1363 \u2014 These two members are variants of one another: 226 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":"examples/community/hd_painter.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"34be23b7746dab449dfdaa11db80a3ce6780638eaed31adf1cb1a121af48c223"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (217 shared lines): src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:769-1069 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:864-1173 \u2014 These two members are variants of one another: 217 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f75bd1876dc8506724f09f4ba4554e8574c81c4bc84aedd3be58d6e2de18c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (207 shared lines): src/diffusers/pipelines/motif_video/pipeline_motif_video.py:520-792 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:648-907 \u2014 These two members are variants of one another: 207 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef725d2884efbac6635b1a2371c695c17065e567e7baabb6b98ffd6dd675842"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (194 shared lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:410-656 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:480-819 \u2014 These two members are variants of one another: 194 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"9928f453ea55063ce2b6dbe4b5ab5097acec308ac1e4ca127fa5ab1f64dbd9f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (187 shared lines): examples/community/pipeline_stg_mochi.py:592-863 | src/diffusers/pipelines/mochi/pipeline_mochi.py:470-722 \u2014 These two members are variants of one another: 187 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":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"50866e94adcc4d774deb18cd961fab6eb3ec38fea517ea97fe5e6383e02e8d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (185 shared lines): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:457-743 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:625-990 \u2014 These two members are variants of one another: 185 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e85d39a24b7bfd9d2a31c44af0d79b09d32840a8899298f9d778ba5f38c8e41"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (184 shared lines): src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:704-963 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:604-882 \u2014 These two members are variants of one another: 184 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/pia/pipeline_pia.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62949bb2455e55301b2c4dd9e0e87827e443006014e6e1e75a844dafab73dbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (181 shared lines): src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:162-410 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:430-826 \u2014 These two members are variants of one another: 181 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03e1ba82401c35effbfbe4a3518a74df70487451d25ef1dc9acab812eb9384a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (179 shared lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1240-1835 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1214-1888 \u2014 These two members are variants of one another: 179 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":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b10a61e9d8bc8c4131599ff48e480c6bcd155b5aa5d10c0b8543292c19c04ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (179 shared lines): examples/community/pipeline_animatediff_ipex.py:598-826 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:604-882 \u2014 These two members are variants of one another: 179 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":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e17c5bcf316c47b881eddb4a974136a026134d651376be2b0c4a655dc2aa88a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (174 shared lines): src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:945-1401 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:912-1363 \u2014 These two members are variants of one another: 174 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"abab5f658479fa9f518664a6aed74f907a0cba7b1c30f97965279e0622bb4857"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (170 shared lines): src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:945-1401 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1129-1777 \u2014 These two members are variants of one another: 170 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8aea9e15dedccaea8ef153dd53c074c887d53d40021314db3925a0b38d4b994"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (169 shared lines): examples/community/pipeline_animatediff_ipex.py:598-826 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:704-963 \u2014 These two members are variants of one another: 169 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":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"680440b522c037e8ee921164c26e673faad2dd6cf81034b264457b663d68c9b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (158 shared lines): examples/community/pipeline_flux_semantic_guidance.py:825-1364 | src/diffusers/pipelines/flux/pipeline_flux_control.py:607-863 \u2014 These two members are variants of one another: 158 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":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"042340963211ca6c9e072a8588539dd30074d616e731e9bb562b29b5d7a5bd59"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (155 shared lines): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:532-868 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:434-723 \u2014 These two members are variants of one another: 155 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60ebaf959b3a17a3b1bf5a31b054ca33b3a3d285df775cf415bf00a2b99a045"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (152 shared lines): examples/community/hd_painter.py:490-890 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:945-1401 \u2014 These two members are variants of one another: 152 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":"examples/community/hd_painter.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edd4a7eec5b5fd19da3e22c72033828dff32980bac7cd9b8fe9d5eb9d66c137"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (151 shared lines): src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:568-837 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:675-960 \u2014 These two members are variants of one another: 151 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"49642230bd928d2a08eff21d8cc8051f2067693561c85cbee554ce5c8e256257"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (147 shared lines): examples/community/rerender_a_video.py:627-1186 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:944-1360 \u2014 These two members are variants of one another: 147 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":"examples/community/rerender_a_video.py"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e46dff439d8db2aaffdb9261825d122db88fc517e895c4893a0aea3445d386a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (141 shared lines): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:407-592 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:402-569 \u2014 These two members are variants of one another: 141 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7219caa914215fe66ee5fea2b39a39d3fa6c7decdae28d63237a5f62b612b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (141 shared lines): src/diffusers/modular_pipelines/modular_pipeline.py:2652-2836 | src/diffusers/pipelines/pipeline_utils.py:398-598 \u2014 These two members are variants of one another: 141 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2652}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2d50ea3bff2485166dfae8790da3b43b20be8b84b4d827229d64f9b38ee32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (140 shared lines): examples/community/rerender_a_video.py:627-1186 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:752-1122 \u2014 These two members are variants of one another: 140 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":"examples/community/rerender_a_video.py"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18a1f28808b41afdc4e6624fbd5c464ee8eac98e3069e1f5a63f6569152cda1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (130 shared lines): examples/community/stable_diffusion_ipex.py:583-758 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:636-832 \u2014 These two members are variants of one another: 130 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":"examples/community/stable_diffusion_ipex.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a18caf58f874cbd502172cbc9fb04474eac5475890c7d1d100105b0cfd7eab"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (130 shared lines): src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:810-1112 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:945-1401 \u2014 These two members are variants of one another: 130 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea88ed19c145f56703030122221efe5d7099a24abd9e2330363b30755427997"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (124 shared lines): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:532-868 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:461-760 \u2014 These two members are variants of one another: 124 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ef3aa72a2f510d787650930719a70e17dc62412a09fe873243af55acb11319"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (123 shared lines): examples/community/pipeline_flux_semantic_guidance.py:825-1364 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:714-1203 \u2014 These two members are variants of one another: 123 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":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"581210e03aad43353217372c9c80e0e86fe24f93ea2e1089f7af1444949e900a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (121 shared lines): src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1567-1959 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1084-1616 \u2014 These two members are variants of one another: 121 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2a9c92f2b7517fa9217449039b5bcad45ee16d1516985dc742aaa5bbce790e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (120 shared lines): src/diffusers/modular_pipelines/ltx2/before_denoise.py:955-1092 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:1266-1426 \u2014 These two members are variants of one another: 120 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e7192392ddf44c331667fa3987e84a0fd1944ca6da701b1f4f6e806414bf06"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (118 shared lines): examples/community/masked_stable_diffusion_img2img.py:49-237 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:585-789 \u2014 These two members are variants of one another: 118 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":"examples/community/masked_stable_diffusion_img2img.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"931914d394443de329be13675e1ec27a557f015fd27d26adc0c9b96e01c35af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (113 shared lines): examples/community/pipeline_flux_semantic_guidance.py:825-1364 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:712-1061 \u2014 These two members are variants of one another: 113 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":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e2f85f4372724721e6e172b332ecf39b81f9332521051e85e6f44739f2a49e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (113 shared lines): src/diffusers/models/transformers/transformer_ltx2.py:444-572 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:923-1051 \u2014 These two members are variants of one another: 113 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb340695dc8499b649ec95d65dc7042bf170f40f3a33f53def93cb302a08100a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (109 shared lines): examples/community/hd_painter.py:490-890 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1029-1525 \u2014 These two members are variants of one another: 109 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":"examples/community/hd_painter.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6506036610d57c7eb9bc3825b25cc8456ca60cbed7312c49332cdc9492b761d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (107 shared lines): src/diffusers/pipelines/prx/pipeline_prx.py:580-835 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:430-666 \u2014 These two members are variants of one another: 107 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd7374456a1d90b4d0f7caaed16ed774d2292f19521aa7677d29edc896b0c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (105 shared lines): src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:742-1028 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:704-963 \u2014 These two members are variants of one another: 105 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8d13be48376267e7221720b63745f90c5aa3a542d1d86a5998ffaa58bcebfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (104 shared lines): examples/community/fresco_v2v.py:312-638 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:508-703 \u2014 These two members are variants of one another: 104 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":"examples/community/fresco_v2v.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ab4933fcd4445e211dd186ac47ae4b1f987dd305a1cd6f3224ac0ba98ed87a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (102 shared lines): src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:742-1028 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:944-1360 \u2014 These two members are variants of one another: 102 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"741d60b010d6fa65370bbe21f977aef1dbd3174a40694a9f058de802c24167e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (101 shared lines): examples/community/stable_diffusion_ipex.py:583-758 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:598-879 \u2014 These two members are variants of one another: 101 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":"examples/community/stable_diffusion_ipex.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"09530c7ca04cbd14917c4218d672be304ad3726d8a44c287b5645f2a014c1c0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (98 shared lines): src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:203-319 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:284-425 \u2014 These two members are variants of one another: 98 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2f86249a031964658a4e6fa8d0b1334fbd3f520aea1e1ff044ee9bdc363d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (97 shared lines): src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:810-1112 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:885-1163 \u2014 These two members are variants of one another: 97 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d19e320f5f5ef7a89b493385aebbcb97394217571613d9d95eb66a3e1dcb47"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (95 shared lines): examples/community/pipeline_animatediff_ipex.py:598-826 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:742-1028 \u2014 These two members are variants of one another: 95 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"c790c6049bf027e885107792b390efa80a3a511e375e22b4ce77336eb4506085"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (94 shared lines): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:494-701 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:550-758 \u2014 These two members are variants of one another: 94 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bcfd12f51eea779480ab7a43afb84e9883224b927b527f32990293c582bf51"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (94 shared lines): src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:742-1028 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:604-882 \u2014 These two members are variants of one another: 94 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5ca972ab70b775c5d18110a722d038b809c72ee1c57a3606e028ec0d8a6220"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (92 shared lines): examples/community/hd_painter.py:490-890 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:885-1163 \u2014 These two members are variants of one another: 92 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":"examples/community/hd_painter.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"61247cdf29f2c416c1d7b47c31baa50f9592eb21b62776b06dd8d4cf1aebe726"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (90 shared lines): examples/community/hd_painter.py:490-890 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:731-994 \u2014 These two members are variants of one another: 90 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":"examples/community/hd_painter.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb810df4bb05473e2afb30cba237f6ca0a8a46b8fb7c578e4bdc6b1f59d506d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (86 shared lines): src/diffusers/models/transformers/transformer_ltx2.py:1176-1351 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1208-1374 \u2014 These two members are variants of one another: 86 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"44915b0bd63d5b0a97a0c188b625d64e843c00d9022d7b63c4cbbc51de37bd99"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (86 shared lines): src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:291-391 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:300-394 \u2014 These two members are variants of one another: 86 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b3253d966eb9065222560ae576f1dcfcfcaa269fa226ec958df339d42a1153"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (84 shared lines): src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:742-1028 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:774-1072 \u2014 These two members are variants of one another: 84 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ccb9e245cce11fb0ed3f6a9abf4b79cd3782f5294b16481026666f23226c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (81 shared lines): examples/community/pipeline_animatediff_ipex.py:598-826 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:599-873 \u2014 These two members are variants of one another: 81 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":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95eeb8f550a628de344ddd72b06aab56d89ffd08df9763118dd0ea635ed7733"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (80 shared lines): examples/community/hd_painter.py:490-890 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:797-1049 \u2014 These two members are variants of one another: 80 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"be45d7ff38c79602b80fd7baa7eaa6b01ef55dbd239495b970f4f0401b477782"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (80 shared lines): examples/community/llm_grounded_diffusion.py:781-1088 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:566-861 \u2014 These two members are variants of one another: 80 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6eaec01f57498d31cf2adce3243d7e6bcf4edfaaea5b74f95f7e0404403fb15"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (79 shared lines): src/diffusers/pipelines/krea2/pipeline_krea2.py:470-719 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:434-723 \u2014 These two members are variants of one another: 79 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"46eb98862eded0e2a9910ac66ef66104c591823c351b87474679ba395a2f4ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (79 shared lines): src/diffusers/pipelines/krea2/pipeline_krea2.py:470-719 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:607-937 \u2014 These two members are variants of one another: 79 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"b432e1a8526feced6f36b27f243e983379a2a11aca80cc102dd255c1966a8ac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (79 shared lines): src/diffusers/pipelines/krea2/pipeline_krea2.py:470-719 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:531-852 \u2014 These two members are variants of one another: 79 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df0493c6b1465b3d77216254075fef2c06660ced62019038d4d05854fca7249"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (79 shared lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:670-926 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:756-1117 \u2014 These two members are variants of one another: 79 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f26620f8d26724b19b03dc1c3912c02a6fd98c430f4ead305457ee77fcd11c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (77 shared lines): src/diffusers/pipelines/krea2/pipeline_krea2.py:470-719 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:553-896 \u2014 These two members are variants of one another: 77 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"318c899af1fb6c6d48aa2c8818b862a112a1f9a2790cc92e6d09d0aa113614f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (76 shared lines): src/diffusers/schedulers/scheduling_lcm.py:410-546 | src/diffusers/schedulers/scheduling_tcd.py:440-592 \u2014 These two members are variants of one another: 76 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_lcm.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d46ecffee09e21ba66892d7aa10545e6a73b1eb656de6ca880affc4cf6f89c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (74 shared lines): src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:604-882 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:810-1112 \u2014 These two members are variants of one another: 74 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de0f788b21e9d9d7f07f4af15ff1547287203942ef109edd9f6f4497996a4f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (73 shared lines): src/diffusers/models/unets/unet_3d_condition.py:128-287 | src/diffusers/models/unets/unet_i2vgen_xl.py:150-314 \u2014 These two members are variants of one another: 73 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"01236e6d4d189334215ef7716a4ccf3dbc32fcd01c38080f60b85de4de545466"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (72 shared lines): src/diffusers/models/unets/unet_spatio_temporal_condition.py:98-247 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:162-410 \u2014 These two members are variants of one another: 72 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_spatio_temporal_condition.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fc9b6117e699bad0d9f1706742476f7f534b014383c19a014c763122867103"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (70 shared lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:566-861 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:843-1109 \u2014 These two members are variants of one another: 70 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35ddd09485a043e90be4d71272f2ef4e10f1b1f629b20644d56d3defdc6d045"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (69 shared lines): src/diffusers/pipelines/krea2/pipeline_krea2.py:470-719 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:405-646 \u2014 These two members are variants of one another: 69 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"278864669c368cb290232dc2aa5374bf66c477d34344bf18320758aac6ea26ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (66 shared lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:480-712 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:434-723 \u2014 These two members are variants of one another: 66 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"0578cab6d9dd411cf31ab31c73c0d78755cbbc7d6edb24da09b0449569f18bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (66 shared lines): examples/community/pipeline_prompt2prompt.py:581-776 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:636-832 \u2014 These two members are variants of one another: 66 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":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"6653eef6edbcb9b4f0e896d159815fdc7b04f9f2645e3f988e193757c0b493dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (66 shared lines): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1324-1548 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:636-832 \u2014 These two members are variants of one another: 66 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"8756c2923bfe224767229f9d7616410d134da93fd34aa772d71a590ee278b148"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (65 shared lines): src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:777-1048 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:843-1109 \u2014 These two members are variants of one another: 65 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9165e610d5219895e18a302d0afa8e20ca397d90b7338148c664f1b664aa39"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (63 shared lines): src/diffusers/loaders/single_file_utils.py:1217-1380 | src/diffusers/loaders/single_file_utils.py:1389-1507 \u2014 These two members are variants of one another: 63 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74b6bf7a2851858373d62bcc668f6a1ccdac739688a0741df962aedb675bac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (63 shared lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:340-442 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:496-604 \u2014 These two members are variants of one another: 63 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf8484964ee87fb4320a1002cc0c27ea8be4543a977fc5651bbd7007bd49acd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (62 shared lines): src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:777-1048 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:636-832 \u2014 These two members are variants of one another: 62 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e983c8445ec1544cce7bfb2af998ad047c777dbd844a2ca50f294ead222d2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (61 shared lines): src/diffusers/modular_pipelines/wan/encoders.py:690-763 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:427-513 \u2014 These two members are variants of one another: 61 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"83622463293a9530ede2f96078634ffd00870ed651025a0fde4f92965a60bd55"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (60 shared lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:566-861 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:636-832 \u2014 These two members are variants of one another: 60 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"9894fd8646b1a694528058f3bd358675a73355dc290abb56cff545c657522696"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (60 shared lines): examples/community/pipeline_animatediff_ipex.py:855-1002 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:604-882 \u2014 These two members are variants of one another: 60 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":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa556f0d0a28cd45059fc89941ff3174236736b5b381398d25513cdeafd619a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (58 shared lines): src/diffusers/pipelines/krea2/pipeline_krea2.py:470-719 | src/diffusers/pipelines/mochi/pipeline_mochi.py:470-722 \u2014 These two members are variants of one another: 58 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b735adaae983a9d08b0a815fb627d843e0839ade7f4d3c9eca74e0d6739e8cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (58 shared lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:670-926 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:885-1163 \u2014 These two members are variants of one another: 58 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c0796b263b565b985562793f25d9209f08c38873e39d10319067d2d6023801"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (58 shared lines): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:494-701 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:480-712 \u2014 These two members are variants of one another: 58 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"d823e9882143cc0e40363de55aa3148203aca3111b7f81d85c67a66d2ae947f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (57 shared lines): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1324-1548 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:585-789 \u2014 These two members are variants of one another: 57 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"61692e0fc645cafad9c1fad27ffce8d053362ae4ea16e3cc013e0440a19c08ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (57 shared lines): src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:272-366 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:272-351 \u2014 These two members are variants of one another: 57 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"948ac77fc1d05d285af2ce1be9958fc9599b2d94aaff41aabc21f5348098761f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (57 shared lines): src/diffusers/modular_pipelines/minimax_h3/before_encoder.py:391-522 | src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py:383-543 \u2014 These two members are variants of one another: 57 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"056f5e24bc8c71dd42b7593f17a5065217a44c7471ecd7c3c646cd8af0217348"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (56 shared lines): src/diffusers/models/unets/unet_motion_model.py:1259-1535 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:98-247 \u2014 These two members are variants of one another: 56 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6198005580975b55b76deddbefc0a6111fd1061b981e5c730dfc774a6a508e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (55 shared lines): src/diffusers/models/transformers/transformer_flux.py:686-821 | src/diffusers/models/transformers/transformer_ovis_image.py:487-585 \u2014 These two members are variants of one another: 55 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f72304507038f519bba8a7ff967848f15edd1369229e943fe8ef030ae117f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (54 shared lines): src/diffusers/models/resnet.py:242-317 | src/diffusers/models/unets/unet_dreamlite.py:136-229 \u2014 These two members are variants of one another: 54 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/resnet.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"311583bb7d1afbbfd4a9a3948d659228e9379e7a2ceeb46a4f012637d92cfd77"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (53 shared lines): src/diffusers/pipelines/krea2/pipeline_krea2.py:470-719 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:480-712 \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":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58d8dba6e2947a34839c8fa2111f88feb4c128de1f993ade730c63e118bc2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (53 shared lines): src/diffusers/loaders/lora_conversion_utils.py:1595-1766 | src/diffusers/loaders/single_file_utils.py:2813-2939 \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":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e827ed5210c7c90c9e61065ac971b3147aff6b2b6bd83aea2a19ff64eed9ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (53 shared lines): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1086-1298 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1133-1314 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf8b9d09c17774673db0853fc1572caca9c0f222f27e00a815b03af0302ef80"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (51 shared lines): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1324-1548 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:557-817 \u2014 These two members are variants of one another: 51 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"035bc850b4aad791ab6679ec3dcb0ecf6bd4c4812f02181a7a1fe456ec510983"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (51 shared lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:248-300 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:83-159 \u2014 These two members are variants of one another: 51 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a34ba2f6d0efd06442e2c0bc09a95dce56bc5da405934d7e61211824783be7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (49 shared lines): src/diffusers/models/transformers/transformer_joyimage.py:110-173 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:91-142 \u2014 These two members are variants of one another: 49 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2b560642bc25155509cfdec4f3b3ce78b9e40c239f844bc752c171742cc5fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): examples/community/masked_stable_diffusion_img2img.py:49-237 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:636-832 \u2014 These two members are variants of one another: 48 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_img2img.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aaeb528c4e0908cc7e902fb9a72c92f97e2cf62af79087505bcce428fd8e3cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:535-741 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:471-657 \u2014 These two members are variants of one another: 48 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff238068c184c5ef10f992afbf77a437448c1b41bfc01e9b822765ebcaf3141"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:843-1109 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:276-439 \u2014 These two members are variants of one another: 48 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"57414cd3ba58c50e121873a02426ebcec4da434dd791778b54f158ff0883545d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): src/diffusers/models/transformers/transformer_sana_wm.py:1745-1876 | src/diffusers/models/transformers/transformer_sana_wm.py:2269-2345 \u2014 These two members are variants of one another: 48 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1745}}}],"partialFingerprints":{"codehealthFindingId/v1":"796f117eac72a421dae537ad33551b84c88e32c9eafcc7d289b66c1b9807f6eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (47 shared lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:370-432 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:381-452 \u2014 These two members are variants of one another: 47 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa060140f540cd9b5f78eb0ad1e65ad49cebc92814bf17e2b7fc33449f2353e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1324-1548 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:471-657 \u2014 These two members are variants of one another: 46 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"224d1f0b51eb2a8e15e6c400f177c518d99d2ec190b76da54cc7d3c0ced76b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1324-1548 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:536-716 \u2014 These two members are variants of one another: 46 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1e83372154433b0e386a3ff86110eefbe024a59754b0e6bcb55d15e70a0cd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): src/diffusers/models/transformers/transformer_flux2.py:588-630 | src/diffusers/models/transformers/transformer_flux2.py:661-720 \u2014 These two members are variants of one another: 36 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d5f87a8daed8db5927e33b88771cfdf17225058640c0c18c1b7079d7e4315e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): src/diffusers/models/attention_processor.py:1438-1505 | src/diffusers/models/attention_processor.py:1932-1990 \u2014 These two members are variants of one another: 36 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"8332eae88244d3aee44dce1875a99fad937bf8696be2c4b3c4db5d55b5faba63"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (34 shared lines): src/diffusers/models/transformers/transformer_anyflow_far.py:1294-1397 | src/diffusers/models/transformers/transformer_anyflow_far.py:1519-1627 \u2014 These two members are variants of one another: 34 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow_far.py"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b07dc8c52e85e866e6d5fa1b86ee503adc7f616c82fe201bc65a9d03601c9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): src/diffusers/models/transformers/transformer_sana_wm.py:1891-2049 | src/diffusers/models/transformers/transformer_sana_wm.py:2360-2455 \u2014 These two members are variants of one another: 32 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"4828ceec8437ab345392c692824cb53a8456402de10c9e482d482a3af72322bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (31 shared lines): src/diffusers/models/attention.py:255-318 | src/diffusers/models/attention_processor.py:788-837 \u2014 These two members are variants of one another: 31 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21404381bc1c8153a51a40b10084b53568a14b1385120af3265f69707df7d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (30 shared lines): src/diffusers/models/attention_processor.py:3580-3653 | src/diffusers/models/transformers/transformer_lumina2.py:87-149 \u2014 These two members are variants of one another: 30 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3580}}}],"partialFingerprints":{"codehealthFindingId/v1":"a798c96dda185d1fef0a37c1dcae1287879ed946b5c46792f2348139e2efc630"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (30 shared lines): src/diffusers/models/transformers/transformer_sana_wm.py:1070-1173 | src/diffusers/models/transformers/transformer_sana_wm.py:1201-1286 \u2014 These two members are variants of one another: 30 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"b064b6d399f9b0c1457f1892d05560a8edcb5b41ea25e0ae1238805d64170b7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (27 shared lines): scripts/convert_aura_flow_to_diffusers.py:32-102 | src/diffusers/loaders/single_file_utils.py:2943-3031 \u2014 These two members are variants of one another: 27 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":"scripts/convert_aura_flow_to_diffusers.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"80837551f6c659ccac1625b90eee16c31e5e888749b86663c9b56db773f3aad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (27 shared lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:152-194 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:194-236 \u2014 These two members are variants of one another: 27 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"db879d75ce5fc0823e13d4c7fde03a7a7ee92345fe6cc9d843b382315c6a1d42"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (27 shared lines): src/diffusers/models/transformers/transformer_cogview4.py:137-193 | src/diffusers/models/transformers/transformer_glm_image.py:276-347 \u2014 These two members are variants of one another: 27 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"917d11a7e80a38474f12c29d57d9a7a1c4046f1fc4b6efc796cd3e64bf0e2854"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (27 shared lines): src/diffusers/modular_pipelines/wan/encoders.py:767-799 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:523-580 \u2014 These two members are variants of one another: 27 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"03553702e68cf94ec4ee5484024c266515f579d28d9dabdb7396c6d43cba1ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (23 shared lines): src/diffusers/models/transformers/transformer_easyanimate.py:132-205 | src/diffusers/models/transformers/transformer_hunyuan_video.py:63-159 \u2014 These two members are variants of one another: 23 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_easyanimate.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d902b093af729cda45df1ae8df4e6c2e4d30e78a609f134ede657b138f67f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (23 shared lines): src/diffusers/models/transformers/transformer_easyanimate.py:132-205 | src/diffusers/models/transformers/transformer_hunyuanimage.py:64-154 \u2014 These two members are variants of one another: 23 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_easyanimate.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"1041938b1ab2a1506c950f01e18a9041f7e97a931b3c107fef3b7226ee426b2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (23 shared lines): src/diffusers/modular_pipelines/ideogram4/encoders.py:288-331 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:343-400 \u2014 These two members are variants of one another: 23 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ideogram4/encoders.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"846811034f0c0edab4e7fe84e83b36b3806be743df5111ba7a84c32b7c48f1ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (15 shared lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:274-295 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:316-337 \u2014 These two members are variants of one another: 15 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a76c33528ad5833ffb74f1d1001a034983a5b14524cfeefc558126993f9991"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1005-1072 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:943-1010 \u2014 These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7bf599d5720cd1905e60c1f1feea273566d8500ef038d7b2ab99675ce2995fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): src/diffusers/models/attention_processor.py:2098-2171 | src/diffusers/models/attention_processor.py:2185-2262 \u2014 These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2098}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acc2ad18b8559d73cf42706e0f30b8357e410a2752f91bf8d094989f89ada2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:680-762 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d3b4f1189ced58cfc4bc7fddd96fe4a5a33e0e9f5904627a4a741676acff76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:683-765 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5657bdaa8114a082789ae8b7b2e12237fae0a0686b77ff55e4173ec2f3aaedf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:680-762 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c4a832e71de3a0624e626ed77ef5637dd69081f5d09b63997d6c796d6be81c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:683-765 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"263d90031dc132c060ce5f71e21730ed3649f5c5da1f22d53c38c622249ff62b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:680-762 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"581df0268489221cb68fd8a4e50087225d0e4f499bf606ab7e0e93b7ac923c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:683-765 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bccbc6f1dac7938ae9dc8196d8c5d02c28974fe321e87ec7fae9124e0587633"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:680-762 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1caa23314993d02a9fd88b801a3e1a4cc2a14708f284c0210442a3307ed627d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:683-765 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6cf868009dd6fe594d54b4ddfb24f93f3271d20d62a47c1a5fc960b638dd20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:680-762 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cc21058181361963d866a708db6970b0e41d9073f880d70165d98dbada5ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:683-765 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"20907783278b887b47c211f5bd420df92f5a85db6b47f286209b7d20d8f7fa00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:680-762 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dcb6cdb57188d4972ea22b6c17ce055ad9b498794c1059bf8d36a217ad43679"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:683-765 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"a545051356bee684bcff28fa51c7e6b696c4ed02129d73a8eb5c229478987bd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"52738ef56a263287abe014911a7bd3ece3b3f56807206feba1dbfe0fadc2cc3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a4b4cb4bbd54a84b21f47603532223601f0c517e1575e472ad0d12e91472ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"1157934386af9f1a814a296e73e22725a1bda624efe70df391e2789a8efda381"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"699f16cb0200b121d7f01d1422df242644c733a4a064ec95db100866c45d1b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfddf5777ef2acf4cbf2a54088877a508d43aee2e7a1ea729a88b54cf04d5ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"48aaefcaee913ee8dc93bce686d1b5136cef0503679cab3e21a945dc22b7a3c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8137acb1176d97a673d265318b64202f627f3d04f4e7faf7a71bd5ac9a8c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2ef06bed44a4fcba7346aab943ead59a5d728c5bd37c962e46e213943e450c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30a979bf800c2a70f5d84f602808186516cdb4e3d698c4610b82ddf377ec0ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb2c95f385f0898b4c866383a6ee1c9631cc6725c8bff5d9a237a240b2899ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4e7c8b7f7deb0d6cec398a8de753aee3cf064ccfd281f955fa2abe3cf031c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cde626e12dfa449a583ed6415814557ab531f514bece3ab79c7a8e674261bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:640-717 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-631 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df1b3b1cdd4c77483125b8fbf76283bbc68fa267b35fe2f10f7b1e2033198bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:640-717 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:581-661 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45f0634b09d749a2c532738f0caacbc7364705d5f9913ced2be1037cf266877"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:640-717 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:588-668 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"00146bfd63370305791801dc21e935f9766461c5e2c1c67682b2e7b4700af0f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:977-1042 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:641-788 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0ab1fc47d470807ff6abd9264f160be63e99797c4f01df3db9b26f05ad9460"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:977-1042 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:546-623 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"d037722c7f3e9d4fcda57e0e39d726c282ff5470892712f4fc1ad8988b81110b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:977-1042 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-631 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dda48a9d2eb839eb52995438c1456f72ad78547c2184de2fb507c002276765"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:641-788 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb48a36bc55d5b7785eaa8f5d8cc264475c34506f744f468c9e6cc1a0af65c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:546-623 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c65d69b59199e4925a098ac39806e9aa2e8c901d8582fe7857b0f59732b48c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-631 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb7b8d678f6fe4426ccace5c927cc84e886971185f9ad28c518cec41e060719"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:641-788 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"a803d8b358d94b01c3fe4c6146c10734877915a83e2faa0227ee1e2039a9b195"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:546-623 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8c6526f75c219411fe6e1484a14e630371c03555d34bdf1ef39b4973dacb4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-631 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff1fcd81ff6f551864d1124b7c4185631ea5e145b911f91f1abde9c345dfa3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:641-788 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7f323c88d4d77bfe56a41cd7296aa23218c36d688d59fd0bd47ca9ae5396a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:546-623 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9eebedd4972a59297a561289cfc2abe94dab8db8f7fe99229004e4b7fb5828"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-631 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bd9c05a0bdaaaea0a706a0a80bd0c6a07ddb83ee828e19cea1d979d3c261a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:641-788 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d327e8d1ea7be46962afd1d0732c90a2d5742830d7b83de6efececbbdea4e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:546-623 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9c7a126e2f6ccf7b6576a8dde3e6d9d1e301e618007d7da71183efe8ec991f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-631 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"595071113b674de674d7ad04e356b831a3e9d4f44dbb142c6bd259a1fffaf374"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:641-788 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"967e8473616b5c82fe641d997448874c42f1737a6cfe0a883f566fad8529bb5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:546-623 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fb605610d6650e435a22a9eabadac1255f78b0a7091a15e932e95e3251ef62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-631 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee14bf91e18e6a781f2928ffa6a91f364378c521afd57a66e0e4f36e0c5d087"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:546-623 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6327d246f88c8b16816880309ed5f539f471a22a25c81388e0d89cdf1ed27b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-631 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"e864db168f5b7c3a80c4a9e481bbe6b8690e43888e85a60d26c014e55c4f68c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:977-1042 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"17380f6f018af4316ce5fde19cd8034039b8c7100e7ebf0f06935812c6f449ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"94204e14dfbfb4d86ded63305af3c6f0bffea7fc87bee97685dbe198c2da1dfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"430ad2e4cdebd64e1ee7b08fcfebad6d9e790cd625c30109366cc0f266ab66b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e3fbea758933db182b1a93caa410f093221aa02ce07aa126f78bbc8220b48d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78750162ed9e2cd3bc6e75bb925f604857c74df45cc4b1d73b8cd9359fbd45b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c55f17b60fed398f80090aa1e7fdca6ccc95e09f905a39d327a6898267bac1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"f131c7fc675a263d47e45f9291da560aa8ef29edb8fe09aaa2fe1afbce1f30c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa14c5a69a82be4e60fce1b133d1cbd7d4279fe74d88e366cc09c57416580734"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d68bbd3585e9e1a0e0dc5460392dfd5f8e483d4c936742ee9151729f78741a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb39dcb93f19ef773503f4a1a2b5f55e7e2d4c3251dd5d2e7b76910bccd4ad5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d891eeed66902b64a9453dd6bb4f277cd93309696f456b1d7f0fc11d587b2f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c089f0f3b53afa9ec3f34640b83c8b6be71ca32c7f54b1ef8391908b93ec82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5bf1d8a51c223aad0aee4b382f7f9765daffab214726a48c0313bdfd691b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c0309041accfc2aa22b7ab1498be4fe30bef29b0cda04325b309cd16f0de10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfe53be32ba02d1f08dda7dc7d0dcae4da314e84c977f3573cd04ec159de285"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2f9908562b7cfad4189b691a272760933cf1b4d7cee5280aac536c46e69a26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8baa9bd70239c21d1515ee6fb4434376e4b2fbaa6948722f78ef5bef0d2cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ae0bc5635ff5c22f6c818f861bdd44446cef4d5baae61e1a66142ffe31815a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"e785449ac8ebe4f7175d4d79633957d94d4d1397c73dd407a4693527f8fb77de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba1881613a3447540864426bc8a89281c8d44df13b887ac93cb39a4c8f39b93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"a089cddf67b011aa828c65bec36a3abb06917acb9724b16454b48f60e1c5be14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0839b1c4fa9e82e21abeaf0fa7dd473d160e324ad521dc8b311e78f6005ed3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e865dcded7f1d5e6d74ba43ec95d4f1b3a914afbcbdb00f787690f49e77b49b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"89193c64a9178437331f377eae48fda429454249485bfe7fede082b221feb39c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f606e37b27e47a53e7a33089e96fecc2c20b015d5d60d5022a6e33f4b40d868"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:563-643 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"f998ee3bf94d95586bbc0a739913a99d146061692430a6cc98440d1da2fdaf18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:581-661 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd1af46efd9a8ea9959a87e3798f91f85b370910a71fa1f1070312ba3a2c241"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:588-668 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb5bf7014cf7949076dbf9ce023001f481139e6a67d33a1748341e864969362"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:563-643 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"42eac0633873d6d3001c7868dd84603eda78f1629bffa1d9fef44069889e7cc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:581-661 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3da944361f81753e981e51028ba7bb05efd6ed50d35a229106e4547134b38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:588-668 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f3925dbae811c2f0f3863cbe01e12080be834fc5f6b11879c3e35f0b9188fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:563-643 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba0c48d55f63616ca9924f19852b3d1565d8dc9938c66b1c73c30c61d7eb2ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:581-661 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"582f9573463d4e2df98fde21542c48ebd21fdaeccb693d270fd54471983f6d97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:588-668 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"08249da9061a34cdcfcd784dd08dd29ba9396983061d20ee9804ce6f143c9f55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:563-643 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a05c2b21a4a5aead87fc803dfc782be8adb9c65c0c002d0475c82842f600b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:581-661 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69ca1490125e16a0279db0cf25dd62603e2f4737bbab8fa735eae559e1280f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:588-668 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddebe6bc7757068b44acfabb5e29fbd269bb2476af18ffe3139cd0807351d7b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:563-643 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"c938088b165294432bf174b85b5d2b8d23c352e92477cf39664da5b70fe10058"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:581-661 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"862dd2156d603f64b1e5ace43060614598c6cf4cdef85bd79ec7a39c7bb59732"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:588-668 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4c75c77f3a987e110dec360772f1e37edd6e5cb35581eb6840f207dfac545d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:563-643 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc11b4dab443fc80ada4da1a0eb10d0b686a89b846efeba0135cc6d67825d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:581-661 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"320f89e076c94d4e28d3580644e65d52293e0de6d258e59f9a341106b025e79a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:588-668 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92367380f40b18951dac3d2769238a178344fbf685457ae65195e3a141f9079"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:977-1042 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:677-830 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"fceb075536ca626481e1da80ba7c11398a7323837f9b07b8c587cf3ceffbe9cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:977-1042 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cca6f48aed4e0268b370f9bc6b36ba69948a222b15a8348dba686e392834c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:677-830 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a24b8fb7d600c51876f38e47ecab506007434f8a5cac2d62d5655359ee360a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb9c647cfaf08699d7d747dfe7ca2d94ce71764f9454be8f37067519ae5adb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:677-830 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffa60004f7c6b1e4f01ac7c7ef90d1b817a749f171c5fa167492863fae402d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"a562492596e72ad8708ab77f973bab2bf7ce8be01432da62676233bb95992c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:677-830 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64856818f5707ddd4be5cbf77d8ff1a1ca0a4137ddd8bd4fdb9fb6fdb511710"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"94782c2e1728c1425bd78f374ac395b8563a3e20e4b54b71be4826865f197317"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:677-830 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c97f3e7349cd40e0fa6a39817a9458d1b7fe397bb016ee89b8b56f5250afb03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"0962af65408a006ddcc37b8d403fadd3aa01274a66546439a3141b38fc2fc0bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:677-830 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d3642111754f8828b48f45ef5261d42755d45a3c6af770f8409cd92efa0009"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65aef882d78387905521e6602aaf13c81b4e2a46216fa8007cd420d9e32a8cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"15813ff4deff60c6c6b697f5de437e73348cae80564656519f5ee16139e2e7a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8ba6eb81e5fbf0710059eb77944983451478a1a21e6271d34aa35b21a47b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"3432e1064fcdd5a1ee13eac42b7b67760e0f0dd51b6ac0cacdde1f7f536ff21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bafe59101ef3c969790b43e4cdb3d65367f0ba0d418a78eaa59a280d622198e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c00a6752122970df44ddc70e4d87c26f83c2db06ea57d2cb1cc9495e05583b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:546-623 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fecfa50d3bb34dab5924d0524864b1004cf3956cdd50bf53b405a8d0f0ffce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:563-643 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f33dbc0eafbe0d94522b62be3e41c73b86c218d0941f5022444a357da73ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:640-717 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"8843b7dd630459583fecfa9628d7c200c25ee29576cb3eadb33cd2814c8fb9d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-631 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f2a6ce424ee3176abce5d74797796bb7dc991ad6d1f3cda5a61a6f4d8462cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:581-661 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d99e469317ba6d78c4bb28a94f058ce71a99d43395a76243f20a2f65f9d470"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:588-668 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bae76ff8b33d3f6b7a11853a7e96086d4e9e5499d55b5f35c2df503134f98c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:629-706 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7d1be8e81da4c425c10c99a04a44a9df39fcb07a5f0431f933a92add3b0a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:658-735 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31b69bb76839eb142b7aaf43dff09e339a263a4c81f04d0dc9673e0739c35f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bd4b64f4ce2aa0d13d05ccfade3d9a5660f0bbca3ad1071ce482a86319a970"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0ea05cc4fa91a0c67276f425def8fded4f06a10a07caff70dea7d787b704e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:680-762 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"b150b167d5a51e1e48e3813c573e56bd63f5926baf6c53b7c52118c194ca94a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:683-765 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fa78a918ee2b2506851bff953cb3eb7fa6b51f57440dded30fdcf4f42bc042"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/models/transformers/transformer_ltx2.py:344-376 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:330-362 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47ecdd54a4b8b4dcf850e22a92008bd8a75871793365a394ed01ad1f267e9ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/models/embeddings.py:1829-1867 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:193-231 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"0833b08b8162c03ecd598c0eb4f63a29ee3d48712a0c02a93c1734c5cfd3a0c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:612-666 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ea3518889fc22c33874a1f2a9fb1a60e906dfceb2dc7214b6a971b9738bd9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:621-675 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4ba5630aad156710dc4c3a098df6cfbd2926f53630d8b677e8b59d280a4182"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7de8af57b7bcc7fa0fbd33507d89768d8ae72bf40efd19aa83b8f4786ce3c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd292e91f7d420c3d9e4fc28413174a4c5fa5fd6524103f90f425b9a6a8e956"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"5242a667abe7ec595213b9351fcf5e7350b28f7f7e925b118936a1160e8765be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:612-666 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3dbe4fd76e3d47d265e60a0f582ecd210631dda63553ebef22dd8952bb0dc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:621-675 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"80518fc5884ae6b96bd8b8ada129adfa308f5395e375a9580f5cc091e961f37a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1a0140d4b27615c9f4189a29a1d27f00e4a41bbeb728defc11839e21fb4e6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6d86ccd51e83cf7b5b2b87ae5ae8a4054f9e216df8945e593547a512d1fecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:612-666 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcedb5d594cc19fb55023dea2b97b493a1a4d8a2ff56c1a1b91100a6b0feb92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:621-675 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"5541885ebc1a7216c904ae9330bfd600c4022427e60cf785eb0782804de99957"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd724bd683b26a2471a9adc5e9af9fc0f57c7a893e1bbd57e16fb72ea9a1e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83eecb23b28632c7666e7ba2b9705d3fbeb1394b47a3beb5e8a1829a17d3ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"5554a19a0e8e4d29c3310a1576650ed924038a06c352ade45cedeb57a23f347e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a369ffc238d475823bf9412ed3b58f6f7fd6ea0adee8cd9b6a16bf3c262ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"58120fe330ee25dd56473cf61bb3ef6a4a4785ba9a1a4c26c2acca597ff79d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3119920c17d2a038044abaf6b211b56a45625ccb8939363d53ee489db998637"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dadaffc12b039d92795ae69f00658980cee677b93c434d9c633bc3f05f6932"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0a8a996b262d064c12dfcec68eb158a0b83354e729b998cbb2afde4d02e565"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73377950138c5ae69e558cc9c9732982b3483d208ac1794f622e4037ee183f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcac48dccb508289946d90018cd27cb21be5fd85b133e2806f86d589edc7cf98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"0548827a85600fcc4c5ffe56bdd9a56d9631987357ba92ec3c9ee008f4c1ca2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): examples/community/matryoshka.py:2313-2350 | src/diffusers/models/unets/unet_2d_condition.py:511-548 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2313}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce32c3636f5e6fca82b8ee939c45b08087839acd2897088cd9cd354ef98354f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): examples/community/matryoshka.py:2313-2350 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:430-826 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2313}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c1fa50994b683632e0673289e7c208f587fb4b3eb4a8e08ff6bfd4a3904f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/diffusers/models/unets/unet_2d_condition.py:511-548 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:430-826 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"4465cbe08cdab0617af4e7b0541e18f0e48fb0d89a9cbf2f4ffd80ea5be58d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"226251deb35d18bbbda509884a9b6858c6618cc814a7e88cff9f91d1d30ae2cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8f279973a2c2a6a750013f8e903ccdd59ef771a0bfeeb695d0fb65e7b3e6cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6882b1d8f57630ee167350fa8014b5f8ced00081b9688d24bcf00b562cea5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/modular_pipelines/qwenimage/encoders.py:106-141 | src/diffusers/modular_pipelines/qwenimage/encoders.py:154-196 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae848feb33ce5be356be6804a536bb75c83946579b7de0d84e9b9c32e9177879"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ea6f20c01177ee3cd24d61721371dc64c60a382f8eeb99849e3f05b229c71d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"56697172b08637afd2204fdb80f4a4eff310b09a9062f354e75f04260ae0edc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf06fba2242fb1839698eb453bd7011a429a1cdeb73a5af3bf088340474f13dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"519886fe4026a4853afd89efa44e522c5934b49284bf7b4fb622a400e92c6219"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f990567e1e3cae0ae992afc1645b76bbd76d50f57ddc5b993db32318504ee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfea4b17d0fb5498f8a52323e2635e13d33c5457361d73b321702b37e66dfe31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6ff424a67ca1c38b7b15fe19a35e9328f5cdc994e6734803e505b66cc8145c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"8756d5a0e79cb7aef3e547ddbd41bca0bc8c8705aba58c9c093ed2b3b1eda1f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"4662de33b045dc93664ae45ac5d5ce67da0b580b3490b2991fc1041c8316846d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4a9321f74c63feb25b452d36a0f32c067330cd0e159d4313896b3fcb915d3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c5fe12ce61da3fed5da19a927933b7e274a21218756833b064375f7f926709"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d72b328fc2a97fb7a77eca2f66b3398d1f8230c33a662fd3567dc48a3314221"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f9189893e3b8ca782bb7339434b4dd2651ba233059865bec402b2e6aa20d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f72b7a09b2f1ea7a37aa16ca5ab88d9bc44373121b7ccc4e4a3cd924582544"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/matryoshka.py:2313-2350 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:162-410 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2313}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f24e12f233399c7d34da453517f4703d5680ff64ef004e87733c86ea8f6e95c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/models/unets/unet_2d_condition.py:511-548 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:162-410 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f4fca7ce0c791d5d6f574e027900ae32af1204bf3702de769de4e465a8fd47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"702f99c137e58a32dccbe4bcc6be0a9168550b1aad8a4e5fa2d42494c111aa37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdc5474e6431937615b5b673b8499ce32279f049ccae9386fca85206a33dba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"8311010e0e5f8dfdbc6a9d2f9f831300cab63af424740a80bc18afbf69f90191"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \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":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3d92cfcd29419bb0a1c59c3112e2c8f8bfe25ae37539be6e801baa8e846a6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \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":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd910ba2d9d86f36cfd6f465f9a28f7bc5b7d03399c9fa099039f3f1b1c84850"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"32defc4cfae2b5a1d9457a77ed98d54ae94104a04fbf7615147020b66080feef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \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":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"e187046d19f9323c38f2609ecb22adefaa27a4308053255334249f47d96dc5c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \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":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"429d0a82b4c7424adab0fbe5af5161d3a08c069747cff9957b1a20111d1ee6bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \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":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cefa02fa92db478f66a5c4454922547b235711d2aabf10c3871d8d921ca9d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8efd496fee9c8b3ff3f487b1f71aa4fe53c18964977ec7b55ecfc4e8c8e1cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e40c477054b8233866cf3d27938cff107b9cc6c68a852be676ff2d793e2993e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"487b65e40ac7f1ecaea608d1e89270075a9d46b7d2ed8b9f054e0d6a1f8bab58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0577d0303d771e803401e28c4d6288423ab165e41af07978c95b1a4b500634"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe6f9658819a30c015177a0a41700f5afb04ce3d5a3898100060aab06e68c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"603720ac9ac440f50b17ba0df9238dbefd8c11cee0fe449511acee5685a09e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58aadc777ba93a8702bcdc4cfb1859755ede8b45a4c20c6ab17672b69c903e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcacb8c585161aca308e369ed741d25891a9648c01b3e87ab68449a4c21414a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03c914233d30b3279f74caf8337816bf0f1b094b3bda90dc6827d964cc8c7dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af7b33e2667030a8199bca51f73582d96247b548dcda4aaa1087eda3b85d12d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"73528efdf9d5bdca621db9b37d701cf804d470d860da07c39d52d31e194dd1fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/bria/pipeline_bria.py:281-319 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"2957d47a256573d14a039a30f2003c46c34458cbca7b3164dd568a6703e86502"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:491-554 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e58bea6c87ca6d9573458df2e2bbbcda0793169d661802361b1e2e92a166cc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): examples/community/matryoshka.py:2828-2859 | src/diffusers/models/unets/unet_2d_condition.py:945-976 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2828}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfe49c528f6c439a9c0d2a4f009d45f0b0821d413b173bed0f61ce467ad1d83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/bria/pipeline_bria.py:281-319 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"796568d8d809f59db374aca53b60fc5d8ad9d2daf819693c14173bac6f1b9082"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:491-554 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbf2757f03d2b6bcfd10ca37fa6b49f4627584739b53a67faeebf992e3163ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/bria/pipeline_bria.py:281-319 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"d481a9d41af3db3b77043bc27bb9e494c5b95897e7a97b84c91dea9d7e51685d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:491-554 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5f2dd0dc05cdcafcc41593edd7345cf3f56ec82872cb125ae52bfc9f2bb0e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5c9c7e734d127456bad26562b2911648404545a1c6c3b532d2416485423007"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"9863dd48fdd80f3e55624e7861f033b7d7ea32661bd54782d271351cb9af1ffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2eca6b478927fa4117f3ef3e0999f3a000b42f8e1ba83e4f096a368d66e550c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"87657192fb1c8f60b0219d432792b654c8c612a7a81675d7933c368cf948193b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f994e12265022a11c952b3d33bd2e71ace001b0ae690281f4fc51c035cdcb94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca673c23f4b7433dad98ce598a3c4f5d680ea08f1512fb893a39428abfbe5c0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff8a6593277726eee812061575d750bf65c28b64721bf781b80b88f7bb02a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"56aece7f7bbf2948cb4deb3f62dd219dbcc29b933b3ced7c728477c776080b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/bria/pipeline_bria.py:281-319 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf958d4d9b878ef238df8e324962ee8e356bcb0df37851716ae106a6c59523b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:491-554 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78a1bcabe1827c0d5a934c80858c1b9f14192cf7d6f2c37b9a9b41af237cb1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"502f4dc1e749c8c9a3d3e0fd00c5331d9f2262aba2caa04fdc66ab9a86176d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"e117f752a1ecfc7cea748d37a46a06763e477912f579bd3391410e899fcecdad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"4864f76d2414250e0d8eafb50928b9f37e9d14947f517d6ab56b3656f5733078"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"917a0add5705d1ff7750a020f9f7f912b2db5d955600dd8a9adfdec14b6ac0e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabc8f146aebd13d741bc6053bc0c90695ecf3cfc121f6f289a124c8cc0efb9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6bee6a92d14c84d27ab6e87b2e135d7530714e27cff4698b2678ec3f5ce934"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfe75b2c01cece48a2ba70c36d67d6bd15fc1bcc09e18f1823928db62fa0495"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d498fabaae0c02a886aa738ba58725cef6473fee2aa33a732e3afab8a461ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e408127460e1e10affe674da218b35eb3430ddec3248fcf8dc92d26f3b27a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"59553bbd39dc2b54cb7411254fa65e7cf081e4625e5ac981dd6df47392669ddf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d6d2a5f84a3c2168f3c6b3506f56b76acf69ca01b8b68a443e59b13ed85303"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"078595ad1f327bd43f15ff0b593f5dca96231e1e1e8c11a205abc55cc5f7a002"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa49311c00684537a6665197c68027caca13793b40b46e4dc0db9f8d29fe78a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"806a71fbc010fda75d758c1572101bc6bda931ffb7e2d213a62ef2b5e698e99c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"d282b4bae0c8346c44b5342bae105132f903238a7fe0611769ba3380445dce4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5598d550e00ebdd45b03fef6da3ca5e99bbb48d66470469df7709d06a567a42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a1e483e3f4744d1e90683541e40dc285368ecb483c863d1be67f39ed83edbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6851a98c9b51f36eaf0a36f2e795f65ced81d698697091d4b1dddab1394670"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b80ba4718af2c0a9274b942a3e327cefc3a20295fbf7df80e59fd6c0a61b022"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bca0b7ce43709b1694e3c13d0ecee02c0e8dc5c456282d7b52091fc1a846941"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"2358cada8e52bfdb129cca22bcd5e025e25d3c645228dc30709c78a5a8979ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffba4c3fad7338174eeb560a8f8ddecf3f2a7d02be1151437cb4fd716e2f6420"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ca685c83e5f6b27db75b64d36975f191c5b4e7ff51b8cb3d82ce0ea5aec009"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d7261f66d7fb6e25de0cac459e4ddc492d2e5aef20adc78238a053bb1a8bc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"32692b008ae23803bdaf945dbc394d82dbcdfbcab7ad59af1dda75b8d8367e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3acbdb4005c8029c799f0720b8210bef5a9ab97a0a7c3a2302ae68a94a6df1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"3faf24d516e4198155b6492e4cf6633abb614e69829be955612568a996860ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"abef0474575e70604890f99104df135de208a092d267d3b21d0ea716a83e63ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"4308042a602a20a5916b9d5d4c784f554f82dfcc7a3ccd0694e0eee57ba68ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7bc22ad3a03f07f6b9483ec889b8d2cc3e43784ec1af0a22fe78901d44503c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d120ef3f02cea2c4dde0e011bb0338bc947fce9fc0f7f8fd3bf1cf930ef2df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"125cc73b528300724b9e24498e1ad0534e93d7962406d2306dcbf8b098c0b95c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44b61f6558d2644c9a2e549f31c6b44078198d9ad8c0540d51ea89895867832"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"09888f787850eaee54728244d213dfd4b0a057a9954f6f1e494c5ad160f5e3a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f500bbb778fcc48a77d0e8be36c0db634395c5b5291218a53c98e13b870284"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"302b75d2c69606a475728d1355cca129c59464e0180c8fd57261f4a11fb81a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e11566375e282f8e59c47da2db7e492f00f5a03d06a67c3ffd8758bea83d130"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd63d74b71410a961cf782d39e722d2d1eb54959dcc55723e1db299d436ef7aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"1276ceb8fa4d04524f29c0fb9ec11007b210495396a4ed21a893d1d9e7c96b10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a9d1f927e446eab10a12597f3b5b73bf1794a29e450652786ec124fe24e85d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b6ad86491c77a5b966794d6dd710fbef62e56509ed36b021c7a4c4b1c10a2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca5bfdaa8af26259f3a83bd69baebee2f4d786d87c5756338b41948ccaf6317"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea8e286fe6e73fcd27d6fccd2297eb7d3c23320c31078fa092e09b64259b1c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51a4c5a1528de09c66777edda73a950a16c885e312833df81e0b2215d20006c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a11c12a98e2e25670fad24d2b8ca14536c03efe825c27751cb0795dee52472c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60d616c0ebc28df7836c70d0421e0926a490b373eb738c69b3749032ddf890a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdaa72fd8dd4319842d889d21f0b9cfd79715dbd0c4b176206521e6d6626a008"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"19667747f4e4597789895e67b4b6885f5d193170d55057461bc5721b5c0f9783"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:466-515 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab425068a67413e628f65b11dcf3e1e087f1d04e731efb43d3e5551c3a6bde6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0350fc33f3fed77d04fcd268ea88ac90ec9190d347efbe9dc62b12f4e6f9c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"64896efc8aafe6015f5246a9ea44bb93186aba02f37dfd9ae27286725749707f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/latte/pipeline_latte.py:383-422 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"343387f566a6e01ecfa3975e2a03002b87ca040e69dc08ee94b4d877d960542b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4825c9d2ec438bb1a820ac917376f3d6c6c395ed69f3292dc0ac2a3fc2f31a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc59ba9881adb4bd6426a491c2b7862a68e4a7ff0a56b269521b1157093dea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/latte/pipeline_latte.py:383-422 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba5746e2a9953cf3a21516b2e94080a0548aeb1e6df1249361e65d2236ffa48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ceabcb8021551d71568372f77444f6b1af224f6661725c322c2d20c13313d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cabadb1db149541953588602fa4f8d4310c0217c9f053c04b76a5ada7b384f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/latte/pipeline_latte.py:383-422 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"87153e75db18749ad624b0018b23c020ac704d1a4699aebbd2665d8b028d8394"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a10a27f97a0e803662e3487195ae8616e2d96275dde22831008d25bb6ceb181"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbaca6cb64357c99cf0e9cab902a3368ee0c552f94f838c406a7f27b6b3f8041"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/latte/pipeline_latte.py:383-422 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e8f16bcb9a00652f1f4c25d15c7a96e020224d7346d8851c2f20edafe0f85d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/latte/pipeline_latte.py:383-422 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"681fe5fad9c872bd26b8d552244c43a220253ed9972c8658f1b1c9849e3c479a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/latte/pipeline_latte.py:383-422 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"4204b6d52255f2c9aa467c6b4dd7742c2b5bcd6f1127da72c67e1dfcfdf04041"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9332f1ee80ff294b05448b99f41ecd3750a7c92bbbfb587a7bff798ea299626"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c4ed3756f6bd0a6747337507a7daae058345c6bbf57d7408bc9812522bd3f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"3953b4152205345e4493dcbb9b4296d02cc85459d0102852d2f519f0bae32133"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a119daf0953b6ac17c6e2a1915ab954e251cfe40b287d7efb8bef17999d5ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:977-1042 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f921c802a9641dfb7cec01a9784fabaaf5396b93997c4424bc12f54000f542"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"675336799b8531a2a30e98af66b8250c533fd258c4fbc558592cbadc603b8a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"457c9435b68af832a888edc0ed0ea69f65efc1b0ee24dbb21f701672974a0594"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeca95a00345bc4ae568a5bd0f7d3c65e298072007a2b39b17cdab0be7e2ed80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc4778cd288ad17968cd7e62d49ba079981ab118e3b148e6b9094dde06be2fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"91220e1946aa14a9893eedf7e9909b7e8821d6ae56e7b2ab53d5fe52f065cc40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"401970e04f71c89369d3aa5446eb841aacceceffe6313b7a3a2047c602ba742c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2cc194233315e46f3fcf16d7882fe6b3fe869f4e7bbdf57f7132e643fcee2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb062fca9221a830ebbe8f7b54ab321689f3c87e9fd9c392cf2101604ea1bed6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"88aaf216f24408e1efa061ae6edf342565128a25cc522f9c824ba8163bcdec8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"298e267b14573d13129e27516e7eb6b28db82394d53edf14beab110dc2c0d373"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ecb1b7df20056c683040c1a0bd7008d09835d695bf1ac0527345fffaa1ee3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb13c382e151fdb9f1d46cbb57d60d617c01788984b100543770e4a091507aa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"996f7f1db340d02da2871b6e50c422aefb4a202c41b0d3a509c5fe43b0317aed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"7188b4ae1e3fa8ab6bd8e071d3e231a75d1799b1dfda343e010790ed8f50d0be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"d688f0455a583f3fa12d65ed741246035b3dee18097caa0d2659e5a598c94f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"535106312747c5f73ec4da60873f65d816c7c7fd007da7798711b0348e1eb4ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb47f34112e3dfd56068fb3149ad545eaee4252bcfe9bf599fa124449832f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"375aa4b0aa1a19397f2b03dd200f9b3969299b1d5ff670dc05358cb293a2f4f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9eb625d68cacbd7caa757219b611a5153143e1de26c4d99d459337932c32e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3184d651ed35c0741d37a165575c28d92914158444b3e0ab28c6447e4fe33d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb97b6639e4efe03944a651e137ed57ec60bca15f57f5dc9ae5df22986042ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"366465a604bb513234284b30fcc89e1c4c9054bc1d51431aca2fb12c91e481d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa6e810fe02a19fed88e42e911eca14fdd491eb60c84fb93d0680a3be21650a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"49011b8fc06ab99b5aa3f81b155b27720abb0eb3e6d655a96450e43e673f4e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"9727b4f0d624ee6e26d9391ab8305d92b39554a933623b7bf4df78303acda7e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0733903918a3f2c16e69388d05e0097a6dc934e64012e621bf0a97a199b1f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8aeabaee607e40f13103d12807da1bd8640a764e0bd3d8ebc27fa57f7446b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e06bfd9576d6b44c43fc06583f2311810ae4f82cdadc9e2f620a51eb80a91e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:410-433 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:574-597 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"794eddd5920a451f6b575dcfa4dee17afc05daa1ee0a91a7f1596b5a8e7a5d6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3186b3e93b98428d90c6f6c5684d41d0a7e77f4a1a763247c64b4340f557e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2035ebfd4e116f25692af069e33cab30425f58ec4c9a484b3271c369cdd1d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"032fe9e5659a34812c487cc5ba40d4549956f9181fc78920bd4e317b48a57983"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6575a161bb8bb530a7c54c28c8861ba10b0050b78e5bde223fe375819a4d1b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b116442e6a826f7d8308fe6027aeefd01e9dd606072627fc2b23874f00e6f8cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"45273df0b29f8fef2340f34d49d57b7917183508059a88a0a32217dd9fcef74f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2644b79d436d0fc78b429a72871ab032e221ad65ad82cf48f2791278e8c0ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c630b4a294b7677cfb3d899875b0e87d988bb21ee20cbfd8437c91851f6048"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e7ce451ee28946f57e4460e89e2159faba3fe2baeeb7cbff27a885b550174d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a95af771ff3a4ca6c650f8a08a8a6e3b493a7f414eebab62fec943dcef63ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:466-515 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c357c7c86e1479d93af451a67f2e5ade9679eaba4be9294ca604602601578bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"5054ca737a36bbd82a508c0302fb122e29acabe1cfde30df7cf1164637df05f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b5f264956ecb54a90720505572643ec4a04ca928adef0d2bc3907de75cb955"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:612-666 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd1ad8f970068a0a8e2a28ba4378c1a0b01528d9e1466f21a696c973e54957f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:621-675 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c2c2023974b517ef18bdb7acf669cecc56c8f39a461891e54ec5460bbd6689"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d88fe898308a0c657734b7e02a7ce6e25983c69c108c1e75e405d83631b94ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8cc995926884ced780dea112ff71e4849256009564fc183785426f4ea552fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fca4f53920d45e29facdf9ea560077055faa9664e70f6af75c3990cd6d94e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a4f1364b068c3ccca2b986e95d2ad755164c19b03cd253c432f53ad2a61333"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb479543b97efe285484be84511a2667aa98b64820471d46f1cacd6f9d97312"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b77fe8c7e4d3c47f85a02a4193e34181382938503e21d906b2eb7743d80e530"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cc24c06c3daa131e7e517e3e2b3082e90b8917748d90723e92c583adcbdc5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"d576807cf82952544952031dd1cee5bc17ec636ec166926c37ec3e06194cab8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"592e3fe7da01e1f8c1ecb794b5e82b8d96d838aafdc578ab7fd7e913128c7c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57ea46436d2319ac2035f5ada5e25ba07a6241f0d0d71420f3022771c5d43cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fc6157cbf32e6505d1d88088d5eb1b582a5a44c3fb00ec2ac800c6c90dfddf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"39aa72b63a7187a3cbcea7d2a5dc59bca608e0b4d4a301bfe0b307b1ab154d16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/kolors/pipeline_kolors.py:468-536 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adb4257822e77eb2f43620196b2b0c956c7940593770dc8ab9b6046fc299e55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:489-560 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ff974bf77571c6642e632ed66cd14cb58915c6f10074008d92d559e3f7c949"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:486-554 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fabf17f7084b120f2e427a2c098ed9120782ab9404b88f889386e922b643f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d683a53ac0f3bc6734dd5738131712306f66cf9b70085fd6fdc0dd0e1f7872"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"368862aead283995b7be21fc6a4f558a82163adb5a221071d7ed61f1a0a4bef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"0610556e36000d12519ee41a5607642041978524e3366124caa92c72da4e1bdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"822279b1a1b264989465e630253c6702e04bd94200edb53f121eb35aca9063fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff139031c398d302b135aeeeb6be560b135c83b0b69e0e48ec83e273caf8066"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de65118fd21da57120f51f90daf36b218da2da8a5121d9db00b8f12f3cd511a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47d6f479f2545e6aef3eb048a961372d88f9da7d203de0b7e11c872eaed8870"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c184225aec302f4b9ea838a9ca55a5ac34858e717ba58c38c14b2d94718e62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5967b32975d79d4700b1ee2228d5962a314ae88252833ab77d734375ac2279d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8678fbf5092c6b451490de0eb61618636f9e14cea5c451792a574f198e3315"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/latte/pipeline_latte.py:383-422 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeeaa114ea8766438b77ea3b58f0e892f359e4d899559586ac501374581ccedc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5936788454efd0a531c611adeb879b91413c1f0c32a6d084b6795ec60b184fac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbd63a1ac7eb6bf395e6ce4741bfb914583094048e723d17ffc4b83d7dfe6f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81cae03bbd90d61a45173d5307ffb2bc0b7c131c20deb60dc8fbbe04ffa9eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bc922035cb84ed90347df22091d853d9d0a328a1864d443e56f834b8b0ae17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e1a00577100e80f9efe5ad015e0a3367878a64283fbec18b2dad86dbf0ee8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad96dee93e83909d59a3fbd1f4bf0e960e7d7d912874a29beab60a87ff87e1d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24a552520a28a8d84881e141596132fd9385df7ee193f30f076d6c9d6df4d1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5811378d720cd190d0bcf81bd44b2cb01446ec8a3588cd580e86544f0a1e0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"d715db7b6d095185aaeb25a38a5d0c768ac8255ea2cf9d9520bbe37006dd75a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19abc0fca17c3af28843f488ca3990521ea73f61a9a486241f218878ce5abaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"c704b0296d15e977923eaa8206b81218b1f690bb699f27f87649e7b789576991"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"836e1e688eccc0f9e5b3d342e11e639aa322a7065c938ff25c0e2c54b11eb56a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"120d75c2e9c5e407d19fef4b9798a59fb1e8164e54bd8e15771920fe3d91f7ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44266fc759d72d8273f2f87742212f9b976c269ee9ce82fd2d9b5dd13fd4555"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8502c32f6f6797781dd61246c8c0649a6fe9ed427809f5b75ffd512b51c2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"24da5f7e0c945550a4c27d1c182b69b4e0426e38aaff55e1a769a0db2fc07600"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19b54f69d9ff07ab4476d3c9e7c4023482bf0d01585352306390247becc378d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a470464070af4b55db033ff259406983e6c08b2650054786ebd2f837c54af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:612-666 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1d71dec5a2d08d7d0e09e9c8c3c544f379be2f4a8c75a1e634331c26008a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:621-675 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"2148f28c766e08802af4b877275abbeb5db708760ab35c4491412ab0fe641ffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"24aeb8fae4fddad5562edc062cf7ad5d703260a83e2c069008a0df839f375e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"de44531d4ede8f848ddf61cc0c248f63d01a4960b0b1ac9c6acbcefb8e0df578"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"f432e30b1aee112ae5a84278fd0d6ac2874bf4fedd679a311b187b5d8fa4b206"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae646dec6bf50722982c4a050c4ddf17429473f57e0e067d93dbacde7100ad3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"5967adb7b6ac787550039426e64323ef1e50ff69557b54ab790493fa99f547cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"afba598b850492a22885f9bf0f25b8bed99aea0218b3e9d62785a768ad7d1843"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b0702bb662e87748ad83308952d448b5a1ceabe2b215eb744d8b4b6ba6531c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"1233db1558cfd852f2e1e4531c98fa975a59180e3e7d1cbd99f00632a397ec2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ffde660915d1095c6550192a6c44c968fc55f332170c9724b0befdeffdca29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:640-717 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90e5f1a7b4884afa511381f1af2d8eb6043545291d12f775613ca31de56f775"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:680-762 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07721257cf5e1569679538d998cebca84aa7467a3667eae5c0e2b7c8eeb820f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7cc158a346dae0db53f5af1a8f3ff7a67a51ffe14c68c8faa19998795e778a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:629-706 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ca535c2c947d871e1ad5fb29d783078c56edbd79b53caeb3e9db05b6599590"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:683-765 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a6fb5c53a50a904086fe961b775fc7fa1c25bed81d7bac2078e1eabf573885"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:658-735 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e7d8c35de49e20cac9246461fd6fc14bc628b1e210393ebfb2c51a385fc6d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"49baf216234088311259de17ddda8d83f4c8886d59eeb2eb714ac60b9ac1c3a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a368b2ebef59901999a5eb3a20c6073dcf4d12b17aafea189e8d9075b7bc6c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:470-520 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d305de3aa5b3a05b9704d5c6eeb835324b498670012a9a3844b0b8193de98a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:508-550 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"599aae5b7540aa873cbe25132bddabf0760bd743783ac0cc9337d5f3459e759e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a18a8bc71db8d8321043568fe842bfb98f3d6d4f0293e4b9f4f3a7d6f385a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5bc7fcaf4a06d830a7c7d27929fc9150de58407c9bb21d7cd5aedf9ab12529"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafa75ba2d2c9fd0c6e00b101cca8a23a4dce39431e4ba8613e88e78fccc5abc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:672-847 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dab07d6a0f6b3036977fdcfdc433fe25b4a79e856dc7e9c85fc7ef6f45ccfb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:661-810 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be51b642813790cfcffdc7b2b5f365c50d7d8619eb28a9536e79cec6d3c7f07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:641-788 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"5850159c2209522e1784d69744f4ad05f6bb51b6d4c7b68906d8c13326974d3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux/pipeline_flux.py:453-505 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aef8b9c6bad6653b64fcf929ea965ba7d1d71e79027541187cab3eba967ff03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1ee7a7f12e3bf0cc0e17fed265ff851227d23c5578655dfef9d6e44325700b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed10e7adcd2bbcc3624ef4ddf309cb48cd34fd97605705e25692bf7b11621ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d64431cfc479ecd91def07cb9a94fcd92508e44f4d27c641d01102fa7c290b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed532902f3dad3019e890ca21d3966747646b0012363c7a4e7ddf804127550a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec8662db91515482064409b5f71d2b63d73d86b3ee2771500542d40350ec32d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:471-524 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55c19182f81d4a956aa5cef5ddca7fb0f659e77f3a029f4d38e568f6ca4e5b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"efce1003092687f5d1e98c3f7b242c91aa8d6360d5dc5b353ee90d6ce96d78d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"7924a394ff7060b9aa2b7b3777e204ca899423107f80f422fef0c05a6367d487"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20fafe30c8c7472841471b86cf28019721d59522ae92700aecdfc91a648ac84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:504-556 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe4c3a4256b459109488d7b0a1968a2958c769d91a030d9268f1acd07208295"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"663e377716ce557dd7586719b52b671aa3c74b3eafd5a768f5c2866aafa65a94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb94056e925f681a410be5dbf2d51b50f75bf0cfd75df9ff3c97e867f398e74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af49a3afeb32ce06b05ef7844d305a102a2ef34771397ff919481d177a20510"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:546-623 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f931f865e22640c66f01bfd3f3d83835300155ab957c6ab7be0ef2704e2eaa8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4199efb8e15b632c649e02adaefdb8d41f85e0cbedf204fda7e6942c111adc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-631 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f53e8a3e1b7c557b2eef93478ae163226b9126f8a894ffdef074c28a02beaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"157d3723a9977809d4e016d60fc72294cc3ba9f90b0e608125f84d71a8b2ebd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2faf40c82100b1d2225c964bdca9e85da14c2bfe92971f812069146cf109ebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"af03add9675fa4624f6c9b9040f1ce0c01104eeeffd6d4a206856d16ca2827c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffd7c9f2b8b20133bf2e26d127803084221dec5157821718dab5a82a4d68f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:672-847 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc86f14222ed2d56f8ec387a3582d55745c221171b7cfd28f9e35cada36df5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:661-810 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01f29e986c248e413829c27ee0f03a6fe02d00bb2b379d06ee6d961cec0fb49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:641-788 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"21281319b9e50264142c6928a54e07449a4014225bc4a9772b66fa68b3681a23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux/pipeline_flux.py:453-505 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"79874a3a8bf60993bde6c020d771b6f715dcf6723bf3162f784430f79c970d13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1b70eb288f6efa68b090e4191da930f4c8018276ce1c5bd54f5575b6d69a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"015b00f098d846711b6816eb0901a9463ceb4dfff146685757c5b0cf33c65ec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"af459873aac4a8d2959a81d7578f25b6e34ace2016b2680132f2069709f3ff36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde56a30a5c5924d6709e9f9e898db69a58649da8ff5aebca79054249a549b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5819f93547a6423960bef23885fa98b9b1fd188df3abe6f1355a893eaab731b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:471-524 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ddbc0844b6b18e465a4fcde878d5474b7e807bcd44c1fae999f828487ef9e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf88bd2f3ac397722ac78840d7607d90ad0be0b16a01ae5aafe9d4e5ba863be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"248b489432051a1dc783d64a321af99503aff7db8e5a6acfdf0936078016095d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab26a89c1a7c0012c952f3d5d8f0f969732f8ddbb4e55ddb14bede961d0ec630"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:504-556 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5b7c34acef4b4d1a2f92945b0b237c7f3c0cec784b971d2d8bc59fdc4f7d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d254d3f9e1a6965defd63eb89aa316f9448bf35d52aa1b3c14a7e16e877011"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24f97563d3c83717ec39d42b5560bb944e0a4e92bcf8d61cf8e74b4f2683bca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"487a6b2b0ef95ddfe2a3b2ab6cc5496c1f37b9b07f94c83d2bcc9849a20aa060"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:546-623 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"7218707ab46f88ad04b0490d4327b13f28c8ca526ad19033bb3a1a2d8b4fe2b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:563-643 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c611168711ab34ebdbf33b50be0b1f603a571383a5643332b4bd45512b0e1af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bdbe1008f5779673f14aa22ea20412264a443b3ccbe3fbc9e4966c0dc48ba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-631 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0b64b9e1b2c917b248433a645856d5ed6e4bd6bafbc4d502a484d9768d1baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:581-661 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3aa3e27a60a8e15cacdb301dfb74d333de396da3dde4ead5fe9bb6ef6e39246"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:588-668 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5dbaaa15293e629ba457e11b3766f65fad8b6582f31bd05a019eb0956fcfe26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bffc584a83d728db298ecae05a0c7deff89ea9456774f50b9015fcd515d6345"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:563-643 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfffa217c119ed62e8b507ab8c85c6d6c288fd2e93effa9b8c65dcb27951abe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:581-661 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6bb63788e4e1c2403e45af57c25ccb13e161369e5c2a3ad62c636284250027"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:588-668 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed52a93f6596e3087bbd95d2d1e5a890112bc84c61a09050e6c174eba02f5faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5dc6f8977960b1ed9c774e939d716ac90333fd887dc66e7450e11f66d0ccb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac64f79742d0214412d3b3e4f90dc2f175f2b85b3256ac3bd67c53f4078de22f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3ebd6758007ae18723ff59350fc5a41452658ac132074c1869a5bbdd8ad2a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"6697dbf6fa046534cb51e6a9ff212df46bb7e14281f8a777a3f4f2604ccf727b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33cf94f7c841bdae2a11abda979a8b773472197952e7904d4d778d73aaa1941"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:677-830 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"432124dc20cd4751913716c8097e9a6d38271de520add65b0076706d3257ab5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"7410d8ec72d213ae28f5c27763d16b1f6b5090ace29f2d0cf88efccacfc08882"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:677-830 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8578fb8580ee428d770f97173b3500758c954d33b28ba3cdbd7cce3f2a6e9c90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"821be81245348b1a7cc954e89b4a7bff89fde40c228146e968137e75b87fc118"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6240a48cbb64c6e47b8cb450eb5273fe45ace2cf91a1546b1cdc49ab8843057"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfb81bfa483a62e17ad8949ed29985e2bab0f38f1036c4d08d82709ce4f0fb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:612-768 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"779622727ae2e564f696b80140cc27089bb22d2b173b8adb1378e9cdb393ebba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"2760032f8280e456b535b0793d6047d7f1d890ad20423843d15afc8636a22795"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"e424e80e693b9f4fb341d9fa09caed2ee64444597df72955e14fd5d611141822"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e35e7ec616aea63d1a241ec3d6c354e3704dc8d904f4f23c2f62387393d7177"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2aab1b8f28789183c7731287e3db604e74997b70fce04dc74f6dd20fa4566b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"376472460817464f12180da2f78cc52e4e30484bfe02ea9f8e070a2fcc97ca4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4489dc9b37ce682996929ef89687067227cc4e116b183a3d6fe304852bd1f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a70619e2a56796ba524695698939f15d573e00823b56386f1aee10155442286"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc7d358786d4d330aaa8c6156e30b270feb7a685dc53ec8bb307bbb31e6d448"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"5246eed24ba2584e2dcbf2b32f5bdf6a59a4c97109f0547337407ecbe09edf6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3622b15494f34b98346ac31b7005cf79bee52f6434aa438eb6f6630321723f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad3e35756bac250a47591e316778dcf9e9a445a83c893ea3302e6f604f7ec4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99ae42029b4ce6deef7945c49dc0a490c098125f33a43ca296b3481b625e0c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e954b5a3c4837bbcd85b6fd23d03f6a9f4e0842de6a0ee5fddf15f03596c2841"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"489f6e59b708303c18bc1bc44ee95e12734a3231f86d780325815b457bd72fde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f6d8e05083b581d3dee17b81f5ec019e817927e53376221216c72b7a05c0e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6493227aae06971a59904178d9f993456ef4ef2f29541ccba17ebc0dd53e17a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a94d1552d0ba897d722439bc3c2fcc86b4a26b21c1a3422693ae516e898304c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec212f2590d6c9aa87f31a038f3391f7e93a22e11e3cce0dc321b32c5e8c48e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e9b9f58b8891c86418a9ffc98a08a641ed11e47fd7863156d836a48c429c67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb76b002dea0ae54856b31b57e69415a0e6ac7bf6625fbb69377a30a42fc044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"074874138e85ec6459b4bc0e77426aa6acc03dca003face6141264749ed5f89f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b230ef690dc476b1789b70ef13e46bf5cb576da481022f26cd00ac73246b647"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcff1b2ab9d67f2f4fbb1d181e8ea7f9040020bf7ff71a8283da32b9dc77b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"80aa23290d089e8d7ccaaa6a532773cfa05e57c949965867ff00773f592e9ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45712341722f3ffff46d1363423391e72b3eae836ec46daaee3a6e95453b95c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1a8e7f83c7c2897d770f52a7be31461435914e4929109e7f8ddd433d68e351"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"9818d37cb60a85f8e4a0ad104a82206fd35965ad8eeb88e8dfac78b8a831fde3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d02520ab5c873cbbd0b943aaa4d4d0dd29978339444d6563924cd895e1681c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bafccab0746a7d7d86a23c925b5b34509f6420684fcaefb0e5d944e0f1ab35f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f8a82d0e99e29ccd404a05e55ce719669069d0e0a5998fe8198087e7110389"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"d075156738e581137cc432b8d5050847a7626e05386c73284e8e509b0b1c0298"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"835423b8fa75ad3927378fd74af19c89e3ce6e6884029a87732d7c9264a376e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/gluegen.py:473-500 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:413-450 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"adeac50ebcc2aa967412907fea62831e7554993413b7455a29d0f4f6566c2856"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/flux/pipeline_flux_fill.py:213-241 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:209-239 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_fill.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3706ccd9843dc0a39195705234d548d94a87a94549567eb1a3268963d9a03038"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/chroma/pipeline_chroma.py:430-469 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a294b01466c8c308bed356bd1f0805b894f965a2223e475a61a558cb653c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:459-501 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cba519e0e27afc5fcadb9b167889bba7a55081199ab7d20e0d37ad3326e3e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ec958efab1befca7488d488ab6396e26f211c251624948eb261ed3cb063843"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7f1d6c1238cee5e9b70ba2fc306d0bafd8300938117a8059cc218b534437f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d140d0c756ea50f985f21fb567d13c9c2250b113099f69bc9df7e1f9c13c222"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1104a958470779cac5733c782ace5fd0ad2ea7956014de6de7489aa2cad740b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb5f3043b68e39b14c4ddc987bd715bb9adb869659930bbea1e9daf2e02f5d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"95deeec4a709a2840d04e417ec701956b3dbe42ae5c99b659793a14620776282"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97c598e175a3f9615beb64c99b87fb176a1078ccd6e42cc541ab5da086651f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09e245d82243a5662fb635c80423c9625b43634cd41d99cfd7bbf43963bbac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc2d8ce9b2eac0121904a765ed073c0805597d8db885f8278492ef7e83329a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdd5d350ce9ef2ed2a4b4b1e3b2e8199292d7cadcef0337b92b81c7b9ee7403"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79d3cda70686457d008026d1c8294cc26601636b404667e0b4fd6dd5cf6ddcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5b6ef3d6e881b45374a22e3b91fc85b8aa9e80e8f1a72411676a79b1cae410"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cb2b1f746f3be8bfaf3bf4ef66e737bf89132a471f8f02e07c503ef6320a7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c68e364111005ff250182c8e57db77c9396930e1d89f1b65243ab5d15222b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ee9a5423622218c44e7a7071ce9254adc77fc244a9d725ff2759b6d40a4808"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a15564cd66376afe78f70f316baea06a72507765bf8db0a3d8d8953ad29aa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"c308c97a2941e1bef41caf82becaf4ee6ba25eeadd2306351d1ca602a2e1430f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6c4408d94fc36bf2409f37cbcd301d2cb33c5fa88b32abdee32a70a9625ccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"400419a650b417c75f64a255966a63eea1466815f5d9da2463d656215737c962"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"3069cea3ff118df6ac8d50c03245eaab0da031c500f03d006b66290f1ab3b0c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"a017e90255ecaad3fd0a8f424c7098d1976f785a45eb637e022fd73f01bfb3a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaef36ca5102481886e22fe31f0e467903f6eb44fa9b274e51d5cadeea39833"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2dae69ce1c6e9aade5e95db9d1da4734f107115141f440b318c7ab1ba2b0bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc2fde432ecc823fc6dbb07b102499c331fbec2e43fb584c87f9648b7ce0c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15eafef928156f80d1be364d889493d62443d43f7c9907c2ed9efca8c5ba05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c448600892fecfe7ee11e79fe56ec8306e43ae03a574316a970b070bf03a9f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83df5273af8e41847fc2a472741025b1536342a1d0022719625e0461e5736f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"7137a79b1a1011200796ab05fbc3dd7b29a6cb97a39a3f4b274f2d1878748225"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b841827751bbe5742010991bcbb9cc467369aa6c05fe4b79c51ee8dda59f498f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bea88ea1c035c5d64816e371add2f33c6bd56eb40f0f392cac1cc160223b6f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9609f821679b18d6dee67408033ac1db21d0392541fd85052ddb219b86796b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac47bcec5b8260988b86c04ea56c192a0434d3bdf349c047266d2f559afa323"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"7956fb056eec52c06fe2b491ad9526c36258005eacadec6b63e699f895218d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9fda92b87132dd87154fe5f4b0600078c23e386aa14e1e3332b35c67becb2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6155bf5c8a3e7342b6ec9116b57335b536072a430a4e1ec52ab9aecb13c498"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:421-450 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:673-727 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e9bead12fbe606b1971eb72ca2b275cb10c2a9ca140e0ba2c50de6bf2fe888"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"1058d581df06e92e7262fcd5f0769bae492bea3604e0f2cc41076d14e1cc53f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc12c4eb0fb56e57e30c4b37f801e0c4e6bfb497c7a48842ed65762e1dfa5a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f480537bdccc87c9a302a7ee3b6fd3f15201fc3ecf4474ab834f7fa7d6fb0aab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8bd814d8b5f6c6f37691eb54de9685b3fe84139dc02fa38884951f5d0a0db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"500da4675420d11cdf35ffe9a0698988aff473284509a01ffbfdf83418b2bbe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"502e913fbf6a5c68acfdc7f23cde79de1b9132adb3248ff6fd27f434d90908de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d45af704df9321f9db6470b85ce822a70c603d97fe3e27c6e09560556579ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d9adaf72bfdfdd97d2631994ef6238564943e26a8f4edfa33b1e62de03ed1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"852cbcd017e08f9ffe69a07c519b8959473d7d0f43fa955194e891064a01a204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d19e6a00362707100b30dea5b1cff3dcaa0626b079bdd65310c7d0e08fce8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c4e7da6c26648ac575a26e9f8bb3e6dbc1bffff64aa46ebf18fc422b4028f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b96052f2644b41a0ba77cf48663ffb62d62cbf6da114470cfa60ec65ea33ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:364-416 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"067468e363b0ebc59acf86a277c80bafea5f5b5ebba98304b5e82f3c8d02d135"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ddfd06272ac9151b7a8072432022e6a2a421b72c78fdd6602e6f919a3055ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/sana/pipeline_sana.py:440-492 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d492b132920b95d50306cd1d9128d5da0f8ad431df1c4691d575678c5d1eeb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:455-507 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a8abe7aa082c9db624bf7271a0567fb8c7ffc19e6ec3cbb4cba09328f0b7d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:463-515 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0fb5dba8c7712ff5a6a537afa18b39606e31fd932e1d76d750c05be92d1c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-872 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"6161d8a96836fc3fd609fd82ebdc763986ee1347b617085e8fc2637625bcb0f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-819 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef3e989c4e4bcbdd6020880096b3a9f4824dc58ecc69f78960c3150d752edc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:672-847 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38d8a517bcb10423577d235e5c0c74647992b9c0dbaa6a43ad6dfc6bea6b764"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:661-810 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5911250f3da3961302530bc5c5b81a2eb2d0ffc85447125c97231bcf953f11d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba878381ac8353228738d70e743e5a6a29ddf9a9415a54d1215c1ddb9d4f6b45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27fefcbc05a9639f74af9faca9d48e30e7d2db3e2b8f1ea6782ba6c6dbea606"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"12cf2bae37b85a03e73b2e012c5b0b8fb0b98074bd75502fc96baf30534ea97b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e507d0877de31c87e24cb9efaa4848bbf9355588fe608e92cd950444f702f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"0974d7a506f0cfc86f6a5a448a10a63d588582a5425c1dc1efe12d242aa3c2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8f1e887b7199d39e2b76606fef5100e9789b8a3ddb2aba20cba878c8e540a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69025e55a67e04f93af58aa03cc7f43b389d89779f8384096cfb902b39a35f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ff52ce789d0af08d27abae38b7cbc0a21c543fe10b9afd3228812750d59b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd21a0cf1bdd7f3c7afa57d7a7518a7915167ef251e80975f85abab61b880c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1c7502280fe656206ae2c0c2b525f84938388dad1629e7f281caaa7a7196f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc55a55f69ca22d62bdf5f09d4df186b5435531a8a669f0f53da451da2c86e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"558c5e49ffe168746d2579af6f359e58883c335abb51526990c1832ac20eb429"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"9334510544fb884c919936a6bf59adccf44ffc47b73b3ab00966d45b86bc4684"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc88331b63f0d89142d8bdbc100787e94222beef488789bd7d4d1057531b1261"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"4284a21af9f59f3bca0ed2df5eadaf45f500bff92b797462cf6627babbb4fac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"efedb0ebea6b648c03bd056d0f6a2963652bc481fb84346b5954bfaade55178e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"5455dc6c5bea53f85212e1a68b7f3e46f755c2c853d891e4dabd37f901db0f10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6564efa08f9fee65c9620333a22a7507ff1eef4f4de0243354343c9948a47b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cae472363e03a97d0951569bf0d02bc293faee610dc94d8ee4b37927d0b15b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9df0682bce2b07b5d9868207fce01d6da658baa3d442a5c58f0ce3273db68c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad92e24d33d21a87ab6ca829064d0fbdf7c5e5a8600d6ff7787f51a6742ae39f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"231cc55ebc382467d55907b2efbeba3c7a051b642f25a89996356e88fe545731"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"107323ffe2022c3f7843060f42e3b643a14e8c9404133769a66b249cc691555a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5ba92c6609ae76a58d1e108f779590fd77e4110d10c892f6c956899579544a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d3c39678173bff75c288331050f7c678f2c715ec3b9225b0ee6295a7c4d3b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c935c242caa8d343e12d2a50806d72780c1b3579f974b6dad78fcffe68fb26d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f057bafb9540013e2b4b342cc1ddd77797c18fe181b0e8240043ad57f6a3ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"694f6c05a6399ad18e39c23933011db6b9a358456132cceabb29073ae075e504"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9152785618844b122550c916edbdf0f940b285bdd5bd5eaaa79317b5873fb146"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"a380412b73260dee519e09ccf5eac1e1f32763f41cf727bbce2a1e8746f1d47f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f3293809b91264ed4b41dd242e0f023993429bbd3f4534b91a1cb719e23557"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/chroma/pipeline_chroma.py:430-469 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba61d4d24bf3b9e42d8360503e6a91bc3981ac4e51a8a40dd456052ee058ca99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:459-501 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb9f3565f64ff6b5d9c5525bf009715994dd5c68d996dd0f274fa5cbee61bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a897f0f22843dc2b8a666af7cf52443564901d9ac7ed335af97ec82ca56b508"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"627d9d3a98f034f17d98590dbfc3288052c377ccb1753574730ea10c0773617c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"608fdfaaa4e3d8e11089514748b8e67a453fb35f057f6958322f6e0734903aa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d382c74215639e6f45882fbbcb7d9ceaf00e6ae7a8d8ac83187748d62f39d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"1893e2b9516e75d836ac67f5cb01f7956292687447ca1e6ef82c75cfb3cb6c1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d71ff6bed5b917cd6c38af09f1adec851ea7384872b033ab5dc9fde4ba7f714"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d6d244d6dba07f247f6c8ac832630d886b208711f083e9e9e8ebb03b27b09e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c78cb31636dfb6280f0da29dc6b2851ddfa1b7b76319e43485d8efaab9696d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fd2727d564c01c8a7dbbe4618a85896289adef98c89091256a7e0ac3767cee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e535bfa9448e2f5a89e2d7702e68353049cc8632da8a5cdf0fb450c00c6c8b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-815 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0eb724644667ba442cddc8bd36ec5583a9c62805cf67065214be7cb93c9b2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"9848e16a8830ff345e84127d990c8b41840a2663ac5df8f5ac91d0e90a0d8f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7b5f780effb15429e9cbd17de4ef78e91949c883fd5d8048b80265082ef814"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0c9207edfce0c231db4ad161f6738fbeb9f8a28d78d3a1ea0d644e8a6ab631"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"c643c9afef0c6d8e169b3cecc8567cfe721d3cdaf635a54b82088e23be6b4e12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d6997748cbf986f1da9d17193c83747ec7953208683667cb2074cf55b5ef48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/chroma/pipeline_chroma.py:430-469 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bd7abc367f6712439794d42117406cbf84da48b7159110b73353877f84073e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:459-501 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"403728a7fff43b2bdbd59b36787dc2efb03ba3367eb9078bea8622c36f1be0fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57cbdfff4bb7458f45a6eb6c06110e35a729258bd6a7c8dce59e71257bebbc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"70749921460c535a44422bfce099693801f08cffe27dd05e38b039b88718ef87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"0639c2a81e294339e95e8c248a4b89371ed2f7a9cecf6fbf3cbe46dcfb88347a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/chroma/pipeline_chroma.py:430-469 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d97c8df69a3b689ada4364bd40aea6c83461a665d19dff72f4f29b8a071a675"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:459-501 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a5ec64987a012b18cb026f3c0cadfdab33a04ff27a2fd749d10a4cb60d1aa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c08dfdd134a9f14e8a5c59147acc6adbe7df67be64bd889aee714c527ca09a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"511f40533d942c9f23514f7ea0e599727a3ecd73bb67d20c13c155949214f8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca047adbb8a9120946c7150e4b7d5095142a95d7af5e6ca30356cffba396e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9e2b45b683c8004abb97279cad112dcaac6e343d1f4b733cc4b59759ddbda6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34a2117fcb111b9d70a5ad1acba8fc19992375518e611805f5b4c797c35b9d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"3280536efa2ff535541b7bebb5966bcab706bb2bc9470d3d72b2fbf9a66bdb59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"00945e1080b6988ef4f8daed9ad1c1f3ccf162b5c037eb9e5c1366150a6a4651"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"6236b95faad685299260e4c1dafd48e64d002acc5320b952ed6a95dc3c6e1905"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5c23c20d7c0c078dc614f356a80f8a06513abf6fcd6a9d28bb93b2eda2bcb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"8517e8ca5d629da658b7ab27060b971087a02105ac945870183dfc47949c0fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"2755478b6b7adf49773b537dc76f88ebd78e029ebade9c6e08c69771ef299a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71fec833a6cbb44ca7906f4981179f18725f85ff4b2ac56335f57fe4935f4f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d259f2d894088353075ceb523461445590db0a37fa4e4456142ff9ee21c752"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"155b11e028c78174cb2a4d1f5c1dd0422059da8f560e90b2a62e469b10fa35c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfaa02829ddcd29da780d73b4230479fb603fb46c9175d638ac6ea2df2b0b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66183fcccdb632e954c568d740b880c4e8b720836ddd547b4b7f2c8eb0c5eb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"7297eb647f5b0e7ac9896d5be04dabcec9871db984ba8296c321e8fe13ecf37e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"228123b3db14fccd6bd61c5aff0f913bb785ed6122762ee5bcad4822f7dbf802"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"b015b64c14bd80ab96af5d5a6ec6c9527efcaeec2d8e02104cf395ba41d00e94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b2f72ee804dc075819a3660f0f5cb2c1dcc55b79bc304f74ad1c380b911509"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"091545399d8ef4663f15dfac0465cf1333974c32de828815492367fefc542c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e91bebad5bceb76e593fddef4bcf3e3aea7ad2f94a6bb82bd582390db54605d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3096d47fb04bdfcc2a540793d54b6a645acf4f733c81bed52502755989c616ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f47c784bbc52e8054429a96b8dd6b09f4fb269a0c17014fd2e30e7d4b42ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"410716c3d8ef96bf5774cb956a597d466c8228fb6763b0276c78c8ac39e95ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99b4d82080166a1c8367d5b2518b8b320e4a13e447bf175a35c8ce615cc4df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f3852b48a0d9215d5d1548ff15ce2b77a8654894f9782acc02cc006b20eedc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a710b83d2dbb061e5736636115fd2997ec30ee9d22eabb6bf2ec664f2752381"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f3db2a8af6523e235bb1811937f801d92cd18cf84f0ff3d51b96fefde4674e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e7b1492a4033bfe43e3ee85e4fa5d7b4e10462f016976a5dd7a21581a0fb9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4410f44f9e0ba5fa1d336f75ccad27b824425f2294bc8752d3db50243d71ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab63ccd5f7c13826a5a2b45c276e824817ad9ef6a140b80f0fbcc14036aa254"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"13daca5e89a9ae0798a899fe50e010863f941481276409e1c2750c5e98c91f4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e58859fc951a09ec23b5285ad0493471c3ff50bd8da4702ed08cad4436c74e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd23f6c634b78f830f07abae4ddd6a8fe5e7b083410538c8209278cb350165f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02f19d3478760df4f21e5ef78f0951950a8b25a81b1884331011a686f0eed6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3370f9568ad6a1371b7ad244670ca53e3e31b6538bbfb392e094ffcb0df93e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdf0ac76b82ff4028ac6238728b5e0a8dd1c184db80a4eb7b04053d1a71fc64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"c210e2a09e7608476b56a1567fe5e7f69f972f040d663b5637e6e769a29f11a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c13b9d2411df2da495d2287291641174414f3df3906f4054e3bf28dc0b8560e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"55703f00f30508bccb3b5b7435a959c89db013ef3df6d7bf2e38cddf94a0faea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b42db3d217e201c275875be3ab6778e5451c851d73c1eb3ba9aeb63940ac8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1fd88cf2eeb51afd4c8ea5be0281e51d048a7f351c28cb57ca6f49d739db8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"75272f257e9b37eacfaeb72f873ab55b324338ce74985443331c9c3deba14d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f59939d0b693f6f09a221070721ed0e9231807caa42bfa75d29b6279cdd95f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"677d805246698d234da78387253f59426811f7db464bb8b285e266594a2290a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"3035da567d8996f3d9ef6ae52e68dd97c304d2f3c7d33aa9b2ff93f4c00da007"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"97392b6cd14d858a26376bd42e9d0479e219827585c157c9db5882d0551e8fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfa5d91ed556ebe444d96e1211fc6ccf98c5865dbb7c17eb58150ad85f2133d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7830c6ec0655d608990fb7f644b4848a71d331c6d371f629b02f90eac5e982"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e20ca02a4fe69e91057919eec33cc254bdee08e493a7953479f4826a31c9079"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"18064d0f6edbd81276db53b6b6d31c6e2a23478fb6492d0f9f5216bac06fc3db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b8eba39acb92845cb9b0bda4ab0820b08dc1e104f5b48bb0b3c7ba1d780d16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8bccb1e04afdb127e58a2a4a9f87ae8de9f882780327e1260bc234f74060bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5af79456e7ae253894cefc33a5607a203ac39f3532f5af51661eb431586bb71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"61134cb44c48d9329401db8dc2a2121bb82cc34a842b287698e8fe656108b0c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc24b54384da53c8bb8c1f89aa88c3aa0fafd15bdb15352b305b79c38468134"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0818a65c55935b506a271731464b8f93dcfed7980af3fb4abf1cdb0ab8c406"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ba4157ed8d0d32a1802098e08d000048c6569804240c4f1fb2c3b8c68b9ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3ee412c76f1cd22b485650eae1ec0f77ae89f3f91e075e4b10cd6d4a71cf44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f02b3935faf0f8a33e2f2fdae37067c454b1d46be2ffec5de43f826bed2b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cd665c42db2982c5524cff7c9035368d9a128c4170b3190514b490156d75c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf22496bbd7e4271f48d674ad7202bb0ccfadb5a0979bb458f4c6b16f3a68a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0a0c1565314a6f2cc5d9c5013e14bab5b173348c66d85ebd9035d204892e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef4548da934edb6375096362b2d6475bdc6d42d9097dafce8acc03cb608c83a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb774e1f228d2a13a3cf6846e3aca812cfb16987ca7c948afb038f289ebb98df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6dbf68689cb86ad74f928b8394213298429661a94836cab45cdef1811a3814"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"7015972e643cfbf730adda0b5bbd8c766aa770d436f269f3b0e6a10cf7d2adaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a27cb15be35d62e498fd9bce462b601f692306a28b586772aa42e39e3c6554"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27bf57e216234a3667166c81bd24932a760e67283fdabe4ed047d5381609e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"f144392e7d3422e9f7bd7305d5e3b3d47b2937679995a133797415e29562f1a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9f80b4141c5f58c2ec127fa6d6b034640bfbc07e029a84d6c2f968b187517e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"af666d5f00736192b81a894ce5bab652c74d07eadddde5be9b7693b48cb205c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"598f2e737e4b24d9f43684bc24139eca2b91bb60aa3d233452e4d5809a42ac70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2abffdcb8a4e9f38bfd5f70b62e5a55c3e8cae0bbcaf2ac28f88d556050bd5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3227652dade8826874100e800dae30ad1d3b95ec2fa618d44a38f2f68edf35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3f08f6bf46f3b2563c33d7444f8ecd7197a98e07df2085f085cf8943bcec02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"13265c47fea198e8ec16a66653824d433ef85414ad09176e1029d905551cde14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c1ef8b05a7780e91f10f8f4ceb5d4edab82d13e2a240b32d6212cd4e1f2602"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9aae0b6bfc727bcbbe339a3e712835769b23fa543e835cb3f8f8bdaa86fad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f33d00d8ed11109871a52a860db3293f34f0b95a73e37b9e87ebdd439660f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"b590fb754c821a57386cacf3d5ddec4fd9cc0f0cd3135033a9eece0c8d784906"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ccc7c97b85c0ee4bcdc8d61e83e8881392525af394b9ae6bc8e89018a5c276"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e0507ffb3b6d16031f90058e171e67b0a285fa00f9330cab373304279c03a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e936caaea5d70c62f20e01595fb2527131cbf0d0c077444121fc6e7a29fe44b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"f933754dcc21d796839d222c3081db354af40f5560fc497b945a00258545b73b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccac7aaf13f65145be8d1e579e56f22f727867f2d35d0b279c98db087c015528"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"0109e3a79b0d402b7f2a64bd649730f837dcd27454aca67279449330a011ec5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36df3d2eb8143c6f3faa2afe60c4b5a94d0c788c7a13dd55cf9900ab923ab41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f880f7eef5e0d92642c386931576ed91d0ff9c2563f114f9fbcb2b3d9e3e6390"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"2115c1809d21c405e6709fd0631bdf0244bac1375ba6d74e81571575560cfa5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"24447b8365aad3278e7147bef6c67b8705db2b5ba27e63cf0637ca5ec8de41e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d72f39ad380ab0cc65280d9398a51cf9cc4125806258d19c1a11f9923ba9b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e4fe3fd636ea8229124726e18804f66666423d16844c62fc8b85b10f47aeba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"52df388d8fb2e1366ae3318c01f0dd5973b2b8ccf2d405ae34fc3f10d4edea65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e86df9a0185dfc9b4aafabff82f3d0734a1faceb4e45c01042c83813cf7fe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"4215886312cd4ec8c402466590de5f4b88d3041fa4407933a0f126eb686a0534"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab0a7ba2dd65438c7a821762fe511444757592e6fb56ea9e85cb787be7da101"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b84beaddf435c29befe915c125f77fb131f88df1f47523f7af09a383afae2ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a7cef6cdc08b8112720a053ef1335fecf0cdaf4652283782feab787c6ba9c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"561339b37d5a19e840fca98d0ec3eabcbc1c3909734b8ea1c6d60a4293f098b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b2946b56cb370baca0a9ba12cff88f5b02d92d710135ef814a89b06efa049d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"baad24d962a7bcabfb15fbd0ecc38343e4f5158fd6249a8abb9952e5bd0e202f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a767b5c9b5066452ec15bd5807424db94d07bc8d4838469630aafde60a5646"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"792eb5b6a93d99ca2c12ba4e5c632902d0db3e75325629bb963fbda86352e436"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f392f0d4fe61816a6c8a83c09bf5519ec0d22466e4b81163b8fc4b7960bf26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d6cda3e34c10285d0ca2e9d5525481da46422f651595d5888f3d059fffdb2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"651e11a937d4e28afe24c9ace7669adba30e19fb74ada2b4d5c36a0d0f979819"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cba5e79037396685ebd9bf33881c97022004155ab4c7cd924c0dc79f3fd0f2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dfadcda9ec360b76a7572a37ab3693cafed084f81213e0f1de7653e2045ae51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f61081919287f6b8186ae796e5ba0e57e668d666ada8bca974425d44a1f62a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d07bf18e6a1ce0c5d759de613b66781dbd1ac1c71045fd6a5e9520258236fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d4250120f3ce2be143cffbfd8d8643b4a878d68adc433f82ad1b2f3f808411"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"60408271289a3a900fe3247b69414cee04cf36314f986702ec6c84d0f734fe17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f85b11c5c6626069f6687e41f3c86d3c440c274601cd4fceff8749b2a6d094"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b1f87e37ca129a025504f4ddca476067ab34974a448ecb71f51a004b4e31a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"3840c897c6e0841f8ed81e9cd70fa525d9fdfe6833d8b6ef96554fea3d18ffde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d9ce385759b9a7acd51ac140fd1b3b8179970e905e0eb480efa4cc6b7fb510"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"9125dada304d2f6fc298b570f0ee710c53f2871283dacd1cb16d29a76841784a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"56dba055d6a897dee74fe0299190b8de983ed72bc10a8649656092967daed948"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a772efd208e098ba5a3567164faa80b59e0980c4feeb3f27db76a85daea944"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b076d6e632d774c979d7899ce717e00927b97ce7516bb70789b4e860c5d3c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"c209548f505b900a65fe1589d809216d127f7fd4ae2884b36f1e0ecbf929614b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c208848fe8b3d71668654a39fa50427d972faaed2542498d52dafedc55dd68e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"17aa26ec5852bd124f193da1fd91bcdb91d54459904781ba11ad9fa6134309f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9adb36d8920af14ed64a1fbad1963163157074ef563535a25098b1e40d1598"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd49a6d864645be24156628f125116dfd0e8115be443fae6d6cfc0d389b6f1cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ed4eee934cfe350aaca6f23dcf1ad2020c04d561fccd11d6c3d4fae849c6c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2eac749a1900f9247030159d939e1fff7d8bf4da5141d372de77f75a8516ef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96a5edd263f7dd55f4a05beef175ed54de257dd409e9c142a120d2c93a7f208"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82a46bb72923e90d6c97dc31c70cb169ba0e08489c5961f443d908dbe627bbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f6174d53ed69d66abbc941031de064fe878454d00106a807ba463d79bd5460"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6433a7fea7c252a65ace3a8ae167ef52d784f5e82481e51707046b1b362ace5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd71c3c964d788cf79ac6017477f3a3e43bc8d61ab96a83685c1884b6989d33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd53c1e4303a59c858708b74006b01ae39e6bafdd23b0e7baa61d0e8b406780"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6396a85ffadcca83dc0d9bcbee390af35fbf46f8173ea2a0591b370cfb3d054"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdab71fae38de1b178348b57722e538ac3c1b8abe0a4fb06c3b01b1947ae92a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:536-575 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:652-691 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba5aed04988304bc32748327a46ecaae3b0295793aba4f0c55b7c9c8072066b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"534d9dd97b97f840864a88123ac22fe3c71991e492c8bad8f0e1a3b1d4246a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:462-517 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"77119b31a8da1f5ce22b8819ecf7216ba24bdbb11e240d36bbdafef57f64ff23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0543adcbac93a20fe552003c94e8b953b5a15e452f49761a6b3b1628e443bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"23982930820a24afb5676008e227221126cedcf4034d52ed062ef13e2863b9ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e780f7532f7d2f2e2aac22f055ec296f1a626417799e87617d8c41c3800afa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f33860363c779aa4f46f273f19a165625aa40d97dacf356835de8b5d74cb3d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"394ac415cd1fd8b150dc6ba215450ad4f43b2fbeb552a83a6f110f672d6e7b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"75535af5623d476d423486fba0d3464dd0238d358dce583301fdf34553486757"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a808ca6ba3b0350c97e0ba7cf77fbe1e7b243ab433d5ee77ec792e7732264b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"54908fff4ecc152615949346d1ec10e9b98c3f596905f3d6b6cc11a96d50f3e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"413a8a6b8eb05b49080a57f5d62b094ca9d3f858bba9364a8ac3347451421720"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"351912d46bce674b0009387376fa04b1fb7bbd442e5c0e3109f7e5c130ac1e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f756c6ac815257322914014b7f26480957790f570db45f817c41db67d1e07f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"faaf5d746f96bfcfc8a5182aa372f3eef3258c718926e840e8cfdb13cf5bcb4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \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":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"548fbaa815b0b5ba53b3b684cbcb86c5c69860b61d7e156d9384d94cb49b3938"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b827e425ddd4505cc1cbd8b61d97b79d3f5ccfe707f4425d1ce9ff9e965cda4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c1602bdfb62bbfd0cb756d1960718b5cbc2e3d26024eec51d5476499334077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd96fe9bec461736ba294b49bab26c97de4e6202ce6a275b4ec35d121014cc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aafc5da029e93630b455a3ca12cb1c0a5b91999a0eb4e3744759dcdfcf2617d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8b6f11dd07c11b413929f30afa19eaba32cf4e90b9e0b06903209b34186a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3a1919e87be4fe6dd8865ca19438bac2c85cb25501580f5529a7eeb41304ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"811a3de41645d9da1b14003e534815ce6caa726c09f96591f8acfbf092586dad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b732324e1c62d85172f9f7a7f5b937a50b61a7c3eb452eeefa243b67dda65f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"212714cce4c2474256fae06f667ab4531268fdebba10468fe81416cb563b7810"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db5b15b7288e937e0915e8dd990d0b374434211c830eaa6a9955ea3779b264b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"82629c6680d39e3e9deaed2a5c9763f7c51b311b02f302bab658a14e64f71664"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6a7c6932e16f334132c6f612a524399ab5b5d8bedae1a47d828e0a1b970f1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc24231abe7622577cc10e4ac2b4852cdc2aee829f7bcade913d8ee1131a4bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b922696ae8aeb3dc828670444d32e60a0ff4ea3a2c2fce5cc3fd0c0da744bd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4276fd6ba7d5fc26795d4bcb185d22d723ba85d25d0e93978a33c3a9254764f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a60926150803417f61ca6304ddd984b81cf6077dd54221cb319d838d99a571"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c03dba3f3d7c2dc01a3ae39ab3148f83aa1b1bd91975c3e2f7fcd6a14b2cb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba76fb60a16067206e3341ee1f0777e475f2de2541e6fa8cf0452fcaa47216a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd364323dca5f2edebc752b4376c3242f052f4677f4a02a6b2af419a491b3e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"c189954957c91d0475b102c628936794b91b697ba99de7c105edb517dbd85bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bcc3e0385d952edd384d292bb1e86765c68adb499adbe17f464248336936a2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc38111d23d8bc2f8dbbc70ab3704b0fe6e12d493b4cdd71172c89fbf168076c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33a15d1523861eb2df9f7a0bc0054672fe677a24190cb725ffa482b5b72773b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"444f5b47e79d68102df4026f37b555cf0af07332c8524e7e9090d5ba7aa1a954"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe670c81995911da2b3fe7f169c767a6e845f86354ca945a3bd94616cf63b488"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd5b602d8975379aa9a29bc6e794078a8f8bf69cc1943df65b861b26357fdef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a615c038538b8abd82c636836506eeceb49d392ad098ca5b70570d78bd4d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2620808982e3ec5aff3534ab89a92f19970aaea232e4070bb8cdf0d13bc42731"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d7962cb42c9cf5fd5d106962fb9792d222dee7de546477f3306853615749b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25b955b2aea58f50e029b1b0d817f238c9c6af83a8543449982436c223432ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"e347c7989b1658722969055e12f086637367d959e8f1502be54148c1ecffa304"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e90e374b72fec4fd9436b00706d2fe601cc4a45513fafe61a072cac4e35ec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:466-515 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f8dabaeacbeb3bffadd01799189e75fe42671bf52fc42972d30286def337e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21b8f5679d7387df026424c5cda2e63e6cf8f341ed9caa89ea9dc3faf2e401a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"8189083f2901e8879cec18e7f266560d69a3e32826ba67dd8aa6f21fbee5f2bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69345b1b06d8a1be50c00c787954173f0cd869e8753669c1969e4787ea65e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"7867708a0bec68057d011edc2a539ef698b4bbfb729cf75ea9d5a3067a277989"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:508-550 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fec41a3408350554f9f37e20d0971b48f0b04b1281f884780631f3b03cc33b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae8512df969750075db117d51593034275ec7857373ca60dc80c55b2237ea25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6b8f8ebcb27bd29c56f803c68464819ed5cec0e9130c59088532ad2edab10b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfbbcac3388335435cd17d9878dfdc32aaa6af648d62ca7508c38a54aa59158"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e35a8765aee4b8966d15b173aebb517902d382f8e6ddecc9d25533969d6b5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"070debb82876cd1c396fd4cbc29948d9d40de01dee5630cd5d1115959fdbfaca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3930ff4b09c22e302e8a10b126e4150483556335b8fe8eac756da79927922d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3d27bfacc3526246f292a74a9e2e406781cd02decc01b6efccf28f0b0c64c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb34b06fd46080b77a3379780bf4452eb58278c49afe1ed21cb2e955f89e7238"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"d414b7cb6ada3a8ee998916e2850c3a473ba8847c42a049664983f45e43b8979"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"37df31c64e2ca1df7413ca8992f2291813b0f6140a018c24f3a7edb0a4eb2dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdbbafc6a0d54298cefb351b27296817a7830e7530b8a175b31992cae7c2a20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb8c705a70c863a60263bd5105ba903dc6a579e3735c82492d66f0118b56fcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7a070e0e17689d93d3b17056d12ca2c12a118b4df09ee1a80011c31eeb5c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5493d3c173121ec2977166b9384b5a0d9eb3f710325ea6198d5733f5f7c5e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"002131fa3f065319cd211079ae7cb3844bdbe9066495fa6feea64113f89190a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ff2054d41a6eecde3fe44bea8fc02de962f3af21e8bc657fa5c176491bd998"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"906bec1dbea850f5ca846d5c95db4eccaca13eaab1172bd8a17ea74e9c300bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a6dccdc1aa80541f9555ea6529d20726be7809a7fe95650747d4ad2053e4c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2470fb10840185ca33104ad6afd992e5998879e65982e3af5aa5eb55437a2f12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e0396bafcc81ce4db2ea64d7cc03f54944c388f1c775af570e751d65a4dd00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb79dc1b5faae50fc6df5f3863c4031ea2f9d32d501f65515efeb449f19e06db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2012e04d91ff962fcc84f034f600c07202fa8ad1cb6d47eb2d36a6f76e7dc1b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9ae5c6008d8ca797eb25a872482b557d6d8b311a6c0477d10cff806b31780d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b33748f90d6c58ccc6e19451f0ae303297549e1edea333429449761bd54b53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37ef22c8c70f353582aa3b151f1096f54e22ce56c76415de4e7decd01ffe5dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf07d20b5ac6b3211b1411eb5837b704c7971ffc7c5f60e158d5a748c3d8f038"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5062bfeeec421d2fccf872cb09c332df16bf2282cfcf8b06857fc1ca57c0ebe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"2255ab17785d4f479126d55ffdce0e76572a9d1378dd95414edd939c8186ed6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51703cc1b033e17762ef0b1846bf824a072d46ceb6125ae765b97f0a16fed35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdcfbf51d254128dd18f76a9a27c5389935a3711103e6e9f8e2f1150a0c5c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f5fffb38e57182d7f52962ef3b2f252765bc795bd443a95ef855b26b69fdd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5e67a6f3b1e2fd08a4804f4ed005cb07d30215a69b0b8bbff701719481679c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa530a790026913e6f657974028a24fa0a52b9cb5e092b050dcf9463364189a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfe3c43fcc85653aa6cd4bef6c6fc3dbeafd48e762eb609a348f8ed3131f52d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f042ee50ad99e608289904b119ddb88d2c7d8be1dee93feb1bb4f38a46f32d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"087759cbc47c9c56f8da24b76902c945f41104ee20eaf9a985c0359538a4c3ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabc05de685c8acbad626bc092ebd049dfd3e8967c9d19957e17131cca325e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"19647981c5c7abb152eb50695d2e0ba92637c180473611789abe8ca4e0de5c5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \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":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb418345e51bbaf9483bfb127a1450512b334db3658dc2134daff23a4e4e61b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \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":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3f12752b097038cd85cf401a03de3f4a832de3d7033e69997e99e050219e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \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":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21d46c8a7562f15360627c326d3d77f35aa18f7b1b083e60c860b5097ad207d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \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":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb66cd169800c8c9461df1ed37bf9a6d5cbae00378eeaa0159e8e266f825ebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:336-376 \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":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"890a69ecfd3cc8d4b28aaac2d4e7fac4bed8e7b07506307b1939f6be0053833e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e3e5aa9f20ff7038349e43de28ddf1e44ff943bc3bc801c193d17544ea5ddd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d332ac336996c4cbec5a842606afd78a6c8fff2f5a29da073e432d4322bb82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3973e7995042caba61cc80d75acc70db8658f10d69901d188f60130fa22da9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4569a839f6a2f639e5b9cd0be501c07540675087fe62a3109d282f22b3b6e41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"904b1992f28c40ff4c94dc2fb6c96fa4639e2ae6570a2900f90de98416b27768"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8cc4d34840b054d1338e8ef31f120eed43a2b7db46a0e231ffb77c24d062bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2faecd2055fc6d443ebd19c1dc165f2ea02b80ca230c896797a6c62df76fe1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5197dc49ba3db84d96ba7f837cce3c3edb0ecd5b8fff1e9c69f0f2790768dca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1314f4be1c170c56bfa26bf48587781cb6923794f49871ad7c8f672e40eec65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef9a1ce36cfcc44254b257deaa436c3001b09e1c123673fbd12f34d89fa8bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a0998d7c7ec3d38423612d71731874a467899fae2325503f2cbca5d5f8295d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2fae65d6b4831b48e4eec83f9b4f6014d57dbd5a7c9791df9ce86cb4c4ece6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e402b29a1f1b627595b1647f06ee67d84b11c0b60ff30b25dc469758efb12a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"46da42063b3eb2d3a6001b5bb02dcbcfe080f1e4e9fab42c000b3291e0695a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"941364636b0984f26babea480df90f1a5660f6f6c71cbdaeba0e5976af8e4476"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"3235142c8f2de5899b72f2fc17df93e460f5c01ed1a7c3bc650684ca3721a588"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e767085a0ba2253acb6fc915f1518dc973b25c577e9681c43e3ae6c8ee3f21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d77ee15df84d7d6becbe7619ff9560281275b7bbba9a6406c21fa77a934b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e01de4d5372214af8d4f4f38d41db268e8b87b01aa73eebca15ec06d79b1a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"d752417c340cf8f6addaf65bb83de6a187b2915793d2940a52046e3445b5b238"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"6479e4dc6f856452e88f99988330094daa3a99a6e70ae034d333a0280d3a1304"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81b2cbed85860568d0d779bddd48d3f89fc8d42917f75a2fa41753c9a081672"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d006877f8c6b39f5da93b134e4b915df0d07882c5cab308f122e686bcb946ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"d380610788b4539f7b29eaf9cac80764b96a2ae56d8b1eb3492c963717b23429"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/gluegen.py:473-500 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:361-393 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fca5c87005e34814da78adfa0984d35b83f536b28aa7df2e477e6ea2b2c682"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/gluegen.py:473-500 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:388-449 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf3cde2b133ab5730cbe0b6d7616bb6fa377740b17fd4552a8ab4b9464f4af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/gluegen.py:473-500 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:542-638 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"395ef0d50e289c3ea78d45bde8766c916361596c7e48527a9898448e4be0086f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/gluegen.py:473-500 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:393-489 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da7964c636cf9c3da6203ee2977abbd1725045ef397cd1aa92c39b8d6cbd648"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/gluegen.py:473-500 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:545-674 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"0906e48d035dda16d6c099d7d8dc93a4d4506ca368c99157207e3ba52352e9e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/gluegen.py:473-500 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:500-566 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4831395deba82bd484ce5179f50729b22318ced18e5b5e264ef09ac0345700"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/gluegen.py:473-500 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:289-335 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe14d36331c573242329fe4ff3ec0b158588ee03beb27b3c84ef0844fd2b9a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/gluegen.py:473-500 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:326-372 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad27ba0317eddbce79de50aa55e81543772538fe10e14c032cf9b2cfc446546"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/gluegen.py:473-500 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:658-695 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"03702e910c158fa66a9fa27c656e8ea77db9e33461bec188240a00ed8ef934ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:413-450 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:326-372 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57257378051872eac6551d16f3ba79ca1462a44aada344055112ab2ddb09da0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:413-450 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:658-695 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"35595b1263341b5791d4f58ff91fe66a635323ac8b5830630e37aefe6c26e643"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34ada8912cdc5b7f676002add9679ebb1b0d956a896b509004056b9ed2f479d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"47abe22dbb1d9d5565983766a71cca14712527737e7d07e7d75d71bfd0344291"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"b229a6eff2e8a23aecebcac3157c53cc4de5235db17c3f7fb5e0fcf2f95cd493"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0685a0b56d67114e0341dd317b52faa11e1e3cf8c371e5392794828db66002"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42de5e103cb46b0b2b6019efee13a8bf7ffefea92acfe4426908c4e6c3bd721"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e3a6f9e1003e9e810e72e51be532720ad1f9182e4b123b80ced16fd2847bad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c61612baf9854fa05a2c81663386acfb2a15e48aaa30a52fb68dc8c3ef9c427"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"b050a70e3efd85ca84367c67b734557c1114e16288f2641f0afb31a5f25ce0b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4109682b6875cc28074f68d557ead3b9695757c83aacc9695fe7150e52fe5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc198e7a5f0c03ea2ac0baaa6b3dc9702eebe38ac6fa598c14716e41dddb5758"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea6a3ac6c27e44b0fedb4789deb086026ff508605613537fa42883d386f1b9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42f8b335e459aae6a1e30a4c14395ea39a34d0983c404c0dd2fd2e24dda8a9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"5843d2b3f9a46d0964754f6e9c0923007a9e850e44990dddc13568dc4aadad18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:361-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9357c1b479661a9d9172b7fe47abe67de184253e8b4fdc519a686ee3eb2cbeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:388-449 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c965281cf1a200a8ebb74be6e1011cdb70acb20d926752df30bfcfca6792ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:542-638 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafcc9bf89339970bbce7e2698fae4a7805e16736047d7f8cbad9dee9a630c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:393-489 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da58dc8a68014c909fe321a4f07a6fde49c7e543d5f92d6bbe8f5c06eedea23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:545-674 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dea856331563a3e3c94f09cf29d55abb6f82a937715f539744d1b9dc1d8a694"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:500-566 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ed03e9a37d062bc212a4fdebad217270e8aaf2d148b6fc181f481da6cc535f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:289-335 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"38254e7c9862e40dc096f01f9099c55fd9bc4560d79709dcd5f1474ce1c54106"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:326-372 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"43bbe39ffe8fcf6fd5f60810af5a3c3205861ba3301e207d66a6e353784884d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:658-695 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bec226344046f88afe84f823f5acd552c3331e021d9a31e977228cadbf9782c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:439-512 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"4407826bca86cef687ead93ac9b9c5098cde8f01e2cc084046bd4fd6e87fa4a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:67-78 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:98-109 \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":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb90c36323c027f38326335c7e21099d491d2f2e007af3cfbc1ed2098e7c2255"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:361-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12ba599b09c819458ddf0f98b585a5df8cd81455280a771ed00dcdff03efb0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:388-449 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"05878940b0c93150fc24c671a6557fbc1b23daa6b664bdd9ab3b38da8364cbbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:542-638 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"481f4b1640f208d9016e0dd87351c967e60f90ace85fca49a1568fa9952a92e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:393-489 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbc1ed83e3df3721f4b6bc556e7cac9eb2c59ccffe3040981e050fa2a55a151"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:545-674 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"942a354a0fe8081122f6f8f7c61a91bb120dcd3279a909a7c6f21ec9000908d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:500-566 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a9b128bc5790ae6967972efad83f196a7f4c0045d9e6ef65506681086bb8b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:289-335 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"98aa9f64d3df4764c9053e5492ef3fb37122e7bd119ff616bb12d9e343454e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:326-372 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe7fe70462f18927f48a535c2c5cfd5b2aede2af155523e53974d43f2616bd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:658-695 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef54a4808257baf94f4682ee0ea124bceaff23fb9c53d017be7c607edd934d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:439-512 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb044d0581060c6e533ee98fac1543a2c6a75867a3f52959b01bf649dc87b4ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:361-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"72189deb3907d7c70a84a38ad31f0d7db978eee9594e61e72b6057bfae50374c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:388-449 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7e407993e8af9ca1c103c569b8814d460894fa28fd26c62109b221a608f98e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:542-638 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b9aa7fb9eeb83b43da08dd806fd734a4ceec7f69a91ecbe650544597104f48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:393-489 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"7982a973ad447fb8bd9b3fb1fe0c63d9576d5c4101733399b679d38baf40060c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:545-674 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a811779997d16571863078ace85bc4c2d9b9d16935a66fd5f843f3705e9763"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:500-566 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"975138aedf8756d3237314d84f27beec2582c8c2a17bdec7e0851611f2fc81fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:289-335 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50f654c3b41a472ab3c042a8b5ef6c5a64fa07e3e03e0f92c37f75ad59395a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:326-372 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5838754d5c8cd16ed4d690575b7339f1271a9a4eb48199123e48ed0e1f47e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:658-695 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdedee65317acca83714dd55e14566f58eca7edaeaf7e3cd18421d7f2138dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:439-512 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"1456da46aa60bdf5a26a1eb6594e2d479d0bb72ff9a59c9dd3117f2d2b134985"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:361-393 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"940698b7fcd6e9085f592dea93950142d0dfa1d73d6c7c768f35907471b7f1e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:388-449 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d6761daa6f4594762be78c6b4b3b7099d2c4c705f1c842d1b9957d61d24acc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:542-638 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15e62ebf0f1acbc4e4cc620c2c7916458844fe2327a2c035f81d85b0f727c17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:393-489 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc151cba69be9223b5fc4f4b809431ebbece24f3e9e28913b592fb941fa60e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:545-674 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffcb3374ade64a1d83cdcdeb6b85f878fdd85fe4a33a567d5090ba9f8459e74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:500-566 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"588c59717f136cdb80512bf0e0fd4229e5ec40d215c5c21b0dc5d7cc9010ffbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:289-335 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fc7d33a4841fcefe9fc5750de04b95859e83cf296df1f03126f84a27f41d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:326-372 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f9c9c3413d1840a4c643608ff52074170d1ea3f32e39dca4377679bc475f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:658-695 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"777d8217f5666387eef1d6bf8747aebd50fb477f6fb4d90f110d11e18866c851"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:439-512 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c3e1c3bf482425594652aa5779d18525eea632a3fbf752e22606fd60f8ad90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbcbb5ea12422e398ed3a94504ea253e4fb122ae6fd9c20dcb1e064beff45b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0285410e231f721451b37ac4a25b8ed658b3ded56ed44c985c734257a21c7bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb54b25b8062cf6772e83bfb02bc02e04b9719d7549794371beb4ac71b2f7fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"69bdb32f21881376eda64fa3e7b7e0c05642b1cc4e8c22fdd4c9d73719856d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"6110d56dfccb5154252cc3e6f4914608f0e4ea905f8a81ab77af504c9d344ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31d4fa9201d42646b77e2c199e83aab86b2cb397eac4040cac43ab85e61e573"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"86225142640763a4ff424796507ebae606b10961a039f9a032c5adf627c99d5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f83a402e6c8de698df3322c22ea16ec2ba82d7319a98e47433f23df58a7394"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad16fac1fd9522148ee78dc9f7bd4f1702a277d5523b73509f60befc146b856d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"0994803a3f910df7b3eccaad4decd0f32c7d9348a152b86cb03acf1e5fdeaed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"75717d0cda0f7a1bcffccbd2bfa4fe6d1408d06fadae381b52b84a842d6cdf29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"7842b430dc38f559def2c25d4d7539873d6cd565934574bd865be7c9050fa4f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"22eef2bf0cfa7627644319cd3fc62c685d63b81cb753662d87c3fef3a24750bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2ae819323a8a125305c48a38087300634f2870a1dabe799d981d120d091f04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cdd9c40017d59519a5934ddabc689a25ee594f22d35517569747f443dab59ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e3926ed9d3aa1df45a66cdabf01bb861583ede32a8209c01f1e06fd2a8fc24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9ecfeff817417e57628f67cd6fe58d7a72be7c7148a542b3828dcc1eb5c8d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f491885f936befa54aa8da1e39ea5c21b2d480e7ae38fa508c99c02f80552f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d31c1fb41f1a4b723798f522da4d674c199b85a2f26e0d129b01b6a3793154"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cb25006528bd91d3484d57533964fa2d382f02f6d47a186c4c31e1c7c669be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cd9f91c3e8bcbaa6ff690f47e15c33987004b6212b6ab47bd44ab72013b036"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"591680aad61633c280ff066aa153ab9ce61598bd333ef4ef08b6f26875b9a8ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/latte/pipeline_latte.py:383-422 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:439-512 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"820c07efe7073f911232c62e95446ab692d2e7fd683d8dbdcd1bf68d7ab2bd93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca75c5dbe296f8852e566e802cfe4ddbf67fc8de0a55e14b95acbc9bfaabd9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e8b14592f6cd436b71f3ea8784a4eaae8756b04d784c01dc44e5dd1f39f124"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"c618c1c169b7c6ba71cdf9fb8cf7621b01e965c48f3b7dbdc30a69a26d844e8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"df52edd8b38fdf1c5b7c3fc087d91cbf2b6b41210e569abd5320c8739d2f5027"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4686329733568c43c93232f31a7a3a22eba7598f9cb2b3633a88fef3362adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37694d3bcf847cc61f0aa6afdc158ed31dbd5726b5e317cd95bbe32c55f1020"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"d491efd9e48eda12e3e5669b6895abd5e2ca373e5b2271ce279b63123c2d3f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e790846d72a23f64363cf264ed5547710b6caf74fdacc4b504f0dd7e2829a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9eba3ce0af715c5d2319df40204f4ebad08dbf1de762aa1b9525d7ce13819e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf79c263b962a2a6fefcd5cfb3b8b8abd53edc86c34016c24a1a4e5d42f2f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7060d7d670ad5db81970c15f38c2d232ba7e3cd06b0e3cfbd2863cc69203c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:245-275 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c168e8707323f8ae61e69e9863434cb42714233cf8ddb0d522b282b15e1d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:245-275 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"833a9da062c8e83dc5ac01785f66ee26d508769fcde4f4c0394cdbedc9ffac44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:245-275 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ada02ff40ba08854617fba5bad4d66a53264d4d0ac29803b36000d55008d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:245-275 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5108ad092953bccedd4e96c4608f49ba4834c6d11be76bb834dbfa9c5f18f576"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:245-275 | src/diffusers/pipelines/latte/pipeline_latte.py:383-422 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6c7bbf5bce31c88ccee6a5788c18640020cd77315b78d7b5861cad0c4c2322"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/flux/pipeline_flux.py:453-505 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"27297e78d79e940760a7e8eb6419c24fe0fee2af882e36ffa353660fbba9fdf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"1868e5d8f9c7b64c41cb8f912207fa1dad1fd55712e94c9ad69cd2a7913429cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"046ce9449b3101f6f752320a995fdc76bb78ccf4279be7cddcf92e95c0e214af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"12400414ea3d2831d653757e9622caa120dda2e93c726ba9f64377ab1bb31117"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:504-556 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7169ba0d291a87de609623c822754278af46f2347b58a37787ce9f5339e7df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef465a3a3d619e0bca309bce3680c09c74738a80b6bfb6864eb37e3ffef53199"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02130a1c57aa826440d67141d0a746b93f7192547b1583c644271b315ccf105"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c3e7c8000e1a12a6e3fa70ac31532575de85f7c31b4ff568eea74bd562836a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc5fa3b019fcef023a0e1df04ba242b86e0f13bea34d3cfda3174b32b50146c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"4695c4b5b2316c26e40565824a2ae67672f478a2573de6de5ceccd3d0fd7ee54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac76a152bee98613c66c2c0efd29daf2cd01c802fd7d130453a11b71686407b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e4950762ba5ffa47b33ad0b313b96bd255cdbc334221640463dbc094a86838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"288d8812c3bc4ab4898ef4fd1947b79279df244fa5d11d04a436a97033f45c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"823dff6a4bc619decdbc46198a76912a0a41198d6a76d21ae9db03384cea5e77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"faff1d3046a4a36b1f0dc77b3a32fc45b6401a9ac765965a9b23c34a78ea4e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d087a9bec2dc03bbf40ae43b1d5c9634e7fe0adaa17083484438fde693cbfac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"25648b9bcc776651749fb97adf59b73de0e952c5807d08019be9c10b9798c373"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12ca935ec8950c051f33c4e6fc6675d779e0160a01afcf77148c4c2462ba7f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:174-196 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:262-284 \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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba68b47258a1378d992b8b8e1ca8d0c2fc1d7cfd3e1de7be6422ba95cef7aad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d89a771480eb2bda94dcadd9c1423365d698d6a86890c7898a8bbff655b3e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"285d49a9767702597e3802ddc8a541e2b8688840e505f443e28dfff6b7dc34c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b861b9df81b6f2f0ba31da3e67cd799721f260f217e79a075cdeab94e3b047"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cda930c44ef682a83bbe6f336dc1887b347770da27523488a46f89651c925a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"a071b556e526cd170787515d6d52873a69cb7d75c3ecf058347f7ad5e3a6031b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99b48b1d406e194bf7a29dc8faef17c6a04d694863f8951d5a6fa81e1a5d289"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbc34de6e32294fa13d94463978ef868940567f18e635e83b0f66db360b7d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdd9cf182f1fcf6201462bcaaed0355835166f69796e44e8dee3eccc8330990"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"44da4063953c8fc5e6025e0847168d6de46b0b2db2ccace5d14fce54e026c634"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c070c3673c1d7fec1a5c4b13755f88315bcf656fc5b0af3ba5d36019f724c4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:387-426 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57f2afc9bb2cacd37d8fa5b23d7e9052be4a7553091e405394e63fb00af5296"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a45697743f4dedc2ec63332d21820c6ecf372d8b00c9a13a34a753c5e0f83a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36ee18b17cf22543bd05a7081e53bae6778d1f322a3409f16c7272f3fcbddc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"e850cbb0e6ace9c1cfd851de23d6c7640d3acacc093384216dc7b2cf54080175"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60a20363214ab3276a8a6cdea6ecbf2b7744afbd017a7128018eb61097723cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:347-386 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"77293ff7a71a3e073370bcc43b2f62fe82582a7733d0165798c6fb49c3e3ad32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fcaea18b9e6130cf5cb027fd1cfdd85823043b5cbd85ec98f2f4d02c315d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"266621e6d4eade2eb0fff80e4fb50de5dcebaec151aeec772c7fb6a4e7f67649"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2c5b83dc761b63ee2d6b733a55640ea9b36682679d10430a6c1610d8447810"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3cdc900313823bd36cfd673175e5930dd53db302a3d8e981c1ce9ae7da1236"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:328-373 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae4bfc8fe434d696229ddcb20694a262b1a5cde48fe033461b6304f4ce57cd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e71f59f037645924ec2caab56bafbdca33157edc908e3a4302bf35337e59bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"69497458a8e61f8c15947b7b2e25ddea7af8e02b52c7c0a2043f305376dfb35c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41ce10751a5a14f99b65eb9c61da58e978c1f8b37d0f6f0ecc6d7e211193d19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10bea34f97abd47c76c97303363c409cfae1a57d1c03e1214741977dea71760"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:366-405 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"d807590349fb83e6e1884eab1770e9b830b747ce03ee4a942af0bb606b93c7a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"f710090845fbdad0ef47e3d7896f2cff98593591511b42fe89501154e62c983e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"51805d4edadc5bf65907025d76b18817da28fdd5f8f71f07fa8568bc99ef8593"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a64fec5084448d18f5b09a43055f9dedb75b6c55bedbf36afec1f0379362ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"9225e0b7da623b8220a1a6bee519d42f6942361fc28d8835b47f9db1ca8168c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"f577a1ff1a7dcf621f30114bea2fc4d6b38ede063ee9442a36e165829d600f7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f8b1b963cffd26338e1463a7215f939a3c3e051c68ee9d6b680e992cdfdf2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d47bfac82a8e414722ef5f12f989c3b97ccf3f5ed3560c7aa5e42386048542"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeed018c567113e2f1e399f4066a33f0d8ffc64ea0b6759addaf44f15bb3d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca04281a444e36e8b3271316544df5d9e64407d1195df18ecaf035aa25a74956"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf44ce3108c667a1bb3327d28397ceab7aee0814e324b1680d9de4fd8c62a4bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"835f27b85902680f3b2b3a0a8447a5b4694c6a5982fb50ab695c9423bc4dd6cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1d74715e3667461838c47bdcef028096775956e7265d335f8085b95b7a1464"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d3b4c012efc7d7afc0fa7cbf77c4b4b06b26fb12582f48d956f7f54ad2862a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb9be4d455ff81a72352bc441e11aa4f741b829fff9945494406a8411396643"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7d2ebe6c668fcd43d8ec4ec10d5c4916c9d2838fcdf6aa37d1671f55f99047"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee8a031be6eabed1ae7fe44be399d9237145d48159b2786fcbc001801a5fb34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfeac7a3d64d043e8ef84cce98a85cfd4101d82f4eee05c6f6f068a21a9fd61b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f51a719f442602a32341614c5379373b232cf527114abe2aeec3cf6a86bbea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acc88eaeb35c54819955aab1ba4d988c6c79fd8b8dc08a8f79ead77858efe02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b86b93bc5baa5ae01d14a1e6eb9e6cb1350c5b83db2b59188cb62d63ca3aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9930e1e775ffcf9c54a55b2a3c2efcaedc9dd1082b57c98a016e4e36ae52897"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95c2e15e739b9cdb1d34c7a14a84d86e38646a699e1acadb35352d1a6f0b678"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2a3265bb2a53e8aa9bdce9d0f8fe3b3d5a9febde3008912c5c1c25fc957f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"9142d319d8cd0aa54b2181479f3eac1d5d1ecea66305b4dcdb2a1d0b0f0c1636"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"3062bd28d439eebd9b1723a196019a28b3fefb4ff7ca435e750c61101d17fcb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e924808955c86252048f43d9a77bbbb10d21dc7ac17b7e1ba17f75a9e4ea389"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9df697b7cf961dd6c44a92de5edd76acb7287ce40d9f7f4420098c5d739a183"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"44eae50eb082a428b64184e7fbde43d1fe15dd84270667dfa231640d7d49d24b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4cd1d8c564198617dc84ccb2d1873925a0bbbcffdb1b33ad2b2d094e74147c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81e08735a8407a37d423f47b9db790635f11eed237cef76ed5d83e71891960a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ef3ce0457d6dabe8d189e533f3934b0f665452266e9bcaaca2baf941e822ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c83a35c976b859ee9b758ba6d1a0ba0045ba8c216cfabc0fc0324d115a7dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"6100410127d2d30176e67565fe9ff428021a3240ad6a59d5d63f027f9d202dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"3788060fc60be332c09405cde781b28782f069c3508df21c44421f1dfe524070"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5a9276b97e87424f1c44d97c2f59cbab51bb6820e0b0a0d9453bb9490263cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71eb62d4fd766c640d63195e0e5138dede1072c2e61ef9a0a4b2574cceaecf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0a6b590f1fde501794fbe8313a71828d9c02053b48a8d8814d8a69671e13ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc668caf4d78642713c5a7d50024de305fed5353c2d936bf6c8c414ec4ae204f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8abd4a67c11cc6e8f4e2f7b80bfed2abe8925a4cd99898e21d4462082027e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00f9b21de3011254157b3837dab215e86bcc04770ae94cf901a8c640c867d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39784aea4dbc7b77ccffc384eb3d6b6c7bd706707c032b0f61f8c8c7c4a5c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db8b58c647521883875db0606020c303cbd1290c413e94736fa32101a4a3bed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa050b8d40dcd2f37bcd7f6542639e1cd27fe5bc54092fb3752f6c53cf6064a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"e033c801a5328349cfe218f430aa1f45020053223bc3307253c0371367ab99d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:369-407 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f173c409514616adc8e865a8061656b44441ea40c900b5e8300e74165003810"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf28e6cf90a14408a7ef707f776936673e13a51f998abe528f61945ddc10825"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e350325d3f9dd4b36828e8ec73cc2c6b4e8f087d4b691f07e02699b0442dde2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:148-160 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:798-810 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3e0ef40df1fed4ccb9533bc556a14d97e3254d53f82ba16fa9be23f482bc70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/diffusers/schedulers/scheduling_ipndm.py:177-226 | src/diffusers/schedulers/scheduling_pndm.py:331-392 \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":"src/diffusers/schedulers/scheduling_ipndm.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdea616aaa81079fe9b99b6629bda19905cb0cc24db973e4fc029e0724551e86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"2315f7bc8f892ab272f556429f0816c04fd1e3b75717f0b037ae0db089c07ad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:410-439 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:390-460 \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":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"b886dbc2810431a808103cef292e8c1d02e3851c2d02a9b453805f75a2eef409"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"96990a5cf2a20ba83f40b6323db188256758de2de10741a764b2b01300885a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:325-345 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:375-395 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"94408ce8a98706df3cac5281c53fb680d98c55439a22331103dbc7c502657fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cd9b23802c7db1a1e20f04b3f9a89840e447298eae2ba360c09497ff6daa44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e18439ee8fd399acb609ca50392cd1a9e9d3b591cd4e71765319d0a1c82462"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3eb7838e634297e72825ff0dc448beff02ecb9eec5264bc5858f965ec65e06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"363959beb504c893e76e03b2224705872d17e10c52279bf0e1c6a5458b6159b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc35f74b8bd15edde6e6fa33f9856d1c2754f7f360267f2d46a4cd4d73a8de42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc856f9b561f351c3271081ae7929ce275440864be79798e6cabd006d64c341"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:471-524 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49d17d9e08877b0e63012d9f5bd633937b9617f4fc6535fd2067f3e4bb4dfae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:476-547 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b201e2cd2d66b157f3da606f15be79934250aca0c56eaf276ca7f301b04306"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"62da613832c9f1da605936505441423eab02d6af40c34bfcce89587659680808"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baed0dacc22f6718a6606745d7a7bd307b021cccb4e78bf6117ce761e3d9a26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"609a4cd4b916bba32aaf0943e0adfc98b75e532feef441617b47803282689d0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d658530afe4f0046b571b9c5e1702dc0c87170a944c060b5c674a252458d696"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc66617c7aa3e287ef697c6807fe3e708eca5a92448af239a25745b1e9adcb02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3c8482eb59945a1116759ddbe26f4b757c705a0baaee809f42e296ea119dfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00e89a6afcbad4934784b84f48b7bee0927129ddd6b0075f9e427d550e08179"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c596aced682f50cf9145cc72d26a0b54ff3c451bba8f2f4f0310c264f4cd73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e497671d413023226adcdfc553978b9175b39f7b333196c49877ea71589b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efb781ea924276eae721e2bc9aa5497357cc37a44fbcd021126a2355bea3b22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:577-618 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca29a9534bdc1d0baeddd7c251938bc6836644f85a0dc54fabe9c44511efa128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6e0e2cd919ffdd57af44d640634802fdd63e0dc35425a82806e21d47abed40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/flux/pipeline_flux.py:453-505 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"18198c153ab8be10012c994afbc6211b1a63ec565ccf1189d2b20793f05b4ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad95e3c336e82ec0cf869a8573fea7c6deee4df3add718d5b44bb42985059385"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"22164be8b0d4e51d0fb514fcc1cadba6955f4b2c7fe1c6248a2bd720a1419e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e7ef5035e36107ecdbff4cc8cef324453b0287cec9cc2562b16cda40049a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"db64776a784854a61d199f4fdf28d0d02ca55b8456691fe5e2b5d888e28d62e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"5072b3c37d7442474f6f00e85eca71177cfb27a8b9add71f8cd9a31b966ee4eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:471-524 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7678b90dfb24a18f5394cd68d607b0e366a174b47c5858ad825994f33922b37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5c1d38d74fa45d47cafa74353875b713da07ec8c0646aa01b7da3cb8058206"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5819033fb3c3b59945f695933a17400db57d926d7736115711c96c09d99fdd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e85edde65222e9aa12e6d4f2a525e9a6dd1d07da20dce6e90815c011ee2b0b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:504-556 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"2840ece21e0797ec7d243770610402e7273cf50f8abc6f94962f78fa0f441478"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e3f3251aa82b2b5332b9bc34750e24e38712c842b0a6529120d6225b02b58b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bed675cddea8fe86229dc15a86e4d7443db11fc3579e52a8ed8881d1b787d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"7213bc5a107d7d911dd127ff5bcf5583dfa472e46a5acf3a77b347ee5d492d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"537680ac6e944a9c997319334ab720e548a09b247ed9ad0c3f7679230980b37e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edf10d49e4f7eafaf7ffc06d5f3b64bed30b0d0027df9520d497ae7b5240204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"288e576fb8dada2acac0ff7adaa77d8372a0da27092ce0266a858b82b454aa9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"9270b83b406e9c14386763a7d20ae213a107b846166689e015587e76b537be8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb5580e3fdd9aa0f6d2faa1e610080adf5f763103443db5e483a9260b698714"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"41bff9645608c0f7b7ef5659e924db9e5e84eb71b78b2fba27fc3913b0c921ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"330bd4b059924e4fac5e51e4ab62d95ecd5bb0de4d2898c0caca33895a8b6fe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd78f8458edec7a57939e636c29a2cadf62ee3db5d908374f5b317879882f1a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac11e3813e3a5e8b55b6c84967f0db2340f0543f27a54008977b46afb53c41a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ad099e9f1711a7aec0671ef8d204996511ec49900141dbce424d89be26ab7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fd6b72426949e00f5d3a2ea1804a779d3c033efcbdcfe64a99bda85932d9ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4de8e31a82cf57bdac8ab9115c23732fde8413d13b0ffe31f91baf6db8ec10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"27697c54699592f6d614f016cf532fe9f0e0c6a1510a7325c11df7a2278cd251"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d078df373e8cabc83dbae975785df9a7ca41dca7b45819eca323851ff02c0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e1d17890bb0f78aae9a4da984a58df66031712e923b2984d606901885fbddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"364a8ac438f4b4c10158984722b62a48c7b13d657ea1cc15f650a8d6a3847130"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:470-520 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c933aab81c7031ddf8e47fbd434bdad25d10dae03a1f2a93638790040458ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:508-550 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65e69619ae5fc035682bbd48f82eca71899dcff6468627572d0e28cae337c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"5787657a9d37201d2abe42640f52e7180c2b06d0a62d7f53b22c4aa721951985"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"6674532806d5f3d4e91f70baed6fc290ab69f8737ba4d4333eefef7cb5113a1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb07d56b4bf69f5393e2864abaf4978f99053bbeca2f95c5f1a3cb81a27434a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec108e0d0f0a19ef8302210a8654149884c44d243a5793474498e443d443147"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"9695bca29d71e1b906056e96706844a9860b44e6a3a63fe86bc999be72148801"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:470-520 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d891ca9e98d742e00c0ae5f38d568381880ffffc7e5bb0f3e6616cddb86a0e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:508-550 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c766b360244088c1bb0faba7d6d851d16e49208431e4be9cb45916195545ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/kolors/pipeline_kolors.py:468-536 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0fb9140069686c35d629c2f76bbf3f81dfa19903aff37c4acb27beb8774461"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:489-560 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ee183dff95a7a4caefb38e5fa497f0fb0d7e1840b7d603731816ddbd7603ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"860c48c3c8ee194d50508a01a866a54d23bd2dd67cc5b5d1e54c707ec5a7c6b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ba62ad6345b66f9ce15f7fa912103dba1635dc12879cf2bd802d03c0216356"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:486-554 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"96cf95facd688761907f24d0fc10b5f506158efa779108e1609a5bf2b4035c0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"80da4fb7f3d2994a99c7a4798b45251f29ff831587c7b411ece7e107275fa03e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"982705cbab26c9ca83cb6a57954f96c03b04c186b04cc5c78b4d6df81b461eaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"873a0ff60620bf7207a71df7ac21c6874f40f74a08ab44cb85866a787df49471"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe077f0bf2e3cde00e136e833cc458fc9c812fdaec2a702756d4c559356684c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa10679c65b7a4d80873000eab28cf455753d39cd82baa08b7793868a9bfd55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f85e361ae0db7739f00d7295132410804c22f70804946e7cbb9d476f66a1575"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca477a018867584fcea2099e902e5111bab3ea805e3855d43dc88595e3d8fcc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f7c3a3d7062acc5b5ad431196ce50623a056ce3cfb8772f1a39f29219be7c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b38b35ba113f01c0c5e6e986458acaf55b4aa7533a60b282d32af184b5622e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"686eabd3631535e08e085cb14e12fbc0e1edd8ea819476a292d586ba40ead164"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ab6e96146e3fad302cff9f772d2f9c2c6da278ed2e81d7530e2e3eadb2c2bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"66faa1f7d459c419d4f882eee562f6a6a3d296377c13fa4164a2b1c7ccf85d60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2e9e4fe08a744739b5de1c97cd1ed884831714e0dc36f1001f313e42e624ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b1e451a5a61d41e1ed27e03eefcc9e04e6e02ada4486b658ab5b1d9db8c868"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0481e7f4789ea87888afa995a057912ff14f70257ce781ac654579714161ee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bca0361b2b44606c6051b997dc9564661819b08753d0e77278cc43232b2475a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"430a147a41b6eee7590ae53a859689f93c5bb285917d8eb51c2bc4a02cca26e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b4721412652c8d1759cc2456b05a2cc76aa44de3e41f3c9d4f8e0f1285d3d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca08444758dc574ef3d53c448a4b2cec4bcc44e2e8d2376a1f644c674aec76c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5f8e182b64a28a89120275cf724a741db3e0fe2d33153936e01c2b328ed244"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"08148e8211f8c181d8d2ad6cc256e1a57496cdb080fd5f97d6ea6ea9fc16059e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bea63b81b4b8860f835cbd1de2aa1e552bf69b694a27a68f866205cc52a29f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fe79e481efd8de5ae4208ac530f347a4b0714621979a5a9f23ce368253f403"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ac88313ba247383befb4a1beabdf47b55b3c72b16237749a64ba187a242d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"210a763bbb56dcc27afbd146720ad2bfc04898c09ab4a4d2f1d043229a0ea13e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a2384589aa70c1e5489b90ee5f83e1009e41fae26789c28783721f58c76c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41f1e609cf0d8b8c29db2b14f9519f8f9650857873c43c07b19ceadf0a83c61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6eb16c307a590321977ca064011f0c6f15001b860914ca0e4a5c1eb65cb9cb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9f7cc925a3ba6ef19451becb6a93751810960e8d3cb2202d74593c8c70ea28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4147555679577d3246dc76caf58e8111ca235f120b5f413a69fe836a5c02d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a98e5d5da0cfe849dd682ffce3c495557c3341f359d42f80258ef633e5690a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"0692d36c67d543578922e64f603073e2ac20733b7185e13f0a29f3b8778a9604"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"5537f9b12c41fb774ed3efdc43696adbfbaea59a3eec08304a4f5b3602f5c6b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"2698ee1d3006d7320e5afb39b4dbef6e42461e03c1800a96796d256dce787957"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"66713c21ae9d04be17c4ba99247be64ecd016d370c4f299d39d961af990a2228"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d791cb7bb3fa571dc2206b6b4ed0bd3b6c051cebfe3de6d3d592bf1c14039e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e79d71a76483a89d5d84375c8472bbbe646033bbb20863e6fb076188695103"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d43c619260b715037dfe605f0e8a8709cc928a516d13baf356dba9e7d607e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"451ee6fc3e3f52c19d4297f12eb97e075ceb533536edc7fcefb942127bef051a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3527d0529beea77dacff3040482d9b42c0abb27ab4d0f46212fa89a6264948"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb73b4fc8e49965341fc61b0b7ee815086868be1c9d2b7030886f423d717135"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4a9a17a31603d20fedc105d0ddcd9efc229f2f136b47b9f77f5e3d41c17a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9d14c279f72205c8b633c291c789533ae20fe2ebb4b88ea90fe108d034e9b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d5f8c0e1106f4a2b3d739e6860b74b170affe460e083e9813bac2aafa9f6b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a1618c13ae1493030800c751bda17889524d957447746b981d5fa8446e6269"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba590bf19d9c2db33ea41b8b92057587cd0ea5fb12e21d0fad2710c55972cd05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbd1b43f819a0d30449a32599610df5022842b5cc401833fac001280753b72f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"15861a183f7d9aaca151c26b5376d7500786e2a57178919d4415da5830a6d2f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d54c7a231d5752c9358957521dac00dc056a5a684636772bb869b139e9e989"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"521297802c3090459d4cc33b8060637bd174e90decf7300284c9688d09626f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"16dab5e779d9d69aef948690e85a72c07dbcebe61a2db90a68ec977e3ccf9e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d9998ecbcbceed48e81d1b3053a39f9f10d5297cde4932950ef0a4f4a28ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"836b1e4408288eb27f2a30dc7abadd7a13552b5592689b33e9d3ee6c25b7808b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f62be2d6e473ceae9863c760c71affd149dd3ab8be4f91aa217f5d4885ce4c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a2bccc3573a3f9bb41957b7ded571ca738a8100a18e0dab63fc32779b1ff24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28a73fe06075daae443912b693372835b68d09c7b971cb058dd894732fbe12a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4738e92f061781570d8358932bd1fa741a7761a202a8c1a945bca025b639256"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d2855a64bbbf86a56751155ba7f971c002095b385f7a43baf8cc88e9e82da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c6f19c7bdefb744efa7988f8e2ce64bccbf7beebdea7c8601498f4504b41d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53afebd087800a25020a8255f34e5ddc48725674d866afe034630449eaa77dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8478a622c9d587251b28006ac067519188c601914f03be836a157a50184ac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a143dab23e0044b10866defcd1acb0072789aa71fb040417743e024ae1d172"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fea832273827e18e703503ccb0aeaf2fdd7e1b56f6dcf66710f304bdb49e0fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df71026eba0f324c42ca0c8dd89a8c842be87788da18d1dea989ca6197389a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"493ead85ba824839c0d5012d1708d9e7361744b8504976942a2d681496fa17e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"1385401eca391b6945aac3a2066d17c2b499d36bf81402bee720e17cb0ee25ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ca4d6ca99d24df8b98f44605cd05b7192e695d0c7d5e3b3639108d7f097dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4789c7b77e547d4dff6a50f8a569dd64cd54c09c434b2fc53bfba374b6472e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ea2f065b7128018a7e9e4b84ea915f74f9e41fb19e874393d4b0f25ce79b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"1753333546a493b75b30f0b1299d973c15c5bcbf97587ecda582d68503968c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"f237b4dffc17cda0714a8e564484f3791744f3b97f28dcfc4c22e4c350c15d30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66bbb48b38a0f910c874f7cb308aa31705accab4c4beaafb32d281eb652855d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"a352e36ce858c56d2c3af0ec98e0d10a2bca0c028c3b5335ef3de3002c09b6c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"016db0dd5737b0022456332fe2c25e7f6797b9fa15b1e2f75b9ef73f9639e160"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22a90762ac3ea90882aa981f0fbdf62d73c91786f6dfd317742f66b9d121ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"29292178e1590a583864ca9f5a3daff969ac133119626a725d844ca8a2c80d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d5438f6c2f2b4fffb9a826f0f908d8e57ea1bbfdebae2dcfa1ecdcdf0c8dae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bc8a7a04d257ca2b660f51dbb7a5120eb9f1c3492927d3cdec035e17a1e79f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed8af64fa7b85e2ea47acfd6fa37d531a0878419e8449f7e9a817d74651d720"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"069838b4dcffd759efae88c92ded8bfd85b3e793b0366275c912507ff9c59167"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"619abb674c308ead53d280100c2b5003be29e5b93b7df286d12f69431ded50f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"34239aedb8efa1ccd5e0420bf73bfd8136d25593779de97b7e0460d77a8acbfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3765506be9716230eeca0a010d53222b7b34cac8afa7b13411e4539f5a1ad77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf08041bfc4832f074810192b1c926e7a9c32a5669f63ba92bcca0ce09ddf0c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"85496d686a51f2e79096f2b2238254f697ec77fe8339d4d63cba6166eee27872"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"9616299864115c9bc03a2d9ec99b8e738828b5b178706467e3c291a8f242318d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"5376b9ff737cd65fbc49f1e76034be88e97d755a8d99566c8925eecf93882826"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c4ef588a4121350e8872b12b2faac29cde1a6f9bc40ac7f17d368f139353c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d0344f3522e524c1d3aab674d1218161becc15812e11f63947b65222e07893"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a28423cfc64ba52119fe6cd8f813d3119cc196aec3bf3db993ce2c9db1c8ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cc102f5b2a4ce030973fd89b04a630bf490236c45fb8d19a8507b01c2dc1bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 \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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ef50843b2436d3b8c7dd197031ba9b7f7de654b3a382bfff156e69151b6984"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06d0825573f4b9e5a8ca0e3e71fcb60c1aecbdfcd787ad99e93407bdf3f796e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f77769eaba1841ae7b0a2d16ec1547f0a9a33793eb24843196c7267eed8e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/flux/pipeline_flux.py:453-505 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"524d38348f27d689a1876f43c9b8c3ca1e22bb0c3450472608f47e7f3721e007"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f615723fef1c40e969f6c35bdf88ad924f092f09327e9190b58e373b2dec57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"613a7ba918d6238809f04da5e54b186d6210c8951c09af73897226f1fe0c514d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9aa161bd696e04679c11428631182e4efa3740ccd1ebef887dcf5fca39c82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"505b4bb6eb07b643d1ccb73b6f94bba04607d91903bc0a4379ab5ad3ebea0a94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c379fb2b9d1f15ff002fb12ad081bea37579ee775f2914e6992f4218eb8265"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:471-524 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c22773c93fb98da0c074e08ed9d5288d9c18a0ef51340935e019109265afdff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0944620a37c79bc054116fc6d8d72a86bd8affe82fef6073fa0545698b6c875"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e9856b20e7771c8582cf13e4357e6c451f38691da79e4ca140a96d247fba4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"03db512b89de3fef60b6d68a1004043b8b6c168a416eebbc7c0023cecd669d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:504-556 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec694c4f61e71f1da7c644ad753c05440aed531088e8d9aa9f51453213689a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"612ce735c9368fef12730b5d8fc3812267dde8e8e9252b4e5d4959d40a6ea2f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5fa90cb3227c9a46e551bca4a71b0860e6f7153c1d4369a7f24316ce8397185"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e69809a09139bce3e47a0aa6cedc22477aca83f866f7f547d0fcf420db7050"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3b42083abaee524230b8bf543078d9a4671a3c718c1d63cea6750174b97303"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"9580dc859166524a1226b4c1fa456dfc459064fc55ed405af7541ff82474d440"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"198f3258a423ccf794863484d0fdc596ee5581dc46fa0fcfc659974b26237f98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4cee1f2872de90574937ff164d63eeb320221a7abd9d662e6849399b032661"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bf57cee2f814704b272e4077d8cf4cf2b1bd8e017b0a9ba1d8a98804e12bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27b677845ad78fec6f54dda4f3b4d684c23c740b750fd9c136cbb13e034a6ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d5dd07ed4d9ea30a2599d1b6845b9e89d9668f6ad0cab4cfd39247b1447d77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ef84c09166ab532aabf17a80e931f4836b36eeaa6577b8f9cdaf855f86ddea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51ff2aa92fecf000782f546252597a6f8120750af372ea9c614d39cc260d15f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bac5c365fdeb04f3f2b6691f38c1fd7ca35413ff03ea8d232e75189e8800c94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/flux/pipeline_flux.py:453-505 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e51e773506fe2d12cc628bc8d50ef6aa146b8bfcec324b1fa269a56a59f9a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a00ea8b3f7de69239a1425329151b1138364edfef72a0d05686ff6b2c75c1d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d386386afe225c7a440ab55dbe6468c8c3013cf712265fb1740b567b00c34ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c14019a2cf174524ea7b10f575284a64177ded25eb038c18893fa9798077a4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb91cf4b7d45d4b8afb351b8f065f0c38fc9bd8a2684981730778bd0d2b7756"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"931d68cf95252a20fe463d8f68a25a6a4e53191b9bb1135296a3a1da0447e120"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:471-524 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"a515a0decd509ab778267591dcda6a41d6d06f0aea378da5b35425828c6e9065"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f886f2a06bf15c23dd04f84ffa94a5f3bfa69b5c583912230164dc594404a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc24e51f4d126428881406fa0a8ba79cd947ac16341f825f3d1558811444b82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4d6c09ed6a0a772154483d4e26787f3a30097dc505a2779cd28db2b89ec2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:504-556 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"2476e2110fedf008e8d3612f59dd8566496eafda6efaaa15a7f230a09822d014"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7ac30993a892b45a4c0b9aa3caa27bbe6a36920a5e6b802097c945bf251f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a661a1f6d0e1ad6ec57288da3dba984c0f5e751cf63709009d46631de84960"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"818ec75785b365739541655ec2f9d52a832e9acc5b91ca696ae30796303a3767"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8e2b4c26f39087fc3bf17f526bf4e7c4f4c276218d271bf764b418f6c88d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff7a11c403f72426111014cb69736874e53e8526504810fdcee30c3ba091121"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83301b1590dc5c381251c824102845ac79aec5654f73b0eb6aeaf4846f539a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b3861c98d115649a3f258c8d677cc7a199baf92157f41effeecf12854bd3c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c30947b12c208a06c6922b0da48771a0b2fcd9987ea818290f62094a3eb42a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e943b001a18639d7c122e8ca6a15396dc0f7b4432cb27b27348751aefa6dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"7913bccd7c9111e05807a740506aad1ae641a2fd68df1351132797416eec0424"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"040e95261e139c0313d2ebf8c31eddcd2301e10d44c93612db0c5d036725dea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b117c39af6d386b3f28cf206593f09027b05d516392ad7c7f866e64dac309d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c0fdf7614eb935074228faea106bac0aaa47126bfe1aec03a1c34c3b72f3ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/flux/pipeline_flux.py:453-505 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e49a843a4b7e1f1a9a3a7e0cb3e3d2ed1e75cf90c6b418069a436f94c876bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0fc3fd859a203f042fb13d4319b7db6de85ca8955fa37a8741231e0e5cf49ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0b902445dd877b9e84f2a3920f414e78969b4708931e0315397ddcad2749ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bb67cb3e75ebd63d03693912e44bdcee446ce0a3e83b5124944e2e92e8b7b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f1f0ec70504d0a5fa50a89920e321655a9a7043308293753e0a0ea850b131c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc8503dd22ef0ec09890a6f8dc2c018f66d49f85a71d30ace4b28eba8c7c217"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:471-524 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"50794c8df856547fe973678222a420332d3376a9c2527ed5fefc71010df41040"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d62529b42a9303db9c82317527c5eca9056961e05308a325b115703009d764"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa19d5f2ffc6741ba3cc0210e002c19b4139fd29dcc39ae37a04fe65a53c9a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c7f6fa8d305b9272c4a91b2457796976188844a0f440ae6101f5a4f42a488e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:504-556 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8bcb7c189be0d4b961379abec02a65f0346988e9c3c1e68b03851f6ac819b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"993c5caa7acc7639110594217b3ddeaee26228875d31cdd1e3ea6c60414028da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9573a60b2fd4a9f74ef2fded7d63ba69f8cd6b3b01e2f74fd0b3a16bdc0212"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"387e4a75e09353c346ac92d5885782d5c964b55a1c22786707bd4af178c6e872"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"353e0de58b0adb7c9e55e030edb783a34b7aac8dcff686e432a147eca65f4aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"c287e939fe8754e91cf66232685d1e715d7a197b10d7a0338f8a8674dbeba20f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabe76c12d031f5ad71a1a8757611ab49e3ec32a735fe9f3c00c41f1b38cfb2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a342606674c0853acb1d799b788e2e4ab1266b7b2662061bab40771f9e5081ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a756f9fbf2c7158a566ee62be03ab144ef4c2491adcf1b1fd29b7584e6c36c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0072ce77e6f6be91a01b241bb43d0058253d07299a3d3d2c1dc93fa89e697e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a40b19b7a5280552d4be7fc9725e72423f1d064320fac11fdee70d7d430831"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"da330961ebf23779f58613953af9eebdbb3cd64c8d76224bc64407cccef683ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6a8e711fe325c2f5ce79cd985b0179d0ed0e87d6313efdac54cf7ebab775e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"783eb334a720cdac3d419ba04cab0b42d789b4f49ab6b24e813397a62d13484e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/flux/pipeline_flux.py:453-505 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc39c1ec514edeec243444ad383d5863a8aa5d8065172b3dd9b9657dc068b33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4fd01a8ae2dcba998037b47e51169a1dd77c47d8960cbc0851f526a35c75bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13f05145b3d4318372cb6ff3296e208013b86dbd6adac7c9bc3c6c6dfd597e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf1f1480b857467915deeff73d1abbd8e54bfa6b077657c88747fa28b6a1088"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"597e89d987e8a56ba3ecc8add93810504879cdeceecdd018a0f1d8e682e8c289"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa49d0e287cde774fdd45ec61c79596b2208ff995781feb49b7669c1608b3c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:471-524 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d731848e29661f4d12407ca70ef584b76bb2700f0b1e1e3ef8c7ad346ac7ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"c441ca81ac69e54658adddc60b1dfc8933d2d53183ae0aab6116c057b2bdef33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5edf1e76b3046d3075041c2d26f8f86505b1ae7208c51370cce7c1e38a72c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95e85c9443a38224cdaa9de540edbf16a1c0cea4c975ceea3d476edbe4746bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:504-556 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec93f7b19073121ab3ccccb33217b876e9c9a4c7176e37a3416b61afc6d2b29c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"f470218fb3bdf67c219a66b299d545f2320a4c08452e8c8ea38bee3d82533ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fa15389c75ef0400b581b5358aa1af99b711927710ccfac040d9db9ed677dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"d795754eb42bce137661963728ff0eb5b67c064868225577de00b9a5e1d4ebca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b2dab231c9acf8ac9103c3a328d1bcc7d3d08407fa40c6acdb4dd0473328df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff68d6b873096ea49388f99d1667980398e7a17a0162299fec78318485f46175"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6a267fb79f6fc6a43010bccdd116f91522ea1e89a41af5656d7d544d217843"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"433eebb5ae996387ce2038abe35aad872a82e723a98a64f3c81fa1be7420a930"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f8d777ec60c71777250d882f486ee259746ee27d5cd9210849b61da3b5d9aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"4032e94fe9dd2db40f5e65d1b7698ae42df9e5b669ab1ec0b7894fa74b73ac62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"389fc0e41a27b82940debad69824f9801b961e8828906eb2c8c9f564835d63fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac90ea3224d2bb44c45b2cfee5b834d6cfe86c0f602ba15a7c87ccef9b0fcec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"088817027db54735614c46b1bb3292b50941ad6d318e1e37975e32fd6c71474f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed32cc0f0c299a9579d40e374ac9859a8a3c33001e408afb0a75e36dd842aad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e773ca8ea816d37f9724639988334cf159af219a45fccd268d8d2733425aa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"e687a45d2f009565d54cfec0f8cf88f7e43f5ede854b8560f887d7406eed3595"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c26538afea4e1c287654721c6ac6bde125094699963a4d8a783838c9434b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c7d7a48c2ff75ca479469e701ac26e952aa179962a3efca6e9eefa022af91c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:470-520 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c93008b9faa9234f7868be366e7851dc1ca5f30b5203ad0de1747d6066c43f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:508-550 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"86deaeca2b7f8410145204b28924ce8b4ecc7ad9627a31c8bee7a9b063d50c26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/kolors/pipeline_kolors.py:468-536 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7232ace0cfac40d82a886c13cd979b0bd5d0fc11a1bee6fc3763175bbc326ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:489-560 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"64cb05e78fd30f6d399ffcf82b81b7115d47d40dac334383301fc45e973af9e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"695df94c5f118a14723b48559aab956ae2a7a9512f83b40f5c1c757801d0b898"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"132b3a8b1a56a23a35a8897e623902ee60d821e778cd1122d6fb371875cd1148"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:486-554 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c6c26df21a49a97ef56880f78b5ba6b0620d21a5f0388e521a4c0e97ef18e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"82330110fc386da1e01c2905e465d16a67f215dc5274e92625830d2f8e91b10b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a67a13ed3448813cce0ba67f4f87ef209ff08f3f0a9d46daf13829f32b29269"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"72440dc5a02970d075aafead64218f80c64029a2c463a961919cb528309384c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c24d506b1845cce0fa0ce1affe9f0c7cfb4f3c15be5096d4bfad798dcad87b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"3beaad4d580b429c5ce7b5bb9a7c21ddd8725121e608fb2a66117525d1e62fb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"904929023030b3118e819f84834147cffe296c4e3bbb5ae230bb12b3bec9df32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"526b15165e9f645bf7dace8b4b9d60b720c6fd0580d5d7df1ee031d684259850"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58336d364595f21f8757cb4bc8a7c0889b1e8259a8d45b44d852cd314981dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7f377eff2d3566a67eb04b067177db0cb557296a57de6d71f55088c08ee0b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e3af6e047d1a908db53e8f99cbb9d45d4fffe3a9a48e92cbf35aa3e5470b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a5c640ba0b961fcce5b33c25f9cf43c9324d8a9b7ba8597f6d0a814fc10367"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"707403192f728ff378c4d8c4da09fe6917d890bfaba6602cf04532261245995c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef50fcca9e513720eaad89c081a1416d8e4df7a475c60a796b5c0fdf5e675ddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/helios/pipeline_helios.py:289-321 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17db616f26e1fed1af33c3cb131bc8ada6d4892aae7b1f92a22ca5b77fb539e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:308-343 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b091b61779ae6662fdee0b316dcf3881da00b95979e877066346612c026e277"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff78bdea2dc674b665d42b50dd1222a093d872f9ccc0f4efc2ff71afcaddf85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"821a4719a9fd05bbc80df518bf8229660788afd3f371b62c89f0d120be80625b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:470-520 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"037a45861261f86afa8d13c00d337a70b772451bc901521b4eae9bde34c6f4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:508-550 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa9c47d65d4ae04e92cef53c54494acd7a510bcbf5d908177da19c2ebf52a5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/kolors/pipeline_kolors.py:468-536 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8af356f55cdc7a597f25c1d880879a93744e1f84a8d4213db1818d764c61c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:489-560 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b8de98f0659b90009eefbef413462882c2a15ee76444e1517fabc8c9720efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee7ca104b243ea335b41354288affa07478a11ce59814b5c00072f72ecb798d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:568-718 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"5758c9042fb5379e864de982ac641c6289404dd03971054e9a56259025cf5bf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:486-554 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01f72388b075dd96f90e762732b58545fb00574ea4420aa6c61807a30ed2ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:468-517 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7489c4f02c43ce359337fc5f15c83f89138cf65d477954c2ad8a7dfe74e15f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3807a72cac0b585a813a81eebcf512d50a11a978c8612f507582b613843cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef1608c8343b4dc5f8803cb05048d0f70f69e2b53bbdcbde1eeaa43e39557a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ad2c06def24cef00a2c85b808346441e7220f161f5fc69b2554ee0bc6b0b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa13a4401e674c1fe3ee96db424533ed880f15824a064930e3c71d49947c08e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60df63f4444610e3e087671804a6fdaee78cfc5e945eeed81a6c6d29c4e50ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"902e271237d309e27e3e22efc4f21f1ce88a1b346b71609e8085731e35b1f878"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"c496291e3c9df73f84194c701f9df81c2d85a4a5a25dc1c25eaa3a88736fd886"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"5875037c5dfefcd471071748a95e23caf3a6e4323121c3af99792df13d42a04e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:462-520 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"153b2a3b1914c5e3e5cde60c59c2e9ed8c2a6c275be9e334b0ec0c58ee629283"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:473-531 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d7a333f48aff7ea4299b6e7f9ebc68b3cd80a26f71de65a542164632029284"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cd07ef1f26db3b50491e4c029060aebf6c1daed3f199b0cf612a2bd383028a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f3749ab8be5316cf1e2795f279090d813be9d79832bd5773e6f31d8d4b73a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8ec799b2db707097c7023918cac184bb39deb8ee14987e874995f99c450c63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa647ce00015caa06c5b7abd8876c390a3c29602836df306f173c78e838ab58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85ee6baa5c10baf0cd8665f08198647d2a85de8147af0cf32256c9ca3c80d4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eabab2df9cd80c7cd988944712c728c079aa68c5ca0c502fc7c645e4c1bd14e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1791baad6730d9a2568e25d02e6f2833469f684e10f1cab40e6a51162518fe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9595341cced70e476c3739cf452f7b9f4f78287f70573c497086722b2166be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"9515b660897f50c8da8e6bf7486e30672d07e4a61542d5aecc857bdd43431721"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"60110e3d2e9d2ef578ede8ffcf5d4634221b0d7f4be02d49972057eb3ff94917"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d0de6cc6c73e5d1a621335e4fdb6c1390ebfdf09248050c06996b52ce849ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c879c55d176947c4fa0d4362ce397532d4f6eff4a8272642f7deae68c547952"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"db675b87eee0e90768f96e2595a241a1e07b98da110e4ece60833757bdadf641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b80a613a68d25e73daaccf2d16540499af4560d4f0ec823df1f021d609f3668"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e101e34eb6501e47cfc93f946c016f08dc31b438f712315378ea57020ca5ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ebc9820f6a5f20c43379510b869a7672e097ce17ecaac018216047af3d3388"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:470-520 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26de1fb92273e0206c9b1fae237407497cabb3067c6494ca66de32f191da799"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d7b3e833384276c800b7b9eb4e0f3b4dd51d7348cd84e1d1ac5dd2eeac5c5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe88a22be9c4845000acf7dc10a06be9f158ec4f39abf3c07abf10911586dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f83b99e6a3217c99bb4d121d7abf23e831862d0e777d1cc7f99d34d153cbeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a320f3ca33385f19220cc03190b32f8b4c483c2f133cb31b520218f8f0a3ae92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db08ee77fecc97f6ccc62e969e00ee6407a690215cc0dda20e1db8a7a27cdf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47451ceb44cb90968398f4ba382f0ea2a7656d2c932a021b3ead78145c22e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:470-520 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"7294c98272e9019f9fc6adfddc9fe2987909e5012a6f0cccf0260e701341679b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7685132ede71a6c484a1d8cf1a847d62488bb3c5bbc02b8f90c7f20d4bb4d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5e70d2645bc44c03f455902a9d5e303ecb0f979f65e4082af6f24c0b1abc22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:470-520 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"38365b208cb5ea5a24ebb01408f86933fe8511acb590054af72cf474cc2ee9a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a67aaddf5f7de3470f33c5bba4268e7214b1d167574d4e88aa3627a2d22f747"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc43bb263110ff9039056b066658a939590fc17a22613959c3d8e62f5e6e8459"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"622a7003f4953054948a5eaa6f5cf17617383d26639c1f8b638cfc07bbf3ef4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0e8051e112e07d4705a97f6babc91aac7dc43f4abd93d5d0860682c251fc93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"347a5db59c17bef17849dbd82faf3661c4019fb52b0c1a3325da684f29e634f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:470-520 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3cbf16edddba02f2c2277050241eb3bc29ccf9b5c34dbeb879700963b0f033"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"728b1a1af7aef04078c4b287c332028243a7ce5c707255ad4ff1200364235831"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f094419da77799abf29d071334f8118708252b08790afb5a149235fc81f2a66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"afdc5ac7ad9f811321a3c2e4e6b110b0d24d8c48e6945c1044c798f4701aef73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:503-549 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbe4b9074d4a9c738b81f33288c62a61a849593ede66fcc64ab25a1da63833a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:503-549 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"107cb2076e6f6953bb71d9e5f3172f5accca658670d6c5a6c7d79b2c2cc96deb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:503-549 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"d055cbfc35b0344f79a97fa6649821baead887a423cb3a2cc3018550bfb0a31b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:503-549 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:376-414 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d1b8b78ff15fa825ae77ca4ab930ce811f8b31be47fa78de1286e0a7a68124"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:503-549 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec396552e569db213fed0de5820ea035ab8c2eb5770486f951caaa9e83dd5ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:503-549 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ade100366cab15112c4bdedfb979aa8e182c6bd58287931ab2e733205849b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:503-549 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:358-390 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bdb1d33a2f050e7956b415e5dd844ebc0a41ff68659a5f1336761e1a9d7a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b34a5d345e2d6d35ec2124197c39514b7529cc399ae66f718e82b85dea6d34f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9793fa2e1df182e9cb1909f844832ab7c06741572f49597f4b6e079247f0bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c61d7c3d229dbaa8500effc85402d663762d08d5e6fd29157fca08a5ed836a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"be78ad9842d4baf37dc50ce4453c2f573f2749f070b293e0eb58a739d3a5df16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:471-524 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"6812b7cabdc17fe674a91a8e4477b1095cdf5ff688c82a36d0226276ddeba262"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"857da12669529c3f31efa2c9ed3f416973eb83a60e989a95df06d454d73d7e45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e51cc726f3d59c6d66f4948974a753f0db2910f0e59403ad8b2a6603f4c607"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:369-407 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f05a7cc6f2f0f907083fb5197e4706cca7f9df8ce6b770ad302ea8db48325b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \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":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ff09530aa265f2189ea5f7defb9fd7f833996caa1d7225e74178cda6a86f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"f691fc4791435619c7e992ea51d72359b3a1cd221e0f78ef5a9ec8660e342e7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"075a80498e93e1c4908f26b13d80cc0522dd4119de0236c5b181a00e9b0f1544"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"1401464c328173c65b3cbc32cbea3eb2cf8a40e5eafa5f7ce88f8ef5792fb411"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"4840771b95e2f70772bb2a8689de7e072a9cd856e47b8a8c53750f8b7094e5a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e22392cdc4810e93abad70137381085d1f8c40ab32b13647d90e6406c62d9d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"8758568bea4ba7307766d9f170ea281ae1b4a0f88437da714ecedcc62668f792"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b3130449e3d77494c6739e919a57b67157c2f20eb8aa1d950f3c0fe8200a79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"2026cfaf79ddb69e54a595ab9c34ea798ba372c0c13b36284dde2e03a0d7999a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d2a55bddb8eae7579d8e46bee9d299673bdc3c2529c4a2b9112519911b23a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0e4519f3e38848592688b5f0f80040cd5ce30a95d17da44f93a97a969eb48a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46093464c580deb3691ab107dccf4a059036b2f5aa59746c3ee656c749dd8f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e470cb7a620672ea5563f0464e2ec4f6dfe470b7116d22967e143272067962"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:503-549 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f7c6096280edb3229c8e9137f9188d96fd9dec4b2cb868dc8105a5d5366f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:503-549 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda40df37cef4f028f59615884daefed1f84cd9276edd91237672c7ad896ad53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a91decc15446a1c9f1ba04d4f48b11069eff906bc7ffeb5bbb6d11762c1d08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:977-1042 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"7010d01bfe838e94a5b2bfd3a0b094d63f2aba9c0a48e4d34c1599b06b6dc9d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a2901a0716cb28a6e1865213399d5dd0886056248d76358a09b79da9536c27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb01637019530f8bfc9b2946c5caca575f26d399ad2085f0070bc5eeb6ba3a28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0562299a4f3ec6c3b3e85cedcb244a24534a3a568351ad93226e5e3d4f43158"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"828a54b2c39fb1861363f00022cde424a8a56a5758c786a1de745521b767aaed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f10625b8a7af677c41e2ac7cc114548aa9926b1d7a2d33d6375c4aeb8f845b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57398ba9c48d3114b6ddef1f0bdfe1668d2b086096bb64646bae1942fc2ba16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68ab2d4a6eb488ab96586263274d4d2d6e4a92515b95e0695dcd42e3d4c348a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"957cb7e9035dbb75fc2a7ac37af45081df89eda744d580e8e415f5e680765273"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd4072e2dc451a1438fb2045219c577a81f6de507c83860523512c016e17198"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"720f45a52a0c9975f5dc118db2da98a2a35e2c962c6bca3f7c2a1337d01d211a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"2589267a0b94ab5a6877e24edcb901797e3a0938de2d5f742c1438e47bcf9c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8bc23a3ad038d42896ac07bb54abe6b4e3478506710f885e78f576358749d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"a830bd2254dd861d03b1026db98eaa7949cc00fb204cec06870631234394201d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ef625ecd277f581e0063d752e390c829da6045f40d867568818cff73061825"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd80f6aa657ea264bf503b1098b63e34d500781917b5b4c09c67d5622c459fb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"860f499264ebd47ff5a36ad01b853f5a04d06adcc77cc4b94b50133ba330b4b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"b270c1b7bd986d46d1b2c856c937e220356ab96c3717293b712b099d78b1ffb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2dc254a89767ee95b7b24613387234f4e747101a3fbbb50e72938dfeb56384b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd0945b510896b21f495e0bf6edb700d8c264504e155fe5fac5f0a6a5592820"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e381d74696a2fdd6bd74b7c47b57e65ed3409738814b7e8dc91513b6f6ba43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c7400c6fb009ef5ac7bbcb8acc1efeaed76d056ab77a5d3e479c3642193bcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cb85b9d218ecff67e78c3bcd3f87ccd44e7873b67720af8125586966f3f860"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bee1b00d5b6a53c4a65bc6d1cc9ec5fbcd24ffb94c4c73190a4e0d23977d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0aab3946eb7ba12d9d9c0af36189248606878f08a8567c5572f2c67d6297163"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa907443053d973d80d38e73359e9d56d834e912b51ed7f455dab99cbd327a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94853cf1fd97e24eb292bf50a954613b516e321976f86d5f50cc72b303fc4dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d19afe35d951217bf1f704258c35ab405c61501ea05933d30731ea0c16f726"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8321f3549911063c68be1b699b4670c0e3e01c758434e9496f6a6573f8baaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b22e68f6c58eff481db1f1419dbf46a83aa597e3abfa10b7729965455ac3f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed273cfc31327ce13f9fb47d934c0575b705201a532830389f13e467b4b07c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d194749fca6e2fb3a68bf53a26c1e29fb402f59704e7d9105a5308d530577e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb111b33ba36299e6d681e839d9648e656b6c2f2127f635ee3a701510583d5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb4646bce3b315957d94e1275db5d9da30d80ad07b71d606369c1052827e19b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa81d987090615c1030c8b45fc6757268fdadaa24bb353d31657e7df80407f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7182d10f1c96d23843f55bf100024ed7c774bc07abb03bff7d3c0f9b02f3c7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"97eedc2bc01a6a4fefba44dd2ed901b0ab3bc3e7f03cacf670b11f5f41aa5b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d21ca5a4bfd6f82e07dcaf3055aa5dd9b68e59304c6731bbaa654d31289897"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f42d1274b1a5a8305b3a81ef6da6ca0178614ddb178eb39fdfde5527aa6c46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbd6d9dd7bac0037e26985806c83e386c59138ae36a6cbc52a8db4584b94aeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda20839377571ba01f32d0078794cd2336f97695490f1334d0bb210174b012f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01c756825bd5d2cbed8dcfb3a340bc85047c6145120cc7f782ee7822e163340"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72baafac59ba509bb0898ef3509e4ca8640b9327bc006663dcf53d9b7748c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"060215cddc4015d129464967293e90399e4fd7273a2e8ef220117d2cdcbe0570"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb87c79ec4860b77164d398910bdf031b878e9ff1d35547b80e23e2a1384a46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"790caa26442322a928b4f215924f62ae7f48474b13e7aab11aab85cd49c7af4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"46832bf0336ebdd207ca8820d4c55a4c27d2b0b622e6c07a6e35abf77f5b48ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"513b2dd73bfa00eeea613ce6018f4c8632a94f0ca60037d49b633784bda403f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63bd63bce94b90d907572fa41037f88a3ea13adb4878489a645291a30f3d8eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:640-717 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1863224fecfc7f3c6103416206b4bafcdb4f474a04b3064f1e3480b81e098b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"6887c67a26089d18aec4eaf895132d6b82576ead636e2fd1ca11cbc6ce9a069b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:680-762 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b8af41b89ea12558a4ee31e4472b6e3dcbf00b83688ffa6a77d418e69f2827"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b84ce4ebd83921282c2c90c01d36b053d315aebac178c86f2d7ab97a44943ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b73c6279ded307d7b4c51129b20e254b9e501319cfd0cda76335c7620d75dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1427b78a8a1a851193c346cdfdda06a6675ad7ec9871efac43a00306eb43cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63c767ffaf7a82d7440e8552b89ccafd88f617c4b89ebbd97c8734238e64e3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44da35ded0bc35b4f07b4e9fd8cd08470da424e4d60d265d4be54767c3af769"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:629-706 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fb2fffe07fa810c119fd7c21350188507ce982c978c7af106f9e823f86b71d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"a712862ba96176acfc5f8119d44010d71082fe5be54fcf9fea6f34b4051e504f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:683-765 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0ddaa0b55f364d45f946cd8937685ab1db0165d11f7e5356957a429db5dfdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fc809267e1731e90c75a813b46a2a3eab5d8ab7d148420f9c1f0bddf0ea9c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:658-735 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"289fc2768a3bafc7b8613b1f96164638e8ea65352f04ea4091aa9822aeb286c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"1819d12702657533447d010c10a1dee9b4a7ad76d75c80e22ea8f75c2692c79f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6089bb295e312bab6bcaec3177fef9e3b2cc68a4add90b8ba8ea3cf8f45a0fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d7efa9527eb9ad52d6dbda9aac1879d928ab43b4b776423982b6e213fad846"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e88fd6c81aaa6b4196dbe666db0c301d8796c77fa4f1336bd822182182b30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"610d6c64bae2bc6f93c7d19ea56a3e86beed10fd042e5e939fa1fcfef355e901"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \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":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a298c5f6061a7e1269ae50a49b828e94898b1bc8612b47e5b6b42c2ed92d4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \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":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"65bf4b9320c522b33e66966614d0004514720a7c47549e82c545371c467a133a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \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":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"259bffedc0eaa81d7b86a4d6c25f1c6bcbbfbda5677160b6a0cf858dab230f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \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":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"77bf03879584d16a5ed66946c70924b5bbf650d9799649d20af29bd4dc8ff9c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \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":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2b03ab0ceae5eee22950211a9fc693b04796387de6214c2c1f64fa3e2d900c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4c40f39ea9f46d7b55013fd50bb3d96a0d6e1629408914e9ceff936d951f1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e206e65ef9732b0b339d0c47e82e5eddaa852a51e2452ca6f879a2a3483810"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"3980e8fcae1322cfd4e07d32fc97029257931558f4fb21aa2d30a764038b8bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8ee055697dc10cbc819e69073716016272fb4a4c5f64ee6672db19bf95331e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \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":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dae3c413c5d43f7076354b9544f12ee764d4c0890a1744182a22a922a1c93d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"134576d2a0b114733bb0d7819d12c8206006477956768fc760aba479651e6bbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"034d52e2d763c4313d47185fa7814eb926623e331820037925f9e9435d8d5041"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a41749139c6dc57ec4e6186b6ba37b8048fe283b77076ce12cf2f363a5987d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \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":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"1231e2516e07a4eaa7ef6234eb6dc2e7356c6a1d64de81fb1d6c2a348199e044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1404-1521 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:128-165 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"74dbac9a3f7d5ad459004a7a6fd615a4398c5396dc863260529433b2b5b991b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51635f8ddb8232c5d58e714eb2725dbf45a17857a60e9eb1c4642dbc34b773a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"a801b17b928c76019dc0092142cdf96b4ef6c896c49148b09a186be52afb53f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d359c82bcbabc8a178cf5ce4d9e8b39bdd7d73c0272f15582b939623d97097d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:380-415 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a86a6cf72caedb2bbd59330ea4de1d11f033dac599de4c0cb40cbe98b653ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:350-385 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9df5ec86eaa996b6a4bad7750be870663a4e3238beae978221cb08bdd48e04f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:470-520 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a482d1c73274a9a968f5ea24a2c55b98099e344feeef093545ddde65b39ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:508-550 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabec4e2405ccdebc65b44056fa621a5e033725fd8b676a7f8283f98f26f0986"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b0599a3afdaaaed02ddad41e581a2de4a816d23a9cb11aafc56ae0b6dc7aac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc82ff2c8a0a93689ee9ec484c0e06e36d285c34b4eee674bbecf413cbbed16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc4510669a62603b4e6cea01aa8e0043aef081a67fb92db52d3660498051c30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"c585a588d6694c9db5f4f7c1a588923096e2813e183a09b0bc66a7b229559846"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/bria/pipeline_bria.py:281-319 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c2d6733098c2ce375a6271e604c52770882f1db2e2a1c364c501a1b86dbfc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/chroma/pipeline_chroma.py:430-469 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"435622eee81f90fb02d85d6032e040c1782f500497820be849e07f021eecd494"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:459-501 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"9970ad7fc6a87c7492545e74fbcd5b553e207c698121971114a512a8d184a029"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:491-554 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb07180cf402581aaaffb6e05bf6a1b6fda22c6e8c84ee0e59807f82d6b4947b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/flux/pipeline_flux.py:453-505 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddb0f77d71564738bde30ca51907ac788b7689917234e9b56fdb1e1cfb9ff7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-453 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d2d83bf7e9f5b7d9fcb7871e67605d7ddd983204ffbc3752d9de8c737b66bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:455-495 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51bceb042f3f71935092bdccecd75774354a4ef5e418bdee412d0c09d0cb8ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:494-534 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"315fd32c913e948a079e8c937340c26db259500cfa115e250988d0452b807d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-547 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"e551741ce041aabfd9ea0bf188e8c9fd0c12c85b28c3af3f1f994d44284cbce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:456-496 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f4c36e7f3e433135b79108b87cf0e9456fb82b0589e70a384b7f8220c6a178"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:471-524 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c09279fa430da98d16676bd9c324fd88ed6df18ca2b25c07d9a331df976e52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:542-590 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"10990590941cf493005023d3d97188d7d8c6236021143fde19d6d6dff8601dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:506-569 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2c916d20c40c7880e2ee6c91c1f79e561889746c0d477b91ed59d7337d8c9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:514-590 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d704db6917fa2de85386f781c10eb4915fbf566fbed2bdac5fb203d4efe254"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:504-556 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b7f6d5b7b21115f7140596834b5a874e62a3b8089d091795980b5089f806dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:554-630 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"5627de476dc6285ceb73114a1a797ce77c84b85fc5de860d6bfe9a9c3cefc7f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0deb13eef1fa2f41c6c9a828d5f822d6ec7ec266b250d99c7067bc75f7e8128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2f12c269ff21fb5615af5699c96289bb00f514ac2e78e351d02044468e6925"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2edb59443df12293b7a965bd972c87165c42bcc4cb3c7ac046c8b2f859e76a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4994c152cecedc9feb7fc97e92c37c505c3cc0a9b3ffcdddef78eff41e3b13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d72dfce72b7cd14eebd9ed6418b86be47281b934376e9730995c54438259e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd5c1ebc76541f80a1884d8c204eb70123611d7e75e50a22a40f296ae2b3b5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc6acc743dc5e33cb166773eb95a42cc8f504a8a235e933a472936539e62472"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eeecf36d33491e348b529f89d9287227c4bfb6e748b9fee936c2df3d593090a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e1ac4793c74c549dbd34d81a800cebf07c33b57ba2676e15606107bd2d00b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"159c556536e24049538b3e111a084b9cd1028de92373c0730aac399a48135d3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be7cd0ae12f79643007c81fc0b5cc4e9710f4d2cf810e48351af53854bdd10e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f157b523f55a4752ed259c21e7677665a189a5dac62d9cf60da9ad41f05a508"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:977-1042 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c57fbb6b46ac3fd31270b941fd18fe5e24d024b905757a6204e3784da31bfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:977-1042 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bc9592feedd08065b4c805af15006e2c0a710c1756768318d752939cde9a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"448dce9b44122ecd3096f90a2916532d2cab8608eaefef3d9322dcae27089039"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35d12305af045bd5a4190f401e4101c6a741eb2f94411710736deae30fff2f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a09c15adde6576dd66963671e1bd8610a1924713aa4b72d874abe8b8fa382b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7f467e566ce7cd41c6bafd60e83f7ccd81cc0c60d7bb6e5c982d58c4539693"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f442d3dd2dbdbee1f78e30fddc89d22e04316874d1f836515bb92305295338"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0bad964a65566c9808670508bdacf979b57564d46e12fcc65f8d6dbbf712cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce3ee19be6515f38d07f3b66547e2eec97ccb0bf8cd02316b51f442cfaedebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"4592ebddf4e4c7ee4c066e3a4e6aca2727e2c75a75e3cc7295db93ee3e64bef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea8cc00ce472642304856822067323a3e9d68fc4dc79985d012a0fe2c6b3c4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecccb6fae10871a1a4e3cd19ad9b084b088cc0d4c213a3b342ecfa95b0078dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8a58f3430d1cb56e81221aa56e8facd76b1cb37f60f8742ec896c3b6a8a6aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa10d399285c4fb517fb24b362c66fbbb3efe66368253d205d4c57e4e8478721"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2792dd8b507b275b28f06e32a1a432badb868d93c658b44bc3ff8aeaad5f318"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e1d6355b891a39fdd67ddfbfae034f76d51e5bd1bd7ffde4a82d9aa6c09a34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:177-230 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"785535b018fa4dc6c5ad8734fa1c2f55d27d9e209da8e1f30c1c9b11adca0ae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/bria/pipeline_bria.py:281-319 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1d07c50b3667ea309502366d498fd15422ff3f46ae13932de24abd9e442c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/chroma/pipeline_chroma.py:430-469 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4686bc6e86b6fb7fae32b5a23a731bb9602fc7cf9d539955823b3c4793acb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:459-501 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fc39e18a895b3fe5c0d343215b1c24ad8d29f913988f1141933dfec70ce00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:491-554 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2fd5477e160705eded8d9adf7222d33a0520900ec69e74a571783d06c3e905"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82785acd6e272ea9d2ad87edd3b2b56f90af5c93c3b3132c7ca450dc491b3fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fc374be889bcdc0b3844fa7c4031e6f3c49e992b5e970806d8558f867db08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f885aff55f5ecd0e64fb0c46d9edd4da386a7b4c5ee715dc4d21dfac1ff199"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9030409187e2d898c214b2c6beb147da6f7c978fc9ba9eda5f7c3a8ec90f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c88b4ea67e12ca856f48bb12460158d6ae37003467e5ac1ce12d234382f74c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"69662a6731c3e25454e69db18d732e6f89930d54657e2a0b7414d7109ad89dff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4231d73ca82f338b27493a2a9252594938ef5a3f4f49951bbba677d7a2b5249c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ebc84abbe49374fd4415d103326a6b539fdeee1575bad26911e47dcb57734c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ff2a2017c754880c0efec4f19ceb1d68ba76c6c5c16c8f53aeee2a047e5119"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f9577f4db0c2f2896198fd1aacc29977601de84156ab1978236a8d4ce60b87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c5121f85f8280f6bb5af29dccd978ccc7c5f1e5c0c0713249bb6f2d4d6e2dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e02e946921fdd5c04e0b8d40d3a4f70f8ef4d78cbe6e2dd46f98e1bf76c9691"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfac57a71b4494337c5775c8a63aed7607b7ffa6f025456101c82a71b4b3c382"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"872cc7d55a493a19b927c8d7b9b5caf99324318137f94cbb771655fbc85afe2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c786e9ad34443c4554ae18cfe75ad71acd8940c9e5fe64210722cc27f1a59355"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:503-549 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2053acf7b0ac92276aa95fd64cf5e793122e3d09a9c053713a401bd73b00b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42ab5a5a84afc252e273a5430b19e56eff6087d670ee1834dcd58df403538b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0f2beca378dac2b6e3922e218a82a6e281892015985169108181667755dd55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/lumina/pipeline_lumina.py:400-454 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"5010c53f9f1a1a779535b797c064ec5bb0ef6ac5279990e3bc714a48ec8f9b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:371-428 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3032dc612aea06b218310bd726d05ccaf70c1efe2cc73fa262e00acf36ec2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:374-424 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a25e28470807cfe61ca7f4a8d4a97b90d9e77c5cfc9ad1880490de02b21453"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab3877ce40d005bef4093708aad889e35a1e34bac0c6936a1265b8877baa3d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fac74b09ee7faa727ed191d72eb5374521e15e86be68ddcf587f591538d0d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67123a71d8bcda744778d75687468cdcedf3c900b4749b5b18375e906dd5475"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6948f7cb993f762fa552196529ee704b09fb4c0789184a86bfd6b364eaa0fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b67366965b26709a4ab5a199803164d00eb7202045723bf47bc222c4afdf9c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea99ebf98dcf5f3dc655ba2597bbd0e6f88fe58ab47d932a995f4080cb48b396"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"676e69a64846e63defe5862456a1d1b3b20c68f65ba940bfd017addf451b7c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"63194e8d13d4fa523d267da1f51c000ed89641d35d4c9c51fa27f4431b8eb2fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0550b060413f4ffbce1b4d74347863dc63faa680ac60f4a324d040d876646ed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"7109fc07b60db218557f5b01b854700aabbaaf257bd6f9dc9c37080a0f85a61d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e67fe612bb2b0d9c1baacc984219128e2aea244d2236f5f26d5045b19cae2bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4f58e4d16ab56390d6bc085b5db10424d1d7b827d0318a2e1da323c274604e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5c4310655d4a0078397e2dc2854ec373a1a0e437b5cf26f340bb2ff0401e0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e577820c2e9ba4fc44b240ed96d20538d6f7cefe49b2e4d4deb64a4e0a3886e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"5973dddc2fc9f9c9722c12cc8374765abcf7457e1dc1572b7985269938b0e660"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e138c69f280a30343d097416bf5dff72fe06d99e280a1bb62d202a3aa33da4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba84666b5206cb5255184dde79807fe96235db15c6943d83860ad8016c35cffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"12dbef6c5d1cf2045141fb28077a441f35e780b0c759c1acd1bc75e03faf3a64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e705c091f7e5a9068fb5f1a280e70591a38ef68af87b1a2a422157f6cc2f38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df3403d6d0279793ceb2f8b90e2eef796ce05ff21a01c32e96c7bebb9b80bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bdf1b9fea81825c84292c0d5a9128e4ce77ac3efe1a8caaae2bcb8dcfe05a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"228d34b9a0a0dd156337271df999302e791b4bfa16cff58ec5092ec11cbfde8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcb0730ff07815f5563b8ddb0847fc769e4d645321d359201e6c3b4233bc0e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"68895dd133f99107290038bdc2a3c1a928044441f709d524946379885c0b9b8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d8e740d2c681e7cb4f82a5e54b8ada314bb68dad9e965b9e0045189faf4e4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29911396700721795a3ec7c743ade5306c302a9809d5e3e0c10ee8b40d63dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"1778a38a665db64d30926eb6efe9d41e9fe58c054ef6705b373ef4a079156a0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d54bc62e07c93e618b861baef94c1024c77564f28585332ac2b3d69145c8bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7d741217acf25a698c28007901837c42bfe3663ff9b6f05d18bfc5eaa177d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df2eef430fd8f93c4fbcc92c6ddbb19b350c817a4abf1243c8142558a441467"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f44135274463160162799dcb0156978a6ff471cb7c8b2223c98206dd5ae7a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3492f7d38d1c6cc6c2b9ae3a9cd7008a71896a22591f86eb1ca6eed2ff5190"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3df07e26af7a01d6cfa469043debfddd05959ee76daf1c7731801c250e033e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"094212e1adc6ddc7bcfd292c10216236e5cc2da02e201d007ccb57867f16de89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8279e974750cd14cccb44f4b54bb15acf7011278c3ab9faa34a9d27c90f4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c56668d77546b823b942873476622981276b07fa27b63790a6ebf82ed8c44d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e77a4766abf23534a397c88f3c3bf1c52d2077f69be0733482f339f678488fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"984ce29574e8cf7400d9f17dfa4d3a802a0c2af66a3393bb9665ae838a86f2b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"712bf884fa340747b41e7121ecab001462346d3437839f8133b7b64af5bd313f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0102da3bf7665dfcc4793729d568b87008547582af1a0623c4fef9f741126c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c68b1ca65822d9af49e743b6aa617711b5c75fd45fcd850e7506544ac5ca2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a049f60ad4caabf39af3065e1a0185837ef9d1067ed6685dc7a6cacbb285eaf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e35fa01864e85a3f5b51fee8749f23823c0f7dcf349a157ad895a8bcffbd15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6387990cb1ac57154612c097f2003f95daa56e768d9fea3fb0e02b9b751962"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4bdc664410f2ddfed5d7275ead3623ced4f5807b37eb72f0e99afa43b48559"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"7858071f981d885819492bb3483139fe3213cae2e001b08f85e0f033f9a34b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"6161629b2aa7648efc989b8c5c59f6af2ee23800391f148d9018aac7b165801e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68f4f3a94e9ef14dff2e91efd690707f998331ed5a8eeefdd908991b2c877af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea846eaa30b80a792561103916f0559ccb11ecc1b4b2be167fea9dc3fcece157"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"9902775b77532367233c9df38aca310ae89d74432e50e703cc9d039f1ad2e5a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5ce6b93925a2c19fdeefab3cf9587913cea31b65697463f2ca8c31a978615a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d01a4cff8f08dbac9be759665a935960c1763eac9a6ee6d5f2bcf939f9f8c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfae78c4c1ce1b27cb7ce79eab94afc0e5293aedd3420a030c9cb6822ea58f04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c16b5e878d5b1414fc77da0437496478c29b2944caa9508e4a8993533d7ab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce40dc1692a4580c9f9acc85eb27326d34b5d47b46a117a68f63105dd68970d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2dff89850af40430828b45d63646e4dd9c56a228b10fbdab0b6bddaffbef67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd33543d78485e3c0bc6189aee0147625b2ba9514d8fa65c55756c47a3d96ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb33f3a07eb40c3d174c7ff81e4bfe71a21f3688af8f984e1163a64322b910aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"5443829f0e298d2d169f3c56cd08bce24e285c8e490e49b058ee46eef29a64f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc0feefb57fb20e2331c2f8819d2ead19335ff226e2af2aeca6bfbe0e5d24b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd12dd51872872dc3f3228900831c7a41d0771b43c4b555f45d652b6a9aa91d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8aabbe58e9d88233901bb5d3083561c07d2c32e107df89fae3188c3843376f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"4385d8c4de3947d196c1fe66d9b1f8ff51ef9479478e03b5962bb94c38e2f13e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1884d53784e7bba31fc24362fd5b1eb307d57800f551c49e15e8e0b7db2c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c22c5aba7dd35d1386a0a62488930911188bfe1e84873f740b4df8cf7c9362"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"934050b27bccaf4868a880389aceaf4b69bde2663e04302e5a6ca338ac5e5904"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"451455f00da71483da5b3c02a3b831fa851217d99c2951b04a81c7d9fc5b6bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"e881964fdbb8c98760bef0c263bb0473e5fad075bdfc48cbc1455801d801fe3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"657426fd31cf66d0006a1799eeb54319f1cec986decfe09737e3f66d2acd56ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff0178800c0711a7d07b7d40427642b1768b7258c1affb2fc2f423a62afd0de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:585-624 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7deec3ae82e533214f6909491eaf6c359de477e10b66eb65c8ff8a1aa90f65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9e32cc59cc132459cb53f07e6faa10c14fbde2df9b7a745991fc1670e96946"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f45100a82fa6b73e0b8afe58dded86ced0f490c9866236b22dd09d28b9ff02a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe14226f50c39a9113a1f727a7d0a05a86f4dfd666c513437dfda9389cfeaef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bf3efd0c3375716fb0320ece8d998dba20eef61852c589f38a559c24043f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e036a6f52d0f597e9b846214f490ac049a6077a01ff09658fcbf2d456fa9ef69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:158-197 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3111cf6e43864d995a8a5d924d9db13cd22d9fe2918426ef2e8445cd838d1197"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f53cc1bf681b08228890b787607a94c445b975237ee93e5c435dc8662a0a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:479-525 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d414e2550fad14d63a2582a09864b9e7566c7c3f9c8e551450b78b82f431a06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc049a67583107c3c0a38dd4fcf1a4702846e488578a97ad0d080956fd8c37f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:388-427 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"93fa6e03f9ae6f6c1d44a445d0586ac84ef53e319a7757af82ae4872a534aa15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"185e5712ab673a96a6993b2113f326dfda66a299d9a5f15fc5fa9f1db6ec8f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:508-547 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"744d4e6252fc1aa2a6e7bbda63b0ab3008f3cdff0ce49a24bc851bc12fa9714a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ce38721ece21d2d096246cb17991f653308ddf4f1f1bb1277f1f9750a7e8bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"63545b49e9b3e334a5efafffd5842af44129d883ebf8be1451a503922abf0e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"822b0888b9cf2f5ed7f5a45764d3ef81f1ccdb58f267b4fd2219c61e93165a0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d7f1fb523a4db8e81c0eee69176da3c3a5be1c738aae3e44191e5179823aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1737396482b65260a3620b58a271927def931cba709ada378aaa2412e6c307f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc73e877ad63e5a55a0107bbdae7b77954eefc4f57f028267a0ba0f68795312"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b13bcdad29b096c5aa7a98156075325b955a48da69b2fc3896b487d738eb91a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"0084c42d62f34be5394344be618b934e9de9534a27aac4ad117e97a0d3a47b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17830097be3ef33a5e79d7b25f5b5eb489149461af1e8a27381858b16238042"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:430-469 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c88612eeca3099a4801ac54f6d49a5edef65b01ae5db4c2f680a27141d2c10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ffd015d30489cc93d6d4f3ef35ab0beef40901aaa716ee62fb2e7194e215a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:415-454 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"828540c978479f244abdb068fab88e856d51bac061753a3048d77ce4573ee076"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f957a81a347e643ff3dde65b3e931126976816f5bc0ca4888ae99e17ec987fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:382-421 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5978f99a5a0984bebd85cdd1296805fd51eebda1fde365e9878894b3895fa01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e873c32c6c06fac86d766587579940c0f942d6396361364fe787648239a243"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a01eebdb731413fc65b67eb8c9f0f847c6c34bbfae4ec6d317ae75586d98f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"8089bd2ef786fc12e195ee98e5782342909a20280f1075e647624cfba9d24461"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9f78c4ce9540613aea6b6d5cd7f7338a8ab8b340b73e340ffcbfcb5cdd99cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf7e19fada91e740c4c5ce08485ab128d9567b816651767f6d005e027319583"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:480-519 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"82662f8c2e9b77df9188a2aa959b300bf3a64ca199edc3e5666b8ab090a6f6ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3450d3a83c074c76cfeb2141e284f29a3166036628bd2e28d7a29702158303d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:520-582 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10151a050aad6f996faadefdf02f58109b60a843b5f96fbc15901af9b185220"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c3c824fe705d3f40e8133d3299259c059b93d6472b7da3b84e1fe939816071"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:259-298 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaae4a1d319e79896df2b084111a03cf46687cba50e14ce7d83822f87a84f41d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8cdb7a6277f536abc7bc3198b15f088f49de52b897cfe37e6e51db173facc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"2879675ff5555147442e408c8b1d79212f28c74fdac0b0d29527152267d73009"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"657e7874d1fdc0a87b8eb3cd4064badbe46dc58218b78a8dc9ed7594a63b9d7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b99efc46b45877c57cde2a25ad7565f0700f3062960745ca242136821fd5077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"7972f54c7b7c3527c7cf0470179b46564325446ca601f984c10a43ffb0f175ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ff03d418af032a821124589e9899b262a1556412e8c711f434e4775e9aa0e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:640-717 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"9115df3acdac46918b9415b7eb1bb42059b6e45c5b0c09617adc5a0886440908"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34630b184fd120b7d140a68444f192a0f575d58d8bb00b0fc0dcf96bf532ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:680-762 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a7ecee58ca1b0b32f9e2e6d49d57ad27abb396d20d0aae710643d9fcaf84ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6da7f4ac40741f0d70b1400e295a81982268a4a652d3a38c0122f871d0a7a9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16635bc66ac4a22d32215c9b289eeac4ddea6ea371a0767b7ad45b5caf262cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"f282dad3ff46eb39f9329987db5d1b76b1090bdf677d1fc4f45f1f14457e8528"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc46d5ec1654595965bd8f5090c315483216bb21f59fd6a1e7e48415272bcc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a686ae734a680f9cb1a2124e7bb74df0d5a07bee14662ca957c5d03afce4c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:629-706 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe1740c19e8eda7df5640cea04589ecd75e75d37c820f413b3a3deaf031987b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcccbf3a808978d00cceb150241151a48f5250f620325e50182266c0f177318b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:683-765 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a673ed36dad2f696401343181c8466bf2801febc2072361ee51f6915914f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5335e63d0309293cb2496f5bbc2748820e8d0b2b6a8e76cd3467844f25879b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:658-735 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0699aa216c6993b5d2b6329b4144201f7db3887453a2c439a0efcba31242509"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccdf1581de6b12e975455a8b781f2c0086c6fc4a2d9f96a00ac7975d8e6df38c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"b360208cdb1edb8065b367559d5dc22b1b061eca9917ad29d9bc2c66502d734e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffce28702186ea5ac3a0cf8c3da40ee7e43a99bc9e99b399da58c03027ff7a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"56dd84500530e421463d68ecaeafd330d21675dbb5655865983e42d041d4f883"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-823 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5cd74e88100057d62db1a06fb977620119b5c0d2bce3fa9e3660cb819ffe798"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-825 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"84298faa6c76f6a377677f161ba8b8b55bf9749ff30d2817366d69df03c127e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:604-658 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae5126fbc2ab4202d3b1fb1a657f2d642bc47c690a4cdebd191ee5beb404174"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:639-709 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc269dd9647f0ef8cfea4ae64d5464b3415187d866fcb5d367cb3170f0e46f1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:640-717 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f4ac50d204e1ade3860e5db9091ae79d2c5d260870698d7fff9683bb6028ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-658 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"1182bd3c25a7134ff328f8e3845f619f54e00f2af7e4725e7a1eb93e983fd803"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:680-762 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c58bad85950539f6ef44f7056133382448c34e94f41ddccb2b2c67eecd4e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:638-692 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b621fd2180c8b96c53bdbaaca2131d1632fd290c1440c3f2d34dc15e34759e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf407ded89b9ffb26db7fcb58a5d192cadf7089bf1a04c90f4f2b7dd0b1fbdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"10923eb12e0d61b9419982da5088022deac817a6c0978d63d5e81e585d832a8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:616-686 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3bba00189ee89855b55b1d59f2be5f11c84dd8172f0f80e4d34eeda297aa81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01487fd463a4185a00974b09a4de14bed9c04a9ffe910e53eb70fd5bb637d96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:629-706 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8425e699b2b16895fd9d2c8a76a70c88d7b13cd6a7233ed86f6ff347421097a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-647 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7507f12f9f21159a771ee0e423fae307037682a779750c93460164a8620d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:683-765 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d1609cc3ab195639e8afd4dea8ed8c40da53322edc37c2bcb80c649ab77887"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cbf501b173d075ea5c74fe8a70277cdcb01f7443d012abd3c7263588a62774"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:658-735 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"9daaa4fea8fb347b80c26a8d9c7851553c2dc5bc7e6dc0d58c9666f67e88ad45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \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":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"171854699aae5fb1e51c0b83b0f07fdf02073bd953755f25442f8664ef923de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a309486a0757b4a587d29286a6e461cd2f7875ae95632dee412983d2f790ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6174ef3aab29617ddbbf90978d9647511002c1d2e385f7cd2a7000a506b37b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e8b8cf67732a15b5d4b3adfd7e17855dfac3ccd2a16ea8dce5c39b99a819e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd1adb71603370c80b1da955d9be5024a830c7d1da492bb83629449492c91e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8975ba7c17d298f1b94c234a9013872b0f2baf8a30a7a48ce0802ac3f2974e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a7312233741ca472da761080cd2aac20df212defd834cc6cdbd59bfb917b2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72508e9d6f4c6c34673704e61a48199c5f89f6888746cf9341ba7de9b8f0caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbbff54518d6d951b5fc47148cd2c10fdcdd7f07b1fc585f4a99e1800e9f87f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:464-489 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb4f2d3fa5446fc4d0f3ffe424e4bd9bd1832be20890cb819db42e362472f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b0418ee39738a8388667958c9f57965125be5a9b1a542051b7ee3f66d719f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48fbcc7e55acb69f0957638b17c48e84d5a3cf8a3c007e105a8625bebd00fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:177-230 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcb5070c8b985944172661767d85f5e12a9eff3483ace9217cbe13a31dc36dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/bria/pipeline_bria.py:281-319 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c8fed2a0116fc27ea5fb83ab975253059095f9c174fd7161b070e31635d65f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/chroma/pipeline_chroma.py:430-469 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad53b3620e26d2308a815e721efebe063ef94a70c9cbdf5c20819d55e9cc895b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:459-501 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"4208879bf9ceb9f904d7c67b0dae6a31e18d8e91d8e08b828721bc913043c63c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:491-554 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0aaeb17a8a9a1412ac4d1f1360ba0cb512fcbf9fbfa913b944ad3e7717c8bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-757 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0ff74755417e771d95df09e6e751dc0c5e5fa8c50d8a9ecd3e6ad7dffe2d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-729 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"045dfa48d34aa53e3102292c99cfaec9f3b1cb5bdeec90e77c199f429524c023"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12ff3cd2025d565cacc740dd2ac5affa15ffadb01079896049dac112e8af6a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d442c2227aada7fd0a37f73b4bd7f0c1ccc2496e85379a585ecab50dcd01a9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3b304b184deb8526d9cc08047fc492d52973d4f3fba69d3f11bb9a94bf4220"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"51af960e74b0ad72037b14265d44861341a4709087687e179d32e687371d8f61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a7764b4bde48ccfe99f105ccc2dbad0398fcc6f69c2ebd0cff72ba8cb8a963"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"8caa629ef6cc2430892875aa4d8c9d75021733fd09b7bd1f2209ab47d4bf3840"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:727-799 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e9ae61c60a301db211e6c99d302620bdf7df74eb998ddf165afeda2bfd441b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"7814dba60b6898d1c629236e25606adc3bc19ec6b6c51d5e66dfba5525316072"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:633-693 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2cf4d1369de757b6e7d51bfe6ece4c60b2da7ee7409fb39ad12725ca05f636d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-457 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"361944725c7e728834b3dca57db49eb3c28095a3adaba430f3a4f9646395c063"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-332 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc92d2239d42894fe306c71562f5a4e642977df5e78b11dd48e4d1e5b337ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d417dae1408c4dbe745f1fb609fa6053a8e55e06e56bb8eb588292c8cd520897"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53226b855072f0f465d3ef186ea481811b0e30f657bc724c057d058e2994a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:503-549 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c279abb9147372c23e2205d6a4b3da1c64b3ce787d38c601ab63163716efcee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/krea2/pipeline_krea2.py:316-355 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17fd71e9c63a083feca2201820205515f79d8a0943b79de19e49ec24b2bcc9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:646-687 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fce659d385109d8f872affdb654e661ef73f6fd30a149c39ca2c5b4dc63f963"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/lumina/pipeline_lumina.py:400-454 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fdb295eaef6114642a95143875199bf34a0a763ae577f9b5127c078fce8314"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:371-428 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f60de6498b1f5ec0996b59cc39c189e6bf24e14b585a6ae4a13a00d68b8f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:374-424 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a7ce5b1cf1d7fae8a661bace1fb775b31fd45211305e07a229813b502b57e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:481-549 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d9cccf163c0d6cf43469641651bc77a57763a5eda7d29fd65fc0a16166670d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-362 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e90be8123e95c115632c97d87bba4c774ff9c53ad5a627f75c1bb5ec3588bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"4685dfded2d288c9cdf1f08491d7009def4d8eeddaed1c2956e2a7575e4f2ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-330 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8c71f0304c887001b9c8d6ba994055e721c98f98e91c6d22d53afe4fe66022"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-395 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca585cc8d890199d8e5a77e5359895ab0a9e55ac1a78af1161ceb52963bba35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-377 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fcd4a3cb2d336acb31d94421a565d862ff1822113fced4fec203bcf4a79f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-378 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df2581ec51be275573d8e3e1a32ee4a940e6ae98140534f02557fd83e66d29b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:349-411 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3cbfac06d898dcf6de03cd9010b3f7b7422f51ea387677834b930817db3f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a42fe7d4954b57ec8d31ea624bede109917f38db14bbe54f1aa1d76248d284"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:327-377 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fd0e999590e52faaec3f9071a1503a142c61da067eb1de4f0c7c434ce9958d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:342-404 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3626c9f764cf27850db0415e53386ec790b205f1b43ec3489ed9b9e4f5ce0dc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"70593fe322b2e296204504815d6753cf28c9c7a3beab1ca224a9cfcf1145a1d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b64744e864ca52494b3549adc78403ac125b5ece962c9f5095923571343c20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-837 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab8fdc1ddaa343bee838f314abc80deebce69b0669aafa495b9850af2f95517"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-485 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"7211c7ad4a60bca2e5d12445ee4ed93d0218c601e71b9a2d8ac7dd8584bbc492"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3cbe6f429184b42389094535726aa58f9e21fc8845d48fe3cbbcffc53b60f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:481-549 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8dfca68ae0ab709fd16304386e0d8d0388f2009e783667c268ed3628301869"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"656ce53e5a2ba7830d5bb66d546ddcb6a5384178e043ced27310588168578f99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8764242aa27884c34e5e54f85d4a0a38e906c480f6b594d9b5c1233c700ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"420dac0c344e596353266ece58583031062c2fec22b853987abe38865c538b35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"5126ffd8e8996696469f22c1478aa9e4b8c7ac16437107cc09fe0bfc6580647b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"688b17ecdccbd8fcebb51270708eabcec224e4afe81afb749bb38e8f1021cdc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebf560f4e1380f4d76f6ccda60e36ccea9eb3e31baa2111a2408c10311f01ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"adac463d7d54f05022d28c1cd9ad5558631ecfdc836e8f8cc1bb1ee645e1db41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87da1955d35842b39dcb3cf8e62a971b47735d351839e34e5241426db79ebae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78db38b2fb6e14a85b177f47f8a4fbab63e8991278cb0e265cb8e50e16dbefe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1775acc7b2f905fb888b5bf984788cd04e1187d58079cfc28c1bee9a8230f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:381-452 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:538-845 \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":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbafd661fccc12696523e58869afdf913b97c350a6629c10a2788aecf5a0dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc830fb38f4088b154080aa49ff37bd2cc21f21af30b7f323a7393bb8f29f60c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:333-368 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"283696ae9ebf14671e48381cc9c0f7080d7317d34fb7effc23c3f0ad00c10e9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:313-348 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"d084287ff4a1da495031e1129315be849cd23625f5e776b49643eef80181a301"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-366 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e48e3519a07a76d862baf6e7f9eb55f4ffe27baacce7ab2b6d261c3e31dae4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb8dc006a9cc3364d300db302cfe936f6eb0210c4089e4c088bd19085c26a4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"c231696bf4e8633be8483b73184726abb7d952db4a9aeedd1c9a827a1220c54e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 \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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9aa0d3d523a75a5fb65f0a49d1517f4cc3a218ea4abe1e3b14716a023b5908e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"1920d8ca6acde3b5c7c54f0e5d78698c486718bbd948206bcca6f19428f2705d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a876bc49d37db1836614795313d3a30d04bb99827a36f5259b9c250ab2dd88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6f5dd15401dbc5e858c6b4ed12b870291f4b2091bce3b57d8e3066c6c7508d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcce3b28ca2b72348825928ab7744465d03ca41078796b0e405df7b5d60a7716"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:596-644 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0fa6e879e7a624e23b5032f0f0a1ab444d4e6c9110b2ef3beb0bd16f60838a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:498-533 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f68030d43aef56fee84505a07f4c7fc0890f9deea40a522ee1b13a54cb2856"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 | src/diffusers/pipelines/wan/pipeline_wan.py:292-324 \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":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"71997d7026e6f3cf7653387f98e0fb6811066ff49aadb4f1b8fd0539d7db4139"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-394 \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":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0798590eabdbac14ec420e49ae0e22bfd40e85752b645a468732727e3f89f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:640-689 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:692-712 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"208ae9033991ed2f247187fd98d1ac0717e78d845874a239ac73211389fdd600"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:677-830 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"543dcc865fae9469765065d35afe9bbebae864dc9405bfcfb5fe347246391f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20b4002be42bc648fa81fcb217cc5d68d9be6feaea145292e69a957d0e2e4f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bdb7c7cfa78ae78f8f6bf1cd472272f935f712a32c85b4aedeab95a1a4c9ffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45ae796bedfcf040cd8c723f3a6a28d7116d9fbb719b0dd89f5ca4708b7db66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"816c74ac1aa4b4f6c6fb88d9d02784691fab6e1b1fcded40ec9d40e634f29fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a6efc5d362f73ff75e3df3eb39370bb6e451cbd36d74a3c947dc0261dda5c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"065fa12bc9be79df41cf2bcfdad40ad4b144dfeb92a89e57be365ff41747b89c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f29642b86625834d57ea726a581082865badf5188b907ae03dfa871b80db0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:273-305 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:288-351 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44691cf7cb38f35744e8b2e088b7996b3119b8722ceafde3b013cc38b355084"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3342c599c9b2bf5bf715392e23e42928cc76c980d872704b73ebaa72ba53108"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"efcfff8a23bf09b80399a071926ab82887aac7ffcd335030ef70d05d07a5cd86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0aafce1b30d176d5725b66b19f2dfcf40a076939c7b2f9523b9bb1317aad60f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:290-324 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:288-351 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"1377a3b4a0ee0e16f61344199848d10101f3ad934319055d820b15713ea5c237"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4db71c5e0072fff76bf69c59177893b83c917a71e1c6cb319b33a5ea2b9c218"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdea74743ea60792262876da2f2ffc038cc3b20e8edbd84ce88d1d4e99289b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"227ee114770a876f3839cf57d28d4e49c9c92070023f4564cf689d8fc6fdf55c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:502-522 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"683f9c4c90cf67c3220dbf54882e061bbc9211cb9aa54889fa353ffaab7ee6e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e847cf46979f9891fea8c49236a0ab6236525179954ab5639531078f73996312"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"3779aaa1ca62fbf37eacc132198fa6fa75fdf002bc2d88d6f88cafc165428df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c057d5b371fbfcc04c6c1dabbba6bbffda92823a720e7f830369754f5ba61a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:375-395 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a9222200310c92a5d594d1268f73a6ce4c7bcf6788d07ac459bc1c925f20a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f5579a4065187c4fa45ff769ef2a4fc7daea10124d929d07addf9dc66f279d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6468158097c3b79404617f9d73bc1430e9a6c186ec9f4c668860aa394625fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5750736b203d6ee8c1fa5b34f548bc5404cf1c93d7b79e9ca8db17ba7328d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:443-463 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"1098839d1f9e43d0747e7f4e441a05c402d60ef9c648b677a87fbcd01489bc9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"9316610d5a59dade3999a5042c7f943ead00383e15de9993ef78e584aed47928"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4bc50518e0acc5ef93d12688d28da24502553d90070d7d9549241296cf5456"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"3863d1510136b24d692e778da8a4f6a909efcef93afcb23b1a59b0c63fdb19ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:359-379 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e73a12f92a535eeee400ed2e1b18cc5a5fe4d0248d84ca17d5b37e85cfcccab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd514f5d5bce5475e579e78cdef635a5fe1992abff89ee43d855e92330fa901b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3e2e975c6c24737afa0d6a736d300e3beae8a069e69be369f32b8b9983f46e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:289-318 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7cecef3d2633237a990bb4b06599f259cacca5357b68b8e16e9490eec88f6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-374 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e138d8ffaa6c209750de0b19c3b4a49c9f6f493a9a8735cad80654ebb32ce0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab57cd4c1a65a8aff4f4b9b059428e28aad9494af14279c5a8d0108f92bfef53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5299b490a28a4cb34b0279f0b05afeb1d36b0c51c915c9976dc03ac8232d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"4339c61c6575c0520407325c47cf983316b00f723a2ce9cc3d322f92364c5fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"5402bc351d8d3a045779f0a517c1346358ad6fe90dc828c272eb98d6aa189d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-715 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e20865f97a53de0ca0ae360d5bc6e6b7e6b42a65dd31ae1ca94ca21db4542c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-282 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec60e1765f6632f13231430635a0abbc26258e59c1025015b4327e9eda6ea4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:457-743 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:604-882 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"247b8932f3a591bbd9db912efa85c7e62b45551f9256e32397e3056adacb1ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:625-990 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:604-882 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3cac84058a6c4646426b31ebb78148f2842cd9241dd13042185ddc686e64a8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/deprecated/spectrogram_diffusion/continuous_encoder.py:44-69 | src/diffusers/pipelines/deprecated/spectrogram_diffusion/notes_encoder.py:40-67 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/spectrogram_diffusion/continuous_encoder.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8211cc774dd7318480eb47ea64002e4ba7fc161f3b43d7bdde2510466073159"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (192 members, 50\u002B identical tokens): examples/community/gluegen.py:160-194 | examples/community/ip_adapter_face_id.py:97-131 | examples/community/lpw_stable_diffusion_xl.py:542-576 | examples/community/matryoshka.py:148-196 | examples/community/mixture_tiling_sdxl.py:231-280 | examples/community/pipeline_animatediff_img2video.py:205-239 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:142-190 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1129-1163 | examples/community/pipeline_flux_differential_img2img.py:121-169 | examples/community/pipeline_flux_kontext_multiple_images.py:138-186 | examples/community/pipeline_flux_rf_inversion.py:115-163 | examples/community/pipeline_flux_semantic_guidance.py:112-160 | examples/community/pipeline_flux_with_cfg.py:91-139 | examples/community/pipeline_hunyuandit_differential_img2img.py:189-237 | examples/community/pipeline_kolors_differential_img2img.py:91-139 | examples/community/pipeline_kolors_inpainting.py:263-311 | examples/community/pipeline_null_text_inversion.py:22-55 | examples/community/pipeline_sdxl_style_aligned.py:335-369 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:92-140 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:126-174 | examples/community/pipeline_stable_diffusion_boxdiff.py:328-362 | examples/community/pipeline_stable_diffusion_pag.py:300-332 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:458-492 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:124-158 | examples/community/pipeline_stable_diffusion_xl_ipex.py:120-154 | examples/community/pipeline_stg_cogvideox.py:150-198 | examples/community/pipeline_stg_hunyuan_video.py:154-202 | examples/community/pipeline_stg_ltx.py:145-193 | examples/community/pipeline_stg_ltx_image2video.py:150-198 | examples/community/pipeline_stg_mochi.py:149-197 | examples/community/pipeline_z_image_differential_img2img.py:105-153 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:136-184 | examples/community/regional_prompting_stable_diffusion.py:1616-1664 | examples/community/stable_diffusion_xl_controlnet_reference.py:99-147 | examples/community/stable_diffusion_xl_reference.py:88-136 | examples/research_projects/anytext/anytext.py:1136-1184 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:197-245 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:108-142 | examples/server-async/utils/scheduler.py:47-141 | src/diffusers/modular_pipelines/anima/before_denoise.py:36-61 | src/diffusers/modular_pipelines/flux/before_denoise.py:41-89 | src/diffusers/modular_pipelines/flux2/before_denoise.py:60-108 | src/diffusers/modular_pipelines/flux3/before_denoise.py:41-89 | src/diffusers/modular_pipelines/hunyuan_video1_5/before_denoise.py:43-91 | src/diffusers/modular_pipelines/ltx/before_denoise.py:54-102 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:62-110 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:51-99 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:55-103 | src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:53-101 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:55-103 | src/diffusers/modular_pipelines/wan/before_denoise.py:135-183 | src/diffusers/modular_pipelines/z_image/before_denoise.py:135-183 | src/diffusers/pipelines/allegro/pipeline_allegro.py:93-141 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:159-207 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:130-178 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:148-196 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:72-120 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:120-168 | src/diffusers/pipelines/chroma/pipeline_chroma.py:99-147 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:111-159 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:118-166 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:96-144 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:103-151 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:95-143 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:104-152 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:67-115 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:78-134 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:80-136 | src/diffusers/pipelines/consisid/pipeline_consisid.py:185-233 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:111-159 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:129-177 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:124-172 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:92-140 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:115-163 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:92-140 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:97-145 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:89-137 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:116-164 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:102-150 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:130-178 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:112-160 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:107-155 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:104-152 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:83-131 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:135-183 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:237-285 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:279-327 | src/diffusers/pipelines/flux/pipeline_flux.py:95-143 | src/diffusers/pipelines/flux/pipeline_flux_control.py:108-156 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:127-175 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:153-201 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:126-174 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:121-169 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:123-171 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:102-150 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:118-166 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:115-163 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:125-173 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:149-197 | src/diffusers/pipelines/flux2/pipeline_flux2.py:186-234 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:90-138 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:125-173 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:90-138 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:88-144 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:108-156 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:109-157 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:73-121 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:104-152 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:93-141 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:187-235 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:155-203 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:115-163 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:142-190 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:78-126 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_sr.py:74-122 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:113-161 | src/diffusers/pipelines/kolors/pipeline_kolors.py:72-120 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:91-139 | src/diffusers/pipelines/krea2/pipeline_krea2.py:83-131 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:77-125 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:82-130 | src/diffusers/pipelines/latte/pipeline_latte.py:89-137 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:154-202 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:153-201 | src/diffusers/pipelines/ltx/pipeline_ltx.py:92-140 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:160-208 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:97-145 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:131-179 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:188-236 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:165-213 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:183-231 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:151-199 | src/diffusers/pipelines/lumina/pipeline_lumina.py:84-132 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:85-133 | src/diffusers/pipelines/mochi/pipeline_mochi.py:87-135 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:97-145 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:106-154 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:81-129 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:68-116 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:78-126 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:117-165 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:134-182 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:77-125 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:93-141 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:96-144 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:106-154 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:85-133 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:101-149 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:101-149 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:133-181 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:121-169 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:140-188 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:153-201 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:190-238 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:134-182 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:81-129 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:141-189 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:114-162 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:90-138 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:91-139 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:93-141 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:83-131 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:86-134 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:98-146 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:83-131 | src/diffusers/pipelines/sana/pipeline_sana.py:138-186 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:145-193 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:89-137 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:95-143 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:135-183 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:111-159 | src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:55-103 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:124-172 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:103-151 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:131-179 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:77-125 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:97-145 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:117-165 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:116-164 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:119-167 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:137-185 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:164-212 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:82-130 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:140-188 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:162-210 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:109-157 | src/diffusers/pipelines/z_image/pipeline_z_image.py:86-134 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:137-185 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:137-185 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:98-146 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:114-162 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:87-135 \u2014 These 192 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 192 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 192 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc7a14aa7bfc4a113e5a0b7e612b8db0aeeffd8af8b46edc0efd9014ffad149"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (136 members, 50\u002B identical tokens): examples/community/fresco_v2v.py:1213-1220 | examples/community/lpw_stable_diffusion_xl.py:524-531 | examples/community/mod_controlnet_tile_sr_sdxl.py:248-255 | examples/community/pipeline_animatediff_img2video.py:187-194 | examples/community/pipeline_controlnet_xl_kolors.py:116-123 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:136-143 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:123-130 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1101-1118 | examples/community/pipeline_flux_differential_img2img.py:102-109 | examples/community/pipeline_flux_kontext_multiple_images.py:193-200 | examples/community/pipeline_hunyuandit_differential_img2img.py:170-177 | examples/community/pipeline_kolors_differential_img2img.py:72-79 | examples/community/pipeline_kolors_inpainting.py:244-251 | examples/community/pipeline_sdxl_style_aligned.py:376-383 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:73-80 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:107-114 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:440-447 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:106-113 | examples/community/pipeline_stg_ltx_image2video.py:205-212 | examples/community/pipeline_z_image_differential_img2img.py:86-93 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:104-111 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:117-124 | examples/research_projects/anytext/anytext.py:1023-1030 | src/diffusers/modular_pipelines/anima/encoders.py:272-279 | src/diffusers/modular_pipelines/flux/before_denoise.py:110-117 | src/diffusers/modular_pipelines/flux/encoders.py:59-66 | src/diffusers/modular_pipelines/flux2/encoders.py:52-59 | src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py:318-325 | src/diffusers/modular_pipelines/ltx/encoders.py:181-188 | src/diffusers/modular_pipelines/ltx2/encoders.py:770-777 | src/diffusers/modular_pipelines/qwenimage/encoders.py:203-210 | src/diffusers/modular_pipelines/qwenimage21/encoders.py:144-151 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:40-47 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:110-117 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:48-55 | src/diffusers/modular_pipelines/wan/encoders.py:108-115 | src/diffusers/modular_pipelines/z_image/encoders.py:86-93 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:122-129 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:111-118 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:129-136 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:92-99 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:99-106 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:118-125 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:150-157 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:159-166 | src/diffusers/pipelines/consisid/pipeline_consisid.py:240-247 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:106-113 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:118-125 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:76-83 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:151-158 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:81-88 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:178-185 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:77-84 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:68-75 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:152-159 | src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:403-410 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:171-178 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:87-94 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:48-55 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:68-75 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:95-102 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:72-79 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:50-57 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:108-115 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:134-141 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:107-114 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:102-109 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:104-111 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:157-164 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:99-106 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:96-103 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:180-187 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:204-211 | src/diffusers/pipelines/flux2/pipeline_flux2.py:241-248 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:145-152 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:180-187 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:145-152 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:151-158 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:128-135 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:159-166 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:210-217 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:123-130 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:168-175 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:72-79 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:58-65 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:208-215 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:215-222 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:152-159 | src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:34-41 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:155-162 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:112-119 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:141-148 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:132-139 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:150-157 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:118-125 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:94-101 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:124-131 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:124-131 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:153-160 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:82-89 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:82-89 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:87-94 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:121-128 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:134-141 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:122-129 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:95-102 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:145-152 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:146-153 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:148-155 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:50-57 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:53-60 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:153-160 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:138-145 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:166-173 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:118-125 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:123-130 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:179-186 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:117-124 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:58-65 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:89-96 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:58-65 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:73-80 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:47-54 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:98-105 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:97-104 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:118-125 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:145-152 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:89-96 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:140-147 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:117-124 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:131-138 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:164-171 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:118-125 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:118-125 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:79-86 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:95-102 \u2014 These 136 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 136 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 136 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1b3a5e970bc470a167b8c7374072a398e16df1a67751bde75c2f406d2843e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (66 members, 50\u002B identical tokens): examples/community/fresco_v2v.py:1600-1621 | examples/community/lpw_stable_diffusion_xl.py:920-941 | examples/community/matryoshka.py:3993-4014 | examples/community/pipeline_animatediff_controlnet.py:381-402 | examples/community/pipeline_animatediff_img2video.py:498-519 | examples/community/pipeline_animatediff_ipex.py:353-374 | examples/community/pipeline_controlnet_xl_kolors.py:434-455 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:431-452 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:481-502 | examples/community/pipeline_kolors_differential_img2img.py:391-412 | examples/community/pipeline_kolors_inpainting.py:417-438 | examples/community/pipeline_sdxl_style_aligned.py:747-768 | examples/community/pipeline_stable_diffusion_boxdiff.py:769-790 | examples/community/pipeline_stable_diffusion_pag.py:735-756 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:618-639 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:719-740 | examples/community/regional_prompting_stable_diffusion.py:1239-1261 | examples/research_projects/anytext/anytext.py:1544-1565 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:505-526 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:115-136 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:338-359 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:383-404 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:569-590 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:392-413 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:440-461 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:471-492 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:482-503 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:460-481 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:466-487 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:533-554 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:541-562 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:533-554 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:522-543 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:533-554 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:552-573 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:509-530 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:537-558 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:400-421 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:496-517 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:467-488 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:496-517 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:395-416 | src/diffusers/pipelines/kolors/pipeline_kolors.py:365-386 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:385-406 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:425-446 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:410-431 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:459-480 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:435-456 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:548-569 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:538-559 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:382-403 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:488-509 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:349-370 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:483-504 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:518-539 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:535-556 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:789-810 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:331-352 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:515-536 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:542-563 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:496-517 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:647-668 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:525-546 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:776-797 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:335-356 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:553-574 \u2014 These 66 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 66 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 66 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1600}}}],"partialFingerprints":{"codehealthFindingId/v1":"c679f74f2c627cc49a13648e8f185d6c54b9328669d53c113d1489b5f56ba836"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (57 members, 50\u002B identical tokens): examples/community/adaptive_mask_inpainting.py:656-667 | examples/community/fresco_v2v.py:1677-1688 | examples/community/gluegen.py:434-445 | examples/community/instaflow_one_step.py:383-394 | examples/community/ip_adapter_face_id.py:666-677 | examples/community/latent_consistency_img2img.py:154-165 | examples/community/latent_consistency_interpolate.py:464-475 | examples/community/latent_consistency_txt2img.py:152-163 | examples/community/llm_grounded_diffusion.py:1431-1442 | examples/community/pipeline_hunyuandit_differential_img2img.py:517-528 | examples/community/pipeline_prompt2prompt.py:435-446 | examples/community/pipeline_stable_diffusion_boxdiff.py:793-804 | examples/community/pipeline_stable_diffusion_pag.py:793-804 | examples/community/stable_diffusion_reference.py:796-819 | examples/community/stable_diffusion_tensorrt_img2img.py:839-860 | examples/community/stable_diffusion_tensorrt_inpaint.py:922-943 | examples/community/stable_diffusion_tensorrt_txt2img.py:795-816 | examples/research_projects/anytext/anytext.py:1615-1626 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:530-541 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:553-564 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:531-542 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:537-548 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:443-454 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:533-544 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:561-572 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:416-427 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:222-233 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:104-115 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:480-491 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:606-617 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:404-415 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:435-446 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:538-549 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:454-465 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:541-552 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:443-454 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:376-387 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:373-384 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:591-602 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:784-795 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:415-426 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:496-507 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:481-492 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:413-424 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:530-541 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:506-517 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:425-436 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:559-570 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:554-565 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:589-600 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:584-595 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:388-399 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:171-182 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:613-624 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:567-578 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:731-742 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:495-506 \u2014 These 57 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 57 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 57 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddfb166b04fb6326db1c897d35a7fb41300e90d215a531b75304481fbd522456"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (57 members, 50\u002B identical tokens): examples/community/gluegen.py:140-150 | examples/community/instaflow_one_step.py:42-52 | examples/community/ip_adapter_face_id.py:77-87 | examples/community/lpw_stable_diffusion_xl.py:507-517 | examples/community/matryoshka.py:126-136 | examples/community/mixture_tiling_sdxl.py:197-219 | examples/community/pipeline_demofusion_sdxl.py:78-88 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1076-1094 | examples/community/pipeline_hunyuandit_differential_img2img.py:151-161 | examples/community/pipeline_kolors_inpainting.py:93-103 | examples/community/pipeline_prompt2prompt.py:62-72 | examples/community/pipeline_sdxl_style_aligned.py:314-324 | examples/community/pipeline_stable_diffusion_boxdiff.py:308-318 | examples/community/pipeline_stable_diffusion_pag.py:280-290 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:296-306 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:142-152 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:288-298 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:89-99 | examples/community/pipeline_stable_diffusion_xl_ipex.py:99-109 | examples/community/regional_prompting_stable_diffusion.py:1668-1690 | examples/community/stable_diffusion_xl_reference.py:66-76 | src/diffusers/guiders/guider_utils.py:375-396 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:125-147 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:145-167 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:135-157 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:140-162 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:68-90 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:78-100 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:73-95 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:319-341 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:101-123 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:177-199 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:199-221 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:124-146 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:244-266 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1645-1667 | src/diffusers/pipelines/ltx/pipeline_ltx.py:145-167 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:227-249 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:120-142 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:164-186 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:184-206 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:241-263 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:218-240 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:236-258 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:204-226 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:127-149 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:72-94 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:99-121 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:87-109 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:92-114 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:105-127 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:70-92 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:85-107 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:89-111 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:100-122 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:100-110 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:128-150 \u2014 These 57 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 57 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 57 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2f30e75ff22a2a3a0a926de602cd7ed4035bc6cd43fc5cd4ed8d294497c3a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (57 members, 50\u002B identical tokens): examples/community/gluegen.py:526-551 | examples/community/ip_adapter_face_id.py:783-808 | examples/community/latent_consistency_img2img.py:244-264 | examples/community/latent_consistency_interpolate.py:501-526 | examples/community/latent_consistency_txt2img.py:181-201 | examples/community/llm_grounded_diffusion.py:1509-1534 | examples/community/lpw_stable_diffusion_xl.py:1335-1360 | examples/community/matryoshka.py:4189-4214 | examples/community/mixture_tiling_sdxl.py:716-741 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1645-1670 | examples/community/pipeline_kolors_differential_img2img.py:719-744 | examples/community/pipeline_kolors_inpainting.py:1012-1037 | examples/community/pipeline_sdxl_style_aligned.py:1303-1328 | examples/community/pipeline_stable_diffusion_boxdiff.py:1002-1027 | examples/community/pipeline_stable_diffusion_pag.py:990-1013 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1284-1309 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:854-879 | examples/community/pipeline_stable_diffusion_xl_ipex.py:663-688 | examples/community/regional_prompting_stable_diffusion.py:1345-1370 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:328-353 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:306-331 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:398-423 | examples/research_projects/anytext/anytext.py:1883-1908 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:856-881 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1204-1229 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1384-1409 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:807-832 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:853-878 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:941-966 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:918-943 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:649-674 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:721-746 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:694-719 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:704-729 | src/diffusers/pipelines/kolors/pipeline_kolors.py:593-618 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:721-746 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:579-604 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:520-545 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:699-724 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:813-838 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:922-947 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:949-974 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:611-636 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:687-712 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:728-753 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:852-877 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:774-799 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:923-948 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1014-1039 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:720-745 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:804-829 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:826-851 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:761-786 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:909-934 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1014-1039 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:651-676 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:820-845 \u2014 These 57 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 57 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 57 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6968c0e6c572258c681403a99e303a33cf8dc2b808ea297a820c85ab38ed49"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (41 members, 50\u002B identical tokens): examples/community/fresco_v2v.py:1692-1700 | examples/community/instaflow_one_step.py:397-405 | examples/community/ip_adapter_face_id.py:680-688 | examples/community/llm_grounded_diffusion.py:1446-1454 | examples/community/pipeline_stable_diffusion_boxdiff.py:807-815 | examples/community/pipeline_stable_diffusion_pag.py:807-815 | examples/community/regional_prompting_stable_diffusion.py:1325-1331 | examples/research_projects/anytext/anytext.py:1630-1638 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:545-553 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:568-576 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:546-554 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:552-560 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:547-555 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:575-583 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:431-439 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:255-263 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:119-127 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:495-503 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:639-647 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:553-561 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:349-357 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:469-477 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:556-564 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:458-466 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:391-399 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:606-614 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:999-1004 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:304-312 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:163-171 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:220-228 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:428-436 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:598-606 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:403-411 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:186-194 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:628-636 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:764-772 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:287-295 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:419-427 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:481-489 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:443-451 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:510-518 \u2014 These 41 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 41 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 41 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"e386ebe0141a15e941d2a4b388fda91b282e40c9bccd53ccd45e4837c044994b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (40 members, 50\u002B identical tokens): src/diffusers/schedulers/scheduling_deis_multistep.py:461-496 | src/diffusers/schedulers/scheduling_deis_multistep.py:500-530 | src/diffusers/schedulers/scheduling_deis_multistep.py:536-579 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:603-638 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:668-698 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:704-747 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:479-514 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:518-548 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:554-597 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:570-600 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:606-649 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:546-581 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:585-615 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:621-664 | src/diffusers/schedulers/scheduling_euler_discrete.py:521-556 | src/diffusers/schedulers/scheduling_euler_discrete.py:560-590 | src/diffusers/schedulers/scheduling_euler_discrete.py:595-638 | src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:535-570 | src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:574-604 | src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:610-653 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:509-544 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:548-578 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:584-627 | src/diffusers/schedulers/scheduling_heun_discrete.py:418-453 | src/diffusers/schedulers/scheduling_heun_discrete.py:457-487 | src/diffusers/schedulers/scheduling_heun_discrete.py:493-536 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:407-442 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:446-476 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:482-525 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:450-485 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:489-519 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:525-568 | src/diffusers/schedulers/scheduling_lms_discrete.py:464-494 | src/diffusers/schedulers/scheduling_lms_discrete.py:500-543 | src/diffusers/schedulers/scheduling_sasolver.py:459-494 | src/diffusers/schedulers/scheduling_sasolver.py:498-528 | src/diffusers/schedulers/scheduling_sasolver.py:534-577 | src/diffusers/schedulers/scheduling_unipc_multistep.py:640-675 | src/diffusers/schedulers/scheduling_unipc_multistep.py:679-709 | src/diffusers/schedulers/scheduling_unipc_multistep.py:715-758 \u2014 These 40 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 40 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 40 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"e308de3ce0f62934c988f303e2c568dfd28f3cf80d11cc07fe2f16665fb19357"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (39 members, 50\u002B identical tokens): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:308-333 | src/diffusers/models/autoencoders/autoencoder_dc.py:620-665 | src/diffusers/models/autoencoders/autoencoder_dc.py:668-706 | src/diffusers/models/autoencoders/autoencoder_kl.py:255-300 | src/diffusers/models/autoencoders/autoencoder_kl.py:303-362 | src/diffusers/models/autoencoders/autoencoder_kl.py:365-411 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1251-1322 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1325-1405 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:267-312 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:315-374 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:377-423 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:876-923 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:926-981 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:583-620 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:623-664 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:794-841 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:844-891 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:830-875 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:878-924 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:684-727 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:730-774 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1339-1387 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1392-1447 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1354-1403 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1408-1465 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:934-983 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:986-1044 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:955-1009 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:1012-1087 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:908-971 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:974-1034 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1382-1451 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1455-1530 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1264-1333 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1336-1411 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1247-1306 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1344-1433 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:282-334 | src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:861-986 \u2014 These 39 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 39 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 39 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9af87d2df726005c9c1afaddefa51d9a4e7fff53f505229d62c3abc2e8c32a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (38 members, 50\u002B identical tokens): examples/community/fresco_v2v.py:1396-1414 | examples/community/ip_adapter_face_id.py:464-482 | examples/community/llm_grounded_diffusion.py:1211-1229 | examples/community/pipeline_prompt2prompt.py:229-247 | examples/community/pipeline_stable_diffusion_boxdiff.py:567-585 | examples/community/pipeline_stable_diffusion_pag.py:534-552 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:172-190 | examples/community/stable_diffusion_reference.py:374-409 | examples/research_projects/anytext/anytext.py:1339-1357 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:301-319 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:277-295 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:255-273 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:261-279 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:307-325 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:335-353 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:211-229 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:275-293 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:401-419 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:199-217 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:291-309 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:262-280 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:190-208 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:267-285 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:238-256 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:171-189 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:168-186 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:386-404 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:138-156 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:173-191 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:343-361 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:312-330 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:183-201 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:337-355 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:291-309 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:196-214 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:276-294 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:183-201 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:290-308 \u2014 These 38 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 38 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 38 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e6668225444bc25d43eeec10231a4ac4dc941a9b57e34bd140c307f6428e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (36 members, 50\u002B identical tokens): examples/community/pipeline_flux_differential_img2img.py:522-526 | examples/community/pipeline_flux_kontext_multiple_images.py:587-591 | examples/community/pipeline_flux_rf_inversion.py:505-509 | examples/community/pipeline_flux_semantic_guidance.py:660-664 | examples/community/pipeline_flux_with_cfg.py:482-486 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:554-558 | src/diffusers/pipelines/bria/pipeline_bria.py:413-417 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:392-396 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:556-560 | src/diffusers/pipelines/chroma/pipeline_chroma.py:487-491 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:519-523 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:574-578 | src/diffusers/pipelines/flux/pipeline_flux.py:523-527 | src/diffusers/pipelines/flux/pipeline_flux_control.py:473-477 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:515-519 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:554-558 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:567-571 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:516-520 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:544-548 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:610-614 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:589-593 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:610-614 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:576-580 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:650-654 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:359-363 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:369-373 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:380-384 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:334-338 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:400-404 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:382-386 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:383-387 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:416-420 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:398-402 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:382-386 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:409-413 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:497-501 \u2014 These 36 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 36 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 36 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"4525c5c7e401d667f72d89093554cb189089aad8a801b1e611686df1e901b682"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (34 members, 50\u002B identical tokens): examples/community/pipeline_flux_kontext_multiple_images.py:596-608 | examples/community/pipeline_flux_rf_inversion.py:513-523 | examples/community/pipeline_flux_semantic_guidance.py:669-681 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:563-575 | src/diffusers/modular_pipelines/flux/decoders.py:34-46 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:345-354 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:509-518 | src/diffusers/pipelines/chroma/pipeline_chroma.py:495-507 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:527-539 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:583-595 | src/diffusers/pipelines/flux/pipeline_flux.py:531-543 | src/diffusers/pipelines/flux/pipeline_flux_control.py:482-494 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:524-536 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:563-575 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:576-588 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:525-537 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:553-565 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:619-631 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:598-610 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:619-631 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:585-597 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:659-671 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:367-379 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:377-389 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:388-400 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:342-354 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:409-421 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:391-403 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:392-404 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:425-437 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:407-419 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:391-403 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:418-430 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:505-525 \u2014 These 34 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 34 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 34 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a725ab0ad672b6c8ed429e066a389630d42592a5bf8e64bbb35bf3863964085"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (32 members, 50\u002B identical tokens): examples/community/fresco_v2v.py:1949-1956 | examples/community/mod_controlnet_tile_sr_sdxl.py:860-867 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:778-785 | examples/community/pipeline_hunyuandit_differential_img2img.py:626-633 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:449-484 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:803-810 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:583-590 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1048-1083 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:893-900 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1027-1062 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:884-891 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:630-637 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:712-719 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:720-727 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:798-805 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:643-650 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:569-576 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:461-468 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:631-638 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:565-600 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:627-634 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:540-547 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:899-906 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:649-656 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:839-846 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:663-698 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:912-947 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:485-492 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:726-733 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:813-820 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:651-686 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:912-947 \u2014 These 32 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 32 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 32 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d5d28f5bf1c848b4d96798c2992bc7024164ae32a271fade0579c32aeb7ea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (31 members, 50\u002B identical tokens): examples/community/latent_consistency_img2img.py:416-448 | examples/community/latent_consistency_txt2img.py:331-363 | examples/community/matryoshka.py:239-275 | examples/community/scheduling_ufogen.py:55-91 | src/diffusers/schedulers/scheduling_consistency_decoder.py:19-63 | src/diffusers/schedulers/scheduling_ddim.py:56-100 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:56-100 | src/diffusers/schedulers/scheduling_ddim_inverse.py:54-98 | src/diffusers/schedulers/scheduling_ddim_parallel.py:56-100 | src/diffusers/schedulers/scheduling_ddpm.py:53-97 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:55-99 | src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py:49-86 | src/diffusers/schedulers/scheduling_deis_multistep.py:39-83 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:57-101 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:39-83 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:39-83 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:148-192 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:41-85 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:56-100 | src/diffusers/schedulers/scheduling_euler_discrete.py:59-103 | src/diffusers/schedulers/scheduling_heun_discrete.py:56-100 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:57-101 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:56-100 | src/diffusers/schedulers/scheduling_lcm.py:58-102 | src/diffusers/schedulers/scheduling_lms_discrete.py:57-101 | src/diffusers/schedulers/scheduling_pndm.py:33-77 | src/diffusers/schedulers/scheduling_repaint.py:52-96 | src/diffusers/schedulers/scheduling_sasolver.py:40-84 | src/diffusers/schedulers/scheduling_tcd.py:57-101 | src/diffusers/schedulers/scheduling_unclip.py:53-97 | src/diffusers/schedulers/scheduling_unipc_multistep.py:39-83 \u2014 These 31 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 31 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 31 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"9505eb253a15ad49b2027cdf971f059398011c299f12525cf6005b6a1cd5b420"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (31 members, 50\u002B identical tokens): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:494-504 | examples/community/stable_unclip.py:171-179 | examples/community/unclip_image_interpolation.py:118-126 | examples/community/unclip_text_interpolation.py:112-120 | src/diffusers/modular_pipelines/z_image/before_denoise.py:460-471 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:117-125 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:119-127 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:112-120 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:131-139 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:641-652 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:412-419 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:124-132 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:152-165 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:288-296 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:288-296 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:108-116 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:149-157 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:279-287 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:244-252 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:242-250 | src/diffusers/pipelines/shap_e/pipeline_shap_e.py:131-139 | src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py:132-140 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:118-134 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:138-153 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:384-394 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:515-525 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:589-597 | src/diffusers/pipelines/z_image/pipeline_z_image.py:264-275 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:319-330 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:326-337 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:285-296 \u2014 These 31 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 31 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 31 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb2f3c0cde1fcfe9ed1b9cf77c6dc3ceb33712df3f16be3d888a6bb3147a164"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (29 members, 50\u002B identical tokens): examples/community/latent_consistency_img2img.py:785-799 | examples/community/latent_consistency_img2img.py:804-818 | examples/community/latent_consistency_txt2img.py:693-707 | examples/community/latent_consistency_txt2img.py:712-726 | examples/community/matryoshka.py:728-743 | examples/community/matryoshka.py:748-763 | examples/community/scheduling_ufogen.py:468-482 | examples/community/scheduling_ufogen.py:487-501 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:276-294 | src/diffusers/schedulers/scheduling_ddim.py:523-557 | src/diffusers/schedulers/scheduling_ddim.py:561-592 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:434-468 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:472-503 | src/diffusers/schedulers/scheduling_ddim_parallel.py:633-667 | src/diffusers/schedulers/scheduling_ddim_parallel.py:671-702 | src/diffusers/schedulers/scheduling_ddpm.py:575-609 | src/diffusers/schedulers/scheduling_ddpm.py:612-643 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:674-708 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:712-743 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:528-562 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:566-597 | src/diffusers/schedulers/scheduling_euler_discrete.py:851-903 | src/diffusers/schedulers/scheduling_lcm.py:673-707 | src/diffusers/schedulers/scheduling_lcm.py:711-742 | src/diffusers/schedulers/scheduling_pndm.py:467-501 | src/diffusers/schedulers/scheduling_sasolver.py:1386-1420 | src/diffusers/schedulers/scheduling_tcd.py:708-742 | src/diffusers/schedulers/scheduling_tcd.py:746-777 | src/diffusers/schedulers/scheduling_unclip.py:362-396 \u2014 These 29 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 29 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 29 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"010db66773854d1883abb215e7ff7bf787709f5bb580aee72775f37ba724d2bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (26 members, 50\u002B identical tokens): examples/community/pipeline_flux_differential_img2img.py:248-284 | examples/community/pipeline_flux_kontext_multiple_images.py:284-323 | examples/community/pipeline_flux_rf_inversion.py:239-278 | examples/community/pipeline_flux_semantic_guidance.py:243-282 | examples/community/pipeline_flux_with_cfg.py:209-245 | examples/community/pipeline_stg_hunyuan_video.py:334-363 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:272-311 | src/diffusers/modular_pipelines/flux/encoders.py:341-368 | src/diffusers/pipelines/flux/pipeline_flux.py:225-265 | src/diffusers/pipelines/flux/pipeline_flux_control.py:237-277 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:248-288 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:287-327 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:257-297 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:249-289 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:260-300 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:252-292 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:246-286 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:250-290 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:271-311 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:304-344 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:210-250 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:301-330 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:273-302 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:378-407 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:431-454 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:203-243 \u2014 These 26 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 26 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 26 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2da7c1980031030e1fc32d368d1297375b0dcf355ce946838e37f35a380df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (26 members, 50\u002B identical tokens): src/diffusers/loaders/lora_pipeline.py:1039-1088 | src/diffusers/loaders/lora_pipeline.py:1324-1349 | src/diffusers/loaders/lora_pipeline.py:2424-2449 | src/diffusers/loaders/lora_pipeline.py:2610-2635 | src/diffusers/loaders/lora_pipeline.py:2802-2827 | src/diffusers/loaders/lora_pipeline.py:3000-3042 | src/diffusers/loaders/lora_pipeline.py:3207-3232 | src/diffusers/loaders/lora_pipeline.py:3398-3422 | src/diffusers/loaders/lora_pipeline.py:3589-3614 | src/diffusers/loaders/lora_pipeline.py:3782-3807 | src/diffusers/loaders/lora_pipeline.py:3971-3996 | src/diffusers/loaders/lora_pipeline.py:4689-4714 | src/diffusers/loaders/lora_pipeline.py:4881-4906 | src/diffusers/loaders/lora_pipeline.py:5076-5101 | src/diffusers/loaders/lora_pipeline.py:5270-5295 | src/diffusers/loaders/lora_pipeline.py:5470-5495 | src/diffusers/loaders/lora_pipeline.py:5660-5700 | src/diffusers/loaders/lora_pipeline.py:5867-5892 | src/diffusers/loaders/lora_pipeline.py:6049-6074 | src/diffusers/loaders/lora_pipeline.py:6238-6263 | src/diffusers/loaders/lora_pipeline.py:6434-6459 | src/diffusers/loaders/lora_pipeline.py:6634-6659 | src/diffusers/loaders/lora_pipeline.py:6824-6849 | src/diffusers/loaders/lora_pipeline.py:7015-7040 | src/diffusers/loaders/lora_pipeline.py:7282-7387 | src/diffusers/loaders/lora_pipeline.py:7604-7629 \u2014 These 26 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 26 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 26 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9868d6240965e45d6e7fe6b8ea3313b086e1d49d78e3e6f79baa1ff7246b96"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (26 members, 50\u002B identical tokens): src/diffusers/schedulers/scheduling_deis_multistep.py:588-639 | src/diffusers/schedulers/scheduling_deis_multistep.py:648-700 | src/diffusers/schedulers/scheduling_deis_multistep.py:709-773 | src/diffusers/schedulers/scheduling_deis_multistep.py:782-861 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:756-845 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:855-919 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:929-1045 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1055-1142 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:607-696 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:707-771 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:782-898 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:909-996 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:673-760 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:770-827 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:837-941 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:951-1066 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1077-1132 | src/diffusers/schedulers/scheduling_helios.py:379-451 | src/diffusers/schedulers/scheduling_helios.py:463-589 | src/diffusers/schedulers/scheduling_helios.py:602-735 | src/diffusers/schedulers/scheduling_sasolver.py:586-668 | src/diffusers/schedulers/scheduling_sasolver.py:952-1070 | src/diffusers/schedulers/scheduling_sasolver.py:1083-1206 | src/diffusers/schedulers/scheduling_unipc_multistep.py:767-831 | src/diffusers/schedulers/scheduling_unipc_multistep.py:841-960 | src/diffusers/schedulers/scheduling_unipc_multistep.py:971-1097 \u2014 These 26 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 26 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 26 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc052be53f637aed1f4586da1cc500c8e881bbbb0370d76eb220bbfe2ce5e41"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (25 members, 50\u002B identical tokens): src/diffusers/loaders/lora_pipeline.py:1390-1411 | src/diffusers/loaders/lora_pipeline.py:2489-2510 | src/diffusers/loaders/lora_pipeline.py:2676-2697 | src/diffusers/loaders/lora_pipeline.py:2868-2889 | src/diffusers/loaders/lora_pipeline.py:3084-3105 | src/diffusers/loaders/lora_pipeline.py:3273-3294 | src/diffusers/loaders/lora_pipeline.py:3463-3484 | src/diffusers/loaders/lora_pipeline.py:3655-3676 | src/diffusers/loaders/lora_pipeline.py:3848-3869 | src/diffusers/loaders/lora_pipeline.py:4037-4058 | src/diffusers/loaders/lora_pipeline.py:4300-4321 | src/diffusers/loaders/lora_pipeline.py:4566-4587 | src/diffusers/loaders/lora_pipeline.py:4755-4776 | src/diffusers/loaders/lora_pipeline.py:4947-4968 | src/diffusers/loaders/lora_pipeline.py:5142-5163 | src/diffusers/loaders/lora_pipeline.py:5336-5357 | src/diffusers/loaders/lora_pipeline.py:5536-5557 | src/diffusers/loaders/lora_pipeline.py:5933-5954 | src/diffusers/loaders/lora_pipeline.py:6115-6136 | src/diffusers/loaders/lora_pipeline.py:6304-6325 | src/diffusers/loaders/lora_pipeline.py:6500-6521 | src/diffusers/loaders/lora_pipeline.py:6700-6721 | src/diffusers/loaders/lora_pipeline.py:6890-6911 | src/diffusers/loaders/lora_pipeline.py:7081-7102 | src/diffusers/loaders/lora_pipeline.py:7670-7691 \u2014 These 25 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 25 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 25 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecb9c4e62c09208dcf7af04f3d625900e5fff875d1c1f6b8fd85d6802fea942"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (24 members, 50\u002B identical tokens): examples/community/pipeline_flux_differential_img2img.py:426-433 | examples/community/pipeline_z_image_differential_img2img.py:298-305 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:456-463 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:544-551 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:464-471 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:434-441 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:473-480 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:435-442 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:446-453 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:518-525 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:481-488 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:485-492 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:524-531 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:703-710 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:648-655 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:466-473 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:258-265 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:269-276 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:346-353 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:665-672 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:673-680 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:400-407 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:287-294 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:309-316 \u2014 These 24 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 24 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 24 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"69532e35bfb3d85b192bbaa5b416c749c0495f17e1248ffa1c0771f94a0ea076"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (23 members, 50\u002B identical tokens): examples/community/pipeline_flux_kontext_multiple_images.py:572-582 | examples/community/pipeline_flux_rf_inversion.py:491-501 | examples/community/pipeline_flux_semantic_guidance.py:645-655 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:539-549 | src/diffusers/pipelines/bria/pipeline_bria.py:435-446 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:359-369 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:523-533 | src/diffusers/pipelines/chroma/pipeline_chroma.py:473-483 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:505-515 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:559-569 | src/diffusers/pipelines/flux/pipeline_flux.py:509-519 | src/diffusers/pipelines/flux/pipeline_flux_control.py:458-468 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:500-510 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:539-549 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:552-562 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:501-511 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:529-539 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:595-605 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:574-584 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:595-605 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:561-571 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:635-645 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:366-376 \u2014 These 23 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 23 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 23 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5234b79c5a099a25929d1f4a2987d34e9160d280f66d96fc12ea71de4d5f6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (20 members, 50\u002B identical tokens): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:589-610 | src/diffusers/pipelines/allegro/pipeline_allegro.py:439-460 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:410-431 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:453-474 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:206-227 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:493-514 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:208-229 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:164-185 | src/diffusers/pipelines/latte/pipeline_latte.py:426-447 | src/diffusers/pipelines/lumina/pipeline_lumina.py:458-479 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:413-434 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:420-441 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:525-546 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:470-491 | src/diffusers/pipelines/sana/pipeline_sana.py:496-517 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:511-532 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:387-408 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:411-432 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:519-540 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:521-542 \u2014 These 20 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 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac437c3dcf2f83ee6bd136757cb0044d7fd09a022d410b46ceb96bb01a29027"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (19 members, 50\u002B identical tokens): examples/community/mixture_tiling_sdxl.py:668-681 | examples/community/pipeline_controlnet_xl_kolors.py:742-755 | examples/community/pipeline_kolors_differential_img2img.py:696-709 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:781-794 | examples/community/pipeline_stable_diffusion_xl_ipex.py:642-655 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1365-1378 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:770-783 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:913-926 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:890-903 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:467-480 | src/diffusers/pipelines/kolors/pipeline_kolors.py:565-578 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:693-706 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:671-684 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:921-934 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:583-596 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:746-759 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:734-747 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:571-584 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:764-777 \u2014 These 19 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 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcdda8f6f8ca120536bcca3e58fa1d3e8858c4b0871dbbb2b0073b356888ed3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (19 members, 50\u002B identical tokens): src/diffusers/schedulers/scheduling_consistency_models.py:467-507 | src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:695-735 | src/diffusers/schedulers/scheduling_deis_multistep.py:1003-1044 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1309-1350 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:1124-1166 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:782-822 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1283-1324 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:814-854 | src/diffusers/schedulers/scheduling_edm_euler.py:542-582 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:485-525 | src/diffusers/schedulers/scheduling_euler_discrete.py:808-848 | src/diffusers/schedulers/scheduling_euler_discrete.py:851-903 | src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:194-236 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:215-257 | src/diffusers/schedulers/scheduling_heun_discrete.py:668-708 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:700-740 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:672-712 | src/diffusers/schedulers/scheduling_lms_discrete.py:632-672 | src/diffusers/schedulers/scheduling_unipc_multistep.py:1256-1297 \u2014 These 19 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 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_consistency_models.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"1579ff64d704493b8e3726d378de20bbf707ac810819bd1a6ec69ea94e5c4088"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (17 members, 50\u002B identical tokens): examples/community/latent_consistency_img2img.py:617-647 | examples/community/latent_consistency_txt2img.py:529-559 | examples/community/matryoshka.py:454-484 | examples/community/scheduling_ufogen.py:343-373 | src/diffusers/schedulers/scheduling_ddim.py:292-332 | src/diffusers/schedulers/scheduling_ddim_parallel.py:295-335 | src/diffusers/schedulers/scheduling_ddpm.py:419-459 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:436-476 | src/diffusers/schedulers/scheduling_deis_multistep.py:358-398 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:501-541 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:376-416 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:443-483 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:387-427 | src/diffusers/schedulers/scheduling_lcm.py:360-400 | src/diffusers/schedulers/scheduling_sasolver.py:356-396 | src/diffusers/schedulers/scheduling_tcd.py:390-430 | src/diffusers/schedulers/scheduling_unipc_multistep.py:537-577 \u2014 These 17 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 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"465c1a0873d6e02b439ad4222205de017545d959e6f013a601fcfd0c0958dd81"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (17 members, 50\u002B identical tokens): examples/community/matryoshka.py:2585-2597 | src/diffusers/models/autoencoders/autoencoder_kl.py:144-156 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:156-168 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:171-183 | src/diffusers/models/controlnets/controlnet.py:522-534 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:454-466 | src/diffusers/models/controlnets/controlnet_union.py:461-473 | src/diffusers/models/controlnets/controlnet_xs.py:868-880 | src/diffusers/models/transformers/prior_transformer.py:169-181 | src/diffusers/models/unets/unet_2d_condition.py:711-723 | src/diffusers/models/unets/unet_3d_condition.py:397-409 | src/diffusers/models/unets/unet_i2vgen_xl.py:360-372 | src/diffusers/models/unets/unet_motion_model.py:1802-1814 | src/diffusers/models/unets/uvit_2d.py:233-245 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:414-426 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:887-899 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_prior.py:65-77 \u2014 These 17 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 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2585}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c07bbab798f321a8ce3b9e94a0ca3510178c27c437a38457ed36e5c3432c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (17 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl.py:174-197 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:810-833 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1157-1179 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:186-209 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:781-803 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:503-524 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:707-729 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:745-767 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:606-629 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:325-348 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1237-1258 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:761-770 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:841-863 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:859-881 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:818-839 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1281-1302 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1168-1189 \u2014 These 17 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 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"25046dd016916b477957da6c6152deed84ef39e5d2e14c43d04f3878009dbe4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (16 members, 50\u002B identical tokens): examples/community/latent_consistency_img2img.py:452-481 | examples/community/latent_consistency_txt2img.py:367-396 | examples/community/matryoshka.py:280-312 | examples/community/scheduling_ufogen.py:96-128 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:513-1136 | src/diffusers/schedulers/scheduling_ddim.py:104-136 | src/diffusers/schedulers/scheduling_ddim_inverse.py:103-135 | src/diffusers/schedulers/scheduling_ddim_parallel.py:105-137 | src/diffusers/schedulers/scheduling_ddpm.py:102-134 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:104-136 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:88-120 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:105-137 | src/diffusers/schedulers/scheduling_euler_discrete.py:108-140 | src/diffusers/schedulers/scheduling_lcm.py:107-139 | src/diffusers/schedulers/scheduling_tcd.py:106-138 | src/diffusers/schedulers/scheduling_unipc_multistep.py:88-120 \u2014 These 16 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 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6deda01d64812327a887d4f754edb0182285e48d387eeb5dd7c60987e7e35fa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (16 members, 50\u002B identical tokens): examples/community/pipeline_stg_ltx.py:451-466 | examples/community/pipeline_stg_ltx_image2video.py:476-491 | src/diffusers/modular_pipelines/echo/before_denoise.py:27-42 | src/diffusers/modular_pipelines/ltx/modular_pipeline.py:39-56 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:116-131 | src/diffusers/pipelines/ltx/pipeline_ltx.py:425-440 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:577-592 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:642-657 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:450-465 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:656-671 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:711-726 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:580-595 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:521-536 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:579-594 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:733-748 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:664-679 \u2014 These 16 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 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4dffe40ff708cf51281f6571b5f43177120c6fa7a4c55d6e014c95b57f961a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (16 members, 50\u002B identical tokens): src/diffusers/models/attention_processor.py:576-613 | src/diffusers/models/transformers/transformer_bria.py:256-264 | src/diffusers/models/transformers/transformer_bria_fibo.py:201-209 | src/diffusers/models/transformers/transformer_ernie_image.py:220-227 | src/diffusers/models/transformers/transformer_flux.py:347-355 | src/diffusers/models/transformers/transformer_flux2.py:562-569 | src/diffusers/models/transformers/transformer_flux2.py:797-804 | src/diffusers/models/transformers/transformer_ideogram4.py:162-169 | src/diffusers/models/transformers/transformer_kandinsky.py:374-390 | src/diffusers/models/transformers/transformer_krea2.py:137-144 | src/diffusers/models/transformers/transformer_longcat_image.py:203-211 | src/diffusers/models/transformers/transformer_ltx.py:163-170 | src/diffusers/models/transformers/transformer_ltx2.py:387-397 | src/diffusers/models/transformers/transformer_motif_video.py:379-386 | src/diffusers/models/transformers/transformer_ovis_image.py:203-211 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:373-383 \u2014 These 16 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 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"199dd8d3439858c9a06fdae40e0c1607801debf893cdd93038699611ff30f5fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (15 members, 50\u002B identical tokens): examples/community/matryoshka.py:2697-2716 | src/diffusers/models/autoencoders/autoencoder_kl.py:451-469 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:463-481 | src/diffusers/models/controlnets/controlnet_sd3.py:209-227 | src/diffusers/models/controlnets/controlnet_xs.py:918-936 | src/diffusers/models/transformers/auraflow_transformer_2d.py:370-388 | src/diffusers/models/transformers/cogvideox_transformer_3d.py:336-354 | src/diffusers/models/transformers/hunyuan_transformer_2d.py:321-339 | src/diffusers/models/transformers/pixart_transformer_2d.py:197-215 | src/diffusers/models/transformers/transformer_sd3.py:218-236 | src/diffusers/models/unets/unet_2d_condition.py:823-841 | src/diffusers/models/unets/unet_3d_condition.py:447-465 | src/diffusers/models/unets/unet_i2vgen_xl.py:410-428 | src/diffusers/models/unets/unet_motion_model.py:1852-1870 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:999-1015 \u2014 These 15 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 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2697}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e888a111e345adfe67ce155fc5721c14ca7ec0994a896e58381deeff5e2ace1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): examples/community/pipeline_hunyuandit_differential_img2img.py:130-146 | examples/community/pipeline_stg_cogvideox.py:124-138 | src/diffusers/models/transformers/transformer_easyanimate.py:76-90 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:70-84 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:77-91 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:69-83 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:78-92 | src/diffusers/pipelines/consisid/pipeline_consisid.py:144-173 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:119-135 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:82-96 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:158-172 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:180-194 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:103-119 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:106-122 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8821f46ae61457f093af9b97351d984723ad32b8a0e4482b871e9619d9eed4d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:367-400 | src/diffusers/schedulers/scheduling_deis_multistep.py:402-435 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:545-578 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:420-453 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:508-541 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:487-520 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:431-464 | src/diffusers/schedulers/scheduling_euler_discrete.py:484-517 | src/diffusers/schedulers/scheduling_heun_discrete.py:381-414 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:370-403 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:413-446 | src/diffusers/schedulers/scheduling_lms_discrete.py:403-436 | src/diffusers/schedulers/scheduling_sasolver.py:400-433 | src/diffusers/schedulers/scheduling_unipc_multistep.py:581-614 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a59a2d487a5054944949ae9cf9cf91fb339d018024cfb62f64f14766be504ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1235-1240 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:852-857 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:770-775 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:806-811 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1315-1320 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1330-1335 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:918-923 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:939-944 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:892-897 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1364-1369 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1248-1253 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1192-1197 | src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:830-835 \u2014 These 13 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 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bac5696743a8a23c5a534cea32fbb8f669ddb4f1254519c0f94fa3b414e621"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1243-1248 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:860-865 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:778-783 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:814-819 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1323-1328 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1338-1343 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:926-931 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:947-952 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:900-905 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1373-1378 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1256-1261 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1200-1205 | src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:839-844 \u2014 These 13 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 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78991540754927effe84c55cf8e3dd72e6d579bba56f3eaeaaf38e21184beb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): examples/community/llm_grounded_diffusion.py:548-580 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:494-521 | examples/community/pipeline_stable_diffusion_xl_instantid.py:494-521 | examples/custom_diffusion/train_custom_diffusion.py:664-1377 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:404-827 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:261-411 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:263-418 | examples/research_projects/ip_adapter/tutorial_train_plus.py:279-441 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:324-516 | examples/research_projects/lora/train_text_to_image_lora.py:395-1022 | src/diffusers/loaders/unet.py:592-681 \u2014 These 12 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 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"125bdf08262a27785f28b25180a7a58ba5bd12c76303063842d49cb31fa000aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl.py:217-240 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1211-1232 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:1064-1072 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:229-252 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:827-849 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:542-563 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:646-669 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:914-936 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:868-889 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1339-1360 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1224-1245 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:492-515 \u2014 These 12 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 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f3797e06730b192f13e07c0889fb512a834d7fed5180f021e0d74907dc0942"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/flux/denoise.py:278-293 | src/diffusers/modular_pipelines/flux2/denoise.py:438-457 | src/diffusers/modular_pipelines/flux3/denoise.py:291-310 | src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:230-245 | src/diffusers/modular_pipelines/ltx/denoise.py:221-236 | src/diffusers/modular_pipelines/ltx2/denoise.py:662-677 | src/diffusers/modular_pipelines/qwenimage/denoise.py:486-504 | src/diffusers/modular_pipelines/qwenimage21/denoise.py:406-427 | src/diffusers/modular_pipelines/stable_diffusion_3/denoise.py:213-228 | src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py:700-722 | src/diffusers/modular_pipelines/wan/denoise.py:453-469 | src/diffusers/modular_pipelines/z_image/denoise.py:279-295 \u2014 These 12 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 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/denoise.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e181ba2a548e63b43d415b9b5250f68bd45829fdc43c17a726dfc120fe16fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): examples/community/kohya_hires_fix.py:84-358 | examples/community/matryoshka.py:2883-3163 | examples/community/matryoshka.py:3327-3613 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:668-878 | src/diffusers/models/unets/unet_2d_condition.py:995-1235 | src/diffusers/models/unets/unet_3d_condition.py:490-673 | src/diffusers/models/unets/unet_i2vgen_xl.py:452-652 | src/diffusers/models/unets/unet_motion_model.py:1896-2112 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:300-448 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:508-703 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1053-1413 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/kohya_hires_fix.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"3682df91837b7444f76c960304e39c26a3d3035c9d219829fc9fac15806ef51b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): examples/community/pipeline_stg_wan.py:173-185 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:221-242 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:191-224 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:180-208 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:199-227 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:140-152 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:161-173 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:166-178 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:222-234 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:167-182 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:207-219 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ebf75b12ef9cb877db81b266235bcf2573149480276a8aca991a166a8fad87"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): src/diffusers/guiders/adaptive_projected_guidance.py:145-160 | src/diffusers/guiders/adaptive_projected_guidance_mix.py:161-176 | src/diffusers/guiders/auto_guidance.py:183-198 | src/diffusers/guiders/classifier_free_guidance.py:141-156 | src/diffusers/guiders/classifier_free_zero_star_guidance.py:138-153 | src/diffusers/guiders/frequency_decoupled_guidance.py:302-317 | src/diffusers/guiders/magnitude_aware_guidance.py:123-138 | src/diffusers/guiders/perturbed_attention_guidance.py:259-274 | src/diffusers/guiders/skip_layer_guidance.py:251-266 | src/diffusers/guiders/smoothed_energy_guidance.py:240-255 | src/diffusers/guiders/tangential_classifier_free_guidance.py:114-129 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/adaptive_projected_guidance.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"327c99eabc21bfecaf9bab18ec14d22e38058b679a6f51dfff7675c6dbc9db85"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): examples/community/adaptive_mask_inpainting.py:206-319 | examples/community/pipeline_kolors_inpainting.py:108-119 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:311-322 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:160-171 | examples/community/stable_diffusion_controlnet_inpaint.py:152-183 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:151-182 | examples/community/stable_diffusion_repaint.py:43-139 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:127-241 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:125-239 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:127-138 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f002e8d5e407d22a1d59571c05ecf30acd2a64af535a676588b918a8d5ce50c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): examples/community/pipeline_flux_kontext_multiple_images.py:466-497 | src/diffusers/pipelines/chroma/pipeline_chroma.py:384-415 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:410-443 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:413-444 | src/diffusers/pipelines/flux/pipeline_flux.py:405-436 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:439-470 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:430-461 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:434-465 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:455-486 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:488-519 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"042fbcc80d13bff349dea1965168967459e4d6beb1eb2cf7d9c31a5465d19cec"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): src/diffusers/models/controlnets/controlnet_z_image.py:101-155 | src/diffusers/models/transformers/transformer_bria.py:137-185 | src/diffusers/models/transformers/transformer_bria_fibo.py:83-131 | src/diffusers/models/transformers/transformer_bria_fibo2.py:212-255 | src/diffusers/models/transformers/transformer_ernie_image.py:100-155 | src/diffusers/models/transformers/transformer_flux.py:196-275 | src/diffusers/models/transformers/transformer_longcat_image.py:84-132 | src/diffusers/models/transformers/transformer_ovis_image.py:84-132 | src/diffusers/models/transformers/transformer_pan2.py:87-137 | src/diffusers/models/transformers/transformer_z_image.py:100-154 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"91512cfc76c66a2adea40eb718b211dba724dfc941954ea7675b5b265bac1512"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:232-284 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:193-223 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:257-287 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:239-269 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:232-270 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:243-281 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:235-283 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:200-230 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:210-240 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:256-288 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcf0ce39812410c29e717730254ae2d44605d29c7671a8a8756c98c4e010cfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): examples/community/pipeline_flux_kontext_multiple_images.py:611-622 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:600-611 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:674-685 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:406-418 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:392-402 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:407-427 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:423-443 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:432-452 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:430-450 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37a302e63ff4e8b28e59077d4b07f7a484219e8ed5a5a630372644bea9f957e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:226-272 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:272-318 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:260-306 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:282-328 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:230-276 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:246-292 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:241-287 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:265-311 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:271-317 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0a0e6b0f0ef6b53b438049ecda4d57bc40b4ed2789d69ad31fa4ccd2b9690a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): examples/community/pipeline_stg_wan.py:118-137 | src/diffusers/models/transformers/transformer_anyflow.py:465-504 | src/diffusers/models/transformers/transformer_anyflow_far.py:578-617 | src/diffusers/models/transformers/transformer_chronoedit.py:484-519 | src/diffusers/models/transformers/transformer_helios.py:436-498 | src/diffusers/models/transformers/transformer_skyreels_v2.py:489-515 | src/diffusers/models/transformers/transformer_wan.py:469-504 | src/diffusers/models/transformers/transformer_wan_animate.py:948-983 | src/diffusers/models/transformers/transformer_wan_vace.py:102-135 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c424817ed860931ede5bffd04b6a017c6e452b427e5f5f04ea1c5f9ef49b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:227-235 | scripts/convert_flux2_to_diffusers.py:95-103 | scripts/convert_original_audioldm_to_diffusers.py:202-210 | scripts/convert_svd_to_diffusers.py:545-553 | scripts/convert_unidiffuser_to_diffusers.py:97-105 | scripts/convert_versatile_diffusion_to_diffusers.py:248-256 | scripts/convert_zero123_to_diffusers.py:671-679 | src/diffusers/loaders/single_file_utils.py:882-890 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:225-233 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c283437f18e2e093810cafec4f4d83222d9ec3eaf458592e4cec7e03d56daf"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_bria.py:275-293 | src/diffusers/models/transformers/transformer_bria.py:342-360 | src/diffusers/models/transformers/transformer_bria_fibo.py:220-238 | src/diffusers/models/transformers/transformer_flux.py:508-526 | src/diffusers/models/transformers/transformer_flux2.py:980-998 | src/diffusers/models/transformers/transformer_flux3.py:305-323 | src/diffusers/models/transformers/transformer_krea2.py:318-336 | src/diffusers/models/transformers/transformer_longcat_image.py:360-378 | src/diffusers/models/transformers/transformer_ovis_image.py:363-381 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93f68641737af87e427545634a604a425f544acadef7324beb7fd031f4e2a02"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): src/diffusers/pipelines/chroma/pipeline_chroma.py:370-378 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:397-405 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:399-407 | src/diffusers/pipelines/flux/pipeline_flux.py:392-400 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:425-433 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:416-424 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:420-428 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:441-449 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:474-482 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dbeb43fd2df2387f7deadbe972b9aa3e75513760d1f7edf971b081c0b35853"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): examples/community/matryoshka.py:487-532 | examples/community/scheduling_ufogen.py:266-339 | src/diffusers/schedulers/scheduling_ddim.py:335-382 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:282-326 | src/diffusers/schedulers/scheduling_ddim_parallel.py:339-386 | src/diffusers/schedulers/scheduling_ddpm.py:280-346 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:295-361 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:284-329 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a1118ab1511e2c241c90373ea90d0cc2b389a703ae7cf93fc348964e440330"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): examples/community/matryoshka.py:1248-1342 | examples/research_projects/pixart/controlnet_pixart_alpha.py:165-291 | src/diffusers/models/controlnets/controlnet_sana.py:133-241 | src/diffusers/models/transformers/pixart_transformer_2d.py:238-362 | src/diffusers/models/transformers/sana_transformer.py:432-551 | src/diffusers/models/transformers/transformer_2d.py:336-462 | src/diffusers/models/transformers/transformer_ltx2.py:1382-1681 | src/diffusers/models/transformers/transformer_sana_video.py:588-719 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"07715a069d43594fa07d6c50160e31ed18d00a035f99d7e2a761e5433b688af0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): examples/community/pipeline_animatediff_controlnet.py:441-461 | examples/community/pipeline_animatediff_img2video.py:558-578 | examples/community/pipeline_animatediff_ipex.py:430-439 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:640-649 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:463-472 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:425-434 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:342-351 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:378-387 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"444352f58715f14495929397306b4e0382b5f0af3078c7520bc15e848722b107"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): examples/community/pipeline_stg_cogvideox.py:594-876 | examples/community/pipeline_stg_ltx.py:589-886 | examples/community/pipeline_stg_ltx_image2video.py:649-985 | examples/community/pipeline_stg_mochi.py:592-863 | src/diffusers/pipelines/ltx/pipeline_ltx.py:565-857 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:885-1294 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:976-1410 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:627-954 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"218565d0109c4875e895678fed0bb837b5edd15a8a39bf3d4f712c30e5157d5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl.py:420-447 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:1048-1074 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1414-1439 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:1081-1106 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:432-459 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:783-810 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:945-970 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:1053-1080 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc32726a5926ef71d1db9db0c51db388897fda40230e5f9c09af7dc8d4a24552"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:447-483 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:637-670 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:359-400 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:607-646 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:893-929 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:352-390 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:595-632 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:885-918 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9816dabcaf701c29783ee3a542b39bf6cac91201e71a9abab454edff253239d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/anima/before_denoise.py:71-116 | src/diffusers/modular_pipelines/flux3/inputs.py:35-80 | src/diffusers/modular_pipelines/helios/before_denoise.py:132-177 | src/diffusers/modular_pipelines/qwenimage/inputs.py:30-75 | src/diffusers/modular_pipelines/qwenimage21/inputs.py:40-85 | src/diffusers/modular_pipelines/stable_diffusion_3/inputs.py:33-78 | src/diffusers/modular_pipelines/wan/before_denoise.py:43-88 | src/diffusers/modular_pipelines/z_image/before_denoise.py:43-88 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c2493c9abf9515a71de31087ab4f0202a6bb3ab806f6cba2756f8b18d158f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/flux2/encoders.py:118-152 | src/diffusers/modular_pipelines/flux2/encoders.py:311-357 | src/diffusers/modular_pipelines/flux2/encoders.py:455-501 | src/diffusers/modular_pipelines/flux3/encoders.py:255-296 | src/diffusers/pipelines/flux2/pipeline_flux2.py:314-353 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:217-263 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:264-310 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:222-267 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/encoders.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c683ce3dfed5da5113f77691a47a6dfd389ff893bfbaf1f34719cde037cc356"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/ltx2/before_denoise.py:148-158 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:731-745 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:778-792 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:652-666 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:593-607 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:660-674 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:814-828 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:730-744 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0dda5a025a077c1be87d202ac2568a677dccfbd0fda5a59112d1a991794d81"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/ltx2/decoders.py:79-86 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:757-764 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:805-812 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:679-686 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:620-627 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:687-694 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:841-848 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:757-764 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/decoders.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"30adc18ab104074a2ebb2558e0b64cc0785f9e742efa5d8c7c10fafa9c841647"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:156-163 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:158-165 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:170-176 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:172-178 | src/diffusers/pipelines/latte/pipeline_latte.py:187-194 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:178-187 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:293-300 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:237-244 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"78145ef6bbfb1d2bf456c205c2d6de7f8fee8c770c91adcbe91b9ba74ee15d0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): examples/community/pipeline_z_image_differential_img2img.py:219-241 | src/diffusers/pipelines/z_image/pipeline_z_image.py:178-200 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:233-255 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:240-262 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:208-230 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:230-252 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:186-210 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"950813c073ee8798b9de7b2b649049a473aa54574b4b6e65792bdb2ced7dc1b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): examples/community/pipeline_z_image_differential_img2img.py:251-293 | src/diffusers/pipelines/z_image/pipeline_z_image.py:209-251 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:264-306 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:271-313 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:240-282 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:262-304 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:220-272 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c6fe666f70d261be97dcbbf792c2b8832c14a504c4ba6de60c6df537f569b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:499-538 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:776-791 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:498-515 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:483-506 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:525-547 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:840-876 | src/diffusers/models/autoencoders/vae.py:156-180 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df0bb516687269dcb49aa70fe833b905399b59184cb6a711424743404e99ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/diffusers/models/controlnets/controlnet_sd3.py:179-205 | src/diffusers/models/transformers/hunyuan_transformer_2d.py:477-503 | src/diffusers/models/transformers/transformer_sd3.py:176-202 | src/diffusers/models/unets/unet_3d_condition.py:356-382 | src/diffusers/models/unets/unet_i2vgen_xl.py:318-344 | src/diffusers/models/unets/unet_motion_model.py:1761-1787 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:264-290 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_sd3.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"c008b6a9ec3f48a814e51cb38eed7c6697e69b9671ab29d6c878713162504258"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_anyflow.py:417-453 | src/diffusers/models/transformers/transformer_anyflow_far.py:530-566 | src/diffusers/models/transformers/transformer_chronoedit.py:446-475 | src/diffusers/models/transformers/transformer_helios.py:392-426 | src/diffusers/models/transformers/transformer_skyreels_v2.py:450-479 | src/diffusers/models/transformers/transformer_wan.py:431-460 | src/diffusers/models/transformers/transformer_wan_animate.py:910-939 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"5684381a61f97a00650ad7209e5eb02556da569e2fa7b656ff6d0a6251b76b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_anyflow.py:578-611 | src/diffusers/models/transformers/transformer_anyflow_far.py:1048-1096 | src/diffusers/models/transformers/transformer_chronoedit.py:605-642 | src/diffusers/models/transformers/transformer_skyreels_v2.py:592-631 | src/diffusers/models/transformers/transformer_wan.py:591-626 | src/diffusers/models/transformers/transformer_wan_animate.py:1070-1152 | src/diffusers/models/transformers/transformer_wan_vace.py:206-264 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a61a4dfae614ecc6bdc392266962d6b4e27491eb1112b01ccdb6870aba6c7a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_bria.py:26-36 | src/diffusers/models/transformers/transformer_bria_fibo.py:38-48 | src/diffusers/models/transformers/transformer_flux.py:47-57 | src/diffusers/models/transformers/transformer_flux2.py:256-266 | src/diffusers/models/transformers/transformer_longcat_image.py:39-49 | src/diffusers/models/transformers/transformer_ovis_image.py:39-49 | src/diffusers/models/transformers/transformer_pan2.py:38-48 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff23c0f1a75cb7b016aca928e5d1be6b5fcba438a3740673c1c0e2610c4f6bad"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_bria.py:40-46 | src/diffusers/models/transformers/transformer_bria_fibo.py:52-58 | src/diffusers/models/transformers/transformer_flux.py:61-67 | src/diffusers/models/transformers/transformer_flux2.py:270-276 | src/diffusers/models/transformers/transformer_longcat_image.py:53-59 | src/diffusers/models/transformers/transformer_ovis_image.py:53-59 | src/diffusers/models/transformers/transformer_pan2.py:53-59 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6651875c8d8a32d3c0574b373756c7a91a6e325f688007364b45040b9dd71c2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_bria.py:211-246 | src/diffusers/models/transformers/transformer_bria_fibo.py:156-191 | src/diffusers/models/transformers/transformer_flux.py:302-337 | src/diffusers/models/transformers/transformer_flux2.py:516-552 | src/diffusers/models/transformers/transformer_longcat_image.py:158-193 | src/diffusers/models/transformers/transformer_motif_video.py:311-369 | src/diffusers/models/transformers/transformer_ovis_image.py:158-193 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bfa25472c4d0e35998976067f2dc62850302d7db072ed1f7875197ddb49be7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/flux/encoders.py:112-116 | src/diffusers/modular_pipelines/flux/inputs.py:337-341 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:192-196 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:313-317 | src/diffusers/modular_pipelines/qwenimage/encoders.py:1142-1146 | src/diffusers/modular_pipelines/qwenimage/encoders.py:1326-1330 | src/diffusers/modular_pipelines/qwenimage/encoders.py:1692-1696 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d2b0ab60a9f73dd8bb7fa11406952e186d372ed1611dd088f8d7e4106f26f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/flux2/decoders.py:158-163 | src/diffusers/modular_pipelines/flux3/decoders.py:142-147 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:423-427 | src/diffusers/pipelines/flux2/pipeline_flux2.py:466-470 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:381-385 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:442-446 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:385-389 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/decoders.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"218547231b2dc841661cf0976ae6c1b6f1bee0a95216d29cd8114302997e7109"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/flux2/encoders.py:573-578 | src/diffusers/modular_pipelines/flux3/encoders.py:139-144 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:414-418 | src/diffusers/pipelines/flux2/pipeline_flux2.py:458-462 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:372-376 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:433-437 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:376-380 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/encoders.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"21194ac911e7b76e63b9d8a4be6f6c2ebba92b1e0acae058187782dcd77c9b69"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/diffusers/pipelines/pag/pipeline_pag_sana.py:203-331 | src/diffusers/pipelines/sana/pipeline_sana.py:231-278 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:245-292 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:183-230 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:190-237 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:254-301 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:251-298 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a231304d0adbac9d7487b62d417d9d37252dc6b61c9be30b6635c0213400e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:556-585 | src/diffusers/schedulers/scheduling_deis_multistep.py:869-898 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1149-1178 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1140-1169 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:678-707 | src/diffusers/schedulers/scheduling_sasolver.py:1214-1243 | src/diffusers/schedulers/scheduling_unipc_multistep.py:1105-1134 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2d7c425a9684ab9c1aed3685925e2d0f8db4f02088eea14f69d8d2df373014"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:809-845 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:770-806 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:937-973 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:724-760 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:780-816 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:872-908 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e88d9af8d905577c33a5e9874d1039992a7a7e228362fe25a8c52fbcb5ecefa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): examples/community/pipeline_stg_cogvideox.py:241-254 | src/diffusers/pipelines/allegro/pipeline_allegro.py:200-212 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:187-200 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:194-207 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:200-217 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:209-223 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48bc3e90ce9dc90c3068732382e81f32fc0920181521d6659c3fdce3f8b6a98"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): examples/community/pipeline_stg_hunyuan_video.py:244-258 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:208-223 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:183-197 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:284-300 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:205-238 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:240-276 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45fe878e62b0d86e1691aab9a473f68e610a413da54809c3c822f14eaf0f177"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): scripts/convert_joyimage_edit_to_diffusers.py:45-205 | scripts/convert_skyreelsv2_to_diffusers.py:369-568 | scripts/convert_wan_to_diffusers.py:647-846 | scripts/convert_wan_to_diffusers.py:964-1150 | src/diffusers/loaders/single_file_utils.py:3364-3558 | src/diffusers/utils/state_dict_utils.py:461-520 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_joyimage_edit_to_diffusers.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"df68731d12402cae674f983d41967b94bf59f2c7b4fbbe304b491691ba930849"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/guiders/perturbed_attention_guidance.py:175-190 | src/diffusers/guiders/perturbed_attention_guidance.py:195-210 | src/diffusers/guiders/skip_layer_guidance.py:171-186 | src/diffusers/guiders/skip_layer_guidance.py:191-206 | src/diffusers/guiders/smoothed_energy_guidance.py:160-175 | src/diffusers/guiders/smoothed_energy_guidance.py:180-195 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/perturbed_attention_guidance.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"704fc03f154c155c8404b669602bd8d37c0cf9467dfc686b78c261939b65d207"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:845-867 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:745-767 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:781-803 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:356-377 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:917-936 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:777-786 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"293269ea260bb10741ebfd3259f79f18ef4d142e36980b370e6c8bfe44e3b999"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:868-873 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:786-791 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:822-827 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1331-1336 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1346-1351 | src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:848-853 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af77c84f8370ff2b6549b6e3adc4003ab15ccab288339ad9caa08626d435d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_bria.py:368-389 | src/diffusers/models/transformers/transformer_bria_fibo.py:310-331 | src/diffusers/models/transformers/transformer_chroma.py:274-294 | src/diffusers/models/transformers/transformer_flux.py:420-441 | src/diffusers/models/transformers/transformer_longcat_image.py:273-294 | src/diffusers/models/transformers/transformer_ovis_image.py:276-297 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8dd7134af7b7fcd4a9465f09b24537cbec5d37292469081f61871a69501b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_bria.py:399-445 | src/diffusers/models/transformers/transformer_bria_fibo.py:341-387 | src/diffusers/models/transformers/transformer_chroma.py:305-356 | src/diffusers/models/transformers/transformer_flux.py:451-497 | src/diffusers/models/transformers/transformer_longcat_image.py:304-350 | src/diffusers/models/transformers/transformer_ovis_image.py:307-353 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be232995cb28051b3999f39729b65a80d7f4f981984ff4a254779be41797573"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_bria.py:480-501 | src/diffusers/models/transformers/transformer_bria_fibo.py:274-291 | src/diffusers/models/transformers/transformer_chroma.py:239-261 | src/diffusers/models/transformers/transformer_flux.py:391-412 | src/diffusers/models/transformers/transformer_longcat_image.py:244-265 | src/diffusers/models/transformers/transformer_ovis_image.py:244-268 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5459d57de56f7e5a2f74b6416c365cb78cb92a7cc78841e4baf0b4759f6de7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_chronoedit.py:42-57 | src/diffusers/models/transformers/transformer_helios.py:66-81 | src/diffusers/models/transformers/transformer_skyreels_v2.py:47-62 | src/diffusers/models/transformers/transformer_wan.py:41-56 | src/diffusers/models/transformers/transformer_wan_animate.py:53-68 | src/diffusers/models/transformers/transformer_wan_animate_2.py:88-103 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"426146705c9802a624b362fe142739fe64f16b86b8b5a8a4fd63c3365f94805c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_chronoedit.py:230-262 | src/diffusers/models/transformers/transformer_helios.py:222-254 | src/diffusers/models/transformers/transformer_skyreels_v2.py:227-259 | src/diffusers/models/transformers/transformer_wan.py:225-257 | src/diffusers/models/transformers/transformer_wan_animate.py:699-731 | src/diffusers/models/transformers/transformer_wan_animate_2.py:380-412 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"858bc1d2b726d34abf82749349aa63b8cdc499a353b3ae64aa0eaa339dfac638"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_hunyuan_video.py:488-508 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:371-391 | src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py:53-71 | src/diffusers/models/transformers/transformer_hunyuanimage.py:432-457 | src/diffusers/models/transformers/transformer_motif_video.py:472-500 | src/diffusers/models/transformers/transformer_pan2.py:208-227 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d55ffa57606144d692950c11a45f24fc669a0467c54e191f78d024f69e441a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1385-1431 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:197-230 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1021-1069 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:836-884 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:777-825 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1046-1094 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm_refiner.py"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc6aaa230dc3fdc15f5c46123277c227a58ba3351e7159d5943b12c75dab4ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/flux2/before_denoise.py:360-373 | src/diffusers/modular_pipelines/flux2/before_denoise.py:423-436 | src/diffusers/pipelines/flux2/pipeline_flux2.py:360-372 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:271-283 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:318-330 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:275-287 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"253485461f61e7b7818665da701bd064ad3f6397f0df21f5a93c2522a735749d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/ltx2/encoders.py:73-117 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:586-648 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:640-702 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:400-462 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:662-724 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:593-655 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b41f9d4a45641779ab8a85516a573db6f3bc5020bf61d57feb968b834e41a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/modular_pipeline.py:1724-1883 | src/diffusers/modular_pipelines/modular_pipeline.py:1936-2024 | src/diffusers/pipelines/auto_pipeline.py:406-557 | src/diffusers/pipelines/auto_pipeline.py:704-866 | src/diffusers/pipelines/auto_pipeline.py:1018-1177 | src/diffusers/pipelines/auto_pipeline.py:1326-1465 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"422b2b2948ca7611cefa945f1c516f4acb5869c934ac668199d47c8c20eeeb02"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:570-870 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:599-1024 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:438-686 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:511-802 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:424-677 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:538-845 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d019a6331668387d5216f147436cfb90806701b57befcf5972d3c82c98830d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:323-333 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:348-358 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:501-511 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:352-362 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:503-513 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:459-469 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2903c62d461993535da489d377fbf60ab6ded5ff6a124558cb762d9752af66"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/pipelines/flux2/pipeline_flux2.py:607-619 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:465-477 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:544-556 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:571-620 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:853-1276 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:473-485 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"4983f051a0ddb989532c37376894b730a611819e95b1d2cbacca559e60985106"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:307-388 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:234-281 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:346-414 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:434-502 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:297-362 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:374-407 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"4434cfb7d58164a29b78a9ba66abf0a84101f90bf0b807375711fa6359c79831"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:234-268 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:299-333 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:281-315 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:277-311 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:288-322 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:300-334 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7f9130cfc19229c09f0ddb582273e2a4e044e384e45ee412d3a774afb98e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:612-686 | src/diffusers/schedulers/scheduling_deis_multistep.py:924-979 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1205-1286 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:1026-1100 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1196-1259 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:734-805 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6720f59fd91934d4f8e2804525f40365c3c655d8600f0d7eb29834a2632604"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/community/hd_painter.py:914-945 | examples/community/pipeline_stable_diffusion_boxdiff.py:87-118 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1071-1103 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:157-174 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:187-204 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"6146a41a6bffbe662d7e71bea040bfbbbae796c7d615ea9cce6326f03231571e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/community/pipeline_stg_cogvideox.py:502-537 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:448-483 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:494-529 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:541-576 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:518-553 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"855bcc6f714e56eda3ad9b751954ef08f9f2513fa55107d892edde318ba4483d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/community/scheduling_ufogen.py:508-520 | src/diffusers/schedulers/scheduling_ddpm.py:649-668 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:750-769 | src/diffusers/schedulers/scheduling_lcm.py:756-775 | src/diffusers/schedulers/scheduling_tcd.py:791-810 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/scheduling_ufogen.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"946c2a42ee72aa5ea0ffac53b518552af0fa172c3a65a49b51101f323da78fa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:1010-1033 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:733-762 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1195-1218 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1201-1224 | src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:796-822 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"3039d014ec749e99d93277777e7d9a50170ef0397ff96a49de27bbd5e1d39163"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:80-87 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:80-87 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:98-105 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:200-207 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:193-200 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d419cb70f04a71202dbc13d3a6276a30b9be3a9093a18565af374ad5efdec9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:90-97 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:90-97 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:108-115 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:210-217 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:203-210 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"878ec13fd9e9fad5d961e57ce8be1ccdc320f6a6c58f441280e0ad864d65aa50"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:213-225 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:309-340 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:317-348 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:313-344 | src/diffusers/pipelines/ltx2/duration_head.py:40-55 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"83687b5a75c04c4ddf5471d1e9824d85a56e45e5939f7756a39a4cb7d15065e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/models/transformers/hunyuan_transformer_2d.py:507-515 | src/diffusers/models/transformers/transformer_sd3.py:206-214 | src/diffusers/models/unets/unet_3d_condition.py:385-393 | src/diffusers/models/unets/unet_i2vgen_xl.py:348-356 | src/diffusers/models/unets/unet_motion_model.py:1790-1798 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/hunyuan_transformer_2d.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1452faa1d3d6263e304eaa9ae130579fb82b7d71fc3a330f06c7deb1d5543af"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_chronoedit.py:370-397 | src/diffusers/models/transformers/transformer_sana_video.py:183-214 | src/diffusers/models/transformers/transformer_skyreels_v2.py:382-412 | src/diffusers/models/transformers/transformer_wan.py:362-393 | src/diffusers/models/transformers/transformer_wan_animate.py:841-872 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15a173c39350fc456f067481819cb5c8f2ad32736637f9f064b73535ca2f62e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_chronoedit.py:654-748 | src/diffusers/models/transformers/transformer_sana_video.py:588-719 | src/diffusers/models/transformers/transformer_skyreels_v2.py:645-791 | src/diffusers/models/transformers/transformer_wan.py:638-735 | src/diffusers/models/transformers/transformer_wan_animate.py:1167-1306 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d37a5f3da248189ed1bd61d501ac3511d0f6c79984d2ced77d74cd7ea8fbf40"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_ltx2.py:164-222 | src/diffusers/models/transformers/transformer_ltx2.py:244-315 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:148-206 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:229-300 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:801-884 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51f89a2659315e8af7e9671258364f091b4d0a8040570c49c9ef6c64694e054"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/anima/encoders.py:292-323 | src/diffusers/modular_pipelines/flux/encoders.py:70-81 | src/diffusers/modular_pipelines/qwenimage/encoders.py:223-254 | src/diffusers/modular_pipelines/qwenimage21/encoders.py:164-195 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:56-70 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/encoders.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"2814a2053686b372414586cfe8aea0e058cba5e7737f9099142eb5902930034f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/flux2/before_denoise.py:33-48 | src/diffusers/pipelines/flux2/pipeline_flux2.py:160-174 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:64-78 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:99-113 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:64-78 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6894411d8eb57250633110a044b2314458eeba4cc31f75be186269001bc38f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/flux2/before_denoise.py:241-260 | src/diffusers/pipelines/flux2/pipeline_flux2.py:378-404 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:290-316 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:337-363 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:294-320 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12287ef66f2eeade79c9f4d5b62adefd75657b0aa68350282016444a0176940"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/flux2/decoders.py:71-98 | src/diffusers/pipelines/flux2/pipeline_flux2.py:485-507 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:403-427 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:463-485 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:406-428 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/decoders.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a8a274b37987d099888e2ac3ff3e12763973367133652745cb58b837d00685"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/helios/encoders.py:256-289 | src/diffusers/modular_pipelines/helios/encoders.py:346-398 | src/diffusers/modular_pipelines/krea2/decoders.py:174-201 | src/diffusers/modular_pipelines/wan_animate_2/denoise.py:38-47 | src/diffusers/modular_pipelines/wan_animate_2/encoders.py:107-115 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/encoders.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01f1fb85840d3e65a0688cc18ac4d70562d3f1d4dfec3a00323d3a9acc0c100"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:615-643 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:796-828 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:283-308 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:542-569 | src/diffusers/modular_pipelines/z_image/before_denoise.py:536-562 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"f866dd39de6b9290629ac5cc551142ffd06284f682970c7c23657c11e08bbeda"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/qwenimage/encoders.py:740-751 | src/diffusers/modular_pipelines/qwenimage/encoders.py:876-884 | src/diffusers/modular_pipelines/qwenimage/encoders.py:1006-1014 | src/diffusers/modular_pipelines/qwenimage21/encoders.py:369-376 | src/diffusers/modular_pipelines/qwenimage21/encoders.py:505-512 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"1801fbe6cd16c533045de6b2fb42b5f9f74e9366e74536c5f69b33421cd5931b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/wan/encoders.py:917-937 | src/diffusers/modular_pipelines/wan/encoders.py:1070-1092 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:392-444 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:390-453 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:410-484 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"7818719dd23a885a8d3cfd1623547b58d327ee04d8a39b6cd85a6e63f2820461"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:408-423 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:454-469 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:519-534 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:551-566 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:420-435 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a6a81ccbc5caf1d52bca424209d67f1bdab3bf72a39ca8bf910c53e18f560b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/pipelines/auto_pipeline.py:561-673 | src/diffusers/pipelines/auto_pipeline.py:870-987 | src/diffusers/pipelines/auto_pipeline.py:1181-1295 | src/diffusers/pipelines/auto_pipeline.py:1469-1554 | src/diffusers/pipelines/pipeline_utils.py:2085-2209 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/auto_pipeline.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b2b22106da0138f7e0aa7ef5a02d59c95e79eac1004eea76353e6f8f604fa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:219-239 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:321-349 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:363-391 | src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:52-62 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:112-122 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcef07df4add9b1450913112d3e88380272d54f9e627d3cff6a0db0797d59227"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/pipelines/marigold/marigold_image_processing.py:399-448 | src/diffusers/pipelines/marigold/marigold_image_processing.py:456-484 | src/diffusers/pipelines/marigold/marigold_image_processing.py:493-540 | src/diffusers/pipelines/marigold/marigold_image_processing.py:548-628 | src/diffusers/pipelines/marigold/marigold_image_processing.py:635-672 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/marigold_image_processing.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"addb87904ec5d7f661c1cc381330e90de940143700f332ad82d4afdbb73bc8ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:495-548 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:929-1045 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:782-898 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:837-941 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:551-616 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aae0ca64468b9153cd946594f910c509c2da06814cec11fb71b770dcf07646d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/diffusers/schedulers/scheduling_deis_multistep.py:273-354 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:374-497 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:288-372 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:337-439 | src/diffusers/schedulers/scheduling_sasolver.py:274-352 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab517158c26b465eabb43274d4ce4df610fab6e27c49538f545d6b1c27602f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/composable_stable_diffusion.py:368-536 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:251-732 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:543-784 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:568-780 \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":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b509ab7f14c07b5d1bde0a240fe207c1c238a262be91e4d718a9438a6785d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/dps_pipeline.py:61-157 | examples/community/iadb.py:92-149 | src/diffusers/pipelines/ddim/pipeline_ddim.py:73-182 | src/diffusers/pipelines/ddpm/pipeline_ddpm.py:63-145 \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":"examples/community/dps_pipeline.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a803b9c602fe836db292184e24f132eab2c482ff152646f0f82d283f735b41f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/ip_adapter_face_id.py:277-308 | src/diffusers/loaders/ip_adapter.py:66-250 | src/diffusers/loaders/ip_adapter.py:366-501 | src/diffusers/loaders/ip_adapter.py:915-1052 \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":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d3c6d6d922a40ac8d2180fbedc8a01426e76a0b05aa7a8187148ecda4f1010"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/matryoshka.py:1009-1036 | src/diffusers/models/unets/unet_2d_blocks.py:863-890 | src/diffusers/models/unets/unet_dreamlite.py:515-538 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2285-2312 \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":"examples/community/matryoshka.py"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"449284028845deb1603976531e6dcde370716044b1365ab5829d6052176db016"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/matryoshka.py:2551-2582 | src/diffusers/models/attention.py:65-96 | src/diffusers/models/controlnets/controlnet_hunyuan.py:142-171 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:853-884 \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":"examples/community/matryoshka.py"},"region":{"startLine":2551}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef96f0c2806eb85a5b083dd014e9759b559a1dcc40edee6230fba7d1dad12cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/pipeline_hunyuandit_differential_img2img.py:300-342 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:233-273 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:209-246 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:214-255 \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":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab2fd65c9f7223ea1d85ce5326402a7803c6017089dccb3af60ef4ff77063b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:805-826 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1142-1163 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:624-645 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:793-814 \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":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"649f98a6c65a5c5b1abb1b7f99d79ec2be6fa4514d0feed75c42a2d868f63c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:92-120 | examples/community/pipeline_stable_diffusion_xl_instantid.py:92-120 | src/diffusers/models/transformers/consisid_transformer_3d.py:54-78 | src/diffusers/models/transformers/consisid_transformer_3d.py:203-228 \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":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f465f30a92e217143996682ec241a0ff99a13a72ab52cfc3e2e732a7d1a9291"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/pipeline_stg_cogvideox.py:382-403 | src/diffusers/pipelines/allegro/pipeline_allegro.py:580-606 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:328-349 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:338-359 \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":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd474ca91124bdf4cc83db93a8376fc59ab6822094ae8b7674ebe27104553dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/scheduling_ufogen.py:266-339 | src/diffusers/schedulers/scheduling_consistency_models.py:186-251 | src/diffusers/schedulers/scheduling_ddpm.py:280-346 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:295-361 \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":"examples/community/scheduling_ufogen.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"4166ec6da5ac3534c63466c66971468a1df81b525b5c61047540a62fab44bb13"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/controlnet/train_controlnet.py:70-77 | examples/research_projects/controlnet/train_controlnet_webdataset.py:310-317 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:70-77 | src/diffusers/utils/pil_utils.py:52-65 \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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c63c533e091cecda29b204d02f1539c42549dc3072ddeee1fba1a6a9fc53918"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/configuration_utils.py:178-219 | src/diffusers/models/modeling_utils.py:694-888 | src/diffusers/modular_pipelines/mellon_node_utils.py:842-867 | src/diffusers/pipelines/pipeline_utils.py:264-395 \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":"src/diffusers/configuration_utils.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b665040e69685d18556162f1f6043d3eefa4ea7aa882fd4b735eb95e4da0d927"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/guiders/adaptive_projected_guidance.py:88-96 | src/diffusers/guiders/adaptive_projected_guidance.py:101-109 | src/diffusers/guiders/adaptive_projected_guidance_mix.py:92-100 | src/diffusers/guiders/adaptive_projected_guidance_mix.py:105-113 \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":"src/diffusers/guiders/adaptive_projected_guidance.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0baddc889ff95f96bafc635a74d6690db16c7840b73a253aff30d5a69b7b8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/attention.py:977-1086 | src/diffusers/models/transformers/sana_transformer.py:258-291 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:268-381 | src/diffusers/models/transformers/transformer_allegro.py:125-171 \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":"src/diffusers/models/attention.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"5565f8d958d58029ad174a1cf48ca0de62d4a0b338e5bdd893e08331ce0abba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/attention_dispatch.py:1419-1505 | src/diffusers/models/attention_dispatch.py:1765-1865 | src/diffusers/models/attention_dispatch.py:3141-3209 | src/diffusers/models/attention_dispatch.py:3395-3470 \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":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"536d68acb55a8c0ed736485ec03a1af86123d67b12edbd93f3766f7cf1afbd45"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/attention_processor.py:1294-1343 | src/diffusers/models/attention_processor.py:1367-1419 | src/diffusers/models/attention_processor.py:2427-2473 | src/diffusers/models/attention_processor.py:4096-4164 \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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"69aa05bb4d5b3decdda88727bbe9d96a730ce37d219b9996961dacdf3bb8c14e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl.py:99-140 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:103-152 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:557-590 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:115-167 \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":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"692a6504d4c67837ebf536b3d2bd8fddbac0a63c4a0d3a750014376759d319fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1128-1151 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1182-1207 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1251-1322 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1325-1405 \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":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cdf61ad3f3588ca23fdd27fe3b40e21cb215b0c69841766269ecbcb169c16d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:941-999 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1109-1184 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1102-1190 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:701-761 \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":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"865dc3a62a7770e374dae2e9489e9958d32218f6ddbd7142db084d08aaae4924"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:984-1012 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:1015-1048 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1450-1477 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1468-1495 \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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95ae71165d3eaed3c7a882446b39d2d8995f71016eab3c36a50249d71f57f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:579-597 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:700-723 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:528-546 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:659-682 \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":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"01457f671ff37d7d00601de2ddc92b184a13e3e12358cdaec4795612e790d1bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:701-761 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:571-626 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:561-605 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:535-572 \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":"src/diffusers/models/autoencoders/autoencoder_kl_magvit.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"f365a817504c84b3c57f5d1187e66f1c968665f5e0d845754861df1dcca43274"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/controlnets/controlnet_hunyuan.py:230-312 | src/diffusers/models/controlnets/controlnet_qwenimage.py:143-231 | src/diffusers/models/controlnets/controlnet_sana.py:133-241 | src/diffusers/models/controlnets/controlnet_sd3.py:284-374 \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":"src/diffusers/models/controlnets/controlnet_hunyuan.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd6e7d87f6eec39e1145c83b64e06b1035f08c94402ebedc86903233b51154a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/controlnets/controlnet_z_image.py:242-286 | src/diffusers/models/controlnets/controlnet_z_image.py:395-429 | src/diffusers/models/transformers/transformer_bria_fibo2.py:325-368 | src/diffusers/models/transformers/transformer_z_image.py:238-282 \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":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b45f28b70ba324b4d72ddef24af754aa8e28827936a5e36d5e0ee500001ffc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/downsampling.py:187-243 | src/diffusers/models/downsampling.py:360-399 | src/diffusers/models/upsampling.py:219-304 | src/diffusers/models/upsampling.py:466-504 \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":"src/diffusers/models/downsampling.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"804cb971136613688ba11c307c57e3a010e961a2932a3eca4563fc9b6783baec"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/transformers/dit_transformer_2d.py:156-226 | src/diffusers/models/transformers/transformer_2d.py:526-551 | src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py:738-829 | src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py:1048-1196 \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":"src/diffusers/models/transformers/dit_transformer_2d.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"51421e9144cfb1b201bff988d9e040110eb92ecf0cf25842f78b27797c999f57"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/transformers/prior_transformer.py:192-318 | src/diffusers/models/unets/unet_1d.py:211-265 | src/diffusers/models/unets/unet_2d.py:256-353 | src/diffusers/pipelines/deprecated/spectrogram_diffusion/pipeline_spectrogram_diffusion.py:109-121 \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":"src/diffusers/models/transformers/prior_transformer.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd4acfd0213f97da3ae664da5d7d4b763a7eac636b1cefbd4dd7d0289fb48f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_bria.py:451-470 | src/diffusers/models/transformers/transformer_bria_fibo.py:244-265 | src/diffusers/models/transformers/transformer_flux.py:361-381 | src/diffusers/models/transformers/transformer_longcat_image.py:217-234 \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":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"6412d4750d428af28e7905f575925b50f4b0ef3b53b9ed4ada08da37be747464"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_chronoedit.py:292-300 | src/diffusers/models/transformers/transformer_skyreels_v2.py:288-296 | src/diffusers/models/transformers/transformer_wan.py:286-294 | src/diffusers/models/transformers/transformer_wan_animate.py:761-769 \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":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"d165664dcd5ec5bbb3d443a61e0def4fcbedfa1d2ea1b85dd1cea4c1e5c0a0e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_chronoedit.py:303-311 | src/diffusers/models/transformers/transformer_skyreels_v2.py:299-307 | src/diffusers/models/transformers/transformer_wan.py:297-305 | src/diffusers/models/transformers/transformer_wan_animate.py:772-780 \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":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd8a77f2577aa003242d9cdd4f438cf131bc7d0a51966c8104c737e12904445"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_hunyuan_video.py:552-584 | src/diffusers/models/transformers/transformer_hunyuan_video.py:707-743 | src/diffusers/models/transformers/transformer_hunyuanimage.py:502-534 | src/diffusers/models/transformers/transformer_motif_video.py:577-621 \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":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"963a0affcd3a52f91ffa467aed43b2e39430993673a9b419a7f8c3fb2f0f447c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_hunyuan_video.py:595-620 | src/diffusers/models/transformers/transformer_hunyuan_video.py:754-779 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:439-464 | src/diffusers/models/transformers/transformer_hunyuanimage.py:546-571 \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":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7000b267363d73abf65afc2bf1a6f172d2913043b0416e68aedf5e58888262d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:238-256 | src/diffusers/models/transformers/transformer_qwenimage.py:302-321 | src/diffusers/models/transformers/transformer_qwenimage.py:428-447 | src/diffusers/models/transformers/transformer_qwenimage.py:451-470 \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":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5416858b8826d71c4760d57b407d77f586910e56fe0b46478b3922ccde37d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/models/unets/unet_2d_blocks.py:1570-1633 | src/diffusers/models/unets/unet_2d_blocks.py:1682-1724 | src/diffusers/models/unets/unet_2d_blocks.py:2765-2839 | src/diffusers/models/unets/unet_2d_blocks.py:2899-2951 \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":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"5814bc14cb1c2a8d3df0d3e16281ac162b0ab3f785428bb63a7faa9820f6652a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/anima/before_denoise.py:495-502 | src/diffusers/modular_pipelines/flux/before_denoise.py:278-285 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:105-112 | src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:282-287 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92dfd3a66d508b7deae1ab11be85c78d81f34c43c6bdc3a361e5ec271eaff49"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/cosmos/encoders.py:168-211 | src/diffusers/modular_pipelines/cosmos/encoders.py:281-332 | src/diffusers/modular_pipelines/cosmos/encoders.py:422-467 | src/diffusers/modular_pipelines/cosmos/encoders.py:586-634 \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":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d9e415882b3e9be33882f002c676e4170e654aa4c25d269196fd85e8f1c390"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/ernie_image/denoise.py:220-226 | src/diffusers/modular_pipelines/ideogram4/denoise.py:292-300 | src/diffusers/modular_pipelines/krea2/denoise.py:275-283 | src/diffusers/modular_pipelines/pan2/denoise.py:225-233 \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":"src/diffusers/modular_pipelines/ernie_image/denoise.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"796da9668fe667c0f82234ef6a9d4d310bb39bb8927a0fbc8bf9a5ca8f5a228e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/flux2/before_denoise.py:490-517 | src/diffusers/pipelines/flux2/pipeline_flux2.py:411-454 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:324-367 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:328-371 \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":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e4f5e934570815a4fe97adc54602457922c8bc9a11be5e2894bc4b88ce4ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/flux2/before_denoise.py:530-562 | src/diffusers/pipelines/flux2/pipeline_flux2.py:662-687 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:522-547 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:530-555 \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":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"df137219330602daa18e99d1184808b9df28327488fb404d67874515f4b169e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/flux2/denoise.py:385-397 | src/diffusers/modular_pipelines/flux3/denoise.py:239-251 | src/diffusers/modular_pipelines/qwenimage/denoise.py:382-395 | src/diffusers/modular_pipelines/qwenimage21/denoise.py:342-355 \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":"src/diffusers/modular_pipelines/flux2/denoise.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"06892bfff6e22a649231a42f841b1db58e5936b6b6f0319f46046379d8c58230"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/helios/before_denoise.py:231-254 | src/diffusers/modular_pipelines/qwenimage/inputs.py:306-329 | src/diffusers/modular_pipelines/qwenimage/inputs.py:521-544 | src/diffusers/modular_pipelines/qwenimage/inputs.py:753-776 \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":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff6ff254c9ac28c3eb76f955e6737eaaffdff7f2e409eab3aeda741a7f52724"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/helios/before_denoise.py:258-274 | src/diffusers/modular_pipelines/qwenimage/inputs.py:333-349 | src/diffusers/modular_pipelines/qwenimage/inputs.py:548-565 | src/diffusers/modular_pipelines/qwenimage/inputs.py:780-796 \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":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8c1a780c2767ffee9184b8a96483f3a7dcb2b3f239aea15fa86aa7a2927759"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py:106-138 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:269-294 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:296-332 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:336-372 \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":"src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c3e54b1bcf31625019b212b12e79a76c421b9493c4feac51be4b94d9ef1799"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/ltx/denoise.py:98-115 | src/diffusers/modular_pipelines/ltx/denoise.py:332-348 | src/diffusers/modular_pipelines/wan/denoise.py:165-183 | src/diffusers/modular_pipelines/wan/denoise.py:298-317 \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":"src/diffusers/modular_pipelines/ltx/denoise.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c34768ef4571739b001b2481cc2b236d0fda2fd0da71a6baec48dbf6f98398a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:45-73 | src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:37-65 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:40-68 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:46-74 \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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6d0060838bca05fdc5627313fae576f6a3d5aa78a5f0a71e30a1387fa81ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:104-109 | src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:86-91 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:102-107 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:108-113 \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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"979c2d9432fa33709c900db987d543e98c45449a391ae5dd2e37b8388233e4a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:282-373 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:243-334 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:482-556 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:288-379 \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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"2212f8b12a48da98304376c1773651c082defe6f354f3df3bc8b7602ad8ad7da"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/minimax_h3/denoise.py:268-274 | src/diffusers/modular_pipelines/minimax_h3_image/denoise.py:197-203 | src/diffusers/modular_pipelines/p_h3_image/denoise.py:264-270 | src/diffusers/modular_pipelines/pika_h3_flex/denoise.py:283-289 \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":"src/diffusers/modular_pipelines/minimax_h3/denoise.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8c9cebd2603ae9d08de0c31fadbcd57422d03c5defcd033943f42c9ff25d56"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/modular_pipelines/minimax_h3/encoders.py:39-99 | src/diffusers/modular_pipelines/minimax_h3_image/encoders.py:40-100 | src/diffusers/modular_pipelines/p_h3_image/encoders.py:77-111 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:40-100 \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":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb53da13ab2102693b83cca31112a692942a804bb17971af2b089368009ba6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/pipelines/chroma/pipeline_chroma.py:216-262 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:230-274 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:247-291 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:257-297 \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":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"19279d2e69f9a46e12431246306ee58a7ad7be10e9d5cc50a92da81877f27803"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:49-62 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:53-66 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:50-63 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:53-66 \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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d7cee5a4de4b24b17df9b203d3ecad3168745a3b2e17438f8b6db174f3ace0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:592-625 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:642-675 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:633-666 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:678-711 \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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1988785f4200cedca356dff511573e1d1baadac366fc4eeadd652ed545ec520"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/pipelines/flux2/pipeline_flux2.py:580-604 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:438-461 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:517-540 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:446-469 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac730564a5fce9e98e08917f01d73cff8c70d897171e68bc36cc2497be6f70eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:162-191 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:380-409 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:621-650 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py:97-126 \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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"45418ae05cd0a13e7fe5eaa60c8d14f91f903f03ae359cb78284fca312af8a9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:320-380 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:192-257 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:317-376 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:192-251 \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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"151bcabf27c26779ae04df510dcf1f112005bca1e139eaa42904cec790f66c51"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:388-416 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:265-293 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:384-412 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:259-287 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"e246920eec421bec68327792ed61e166e890a5d73413d3b986331980ecfe8ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:426-509 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:304-386 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:462-543 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:297-378 \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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdeb33b500026ee53a8796fe8f3245219c83b5273bd4e5b63f5828933593c325"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1250-1268 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1149-1167 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:832-850 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1361-1379 \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":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c4fa91245b7fae4765978691e34cdd45399d25ca4c52995e904e7a2b16621b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/pipelines/marigold/marigold_image_processing.py:95-105 | src/diffusers/pipelines/marigold/marigold_image_processing.py:109-126 | src/diffusers/pipelines/marigold/marigold_image_processing.py:130-142 | src/diffusers/pipelines/marigold/marigold_image_processing.py:146-159 \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":"src/diffusers/pipelines/marigold/marigold_image_processing.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef25c6d177a84c6e83353a04aafb0dc77706a9c5aa3f68808bc091fdb57c035"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/pipelines/pag/pipeline_pag_sana.py:170-186 | src/diffusers/pipelines/sana/pipeline_sana.py:209-220 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:160-171 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:167-178 \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":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb2d964e21250b99a4e541d2634b5b6868ad17bc6c47f2f6a9ee30611f9c228"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/diffusers/utils/export_utils.py:53-101 | src/diffusers/utils/export_utils.py:105-121 | src/diffusers/utils/testing_utils.py:774-821 | src/diffusers/utils/testing_utils.py:825-841 \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":"src/diffusers/utils/export_utils.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"851e2b3193132ec79eac3fb77b85185ee05ca8a61cef5daa6176c66b0a338962"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (219 corresponding lines): src/diffusers/loaders/lora_conversion_utils.py:1072-1369 | src/diffusers/loaders/lora_conversion_utils.py:1373-1591 \u2014 These two members are one piece of code written twice and then edited apart: 219 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf714e7ca633cfa39d4efcf22628f8fa2550a513aae764c7bc16a1fd91740c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (151 corresponding lines): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1086-1236 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1115-1346 \u2014 These two members are one piece of code written twice and then edited apart: 151 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dca867a0474270ca1e0cf9be28ee6360434841575fcd8352ba8d68feb57d766"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 114\u002B corresponding lines): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:211-326 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:225-338 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:198-311 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 114 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4f0fac1cd064a43e339aa7627048c3d21b80510bb31376a17cb998b7939ebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (215 corresponding lines): src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:327-541 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:400-659 \u2014 These two members are one piece of code written twice and then edited apart: 215 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de7d80e81f4315485cf1985a693a4c70b844414f230e3f5bf2588bc447e555c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 241\u002B corresponding lines): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:367-619 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:379-625 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:352-592 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 241 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"2606b63af5b7a511e453a91f0d61b843f92636dc8a2ccaaa17fd70d026632bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (179 corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:71-249 | src/diffusers/models/unets/unet_2d_blocks.py:356-549 \u2014 These two members are one piece of code written twice and then edited apart: 179 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"110df9eedb7b9ec42d364e5d429d33450a23ec7a7d372a477c15070b66de9741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): src/diffusers/models/autoencoders/autoencoder_vidtok.py:659-729 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:869-935 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"d554e4827c6bf0e84d17f12e31b7a3401ccae51a6ed4f042a21db4c39753fe55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (81 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:870-950 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:953-1039 \u2014 These two members are one piece of code written twice and then edited apart: 81 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"909cffae4c2906670b931ea325009fc23200ec60d73d08cee0a41c123e113261"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): scripts/convert_flux2_to_diffusers.py:139-225 | src/diffusers/loaders/single_file_utils.py:1513-1611 \u2014 These two members are one piece of code written twice and then edited apart: 87 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/convert_flux2_to_diffusers.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cae5c5c4ec4c65bcdbdf6363070b7a0bf4fc52befc27a837d401a7be087b0c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:121-156 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:201-241 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf66df03c4b704fb7af3176767db7d18074a77dbc1424cedcef63d637b4c82dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (73 corresponding lines): src/diffusers/models/transformers/transformer_ltx2.py:994-1066 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:579-651 \u2014 These two members are one piece of code written twice and then edited apart: 73 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c0eb2c88c77a1b098228e587e4c43e8b27fa3f8d2bf0e05f08036ed6904e0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:175-217 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:282-326 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2265df07feeec51482d5ce69109f188cd77049e67c1218840400bb11f56ed1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): src/diffusers/schedulers/scheduling_dpmsolver_sde.py:416-489 | src/diffusers/schedulers/scheduling_heun_discrete.py:294-377 \u2014 These two members are one piece of code written twice and then edited apart: 74 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_sde.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a260a983428d456bcb5fa2266c8ab9dfbe307b1fadb04b99a6674548848eafa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (146 corresponding lines): src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:259-423 | src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py:210-355 \u2014 These two members are one piece of code written twice and then edited apart: 146 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"461fed4e14c5e84e5c032daf9e9b07beac7705e37b687b88a99209b12eefcdf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (142 corresponding lines): src/diffusers/pipelines/shap_e/pipeline_shap_e.py:204-345 | src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py:186-332 \u2014 These two members are one piece of code written twice and then edited apart: 142 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/shap_e/pipeline_shap_e.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"840a2771e291d267f48fe0e2bd1a8f4a0637f19a99d4ef00f51320477a4a9eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (81 corresponding lines): src/diffusers/modular_pipelines/ltx2/encoders.py:1243-1323 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1395-1488 \u2014 These two members are one piece of code written twice and then edited apart: 81 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"749cafca0a0ab654f67a7affa2db742ead50060793228a1001be0ce4755385e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:515-566 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:794-864 \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":"src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"e822b180766f59f5b77316324ac1350a3682e0555689be0c5c6263fc8bb197e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): src/diffusers/schedulers/scheduling_helios.py:204-256 | src/diffusers/schedulers/scheduling_helios_dmd.py:183-233 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57eef33a4516f47743fd82367fdb36853a377a12c7cf5f78e84fdeaf2c93a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:275-333 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:271-342 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c9427ddc453f32ef482944083aa8e08e7c8d94692e78139c9cfcf4b2616e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:424-491 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:397-460 \u2014 These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6c1c53622f401560f989e5c16d1721ad95795bff3b18ad34bfa25d071c4f82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): src/diffusers/models/attention_dispatch.py:1519-1587 | src/diffusers/models/attention_dispatch.py:1879-1945 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14ac7b333f47c936708acbdaa461c1601384e1bdf7456138abc64405abf2efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:450-502 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:461-496 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:457-490 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e89c6f8c2398cccbc5c72dfe0079f93e8ade140962016c2bb0049f010a2402f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:923-988 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:889-971 \u2014 These two members are one piece of code written twice and then edited apart: 66 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf602419cb13b0294c7dd829fe4095e9881523f61a69d751dfdb42739f0e775"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (75 corresponding lines): src/diffusers/configuration_utils.py:331-482 | src/diffusers/modular_pipelines/mellon_node_utils.py:875-949 \u2014 These two members are one piece of code written twice and then edited apart: 75 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/configuration_utils.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fc5d2c42fb409d00bd2f7259bd44fff1bc276da13bb2c2eccd95704d2e9888"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): src/diffusers/models/controlnets/controlnet.py:453-518 | src/diffusers/models/controlnets/controlnet_union.py:397-457 \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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a8a665df7508ab281de1fb82b56e5948423e0f416d124a6c321fd45b3a75dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-320 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-386 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"20848471973f43352d89ad32e46fa404615d8bb8562d139c9bf5e541efbf0768"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (118 corresponding lines): src/diffusers/schedulers/scheduling_ddim.py:395-514 | src/diffusers/schedulers/scheduling_ddim_parallel.py:399-516 \u2014 These two members are one piece of code written twice and then edited apart: 118 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a516636a0c9a57fffacd23a3e8c80819485f8b00b3de51e73efaa6b6a10abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): src/diffusers/pipelines/visualcloze/pipeline_visualcloze_combined.py:186-250 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:419-471 \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":"src/diffusers/pipelines/visualcloze/pipeline_visualcloze_combined.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13830a7b80abc550f33ac1ebc6c1185f1721e969ff1fe477cae7bdb59557dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (95 corresponding lines): src/diffusers/models/unets/unet_motion_model.py:372-475 | src/diffusers/models/unets/unet_motion_model.py:557-651 \u2014 These two members are one piece of code written twice and then edited apart: 95 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6c3718ebb419e0472e09f36d0ae9e48c02251e97f6e63e3b593b8fd34ea932"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 138\u002B corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:405-563 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:256-401 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:342-479 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 138 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"becfb5c9148d02586dfd6322266e60a2ab39bb8f2300fe52c67bbe169cb40ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (118 corresponding lines): src/diffusers/models/transformers/transformer_bria.py:597-714 | src/diffusers/models/transformers/transformer_bria_fibo.py:524-644 \u2014 These two members are one piece of code written twice and then edited apart: 118 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26332d8d8fc19257a43d44c9884c5ef56bc5a02917a65a6026b5c65cd04bff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-527 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-575 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d5d0e579fc6537828adf4ea769177d028f8ceebeeb2697ded5e4111537c239"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:991-1032 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:979-1022 \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":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b33654236d83b407a81811d72ca094b94579f1009ba604284a1926536943699"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1235-1290 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1415-1470 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"344a2c336057310d7724f0ad4bc036ce828a0239c7b170ee13f1597992df43a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:416-443 | src/diffusers/pipelines/consisid/pipeline_consisid.py:99-139 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"462ea75d6cf668a079d0e186b929e5d283f3dde18661905c09934deda843b736"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 50\u002B corresponding lines): src/diffusers/models/attention_processor.py:1227-1276 | src/diffusers/models/attention_processor.py:3816-3871 | src/diffusers/models/attention_processor.py:3927-3985 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 50 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4cc872bcacf9541feb050f6c4ecd86cde4930c6cffeb3ca5731c3176f4cdc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): src/diffusers/models/transformers/transformer_minimax_h3.py:621-708 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:558-635 \u2014 These two members are one piece of code written twice and then edited apart: 78 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"9827303eab6b1f4ead8561e6a38d2cbeb437bbb1f5a04fe29f36b6267005adc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): src/diffusers/models/transformers/transformer_ltx2.py:870-929 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:455-514 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9b45fe81bd9610af22372ab09abd1648a3fb0c20f7738d5e4830f45c0f12ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): src/diffusers/models/transformers/dit_transformer_2d.py:91-146 | src/diffusers/models/transformers/pixart_transformer_2d.py:109-185 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/dit_transformer_2d.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e125d3d14abf8be7a74728130fbb913ab23a3d7e87ff43644e9a8c264ba6b9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 52\u002B corresponding lines): src/diffusers/modular_pipelines/modular_pipeline.py:908-969 | src/diffusers/modular_pipelines/modular_pipeline.py:1311-1377 | src/diffusers/modular_pipelines/modular_pipeline.py:1623-1674 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 52 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"528b0b6ff6bf3047c04a1725095604f1ed2f6dd7b0e89714c3dc622478eb5d6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 55\u002B corresponding lines): examples/community/pipeline_stg_hunyuan_video.py:270-324 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:236-290 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:209-263 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:313-367 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 55 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"037eb41744662f0fe9ed84ce2df3f27ce39f909526af89b9a29e2cd9be2017cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1482-1515 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1500-1533 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b6863fb01c5a0e1c53e9fd76064d03fe37b27c16c0918515814bcdb11f401d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): src/diffusers/image_processor.py:384-428 | src/diffusers/pipelines/wan/image_processor.py:85-132 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"3885faf04bdd8e21ab93ef334d33bfd060f1960baf56c4268be780e6960eb1ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): examples/community/matryoshka.py:2774-2823 | src/diffusers/models/unets/unet_2d_condition.py:893-940 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2774}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9b2a0b6945a64b4e9668c84101eb409ff877baf54811fad30afe9dc8f2705e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:411-478 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:602-667 \u2014 These two members are one piece of code written twice and then edited apart: 66 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0dd9be81f8f2885317795ff4701623a2c3b052ea892e0e6199d81375f7f2ca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py:105-144 | src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py:201-243 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"589752faaddb2686304f2e1a5f8b6c28a55004e458ebb2821e77110bb7ad3b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): src/diffusers/models/autoencoders/autoencoder_tiny.py:165-210 | src/diffusers/models/autoencoders/autoencoder_tiny.py:213-257 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_tiny.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"663cf5e727444aff1a2afd6f109cbf41d38b5f55e2ce2cbf15b8db753dfd2f57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py:50-85 | src/diffusers/pipelines/stable_diffusion/safety_checker.py:55-103 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08dc1c1e4a22d4f0ac6b49bcd98ca8db32ba6428596b86ddaec4bf697955660"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 38\u002B corresponding lines): src/diffusers/models/attention_processor.py:5341-5378 | src/diffusers/models/attention_processor.py:5393-5433 | src/diffusers/models/attention_processor.py:5448-5490 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":5341}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee1ff032ae16fbf66f4a3ba31c78d38da24eedc80e3fb0be6c2f7396f5a68c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): src/diffusers/models/controlnets/controlnet_xs.py:1272-1333 | src/diffusers/models/controlnets/controlnet_xs.py:1669-1724 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e1a96d10db4c6388a86d0c21aa14e6494d32c7384ef840ec31a3744ca581ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:434-495 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:541-601 \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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51778c6564af4cc9d0bed54f24885f05ba9b10fbf1c409a0686ed99cc049a4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/diffusers/modular_pipelines/minimax_h3_image/encoders.py:227-268 | src/diffusers/modular_pipelines/p_h3_image/encoders.py:229-269 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3_image/encoders.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"159b0d72f77776c1c648010233935b6a8e7fe5c613424d04d7083bfe6b7a8cf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:456-482 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:495-521 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96d1d39bb89873e5664eb7bbc58224c2432a774c160574141bf92c5efdd8c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 63\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:559-627 | src/diffusers/models/autoencoders/vae.py:218-280 | src/diffusers/models/autoencoders/vae.py:432-500 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 63 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"629b883cac95cc1623acfef541603ee4f0556b6b9327771a6a13ddc1bbcac988"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (99 corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:636-734 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2057-2155 \u2014 These two members are one piece of code written twice and then edited apart: 99 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"82efe484a0af12d89de0097e6ab3dfbb323b78f8f247488a2c032eea89f004ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:538-585 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:484-552 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1cb91705bff772a1db7008543073f033cda5734b23d99a61fe1f38766a649e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 50\u002B corresponding lines): src/diffusers/loaders/lora_pipeline.py:3339-3388 | src/diffusers/loaders/lora_pipeline.py:4103-4152 | src/diffusers/loaders/lora_pipeline.py:4367-4416 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 50 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":3339}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ccf6498e923e174daf7864bd2116366cf567e0b19a87188d392ed3c96fd34da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): examples/research_projects/sana/train_sana_sprint_diffusers.py:126-172 | src/diffusers/models/attention_processor.py:2910-2976 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/sana/train_sana_sprint_diffusers.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d96c40f9c3c352552caa5ddee2ff11706d21822cbc2832dd8ae4ff7f54424c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:277-343 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:495-551 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae0d3a2c116b504f1bbf65ca6433227dca83faebc704a6fef5686f8cec3289c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (85 corresponding lines): src/diffusers/models/transformers/transformer_ltx.py:503-587 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1446-1544 \u2014 These two members are one piece of code written twice and then edited apart: 85 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c226aa098690501fb393c0d71da768d64778a3109dd302c7e20118e57984ea86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (91 corresponding lines): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:194-284 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:150-240 \u2014 These two members are one piece of code written twice and then edited apart: 91 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b01b0124b36f4aa92530b7f66391f533a58745ba3ecbd74035c4a6681aca26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/models/condition_embedders/condition_embedder_ltx2.py:21-77 | src/diffusers/pipelines/sana_wm/refiner.py:458-483 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/condition_embedders/condition_embedder_ltx2.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f0b70ec31fd7b26ab326e215924562ad2d259ffc0d1647a83701d43e60dcd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:148-172 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:251-279 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:243-271 \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":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad2f10122ae14781977e5b8df309acb1e3aad65cf2a954cb0f3b6f926c617b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/models/transformers/transformer_cogview4.py:547-582 | src/diffusers/models/transformers/transformer_glm_image.py:441-468 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f74bf1bc49a591d519f5dfd3a8af7a13177271958ee4d02689e02e28df2c32c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (114 corresponding lines): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:456-569 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:697-817 \u2014 These two members are one piece of code written twice and then edited apart: 114 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5b3be8f28e93437e67054a6867df06b5b05152178c1d94a75edf3cb534cf01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src/diffusers/models/attention_dispatch.py:1018-1058 | src/diffusers/models/attention_dispatch.py:1129-1164 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db7edeafd221398690d509c8db2e3c06ba384e0052c1cd0b51f3639f557f651"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/modular_pipelines/ltx2/encoders.py:809-836 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1592-1632 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"63492753d3c6ab484d8efd78ee4033f418302109a5b60aa45fbcb0dc67afb4fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 40\u002B corresponding lines): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:612-651 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:480-519 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:496-535 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:417-456 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:441-480 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:668-722 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"58fb4285410702f97c595d0f0bbca555f5cb27801c5d0fb324f60469ec195ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 55\u002B corresponding lines): src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:917-979 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1079-1133 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1231-1293 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 55 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e585534eaaf8bf78f695b68805259c8de9ddd443288363f609043e6b8c7298"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:382-425 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:405-445 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06a37f4c191bb4b4ad56284281c1b528b57a8cef87a947aea96fc95c8b4d343"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): src/diffusers/models/unets/unet_3d_blocks.py:423-499 | src/diffusers/models/unets/unet_3d_blocks.py:655-724 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b24dd35b061d2ff6b9794b875829ec2585a94adc418a62def0eecc19cc9f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:790-829 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:792-831 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9887973201e4cd519bb4f883ad65527db7c64ae686fa636825695c9b74cf53b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 87\u002B corresponding lines): src/diffusers/schedulers/scheduling_heun_discrete.py:565-659 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:593-691 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:577-663 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 87 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_heun_discrete.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab230c7ae6364f83708a725acae8ba04652536f100a65912f8d89acf87df1c13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:246-294 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:352-391 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa7e82e948a2f1b99cf001e585b9d982fc467d66faef41a7e87367fea61483d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:524-570 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:565-611 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e5233f2d715baf3321bbb6fce709ea6047f35f1ea29485bf05e2886f5698bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:735-787 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:741-793 \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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9739de0407efb5c3285b74afcd8710a20a0388ab073881818a4b363c99a772d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:481-518 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:670-699 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"2753b0d5c030ced0cac8fa010e452e2d1b78a41db5d01a3eb2b02c4fc81907ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 47\u002B corresponding lines): src/diffusers/modular_pipelines/echo/decoders.py:92-144 | src/diffusers/modular_pipelines/ltx/decoders.py:147-193 | src/diffusers/modular_pipelines/ltx2/decoders.py:263-324 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 47 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/echo/decoders.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc4ecfb1f63a735141778478c1855c4da2f051fb76d292e922ef316b63a5fa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/diffusers/models/transformers/transformer_bria.py:542-580 | src/diffusers/models/transformers/transformer_bria_fibo.py:463-508 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4422bc6990e9b9e0a4ef99624fac7f32fcead0864be1be59e7ded4117255ebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_same.py:184-211 | src/diffusers/models/transformers/transformer_stable_audio3.py:159-183 | src/diffusers/models/transformers/transformer_stable_audio3.py:203-228 \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":"src/diffusers/models/autoencoders/autoencoder_same.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95cff7cfd34dcf13ff9d442c205b28e105565ae8f9a8d16941dc37dc48edd87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:437-480 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:479-522 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"630035d64eff22a9f574f93e5930cfb6723f3ad4193451db57d2b8c186c1d438"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:158-197 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:129-168 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:257-296 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bdffba00e9502efa0769cce48123a987c659410a1e124f559db01d9eb71348"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (94 corresponding lines): src/diffusers/schedulers/scheduling_edm_euler.py:440-533 | src/diffusers/schedulers/scheduling_euler_discrete.py:697-800 \u2014 These two members are one piece of code written twice and then edited apart: 94 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_edm_euler.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"655aeaf7a03507b0c6f08aa75e4cf99df4a4fd307e8be8d697d183d8a41314c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:223-243 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:264-284 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b45b6582604f0e5154695fd82b6df0e46bda61a45ed51454e39aac0aaa12ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): src/diffusers/modular_pipelines/qwenimage/denoise.py:217-261 | src/diffusers/modular_pipelines/qwenimage/denoise.py:304-351 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/denoise.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"863bb658f83a1a71758819572e26774fa2fa32eefd0c6be3f516dec5f84036ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/pipeline_stg_mochi.py:81-119 | src/diffusers/models/transformers/transformer_mochi.py:210-243 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"725e1da107cbe38f6eddfbdb55aefd633a14637b914da8283e6bed1e7146067b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:405-444 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:553-604 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:541-592 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a96ae1e605dee1f017fddacdc9c0c0b224e7051ef62702f83f47e5c93352f4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/diffusers/modular_pipelines/krea2/encoders.py:137-174 | src/diffusers/pipelines/krea2/pipeline_krea2.py:220-261 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/krea2/encoders.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f8bd869f64b290574fff54bc212b556761982ada1b067778251bc4262e0503"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/modular_pipelines/ltx/denoise.py:121-155 | src/diffusers/modular_pipelines/ltx/denoise.py:354-388 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx/denoise.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"108196673ebe1ef55e159213fe5a1c004bd9d8e8b8f45493259d48aadcafcd85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/modular_pipelines/minimax_h3/decoders.py:177-197 | src/diffusers/modular_pipelines/pika_h3_flex/decoders.py:179-199 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/decoders.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff9f24fc9526a2b834d7b0fb4d0af5fb09dc18f2340076c63ad77ff802ace7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 46\u002B corresponding lines): src/diffusers/guiders/auto_guidance.py:79-124 | src/diffusers/guiders/skip_layer_guidance.py:107-155 | src/diffusers/guiders/smoothed_energy_guidance.py:99-145 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 46 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/auto_guidance.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2df6b2086857454c94fc7864e7308f5fa3cccdf177a42fd9e86adcefb4a1a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:774-852 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2196-2274 \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":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca23cddade9fabea4154654be77dcabf23dbfe81fcc70cc80b1a5d0444f4bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 52\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:582-633 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:832-890 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:820-881 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 52 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6d1d220a9e953019d9d5964530888d5354cbf02230789e023bb0b0a424f305"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/diffusers/pipelines/lumina/pipeline_lumina.py:213-258 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:197-234 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"115ab6d6d17c8150dcca71501298f88287005bb49639516da2cf0ed8a51de259"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:348-383 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:369-407 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2465ad4f906b1f795b51c8f58accc5a696c94393b8315c904725d9f8d282f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/models/embeddings.py:1879-1917 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:243-268 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":1879}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aeea9c32ac9c5003bac78a63d82b4b65bf1f8820aafdff0c8c2b77112204c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:494-550 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:649-731 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"5500320ad36d80e1068d8e7309f488a47e0788d9ec95de03a96ceec615ab16b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:442-493 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:379-439 \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":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba046773e328d3bcab225fc4b9edfdfc98b87c9299fb83626c15b3fa840c118"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): src/diffusers/models/transformers/transformer_minimax_h3.py:549-603 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:492-543 \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":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac31e9a5209d3c52077313cdc2a15117b6e45128709b16ad81a13d74451b246"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:347-375 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:554-582 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"195752e8133f4f4c2541516596f92b83e2b6e70a07b4b30b145e849fb57e8cc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/models/transformers/transformer_longcat_audio_dit.py:195-227 | src/diffusers/models/transformers/transformer_longcat_audio_dit.py:298-331 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_longcat_audio_dit.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fc9b1a0fe348bb0e18100cf3cab8b0978d420aa39bf6c3d87a32f293e8c4a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/quantizers/gguf/utils.py:317-341 | src/diffusers/quantizers/gguf/utils.py:345-367 \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":"src/diffusers/quantizers/gguf/utils.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e369b17f3adcb6d98177319947c4b4f94e2c5061c764a74ec18c658db4c480e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): src/diffusers/models/unets/unet_3d_blocks.py:108-168 | src/diffusers/models/unets/unet_3d_blocks.py:197-263 \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":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"829397ec5248cba592106a6afa7d68b06cd4c41588381472317abd7572b8e8c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/diffusers/models/embeddings.py:895-949 | src/diffusers/models/transformers/transformer_bria.py:65-118 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da52fea7842e982d70aa713b2ee5373d461fd542a0e552df0966f381aae5749"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:137-175 | src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:345-388 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee7dcc9f0d1f76831357d6246922ddab3748d43d6b00a70d9a10dd302ad27fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:725-773 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:809-860 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde92ab75274a68d50a53a2a2fee5e815821894a18ead24696850e7973761994"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:114-147 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:147-185 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13b29d7d9e059b3e669638ef3724d2bff99eae5bffb84825ef204c75a108d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): src/diffusers/models/attention_dispatch.py:1357-1400 | src/diffusers/models/attention_dispatch.py:1691-1741 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e46bcb5d4c50cfe2467a48ae137d4f2bb71c939123a8c9b213134db97c4ac41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/modular_pipelines/ltx/encoders.py:243-277 | src/diffusers/modular_pipelines/ltx2/encoders.py:892-935 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx/encoders.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"7492cc09d31f7ca0534f23a746731dea35cc6d13200f328b0a1be53d68d846f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:202-235 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:323-356 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba5705311d8953e6fa46533ecc4d71fddb319b48164c81bd692fe939ba2b703"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py:262-328 | src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py:459-523 \u2014 These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3e896d916fbedc84808ca7596fce036faab2e92a717e19f1124610d4c7b30c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/models/autoencoders/autoencoder_longcat_audio_dit.py:201-226 | src/diffusers/models/autoencoders/autoencoder_longcat_audio_dit.py:250-277 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_longcat_audio_dit.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eaade628bbe795906b6c77bc197fb06e7a8394a830a9ba0a714488588d224c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (81 corresponding lines): src/diffusers/models/transformers/transformer_cogview4.py:718-798 | src/diffusers/models/transformers/transformer_glm_image.py:612-705 \u2014 These two members are one piece of code written twice and then edited apart: 81 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f06cc3dd3a2db1f81f0724aebd25778d6038f759ef959588eedcbdae22da7d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): src/diffusers/models/unets/unet_motion_model.py:236-306 | src/diffusers/models/unets/unet_motion_model.py:741-796 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdeae358ebfb65574a4280b122501efaff86d1fa5d2b4ce45a7d7430b96e490"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/modular_pipelines/helios/denoise.py:53-82 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:457-482 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd145d913007ce1c1edb38d6ad21b185a7aa92dcce952087b66f0e882694a9f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/ace_step/modeling_ace_step.py:204-237 | src/diffusers/pipelines/ace_step/modeling_ace_step.py:299-337 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ace_step/modeling_ace_step.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"115dd15905f6633dc630254852b352b9dde2446b9c667ee5db87a905c18e2fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:842-864 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1306-1334 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1192-1220 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"258b6e0b7a90d70ca2c67018e7333fd78fc9b08bc7fa6696cacd8de4d7c637a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (73 corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:1867-1939 | src/diffusers/models/unets/unet_2d_blocks.py:3114-3188 \u2014 These two members are one piece of code written twice and then edited apart: 73 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d736bcdcf8f0cd145e46af8876a6882b5ed39eba56c4ac32272f9f134850e63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): src/diffusers/models/attention_dispatch.py:3228-3266 | src/diffusers/models/attention_dispatch.py:3518-3559 | src/diffusers/models/attention_dispatch.py:4291-4329 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 39 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":3228}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac604b343259751a70b2155f12f2a51bef32ccb5effc84535c1a68052f8304f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:113-134 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:136-161 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3c96574de8af195f87d798cce75be1ba839b9a052a68db2f685f059c325da7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/models/autoencoders/autoencoder_oobleck.py:407-441 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:455-486 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_oobleck.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b7b1220c1e84a6510a44394c0d50ddbcb9f320d907c3c622edcae4feaee2cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/models/transformers/transformer_kandinsky.py:127-154 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:115-138 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e913e7690f2e7c942bbacd2e9cb98e7ac43e524834e3de029c9ea5e39f4d6528"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:619-645 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:656-689 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a7bfdfb98a667ec2ff51e7acf35af1848111a209a3bfb3d05f00a99c4005ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/modular_pipelines/ltx/before_denoise.py:365-400 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:586-616 \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":"src/diffusers/modular_pipelines/ltx/before_denoise.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ccc33345bd305e1efe26c9894aadfc00dc4d14fbe2c992d633c8edcc6d4d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:363-397 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:566-599 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfcc77f116f5d1960937289510e28b52888126d6a68e741ab52174aa7fde620"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): src/diffusers/models/transformers/sana_transformer.py:366-417 | src/diffusers/models/transformers/transformer_sana_video.py:529-573 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"f888384ae19e8683883a21863c292a43cff9228eae803aa081eca55b77efb38f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/modular_pipelines/ltx2/before_denoise.py:688-722 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:1673-1709 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1f1b643c337b4905e2264f34509040d39a5a483c1ebf57b1d4829a9f8e37ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): utils/check_doc_toc.py:108-153 | utils/check_doc_toc.py:157-202 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_doc_toc.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96ddc4daf116f37ae1455058ed29f3aee693bf71066845db66b28ba2af4831a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:908-955 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:502-545 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:613-652 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"18587767ad66c66148c74aaf8348761594c2a51e13cbfff1ad82c0fb44612b3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:912-976 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2335-2399 \u2014 These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03ed1df4f0f42b8e6348a2d9ece0bf74647a3ef21cf9b25d84f2d06ef2943e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:209-237 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:283-318 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"087852ff610923e2d9a815a9ad488f7b54d638fd1b039286744295c5e4c8c0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): src/diffusers/models/transformers/transformer_temporal.py:133-202 | src/diffusers/models/unets/unet_motion_model.py:151-211 \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":"src/diffusers/models/transformers/transformer_temporal.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccfd24acc3b783d1eb73441b5f2137d5a14cd233698fb797d3a066064ccd97b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:198-242 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:298-326 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_mochi.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36e2eefc08336fc9f29c3cee2e8a52590c30cdf77b73d619ec0bffd6e481e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): src/diffusers/models/controlnets/controlnet_hunyuan.py:61-115 | src/diffusers/models/transformers/hunyuan_transformer_2d.py:269-317 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_hunyuan.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f3359c3d3eb950b3082d03a23c9edeefcdb94b9a9d39bae665fd1faee42778"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): src/diffusers/models/unets/unet_dreamlite.py:1391-1440 | src/diffusers/models/unets/unet_dreamlite.py:1525-1576 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f005e589c23532379ddbc6c5e73c2253db335dad07c09a177127ede07be1e43d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/modular_pipelines/qwenimage/decoders.py:233-256 | src/diffusers/modular_pipelines/qwenimage21/decoders.py:160-186 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/decoders.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57c6adf43475af1f44411acc65e1149427fe8db6c7e62c4962e3587a9959c57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 21\u002B corresponding lines): examples/community/fresco_v2v.py:1224-1244 | examples/community/rerender_a_video.py:238-258 | examples/community/stable_diffusion_controlnet_img2img.py:65-85 | examples/community/stable_diffusion_controlnet_inpaint.py:128-148 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:127-147 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:117-137 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"3742b44d53299599d8f68e38ac24ef404a2e2005d37a03968cde7dc6d37ecffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:194-249 | src/diffusers/models/autoencoders/vae.py:98-153 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1061cb16d9bb6ff2d433f3770a90e5406475c6fff879b73c118408040b6492bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/diffusers/models/transformers/transformer_kandinsky.py:453-464 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:367-383 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3c6e6deb472d04ee8eb3cc907de3f6c730f1c70acd97b1e62e5fa6a2395a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): src/diffusers/loaders/lora_base.py:557-634 | src/diffusers/loaders/lora_base.py:637-696 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92b8bdf835d02aea60f79b23f1c80f428cad40ab74de8be33f2c4db2fe4a601"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): src/diffusers/models/transformers/transformer_chroma.py:416-463 | src/diffusers/models/transformers/transformer_flux.py:627-668 | src/diffusers/models/transformers/transformer_ovis_image.py:436-474 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 39 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chroma.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"7396a8eeb284eea8ca7f3a40ade16a27b139889ae9b99273cbb64ca945886132"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/modular_pipelines/ltx2/before_denoise.py:382-423 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:1564-1593 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bf20c4df1d09848b8b6083d8bde8d3312ec69e783a29448714af8ee495eba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/diffusers/modular_pipelines/qwenimage/inputs.py:211-253 | src/diffusers/modular_pipelines/stable_diffusion_3/inputs.py:193-233 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/inputs.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f09f3e1d56025873ac82f3d6c3e2367a7b57654b1f92fdc695fc917cbc4014b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/models/attention_dispatch.py:947-1000 | src/diffusers/models/attention_dispatch.py:1078-1110 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5e5b8308485a16c1ff02a74b292b2e8fe3b220ab6eaada160f5eaba749c954"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): examples/community/matryoshka.py:934-998 | src/diffusers/models/unets/unet_dreamlite.py:423-504 \u2014 These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"9952f229b8daf93682b10749b78a1cc82b7780297a7ed2955eef06c9a7e7b6d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 68\u002B corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:1036-1110 | src/diffusers/models/unets/unet_2d_blocks.py:2204-2276 | src/diffusers/models/unets/unet_2d_blocks.py:2666-2733 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 68 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"697fa010be4805bf6aa65573528fbdcb86e23b62fc3adba398107dbf321c5300"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 49\u002B corresponding lines): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:184-232 | src/diffusers/models/transformers/transformer_qwenimage.py:247-296 | src/diffusers/models/transformers/transformer_qwenimage.py:371-424 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 49 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07c7b4fe3f90265d6f9d44e0a2aa241d210be2cb7eab94ac96190545193b680"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/modular_pipelines/ernie_image/before_denoise.py:32-45 | src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py:191-204 \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":"src/diffusers/modular_pipelines/ernie_image/before_denoise.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d60c8aaeb31a67974e4ffdde7ba108ccfdf87fe16902bd4d2a7771e5ccd30d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-724 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-588 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-592 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b5a9fe106499b85d8eeba8a670751f38e55508e65e41ff6784823240981924"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): examples/community/matryoshka.py:861-903 | src/diffusers/models/unets/unet_2d_blocks.py:1249-1291 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1705-1743 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 39 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":"examples/community/matryoshka.py"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfb0048c62c13f6acf8542d6a4b7023c494e2c8edca2800963572fa7a22b9e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:722-744 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:706-727 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:673-695 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"b705a9a54254c3c8500ec0b98e661e07e4d718636b488eaf637d49de816f61aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/diffusers/models/transformers/transformer_cogview4.py:497-534 | src/diffusers/models/transformers/transformer_glm_image.py:391-429 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9290a7eb1556130f97e7d36065f2da49888b8f28cc7b4978913de013d48c24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:441-461 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:233-253 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:244-264 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae6fc3d3e2e73ebf4c57845a41a7d58e2283e676bc31198331c22b5c8812c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): src/diffusers/models/embeddings.py:35-78 | src/diffusers/models/transformers/transformer_qwenimage.py:50-93 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d88e7199fab55672f1b5bca34ae40c7842fe300766612b638f03166019865c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): src/diffusers/modular_pipelines/wan_animate_2/video_processor.py:84-128 | src/diffusers/pipelines/wan/image_processor.py:140-184 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan_animate_2/video_processor.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2040d7b706411a2a234007b8d09da9ffc90105408d092929bdbd5ffab9ee2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/models/controlnets/controlnet_z_image.py:201-230 | src/diffusers/models/controlnets/controlnet_z_image.py:349-384 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd67e51a6d354c6d4f7ff310b685233c7a2d111da5b32aa2126d429261578b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:109-144 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:120-159 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ab015da803ebf2718a2d639e4c90c516d2ffad62ba46306a494296d7683935"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:791-812 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1250-1274 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1138-1162 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78d4c3bd1bf16d60ee4ad15a29f80395a2026d1db51b13b321b8494f4b3f8a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:186-235 | src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:335-387 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/condition_embedders/condition_embedder_ace_step.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0f8272d79216c2d48a49eb355eb13c28751898c66baf1c55594098492e05ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/diffusers/modular_pipelines/wan/encoders.py:537-575 | src/diffusers/modular_pipelines/wan/encoders.py:998-1044 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed68421ac6bc9fb247696c08dccd3d1b0093892f0956ac6c98298911821025b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/schedulers/scheduling_edm_euler.py:99-130 | src/diffusers/schedulers/scheduling_edm_euler.py:279-320 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_edm_euler.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c0cba09e278359ac4e6aa969e5224dd6688cf684c65770f310835651615c5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:2533-2572 | src/diffusers/models/unets/unet_dreamlite.py:1303-1336 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1806-1845 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2533}}}],"partialFingerprints":{"codehealthFindingId/v1":"6758771aeffe96bf5779f7162bbb1d9a43e5321e5aa5960f041a1a30d1098850"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/modular_pipelines/flux2/denoise.py:110-136 | src/diffusers/modular_pipelines/flux2/denoise.py:199-225 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/denoise.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18a87c2ca48b52b3bbce57046d7f56b27f960d1ac423bc1d6753065ba90951c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:291-326 | src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:401-437 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:562-604 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"9908bd3f323202bbee81f230641383a8ad259b26b46076bd67b7f668f2e9f9a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/diffusers/hooks/faster_cache.py:593-633 | src/diffusers/hooks/pyramid_attention_broadcast.py:244-287 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/faster_cache.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a3c7b5783a4c30e6222ba3c4863d7f0687c94b03a42af520b53285914d0832"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/motif_video/pipeline_motif_video.py:188-213 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:198-223 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f532ff71dca6e0626153e349a4a113ad50259c06181121877474daf859fcf9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): src/diffusers/loaders/ip_adapter.py:253-303 | src/diffusers/loaders/ip_adapter.py:504-555 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d13070bf92a4c44876c9975be8afc2257d20f7a3ead8384b585f39408317c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/models/autoencoders/autoencoder_same.py:377-409 | src/diffusers/models/autoencoders/autoencoder_same.py:413-435 \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":"src/diffusers/models/autoencoders/autoencoder_same.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9dba2dcd35db89f4363fd540f4d9485dba4e6cc76347ed4fc0f474fa80b2cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/diffusers/modular_pipelines/qwenimage21/encoders.py:382-420 | src/diffusers/modular_pipelines/qwenimage21/encoders.py:518-558 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage21/encoders.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5cc30fc4b28da9ea9ac7b5598c9cc78515458608cdb263a2b4daf6274fa32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 37\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:233-269 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:239-275 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:235-271 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7495c7e38812d5fbe499647fea542b38f03fcbb71a8beed96c35994dc578b71a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/models/lora.py:118-147 | src/diffusers/models/lora.py:316-347 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/lora.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b916c51684ba6c40d1bcd99215b819d7190b077b6c9c126dce7a242c015a25a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py:150-201 | src/diffusers/models/transformers/transformer_hunyuanimage.py:692-741 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee6362849fc572d8f881bb7b1e2b2d6dc0f3e0119adb31364425d0166474664"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): src/diffusers/models/attention_dispatch.py:1184-1223 | src/diffusers/models/attention_dispatch.py:1295-1343 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2870296de93f7720740d21ad08f39258d5054168d9496725ff9b6f4a9347da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/diffusers/modular_pipelines/ernie_image/encoders.py:103-121 | src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py:100-129 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ernie_image/encoders.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a320ef8baa0ff02f3701222fa41a1089a2db32b0c85d403d83fb25264c43a07f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/diffusers/quantizers/gguf/utils.py:251-266 | src/diffusers/quantizers/gguf/utils.py:270-285 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/gguf/utils.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac37de9c44870c891a12c155ae75d54b79fd145822adeec29d7d20a41957f984"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): examples/community/pipeline_stg_ltx.py:86-119 | examples/community/pipeline_stg_ltx_image2video.py:91-124 | src/diffusers/models/transformers/transformer_ltx.py:346-375 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"97763f64f04c22640b334e15288e689b1411327af1de98cd13389b217da379bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 27\u002B corresponding lines): examples/community/pipeline_stg_ltx.py:232-258 | examples/community/pipeline_stg_ltx_image2video.py:251-281 | src/diffusers/pipelines/ltx/pipeline_ltx.py:206-232 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:288-318 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:428-465 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:225-255 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f11fbd636a81f61e3f76f80f129346164833cd0a593b54748c0295fb0360d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/models/unets/unet_3d_blocks.py:737-785 | src/diffusers/models/unets/unet_3d_blocks.py:856-888 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d33c90cecff763659695a69fb6a814de6cd29c2ac84afcaa089425c738ad36d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/pipelines/free_noise_utils.py:149-187 | src/diffusers/pipelines/free_noise_utils.py:190-218 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/free_noise_utils.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3b161030b869259c9ba50ae6f2a2be6a5c785d01a950eb1370baeeaeaba1df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:361-378 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:381-398 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8839820f268c2c57a2863388d53ee05d62887790be30d304f7851eeb69b6d0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/diffusers/models/attention.py:460-498 | src/diffusers/models/attention_processor.py:709-755 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ffb85e37061877411a39e84e7d52fae3097dcb6d1dbb1762ddd9e9d9bba396"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:91-112 | src/diffusers/models/transformers/transformer_qwenimage.py:147-171 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3216ec1bc97d472d47717c9df66372ce61d642c1b25f2e10ce62bd2cdfca17fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/models/attention_dispatch.py:3897-3930 | src/diffusers/models/attention_dispatch.py:3984-4020 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":3897}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac4bac9d8de14f19732fd2136130f02e1a253a9d1f44bd1e30fcbd391b47ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:470-499 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:580-610 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_mochi.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97b15709d388a535eadab0eb2d91b55e23fceac4e64a0ad70b82a668c1df67b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kandinsky6_sr.py:450-479 | src/diffusers/models/autoencoders/autoencoder_mmaudio.py:251-274 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kandinsky6_sr.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c43574bce69c21ac5af6d6609b85837f595a80854b7e08e6b2e24b1f3bf4d22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/diffusers/models/transformers/transformer_joyimage.py:404-448 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:377-415 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8da7bbac07627587c2a31ad74a9fbbe12a8038912181e0fc9d5fe14a7923eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/diffusers/models/transformers/transformer_ideogram4.py:138-153 | src/diffusers/models/transformers/transformer_krea2.py:109-128 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ideogram4.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"778b3321eb88848c482424917e63fbe8656e0de37f9de89ccdca78a27063f030"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/models/transformers/transformer_sana_wm.py:1298-1338 | src/diffusers/models/transformers/transformer_sana_wm.py:2543-2564 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b59f2d9c79de57ff3f4ff348b0f64d13a45ad8fd305ece2f0a98e86fe44bfe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_diffnext.py:163-184 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_diffnext.py:187-212 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_diffnext.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c8c4d565f442b7cb9047116e0e7247fb54be2e99d93576ff26925a3fbba21b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/models/transformers/transformer_ideogram4.py:105-128 | src/diffusers/models/transformers/transformer_krea2.py:65-97 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ideogram4.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"69af794cd98e768e0a3991d062c417617b92c94867037f20e4b9ca6aa68f27ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): src/diffusers/models/unets/unet_dreamlite.py:662-689 | src/diffusers/models/unets/unet_dreamlite.py:812-839 | src/diffusers/models/unets/unet_motion_model.py:488-524 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45ec7801dd2b803c9a37f4f25bb355d15ad6ce6e78561709c2a8c8dc4259e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:70-106 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:136-172 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6448aeb7014d80de5797b2ffe9a6e720d2695ac46ea8a6fd1793e25b7f547b6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): src/diffusers/loaders/lora_pipeline.py:156-241 | src/diffusers/loaders/lora_pipeline.py:604-662 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"758b5ec4c13b21fdd20300d81d9b7af00ed5c9633e89457bb63cb978c8d3e570"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/diffusers/quantizers/gguf/utils.py:371-387 | src/diffusers/quantizers/gguf/utils.py:424-440 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/gguf/utils.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5549617482cf3f66ed1252ae043554a63945e58142fa0b28ac19de4d859f18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/models/transformers/transformer_hidream_image.py:428-453 | src/diffusers/models/transformers/transformer_hidream_image.py:497-525 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hidream_image.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bccbde378e4c8ecaec9d03b902c3554e336e5ac29407680545cfe6d09a4734"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1378-1400 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1381-1412 \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":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c41c7eece80b9fa8a2c2f1aa8fcf907e9608c7a099f346e03920b4b09b2870"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:73-92 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:138-166 \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":"src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba7e1ae3986d04de864209106aa9761fed1e19c0609a73065823c811e79703e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/models/downsampling.py:96-128 | src/diffusers/models/upsampling.py:104-137 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/downsampling.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c231667c9d25c1fb1bc8a3ed9e9f4db6ddd2bce1a5d2e15d49226f6def83c72a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:422-447 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:432-458 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:430-454 \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":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9208b9150c736b5000b708efe1be8e873ea62acf4d923db95a8a0e49002197"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:1249-1276 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:950-978 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:1264-1293 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da4e469242b6f301cbf003a46522d6e0676234664980d917a02247183e16c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/pipelines/sana_video/pipeline_sana_video.py:220-242 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:210-239 \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":"src/diffusers/pipelines/sana_video/pipeline_sana_video.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"414fea8027aabe64c756ce6befdc3a1e531a04fd141a902dcdca0f63c90003be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): examples/community/pipeline_prompt2prompt.py:816-843 | examples/community/pipeline_stable_diffusion_boxdiff.py:144-168 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:151-179 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cc9beda2a507a72bab59f0b4a7de0ffb49a81b19a020824f7ccf5c77396b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): examples/community/matryoshka.py:1627-1675 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:725-760 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0057e4d604ebb29fbab916c727d80853350c588e1d57f0d622d3e8f69b397f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): examples/community/matryoshka.py:1757-1807 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:782-817 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81add7c3f90d7d8cdb0d872e892b353d556f0481fa2a65df891df2caac6919c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:588-614 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:299-327 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:305-331 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 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":"examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2b7667f4f2c5f275c6e6cb68efd433ce8d14ee26b8b75e21b74566959c9272"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): src/diffusers/models/transformers/sana_transformer.py:211-246 | src/diffusers/models/transformers/transformer_allegro.py:76-113 | src/diffusers/models/transformers/transformer_sana_video.py:374-409 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c504ae298a2fd4ea62cddf3f85c059163b668852c8a63f74d8a218e5bf7c2f5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 38\u002B corresponding lines): src/diffusers/modular_pipelines/flux/inputs.py:256-306 | src/diffusers/modular_pipelines/qwenimage/inputs.py:864-915 | src/diffusers/modular_pipelines/stable_diffusion_3/inputs.py:290-327 | src/diffusers/modular_pipelines/wan/before_denoise.py:363-406 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8ce28baa118efb1f5771f6c39b78f7a3665a3752f5443981a499cdeb7984ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:958-986 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:665-693 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:965-992 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e08714cf3264cb9c3ac46d3dd85ba3aa18c227c6b36a0e18926fa342e1ee665"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:348-361 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:357-370 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:353-366 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"c333d3381f893795c8d52305b653b4436039a644f0b33e29766b2eeb7f5a5c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:629-656 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:635-663 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:603-630 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf57e971465277009173a2e76e7035e0217b3046f4829b3ec57c9a63d1a37f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_flux_kontext_multiple_images.py:252-273 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:239-260 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35e5cc673cc80d6282045928822b36e6061a6681edc40d68fd02974e1a50842"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:2850-2878 | src/diffusers/models/unets/unet_2d_blocks.py:2962-2988 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbabb18c64a517509e33e08b8919f765e922b9056827aa4d15a087266db83e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/modular_pipelines/qwenimage/encoders.py:890-921 | src/diffusers/modular_pipelines/qwenimage/encoders.py:1020-1055 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d753e5fe7f2f50132ee5ea761b13432ece6a5e7f13eeff3292e7a7e3c05e2ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/diffusers/models/transformers/transformer_hunyuan_video.py:220-247 | src/diffusers/models/transformers/transformer_hunyuan_video.py:271-286 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b33cd70bbd264857c564d928da50e354c0111ceea21eb2408e416ba5354ce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/modular_pipelines/echo/encoders.py:51-77 | src/diffusers/modular_pipelines/ltx2/encoders.py:130-156 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/echo/encoders.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8649a4117c649f14411bb236e8c8c66ddebe8adb5481a17c43a15a0b8955bc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:521-541 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:637-662 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_magvit.py"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede1300aa531f818a6baa69c3387ed635b09139060f9a31536d8424f5a347738"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): src/diffusers/modular_pipelines/anima/before_denoise.py:308-329 | src/diffusers/modular_pipelines/flux2/inputs.py:154-175 | src/diffusers/modular_pipelines/ltx/before_denoise.py:137-164 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b977e9bc2d37fa459319f616a5ae8f31b66bd1f0f4eeb68381d3f729484742"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:107-136 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1405-1438 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1673-1706 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4faa1e1950ff790025953fa503466000d7f850cd07e59f3e475a54d6a69963"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/flux/pipeline_flux_control.py:205-226 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:212-235 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"baecde6c7c60179cd7df0b25c0d6cf1b3473107476b6f98dbe616fefd36da2bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:162-194 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:174-204 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:151-181 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf28c733c854b954153a4e9f9578ed264fbcd3f4389ae1b602b324a61c465b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/diffusers/hooks/_helpers.py:36-51 | src/diffusers/hooks/context_parallel.py:52-78 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/_helpers.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00bbdb8560f06c1a3998909c852d74d8cf121ce3009e0ca5c0a1e7bbef6d72c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py:94-118 | src/diffusers/models/autoencoders/mmaudio_vocoder.py:36-52 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92f78cb626c6a080554c38423055abf3fb9f469bca84f1ff136f6be23fe7ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 44\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:699-742 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1142-1204 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1033-1095 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 44 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"233078232095d218b199910984967d8aa1a3bf57d1171a2e7270453d5312e25f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/diffusers/models/transformers/transformer_joyimage.py:45-56 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:40-53 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"938bf4ad24e1afb8ebaab5e5f371906622ab206975cbc7546c1620187f8a5212"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py:33-64 | src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py:107-137 \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":"src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3867feeb8553794c8df81e99f242c21f1c434044acd3b300a8784c0b53a6c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): src/diffusers/models/attention_processor.py:4412-4437 | src/diffusers/models/attention_processor.py:4656-4677 | src/diffusers/models/transformers/transformer_flux.py:154-184 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4412}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d986d7df12d7805d34c9ac5d1321fa6103e2c197780e0d1d5ccee28554ce82a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/diffusers/modular_pipelines/ernie_image/decoders.py:79-94 | src/diffusers/modular_pipelines/flux2/decoders.py:167-186 | src/diffusers/modular_pipelines/flux3/decoders.py:151-171 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ernie_image/decoders.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"65eb63afe1102a1a1a6178cdaf8b8f80758ef3d806b4d06cd44d30f1d21c5b73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/modular_pipelines/modular_pipeline.py:2307-2335 | src/diffusers/pipelines/pipeline_utils.py:1110-1141 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2307}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce156b61f0450441f585bd116c186b2020eb9a6ca2083700e82b768a7388520"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:224-247 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:217-238 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae0d642900a3aa5452e0ac3ff2c38a9295a29df474a873a6061a2280e13edb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:398-423 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:369-386 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:437-454 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:419-436 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"553b561ce407bd0afff8b6f6c40321a94b635853da7b892c62e9387a81537c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 44\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:151-199 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:238-281 | src/diffusers/models/unets/unet_3d_blocks.py:559-606 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 44 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4dc1015025f0fd1608c07c217372b97cc72124449519b9b8028721f208ade11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:141-155 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:174-187 \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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d925209caf28be7a3714e2b424e12080c3483b9a16a8677513feebb8cb64402"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:42-64 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:74-95 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0483d59328ea9f9b1a9cbdd50a78315ec0b278f9a6d3fa2a8f77182dafe0e2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:153-190 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:262-291 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_mochi.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a01672e677e3bc7b9f2cf54b6e2caa86a38decb2462b2036a330cdedaa68dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:3201-3245 | src/diffusers/models/unets/unet_3d_blocks.py:1391-1419 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":3201}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cd286e60e61aa2207bcb22e674f70e112cd60cee5550c0246936c0b51276f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 38\u002B corresponding lines): src/diffusers/modular_pipelines/ltx/encoders.py:111-148 | src/diffusers/modular_pipelines/wan/encoders.py:219-273 | src/diffusers/modular_pipelines/z_image/encoders.py:189-244 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx/encoders.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c299356333a1a63256aa5edf9729f1803bf1b9e6c5706d3b381ec5b0425280"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:242-265 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:283-308 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:275-298 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 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":"examples/community/pipeline_stable_diffusion_xl_differential_img2img.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74596970e9b1c383542342b8f4215481d31edde1ee07167cf8fbd047965f0c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/callbacks.py:113-137 | src/diffusers/callbacks.py:156-185 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/callbacks.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56f5b183cb5b37fdff6c647ac6e6584c4c73a4a5a2a34b188406557bc52d913"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:1119-1144 | src/diffusers/models/unets/unet_2d_blocks.py:1950-1994 | src/diffusers/models/unets/unet_2d_blocks.py:2141-2182 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f59317dcf5079151017c97d8b4cc3e2482be08171ca4a49a15abbd33c3046f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:212-237 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:223-251 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4334a70301cd6e5f59b6cd3fa19cc6439bf5a5fe110977a76b3ac32466b7cc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:347-367 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:419-438 \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":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ec20d666c3f98abef17251c6ffb980daffc4d2ea0a7067d282774151b5f2fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/models/transformers/sana_transformer.py:47-60 | src/diffusers/models/transformers/transformer_sana_video.py:46-63 \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":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e807c0a35cc7ff7f6b4fe8f0f43a0e4435fe87d08f8d7a51117d4c8fbc001680"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/diffusers/models/transformers/transformer_cogview4.py:669-702 | src/diffusers/models/transformers/transformer_glm_image.py:559-595 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ce39b1da5c0a1faa49d26fbc263fb3178293df38fce63614dff255e7383c78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/diffusers/modular_pipelines/anima/denoise.py:123-141 | src/diffusers/modular_pipelines/wan/denoise.py:189-225 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/denoise.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"173e6e8ed6bf92a2ad207f29c7e678f341ae37693cdf7eb8fa19bf1d781473f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:332-361 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:145-167 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:214-256 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba40b8bdbe547ea9c7b30ecf0c41f6afbf13ae67832329c58f5da58b14c6c24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): examples/community/matryoshka.py:2391-2423 | src/diffusers/models/unets/unet_2d_condition.py:584-616 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a8727574cddfd2fcab70220b209d7c8ee7986a9d4448cd0865df17227b65fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): examples/community/pipeline_stg_cogvideox.py:84-119 | src/diffusers/models/transformers/cogvideox_transformer_3d.py:126-157 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"406519e4ab24e10919648653bd6d0c58867b87486cb6cb6be5bba28a9bdb476b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/models/transformers/minimax_music3_rvq_depth_decoder.py:33-52 | src/diffusers/models/transformers/transformer_minimax_music3.py:84-107 \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":"src/diffusers/models/transformers/minimax_music3_rvq_depth_decoder.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc534c14882ca816bc30606639a5142b97d560379ed2747e991d7455b471250"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/models/transformers/transformer_temporal.py:91-121 | src/diffusers/models/unets/unet_motion_model.py:110-140 \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":"src/diffusers/models/transformers/transformer_temporal.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d822edff674a113ad65f222d147d5d9869bdd65b05a1154cc7ea6367e57f7ece"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:448-474 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:477-500 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"d419d7fd2def7e53e713986febb85c66e30aff5a3653fd7ecb35ae846745d4df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/diffusers/models/attention_processor.py:1203-1218 | src/diffusers/models/attention_processor.py:3791-3807 | src/diffusers/models/attention_processor.py:3903-3918 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4216335bbb5093cb40e9f546331e53498a8f4ef825e4f22e31a5b3235bad005"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/models/autoencoders/autoencoder_vidtok.py:242-255 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:300-314 \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":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccde8bdfc5b1106a14d0c2892682095bfeac84bc03750dea7da4417678fa949e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/diffusers/modular_pipelines/minimax_h3/decoders.py:244-256 | src/diffusers/modular_pipelines/pika_h3_flex/decoders.py:256-270 \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":"src/diffusers/modular_pipelines/minimax_h3/decoders.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe947f46d4dc95a9666f67e2ee34faaa3c38846b731f462bd4cb8a48a7193f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:202-218 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:284-300 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72e589feb5c8fbcdb5a0b45fa7730e933addca6844c5c7b5af940604683ab90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/models/unets/unet_1d_blocks.py:39-66 | src/diffusers/models/unets/unet_1d_blocks.py:102-128 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_1d_blocks.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc96bcb2687fec0cbc03d19125a585a453f3bdd9bf44905d8ae81254bbdcf68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 30\u002B corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:2492-2522 | src/diffusers/models/unets/unet_2d_blocks.py:3010-3058 | src/diffusers/models/unets/unet_3d_blocks.py:806-846 | src/diffusers/models/unets/unet_dreamlite.py:1264-1293 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1765-1795 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2492}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b47e21fb8f4d7be648519298f8282d00b5898c2e34cfd61ee67cec12477d90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): src/diffusers/modular_pipelines/flux2/before_denoise.py:281-295 | src/diffusers/pipelines/flux2/pipeline_flux2.py:634-652 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:493-511 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:501-519 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a2825bba4da89c8eec4b456cf5ae065dc8ccffbacc1878dea1af57ca8b7dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/modular_pipelines/minimax_h3/encoders.py:187-210 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:190-213 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d94833edb55e2cae5abe2f064c4a9efff9bdb6de5766f9ff556117f530bea45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): src/diffusers/models/transformers/transformer_kandinsky.py:68-91 | src/diffusers/models/transformers/transformer_kandinsky.py:95-118 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:91-96 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:100-105 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d973ab2b4126fed1f3f41540951d1e8045a8b29ad84b60802386a2a9cae28e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/diffusers/models/transformers/transformer_kandinsky6.py:388-402 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:391-409 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dadd61beebbbe7cbf5bbf8dbc3259dc48c1ea8c3de362ef87485bb0d6382d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/diffusers/models/transformers/transformer_sana_wm.py:512-530 | src/diffusers/models/transformers/transformer_sana_wm.py:694-710 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdfe907b6a42467b83b38d96f820fc46f0da58390630448a5d4155f174e2d1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:811-835 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:866-889 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_magvit.py"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3a19aa84e05577f52c0101c9e2f7af38bed0f032579fb641c9d812580b0492"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:92-116 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:95-119 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:91-115 \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":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d057e9e3796c0ede56985ba33d0b5ebd6582da866b13bfc3c7d9b344d46b2bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/pipeline_flux_semantic_guidance.py:212-232 | src/diffusers/pipelines/flux/pipeline_flux.py:195-215 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abc1a0c66a6a7465412765c1797a078062d02179671c09013a2a87212306582"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/diffusers/models/controlnets/controlnet_flux.py:135-155 | src/diffusers/models/controlnets/controlnet_qwenimage.py:112-128 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_flux.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec22ae55045a2d1c854dd1b658deebb4f7eb42152dec83d3e0b37b12ad35acec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): examples/community/pipeline_zero1to3.py:482-501 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:267-286 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:193-212 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:215-234 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_zero1to3.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9e902850b7802b458ac02ed96cb559ec74bedd7809db32cfa715531ee4abab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:618-660 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:659-700 \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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeca6fab4e6ebe0cb35ac47f683bb7ae58951afe875799656dd8d66eb3bd02af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/models/transformers/ace_step_transformer.py:295-315 | src/diffusers/models/transformers/transformer_qwenimage21.py:567-580 \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":"src/diffusers/models/transformers/ace_step_transformer.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec35cd2c8d785b643eed70f31b91e07f030b10793988faa722c50966d9f36ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py:37-46 | src/diffusers/pipelines/stable_diffusion/safety_checker.py:39-51 \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":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e267edc4bec5e13bcaa5bed3e623f7aa260632ca41b99284c93025ac314adca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/utils/loading_utils.py:17-54 | src/diffusers/utils/testing_utils.py:711-738 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/loading_utils.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"455b07b51b3200d591fad5e14814c09ca34fa261fe77ad379910434c6c063db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/diffusers/models/transformers/transformer_chronoedit.py:344-358 | src/diffusers/models/transformers/transformer_wan.py:337-351 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fad6508b12831b5d2de4bd56181f312182ef601161728c174c279e9860a296f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:944-978 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1504-1583 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"98171f4252e1d83b3f38ec1a02eb87c42765c064676069428b6c7f53f35c95e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/modular_pipelines/ltx2/before_denoise.py:795-816 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:1790-1812 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fda615dccf80a22aca719d545cb33ebef323f2b6d1807149f453f458975029e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/modular_pipelines/minimax_h3/before_encoder.py:350-385 | src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py:343-377 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4dae80981d7f91506005bd4c477e2a48fa8c1a657fc3eff6ff75019ee01abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): src/diffusers/models/lora.py:150-163 | src/diffusers/models/lora.py:350-365 | src/diffusers/models/lora.py:434-447 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/lora.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c77088fd82dc41f9baf1d08e244c17d07847ac15bf0490c8fba625d5adc4979"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:2010-2041 | src/diffusers/models/unets/unet_2d_blocks.py:3262-3296 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2010}}}],"partialFingerprints":{"codehealthFindingId/v1":"527f9664b6112c67eb392088d2a388dc00d4183efe3b0097ed98ce78d41b9ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py:89-109 | src/diffusers/pipelines/stable_diffusion/safety_checker.py:107-129 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee94c49d80d538992c637b40a50a38ad8c9371ae743607f7baf6f1db2b0602e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:379-385 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:389-395 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:385-391 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b2a29b81b976a31047c039dd38b79a40a8a1f07a631a904e27c03edb1bd750"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): src/diffusers/models/controlnets/multicontrolnet.py:47-106 | src/diffusers/models/controlnets/multicontrolnet_union.py:50-121 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/multicontrolnet.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6197e21953a3a9f76b1b69857b5b4263bc837561ce7d7a663c8875d7ef4636"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/modular_pipelines/minimax_h3_image/encoders.py:149-171 | src/diffusers/modular_pipelines/p_h3_image/encoders.py:154-174 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3_image/encoders.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"168399dac04e24de478fcd3576a9e46d273fee19f84f14f46c88c83b99dd3b19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/modular_pipelines/wan/before_denoise.py:582-607 | src/diffusers/modular_pipelines/z_image/before_denoise.py:477-500 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/before_denoise.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c30568c2cd47f1b123a23be7d0f92fd4a5f4557cf147d7a5b0ea91721b5172"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/models/transformers/transformer_hunyuan_video.py:674-695 | src/diffusers/models/transformers/transformer_hunyuanimage.py:469-490 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce675b81ff50055ab144c1b019cf66129ec97c1f0640410f10394c54f2f35c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:674-692 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:862-880 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"62716b7e06cda1e9dc04630e5e9271b1497506c55589b81fcaf327cfb7bbebf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1285-1312 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1299-1327 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a922e80d06724844c2950916c8c928d09027225c67ab604ba41f7c0b8f2d74e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/diffusers/modular_pipelines/ltx2/encoders.py:226-252 | src/diffusers/modular_pipelines/ltx2/encoders.py:323-349 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fda08dbdb937dc9a6ddb2a39db297785966a8baf634d6ca914b77381ff073cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/modular_pipelines/ernie_image/denoise.py:130-151 | src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py:208-261 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ernie_image/denoise.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21b5f5ff3eebe698e11cd1864534c897e1bb4d6cde8d027badb302f02f61079"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py:67-90 | src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py:140-172 | src/diffusers/pipelines/krea2/pipeline_krea2.py:366-379 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad01815e57e6beb9f8ad35f2257c6039ab43d76634f85bbf86668c1b3b69087"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): src/diffusers/models/transformers/transformer_cogview3plus.py:54-73 | src/diffusers/models/transformers/transformer_cogview4.py:466-485 | src/diffusers/models/transformers/transformer_glm_image.py:359-378 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview3plus.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4285d767e742b56db6ffdfb88daf97ccb7b286dfc7c881b4b4e764f57aa9f84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/diffusers/modular_pipelines/wan/before_denoise.py:531-542 | src/diffusers/modular_pipelines/wan/encoders.py:521-532 | src/diffusers/modular_pipelines/wan/encoders.py:982-993 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/before_denoise.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb910505ec5424c7917d7d6d95006635fa6133383972a545eb8fe0daa9210b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:399-416 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:534-549 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:489-506 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:575-592 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1537565f6f2d788585a654ca70d7845a91f84e4f83496859a451736a17fa57f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 20\u002B corresponding lines): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:195-214 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:197-224 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:198-217 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:163-182 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:166-192 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:204-239 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cdd73b92514b5498b544399f3f8a8ec3af7fbacc1bf6c4c32fccb50de6e865"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/diffusers/models/transformers/consisid_transformer_3d.py:38-50 | src/diffusers/models/transformers/consisid_transformer_3d.py:185-199 \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":"src/diffusers/models/transformers/consisid_transformer_3d.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0cc895ebf7078a17071a22d2966f5c7b99dd4128f986eea3d3ea435d8356812"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/modular_pipelines/ernie_image/before_denoise.py:253-276 | src/diffusers/modular_pipelines/ideogram4/before_denoise.py:264-284 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ernie_image/before_denoise.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"708b5d8254c06b88e82c4989e31e008ae219555a205df443de370d328c425a55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/modular_pipelines/flux/before_denoise.py:405-427 | src/diffusers/modular_pipelines/flux2/before_denoise.py:301-331 \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":"src/diffusers/modular_pipelines/flux/before_denoise.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad1f18323bf4b5cc4ba0b31fa3f668372f6dea681b7c41f91e45917c2444ef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:823-842 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:339-358 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:376-395 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"5897b3dc290ffdc712bae69fca1717cfef91c0dd6472fe8dba3229242f7bb9fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:806-823 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1263-1279 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1273-1289 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ad3b8e61538f237c225226b90220383955d5a10390ced97b4c222868f133ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/models/embeddings.py:1410-1423 | src/diffusers/models/transformers/transformer_glm_image.py:54-68 \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":"src/diffusers/models/embeddings.py"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"26bdf44bd8867e985931704ece62d2dd1c41b27eadfb5cf0662bdf6589c23694"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/diffusers/modular_pipelines/flux/before_denoise.py:200-229 | src/diffusers/modular_pipelines/flux/before_denoise.py:291-321 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/before_denoise.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc595f1219e45b0a73f02c5ce5dea03a58575011c60a3d208b168adbae69389"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:104-132 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:204-219 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:498-516 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff21329e2ab72e2c311ac4ba4ad515bd4f64f09aa3d295d8e7148d0562c5b868"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/diffusers/models/transformers/transformer_joyimage.py:509-516 | src/diffusers/models/transformers/transformer_sana_wm.py:3100-3117 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"4142c768a262527806d35bb648de4ed6288fc727fccac33ad2fa919a80226800"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py:397-415 | src/diffusers/models/autoencoders/mmaudio_vocoder.py:129-145 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"796be3a473ed00697c0c192bfcbf46c6ce5aa2dd66f5cced3035936355a00fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:1643-1663 | src/diffusers/models/unets/unet_2d_blocks.py:1734-1753 \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":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f176a972c374b345de5d25bdaae93fcc2c4c014acdffb91d12233be7ae9ef67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/models/unets/unet_3d_blocks.py:511-539 | src/diffusers/models/unets/unet_3d_blocks.py:1226-1256 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cce60741866c45fce9245d81eff1b1ed87841553d42dc028f1cd0b0d200b935"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/diffusers/modular_pipelines/flux/encoders.py:270-288 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:440-458 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3271ee933c38571b24d8d56b6b168c76ea75457323f9f424b525109d3575bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:344-364 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:214-238 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ee9b49a626958ad62d7538ba722c7939c43f9431a7c6efbeb105960ab60f63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:123-171 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:166-191 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"733d4c15e250fe9571eb0572433fba50b4f5436df5f3ad1f1437ba8c512ba573"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:341-355 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:351-365 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c171c5a21bb49ec26eb8da6ad2f0273f407af4919717de3187b3952f412e1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/modular_pipelines/qwenimage/encoders.py:331-351 | src/diffusers/modular_pipelines/qwenimage/encoders.py:422-445 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"57682c48e8155a421b45917cc954560d6caf0e0e070cd4cd94d2bf398926d2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:642-659 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:725-742 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:732-751 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:811-830 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1241074484a553baa8d68eb3ca2bf882eda58c121d7fb6c2d60e6e7b0f9dcba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:668-684 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:727-743 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"579511affbb925e5f35a9f35896c887465f4329235d3b4337ea3f16f18090484"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:180-194 | src/diffusers/pipelines/wan/pipeline_wan.py:142-156 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7b5cf635961914fa512ffb602d383a1dbcab2978e43c48d76e6718b03a9410"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): examples/community/pipeline_z_image_differential_img2img.py:185-206 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:207-228 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:199-217 \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":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eae280b6add1c199d8a09b936a2fbc6488cab03e8a7a01770ce1afb5e55ac40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/image_processor.py:436-461 | src/diffusers/modular_pipelines/wan_animate_2/video_processor.py:66-75 \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":"src/diffusers/image_processor.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e41eb0c0a6dd74bcb11c1e8c76739371670ecd4de265626439b65c518a87dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:238-249 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:345-356 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:337-348 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93becfab0a06238c9c8ba1fd0c29e34adc1eacfceca5488e88819cbc38334a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 34\u002B corresponding lines): src/diffusers/models/attention_dispatch.py:3026-3062 | src/diffusers/models/attention_dispatch.py:3082-3119 | src/diffusers/models/attention_dispatch.py:4155-4188 | src/diffusers/models/attention_dispatch.py:4206-4240 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":3026}}}],"partialFingerprints":{"codehealthFindingId/v1":"a739a79a4439ee05113186a82bbcdbd9496b556a167419bd33eeab9c32cc3dfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/diffusers/models/transformers/transformer_hunyuan_video.py:341-357 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:225-241 | src/diffusers/models/transformers/transformer_hunyuanimage.py:276-292 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e40b84587891a027cc8d436975e342576f26dc363b7cd8f2ee07e0049aa1bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 16\u002B corresponding lines): examples/community/pipeline_animatediff_ipex.py:151-166 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:136-151 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:186-205 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:239-254 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:198-213 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:145-162 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c751162c326f0ec792d83c472ebdf861a5f3d30e7c31522b1ab309b1a1d8ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 64\u002B corresponding lines): src/diffusers/models/adapter.py:154-217 | src/diffusers/models/controlnets/multicontrolnet.py:148-214 | src/diffusers/models/controlnets/multicontrolnet_union.py:165-231 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 64 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/adapter.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a8c832d1eca66a0094b91827af2be467e5b39eb6d7a2b9dd630855006993e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/quantizers/gguf/utils.py:289-300 | src/diffusers/quantizers/gguf/utils.py:304-313 \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":"src/diffusers/quantizers/gguf/utils.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"6806f769e93b7f0cb0b72a2e2bcc6593c7161ba8807cfccae126705096d53a34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/diffusers/models/normalization.py:120-127 | src/diffusers/models/normalization.py:426-445 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c771060a805e5184a2dca625e3e59f2abb7d9d7acaefea77ef12db62ea70f21a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/models/attention.py:42-62 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:830-850 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e02f524de1d8695f25f1adc831887218a3a26aa14641a8bcac0226811d11f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:1823-1843 | src/diffusers/models/unets/unet_2d_blocks.py:2046-2064 | src/diffusers/models/unets/unet_motion_model.py:316-339 \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":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77136294094f0f5c4727add28e1814631b997f3af3063caa3a012f6594344e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:122-140 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:74-86 \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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d428d07f16a9ad4e891d5cd8eb95338c16463ab1a236be112fd23f0acdc97b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/matryoshka.py:2528-2548 | src/diffusers/models/controlnets/controlnet_hunyuan.py:119-139 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2528}}}],"partialFingerprints":{"codehealthFindingId/v1":"d897d64a29ac923d0d2e5dad0403985795b4acfa0b74c4a91bde5e3ce74ee5a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:578-591 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:694-707 \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":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75d4a39bd744b6bec21128971ff88c00e45c0ff74830784709f165e1b16c7ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:238-251 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:280-293 \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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc52e50708f4cc147391867a7043d6f4461388a954ba7dfd7be9028a3744b3fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:148-161 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:178-192 \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":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecad9035d08276f5fefd67a10a7ef1816425ec7133e7a6b48d60f83acbe1f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:822-840 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:888-906 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:864-882 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:773-791 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c563e484c481650e252a814413e5d74ff1c982b2707b46c8474ba4717c7705f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/diffusers/models/transformers/transformer_hunyuan_video.py:312-329 | src/diffusers/models/transformers/transformer_hunyuanimage.py:247-262 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62bc56f7a1c794b080add5dd9aec5bf229e9ef09a5bdb26842562a1b50d4c51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:168-183 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:180-197 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0569b6c033f2d85558a25b67990c596bfcb53c91de9539abcef5315cd6ce81c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 89\u002B corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py:99-191 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py:211-299 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py:320-421 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 89 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d2e0690d16ec9692a54fc66b58e56132318b68cd06963649ac22310e453c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:223-240 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:249-268 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"21263dfbdabbce54e6ef6527f8300b66a8394180e48d5775976f0cee9e0b6ff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/diffusers/loaders/lora_base.py:123-159 | src/diffusers/loaders/peft.py:467-516 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fde8f8698bc06d66dbafac3e4ef3ef99364a83653a10d8917de90cfa07a3673"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:377-407 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:578-609 \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":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"4daabbea4dac62c08cd5373eb5b6603db4aae6f6f65606d87efb12d65333b24b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/diffusers/models/autoencoders/autoencoder_same.py:228-244 | src/diffusers/models/transformers/transformer_stable_audio3.py:292-308 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_same.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23c663261338fc1f1c30356d819d5f3bf68805bdb9b01027af01469d64c38e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/models/autoencoders/autoencoder_same.py:525-544 | src/diffusers/models/autoencoders/autoencoder_same.py:574-593 \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":"src/diffusers/models/autoencoders/autoencoder_same.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebf6a53b546db1581c9a290b7b59ab2cc8c698b56047e96f6d24c8adad98060"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/diffusers/models/transformers/transformer_hunyuan_video15.py:297-309 | src/diffusers/models/transformers/transformer_hunyuanimage.py:348-361 \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":"src/diffusers/models/transformers/transformer_hunyuan_video15.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc9f6fa06f45f5a92af767751bebc71999ae308c792340e0262dffe635c8703"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:730-755 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:759-782 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d3069c5442331652fb7c6c4fec5359186e1958e554e530e0a4962f4e3a2892"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/diffusers/models/transformers/transformer_cosmos.py:97-111 | src/diffusers/models/transformers/transformer_cosmos.py:134-148 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cosmos.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"742b46924652d4ea2357770394d16f03b327aa87c7bc69cce7d56df9af86cfb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/diffusers/modular_pipelines/flux/encoders.py:122-141 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:370-388 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff33e50349a309f907e407ca7df3248cea26588d2b127c1a02681cb7a839706"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/models/attention_dispatch.py:2071-2092 | src/diffusers/models/attention_dispatch.py:4072-4107 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":2071}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c0952a6eaece2249fb6a25d4e762733a2cec64e71aa69df2ae34617beb5548"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:416-441 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:511-528 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:618-643 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"c134bda176f351c4e846ec7af3816b2418cafb96d018e459c7808eead6982ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/models/transformers/transformer_chroma.py:211-229 | src/diffusers/models/transformers/transformer_ovis_image.py:217-234 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chroma.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c82a3ba3895895fe3f7d23145fd3d33b186a69cc58c75155df6bdf1139fa958"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): src/diffusers/models/unets/unet_stable_cascade.py:60-69 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_common.py:30-36 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_diffnext.py:237-246 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7362816d80e842f2d2939f284c48211dc2a67453c58c766a1c303773724f091b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/diffusers/pipelines/bria/pipeline_bria.py:126-144 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:177-200 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f92b39e4b9d4aa23120f03b5692ff25d6327f7af22ec6f31c234c02c83f77cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/diffusers/models/attention_dispatch.py:865-890 | src/diffusers/models/attention_dispatch.py:3949-3964 | src/diffusers/models/attention_dispatch.py:4039-4054 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bc4172df11150c646543950156ea7666676129d3691397b0dc5dadf4dcfd10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/models/attention_dispatch.py:1962-1983 | src/diffusers/models/attention_dispatch.py:2000-2023 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"c288045929156b742dbc0417c1991bb28d56986349f7ad9d01dbb0c541b27cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:604-622 | src/diffusers/models/autoencoders/vae.py:287-314 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c6133659b2a391883ccc6c90b329cf6b4dbbc453d31486fd5acc2a12dd737b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): src/diffusers/models/downsampling.py:271-283 | src/diffusers/models/unets/unet_1d_blocks.py:293-298 | src/diffusers/models/unets/unet_1d_blocks.py:310-315 | src/diffusers/models/upsampling.py:331-343 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/downsampling.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"d508b50d84afa3b827284a300c9d6d4740684543573746336ec116d203b34a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/diffusers/models/lora.py:203-218 | src/diffusers/models/lora.py:266-282 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/lora.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6186e2103254828d7fb9f4ba5bfc32bceb56fa8c343e01b3cf5ce4b15c9f5d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/modular_pipelines/flux/decoders.py:138-161 | src/diffusers/modular_pipelines/stable_diffusion_3/decoders.py:67-80 \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":"src/diffusers/modular_pipelines/flux/decoders.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"680f2b53d9001baf6001808ad07a6aa92d9851bdd2d98db75700118822d990bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/modular_pipelines/flux2/encoders.py:158-179 | src/diffusers/modular_pipelines/flux2/encoders.py:363-383 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/encoders.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bf2a723b7e0cd29c4f39404e3b266f52dfd9388c3e37b7b3824bd3f0d8182e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py:95-109 | src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:159-173 | src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py:148-162 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d3ebe873871ca4be437b3fc9c8136b1cc69fb20abedebed906ee7efacc83c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/diffusers/pipelines/deprecated/spectrogram_diffusion/continuous_encoder.py:72-92 | src/diffusers/pipelines/deprecated/spectrogram_diffusion/notes_encoder.py:70-86 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/spectrogram_diffusion/continuous_encoder.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2049dd6f45b2ed4e1cfef0d039c6f55fc5294bbb34776837bb31abe1b79353c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:130-144 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:102-116 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdf93e690660ebcbaa400dccfab25297966098cdb264133d5b318869202361d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/diffusers/models/transformers/transformer_joyimage.py:227-235 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:242-250 \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":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f325309e31a9e266bc4aebe3ae37db65f9879d9479c1658de8ffa0aa68fe95b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:301-316 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:305-320 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:603-618 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"c474ff0c2f63d0f60178383350130e6d0a0bb1d60b9874fa22dad2a65e1dd648"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:298-330 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:360-392 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"849466ea050f1a166d097f1ec57d2ea249871df2c094b2a320fdb4a9ea70f596"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:757-770 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:782-798 \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":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd600beb042410c9caf3d04337c0492b3e35828553868b1d9e559d148c34db5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 12\u002B corresponding lines): examples/community/stable_diffusion_tensorrt_inpaint.py:842-853 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:954-965 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:359-370 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:905-916 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:777-788 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:752-763 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_inpaint.py"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"efba385e67042386ad594a21b427ad05a4ba5ce7bb22835c2d28355a1eed4169"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:508-527 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:757-776 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:745-764 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a525d3885454bd359f846a38353693550ebed26ea5ded79e810b476ce51cb66d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/models/condition_embedders/condition_embedder_anima.py:125-139 | src/diffusers/models/transformers/minimax_music3_rvq_depth_decoder.py:60-69 \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":"src/diffusers/models/condition_embedders/condition_embedder_anima.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"66524f80f06bb4140bb5e01becbcc65a70fe0270bc96ff8a099e357fef235c1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): src/diffusers/models/transformers/transformer_kandinsky.py:351-364 | src/diffusers/models/transformers/transformer_kandinsky6.py:284-295 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:222-232 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:227-239 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"925d6a8ce7d63268b5bc27b88feb3ef37c8f4d717dba6de0f2b655c833df4ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/modular_pipelines/cosmos/before_denoise.py:572-591 | src/diffusers/modular_pipelines/cosmos/before_denoise.py:670-691 \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":"src/diffusers/modular_pipelines/cosmos/before_denoise.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb388833800839622de77ae21ef1d6737ac69654b429630ae99e8ace45e32f31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:518-523 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:556-565 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a1d3ee686413552deee87b3437503f8777026f6186eb42f1e0172f1bdce2af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/diffusers/configuration_utils.py:160-175 | src/diffusers/models/modeling_utils.py:270-285 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/configuration_utils.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff8b7eddfa91b191e67b8139fbea57e8de71da508deb015e3b37ccc242b4d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:671-701 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:479-501 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:659-689 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e996f40a8fb6d80e9f534d466d3357d70470740e4c44514ca79470197d828cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/models/embeddings.py:1113-1122 | src/diffusers/models/transformers/stable_audio_transformer.py:52-61 \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":"src/diffusers/models/embeddings.py"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc16cf5fc6654feaa4b61b5c4b4566e09d29d0cd0d03d60099ded39900f36264"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/diffusers/models/transformers/transformer_cosmos3.py:602-614 | src/diffusers/models/transformers/transformer_cosmos3.py:637-648 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cosmos3.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab41d9dcb9d4f0a2f7aaae122e5c08e7096a07a992a5ed08001b2e7d7a92e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/diffusers/models/transformers/transformer_longcat_audio_dit.py:73-79 | src/diffusers/models/transformers/transformer_minimax_music3.py:52-56 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_longcat_audio_dit.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0320fea02ea3bef6608af6dbfe3ea789611c076574b003947e80abac3ff208"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/modular_pipelines/anima/before_denoise.py:447-460 | src/diffusers/pipelines/krea2/pipeline_krea2.py:403-419 \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":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4de1c952d6c67f4c003fa7e0c4722c40620ef25fe784b1409361d399453d76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/diffusers/modular_pipelines/anima/encoders.py:395-416 | src/diffusers/modular_pipelines/z_image/encoders.py:324-347 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/encoders.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"5939b6ec3bb85a672ffd7802fb89a79d588f270fccd72ce8b9765d9646cec985"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:659-670 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:666-676 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:633-648 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"0182d799e35881e34d3545a3041f764aa7e0dd7ed7429f36da7c7dd09c5c2ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:850-865 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:897-913 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"994347afddbeec0baec7a443a082c9d8366611e38f382799da14d523b942fb69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/modular_pipelines/echo/decoders.py:177-194 | src/diffusers/modular_pipelines/ltx2/decoders.py:367-388 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/echo/decoders.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1f342141ab5a78ab24c15ced2e861c82fef0c37b551cea20c5f2bd7df03a65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:86-104 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:75-88 \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":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7815e7a902a402e95c1cf71a2ced920af6785a8a3f063f086e90b46d388985"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/diffusers/modular_pipelines/echo/before_denoise.py:60-68 | src/diffusers/modular_pipelines/echo/before_denoise.py:78-85 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/echo/before_denoise.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ff8dcf4b65cdb63b175eafb0fc39a84f003c9a2f568a5af8712ab12587bf60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:201-221 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:168-185 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72d3ce10dc4abb46007d62a8b2eb563bd135f952541caa6b0d8e0c25bc8eab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 7\u002B corresponding lines): examples/community/imagic_stable_diffusion.py:52-58 | examples/community/lpw_stable_diffusion.py:407-413 | examples/community/mixture_canvas.py:21-34 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:41-47 | src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py:30-36 | src/diffusers/utils/testing_utils.py:742-748 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"588853725b8ed66bed7acfbbee9ea286f70e49ff1bd576d5c487a16b049bf91a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/hooks/faster_cache.py:168-184 | src/diffusers/hooks/pyramid_attention_broadcast.py:92-105 \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":"src/diffusers/hooks/faster_cache.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5095dc15dbf235150725c36a63dce8de17988904eb835e41ca80d49b0f5dd990"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:277-305 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:319-347 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f3d8410fc54a467bd29dd6ac243d2965dfede22df628458ddd0fe317beace5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py:174-183 | src/diffusers/models/autoencoders/mmaudio_vocoder.py:86-92 \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":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f20a13a9ccb2ab137636e5091a520b98924a487ada9bf6689a8f25080c306b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/diffusers/models/embeddings.py:1929-1939 | src/diffusers/models/transformers/transformer_hunyuanimage.py:224-239 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"420566b6ea8fe473dcd97aeae2dbbf7f0bbc6733542387990dd0d6e2e5bb710d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/diffusers/models/transformers/transformer_cogview4.py:54-65 | src/diffusers/models/transformers/transformer_glm_image.py:84-94 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1cbfe428f5f6524cf5f358151da1f21fe7a722ff17a6ef29487f81436589e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/diffusers/models/transformers/transformer_kandinsky.py:469-479 | src/diffusers/models/transformers/transformer_kandinsky6.py:420-431 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:413-428 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e30cac44ab936f7b4db793f91433c4ff27175e0f403c6f68dfb0efa01dfd99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:196-216 | src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:293-317 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bccd3b71b9a150a95b4fe04c93f57a69d5383bf50b0d6157dc76027c292da6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/models/transformers/transformer_helios.py:40-45 | src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py:431-438 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_helios.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83264f8141724b07055bb9e20436b19e98b458cca3bf47657fc44f344dc0ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/diffusers/modular_pipelines/ltx2/denoise.py:487-497 | src/diffusers/modular_pipelines/ltx2/denoise.py:620-633 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/denoise.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b53cf36ac2323786bb49839e66d888f5572419d03ff50ee318696f14d718f8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/diffusers/modular_pipelines/minimax_h3/encoders.py:364-381 | src/diffusers/modular_pipelines/p_h3_image/encoders.py:314-329 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:368-388 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"1296438d730e8db65c40792324c8606f51f189f6a28048479dbf7c9737c25d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/modular_pipelines/modular_pipeline.py:803-828 | src/diffusers/modular_pipelines/modular_pipeline.py:1237-1257 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2ad9f0182d5c65ed1bbbae0df980d65d8df770469e838e7ddd459c6cdbd21b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:122-134 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:139-151 | src/diffusers/pipelines/helios/pipeline_helios.py:142-153 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea0cd38d252c9ab7a8b4f1815dffa8efccfc68c20f0a4082e85effa2de06f19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): utils/notify_benchmarking_status.py:29-49 | utils/notify_community_pipelines_mirror.py:30-47 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/notify_benchmarking_status.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"848e469b2fa218a1698cd6d7da8e27fcbe8e02fc7ac1a122d9b7633bb6118d8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:102-110 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:102-110 \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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e1813fd10214ca0a5c2b4f7e9fdce49ce51acb47f8da787f07860a7a5d4e07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 26\u002B corresponding lines): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_combined.py:86-111 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:152-177 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:386-411 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:652-677 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_combined.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"59eee62c210326ee7cb89b6a11c1c4cf87b9a7861d80eddc10f48071209613ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): src/diffusers/pipelines/flux2/pipeline_flux2.py:282-301 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:188-205 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:192-210 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1cfea551d2b9ae6c7c4bf93ad0f52cc38ba4b8bf5564050cfc95fe21fb6a29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:283-304 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:725-741 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"a997f27b6ea4d302be99ae91cca62bda191d026c2a739c3b22422dfc53a552ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/diffusers/guiders/guider_utils.py:208-242 | src/diffusers/guiders/guider_utils.py:252-287 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/guider_utils.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"259de7403ecf004446aa825b43f9d4f45c2b05c779aac998654ebce3257f5487"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/diffusers/models/transformers/transformer_joyimage.py:354-364 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:304-314 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e61c9f4e1d0608b1c24f0d58b43ef1c62d30f1a98b979bc17408363f5a3eeb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:325-335 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:330-340 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:470-486 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"be215e1d515d3f2e8b054d2e3149b91819e2124ccc504adf7443e59c82a2dfb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:180-202 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:148-167 \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":"src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e305cc0f3a58b0324187629d02f649dfbc44d06a8a55f9082ecf615b260597"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:347-357 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:347-357 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:350-360 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c21efe1399f53a5d7b72efc0d543b64dcf48d1ea0c1c8ffeeeea6f9c393995"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/diffusers/loaders/lora_pipeline.py:479-527 | src/diffusers/loaders/lora_pipeline.py:905-936 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"654f9b3c10e2b9ad7433bcd091c911ed54c60522d1a0f0d09cd445b644fa67b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): src/diffusers/loaders/lora_pipeline.py:1191-1222 | src/diffusers/loaders/lora_pipeline.py:1829-1877 | src/diffusers/loaders/lora_pipeline.py:7459-7487 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"875c5dd40c744b1abfb02785b60e961cf0ce54470a891103d65b00824881c6cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:1349-1369 | src/diffusers/models/unets/unet_dreamlite.py:906-919 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1584-1600 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5082029295a211b85f90665ce213e840eb93afbd75b1beb5c7d5ecd12a9594b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:738-754 | src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:213-236 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"149de3667cbe96e2c9d2e7394e34d398b32fae6e411e05a5d0f4f68fa59c4280"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1098-1125 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1076-1101 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe534067847654731be11e0adbe03c88c9c49808896932891ef92c0d4aff895c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/diffusers/modular_pipelines/modular_pipeline_utils.py:588-604 | src/diffusers/modular_pipelines/modular_pipeline_utils.py:624-640 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f347450945be705bb72426d3fa2ab6069b58131889066eff43e86dcbecd87ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/diffusers/modular_pipelines/qwenimage/encoders.py:1152-1171 | src/diffusers/modular_pipelines/qwenimage/encoders.py:1336-1351 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"64173db5282daa4ac7ed92db74b3535ce0c03fcbeef265bf34b2744cfeb703a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:284-289 | src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:292-302 | src/diffusers/pipelines/sana_wm/refiner.py:353-358 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8c8be15b798cf4a1a677d2c9f77e6434a7826301c54d5c8ff8a0c17dae1841"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:135-153 | examples/community/pipeline_stable_diffusion_xl_instantid.py:135-153 | src/diffusers/models/embeddings.py:2046-2056 | src/diffusers/models/embeddings.py:2300-2309 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fa3721f5ce6f9c9be0793fbdbeccc279a823fdf6f6cab69061de2e6a3c5841"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/diffusers/image_processor.py:130-150 | src/diffusers/image_processor.py:1003-1023 | src/diffusers/utils/pil_utils.py:36-48 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2506e18ef85858d42a62a1a9344f618eb251e757716a3cf44fbe9e44f7c0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py:286-301 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:116-132 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:120-134 | src/diffusers/models/autoencoders/minimax_music3_vocoder.py:53-62 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a998cf604963b5699748841fc51b93197e37895712f9f9ef6fd7e598d64f392"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:137-150 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:168-182 \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":"src/diffusers/models/autoencoders/autoencoder_kl_kvae.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8a7e95eb52a840ab0b280d528d57dd930eca4a3c491489c0bc8b8b91275d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:93-101 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:97-105 \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":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a19a05da4dfb502887261d958e6e2a4db0c04fa572fac072a1e7bf0149f9af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/diffusers/modular_pipelines/anima/before_denoise.py:534-550 | src/diffusers/modular_pipelines/anima/before_denoise.py:614-632 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:697-723 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"8250feb09731a618d6d5c0ae1432042f7dd06801e813af7cb4a619ae6d890852"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/diffusers/optimization.py:164-192 | src/diffusers/optimization.py:198-227 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/optimization.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eaca5a72ef9dc797e2e0c100846108d68684877dda1106a0d77143b5847ee32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py:113-130 | src/diffusers/pipelines/deprecated/blip_diffusion/blip_image_processing.py:300-316 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"10323bb6acc00b791c9bf7b6f8a7e6fba9240f2d8e987cefda933b1ee352d6dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py:47-55 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:84-103 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:97-116 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f618554a19a938f083b8b0257767fd5da007c3dad5ec723f5dc9b5bdd7986de7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/modular_pipelines/modular_pipeline.py:1120-1145 | src/diffusers/modular_pipelines/modular_pipeline.py:1567-1589 \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":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e994b617e636f156a9d22654be627fe35ae6ebdda7fac6fdd1d7ddfff1755c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:262-279 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:115-124 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc90941fdcff2756595edc3bc753a7fd1e4a5a4bec5c7747866bb3650bd76fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/models/attention.py:1111-1132 | src/diffusers/models/transformers/transformer_hidream_image.py:28-37 \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":"src/diffusers/models/attention.py"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a5895ec2d89c23240b0db12f7ca66864bbe54f5cbb961a26feabb27fd1f26b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:174-201 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:179-206 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:175-202 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71b045c8ace3857a7c74bd0951d015741bb613fe75e76b56f0a229f63cf1d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/diffusers/models/transformers/transformer_helios.py:312-323 | src/diffusers/models/transformers/transformer_skyreels_v2.py:359-371 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_helios.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf9cd51399ea41f8cdc07c1952e864d8cf203ddb973101ba799c420a831b908"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/models/attention_dispatch.py:2230-2243 | src/diffusers/models/attention_dispatch.py:2260-2279 \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":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":2230}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae15710e2da67f3ba70e73883f8ad7e9fa0b2442a689eb2027ed0e47cb5c5fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 28\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:327-354 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:376-404 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:369-396 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:418-446 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d7da9c3f32e77d47249dace8de2c1d6949c30f0ea31d82b42bbaa8c96416ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:350-362 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:459-471 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:449-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 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e5302e99ce219522c797d2c375f06871a4da00e5bd4adcd8f4af82994740ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/diffusers/models/normalization.py:165-170 | src/diffusers/models/transformers/transformer_chroma.py:71-75 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b815d70d10e77d76889aa5f458f2b0f477ae921590c8c5110b1caf34ec34e9e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/diffusers/modular_pipelines/modular_pipeline.py:1222-1233 | src/diffusers/modular_pipelines/modular_pipeline.py:1592-1603 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"43469281698bb6069b73beeceb26452b0530d582478a519ddb841e1e0c7bc2d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 4\u002B corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:294-298 | src/diffusers/models/autoencoders/autoencoder_dc.py:608-611 | src/diffusers/models/autoencoders/autoencoder_kl.py:243-246 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:255-258 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:567-572 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:672-675 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:269-272 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"022ff0499b3eae8744d8e6deb4299c800b9acd63c701f6e91b321bcd1ec234ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 4\u002B corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:301-305 | src/diffusers/models/autoencoders/autoencoder_dc.py:614-617 | src/diffusers/models/autoencoders/autoencoder_kl.py:249-252 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:261-264 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:575-580 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:678-681 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:276-279 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0491d5061c38a8b683ba807067605e1c8b5f9f1f79de8fcb1d3daaa1d692e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/models/unets/unet_3d_blocks.py:962-984 | src/diffusers/models/unets/unet_3d_blocks.py:1102-1132 \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":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbd42ffb12fae11c3f103f149a02500ea895843316f2394aa851f9d86bb4f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/diffusers/modular_pipelines/modular_pipeline.py:1678-1690 | src/diffusers/pipelines/pipeline_utils.py:1954-1970 \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":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"741822647941c1ef3fa6a89eb0e16de350961db79ab09b7c151b289c24abcbb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:57-63 | src/diffusers/models/autoencoders/minimax_music3_vocoder.py:39-44 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13bb19d10cb5387c53ae4f8838e26e2264875fbc137a2581962808290493cfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/models/unets/unet_stable_cascade.py:95-100 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_common.py:62-67 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc59f2be222d8d7b38a117a78c14a69d8ec90171e314e94e4fc4216bb92fc51d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/diffusers/utils/testing_utils.py:1181-1199 | src/diffusers/utils/testing_utils.py:1203-1221 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/testing_utils.py"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba79e46f7908f2a1379fa7844c86fca6698fad29090eb56a71bd52b78890ac05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:206-220 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:256-271 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:248-261 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:298-313 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db275dc2c2c16abd30d4f090c909714ac6830037dad8d900791e1c2dcc6cba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/schedulers/scheduling_helios_dmd.py:267-272 | src/diffusers/schedulers/scheduling_helios_dmd.py:276-283 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios_dmd.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7d21480f14a1587e31851c4c0236112b47e52ade723d42c8c279940bb8a5f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/diffusers/schedulers/scheduling_vq_diffusion.py:83-107 | src/diffusers/schedulers/scheduling_vq_diffusion.py:113-139 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_vq_diffusion.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"554332ca2d876ace831520c6432100f7f832e1ab23807a2bf689b0f509b6cd9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/loaders/lora_base.py:69-101 | src/diffusers/loaders/peft.py:684-703 \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":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a956d5136bfff82c7f71ac2696744f1073bc09af4c2b3fdc14b6233260bb8f12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/modular_pipelines/echo/decoders.py:43-45 | src/diffusers/modular_pipelines/echo/encoders.py:217-219 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/echo/decoders.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d30e9093245c0456d593c4db26588ac78d575598a17f555bc2b7191fe942a37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/diffusers/modular_pipelines/ernie_image/before_denoise.py:185-196 | src/diffusers/modular_pipelines/pan2/before_denoise.py:153-165 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ernie_image/before_denoise.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d97f7baca42c5a0f01eaba9b1045b6920488ae57746d388e58477a8011542e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stg_hunyuan_video.py:378-399 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:471-494 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"111ca56839a60179eff999a0d25257ff5520147d6e14a4302e2b8d20cd230ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/hooks/layer_skip.py:139-148 | src/diffusers/hooks/layer_skip.py:161-173 \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":"src/diffusers/hooks/layer_skip.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"af450b169040f78c895fca809107e86e89c7c0c16e5d4d203ff4be758027518d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/models/adapter.py:420-432 | src/diffusers/models/adapter.py:545-554 \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":"src/diffusers/models/adapter.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f79c4f1bdb19fe37533aacae46da3707e4e4a23345e93e6adf5355ccd8af5df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/diffusers/models/normalization.py:140-155 | src/diffusers/models/transformers/transformer_chroma.py:48-61 | src/diffusers/models/transformers/transformer_hunyuan_video.py:199-211 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4507e58f64eb7db94f7610c7bf7980e02656fa62530eb45ff10a2e4163f1c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): src/diffusers/models/transformers/transformer_chronoedit.py:325-335 | src/diffusers/models/transformers/transformer_helios.py:298-304 | src/diffusers/models/transformers/transformer_wan.py:318-328 | src/diffusers/models/transformers/transformer_wan_animate.py:794-804 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5769038155cd75715947b0ac69319dce90a03a82058f5b56d00cd1a60a9858d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/models/transformers/transformer_hidream_image.py:66-69 | src/diffusers/models/transformers/transformer_prx.py:551-554 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hidream_image.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31007dbe2767fb623f739ba9635db28cde913a64895a5ab7ecc80e4211ef421"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): src/diffusers/models/transformers/transformer_kandinsky6.py:67-75 | src/diffusers/models/transformers/transformer_kandinsky6.py:79-82 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:64-72 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:77-80 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1291738c2a58c9b1b30650a0cdf386f960b0247379fae6c58e48a7a081d6dad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/transformers/transformer_kandinsky6.py:111-113 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:298-300 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2faeed7d5ecae8325ceccec203eea0b960b712c1759b0fef39e10dd7d944cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/models/transformers/transformer_rfd4_proteina.py:326-331 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:335-341 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_rfd4_proteina.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e816998e616b705b2949c9fe88d050e11bc0b810317f8d5ad7edd92b86ef01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:438-465 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:739-761 \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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc771a67efa08050b60170fe79e3a6146b6e0e941b012ae2030c7acbb775d12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:386-401 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:501-513 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:448-460 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"91eb8ed2ccbbb8aa587475b0a0953e45e21e46901ebefea2234199b8a0ae5dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/diffusers/models/embeddings.py:1430-1436 | src/diffusers/models/embeddings.py:1678-1685 \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":"src/diffusers/models/embeddings.py"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"97365961da2d5a3265d1f445e600cf524e031304ca57b783689ea7d0e17c3cdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/diffusers/modular_pipelines/modular_pipeline.py:755-766 | src/diffusers/modular_pipelines/modular_pipeline.py:1192-1200 | src/diffusers/modular_pipelines/modular_pipeline.py:1510-1521 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"a073e8480509b002966293e1f517b234a8a9c6d87621889795fb0070ddb84214"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): src/diffusers/pipelines/motif_video/pipeline_motif_video.py:430-433 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:439-442 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:556-559 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:566-569 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a14fd1e7a04e191c6a85afa30d8e6707343913da133452254bc702655e6c11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/diffusers/guiders/auto_guidance.py:157-169 | src/diffusers/guiders/classifier_free_guidance.py:115-127 \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":"src/diffusers/guiders/auto_guidance.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"235d0f6b1a294d1bf5b95126850fcc26203dc63689b8ce54698fb90f931ff53b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/diffusers/loaders/lora_conversion_utils.py:2155-2159 | src/diffusers/loaders/lora_conversion_utils.py:2163-2167 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2c8acdc234f7c8c104b4edd8476274e8e5dea93ef2dce34e57ad102a11567b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/diffusers/models/controlnets/controlnet_xs.py:1336-1350 | src/diffusers/models/controlnets/controlnet_xs.py:1727-1741 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef980cc280616ce5ed00118c6fa1dbfa48c748021638daad2b31dbef48fbda6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/diffusers/models/transformers/transformer_cosmos.py:45-52 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:129-136 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cosmos.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"05409ad0f0dce01a6df6c03a2c016cd2fa83b0fc3bda78af75031c6c141bf228"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/diffusers/models/transformers/transformer_hunyuan_video.py:440-455 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:323-338 | src/diffusers/models/transformers/transformer_hunyuanimage.py:376-391 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba6623b6022ed5eb7750dcdb3b8973be679e0e8a9484606179b71e3dbc855ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/diffusers/modular_pipelines/flux2/before_denoise.py:441-455 | src/diffusers/modular_pipelines/flux3/before_denoise.py:389-399 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"93662fb286b6c5d6e1c417a02d986b56e98f6f4999526be7809f04ef8420d3e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py:434-447 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:190-199 \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":"src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97fee4901cb854f5483a6016d82be3e39a4a59749ea054c57a35c77e5465c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/diffusers/hooks/group_offloading.py:952-964 | src/diffusers/hooks/group_offloading.py:970-982 \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":"src/diffusers/hooks/group_offloading.py"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b38e5fd9f1f65a16e1b813f82e608082d7511b2f543ceed75ad4a78d68e4195"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:36-48 | src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:52-57 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"590f060cf56468550807e01f481c9e87b1977e00dc7f85a7b25fd371e80eaf6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/models/embeddings.py:1395-1400 | src/diffusers/models/transformers/transformer_glm_image.py:40-45 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b741815dcf31b7eabcab6e83c330212c528e139e1a69fdd625dd9919b26deb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): src/diffusers/models/normalization.py:336-344 | src/diffusers/models/transformers/transformer_cogview4.py:600-607 | src/diffusers/models/transformers/transformer_easyanimate.py:43-55 | src/diffusers/models/transformers/transformer_glm_image.py:486-493 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5e77b432e356d5ccaeb5d13eb2db7f47f5264761f9986341c6d66dac2678ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/transformers/transformer_kandinsky.py:169-172 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:100-102 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4284702de43dca89d6f3078d5b3797afd30c39a355dc5417c2dd06694134d3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/diffusers/models/unets/unet_2d_blocks.py:1437-1448 | src/diffusers/models/unets/unet_2d_blocks.py:1539-1551 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"4777ccfad6b35382997581960c8c4af3e1cbd03f3e2b99ac1163a76758606a26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/modular_pipelines/ltx2/denoise.py:140-145 | src/diffusers/modular_pipelines/ltx2/denoise.py:184-189 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/denoise.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"08104c269d3747ed17f46fd0c372602c0a8ffcc7afbb5d095f074820f7d60780"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/diffusers/modular_pipelines/modular_pipeline.py:1148-1158 | src/diffusers/modular_pipelines/modular_pipeline.py:1549-1563 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"70fe8cfa721322b507b452f8a61cf4b29960d66b2b90dda68a8953a0cadfead9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:483-502 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:549-571 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:497-519 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac37b34e8db14dfc84fae90d065760a866e9172ab22fffb7443a9a75d047a32c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/diffusers/models/transformers/transformer_minimax_h3.py:296-311 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:281-296 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b4f3c4b6d27fa72cc4dc166e60f96e8214e50c3f05acd75978bdee12277f90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/diffusers/models/lora.py:40-50 | src/diffusers/models/lora.py:54-64 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/lora.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"450ce3ad0ad323ab2bd99bb8c33e4cdea59c3eade2b0086e4264112df7f59243"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/diffusers/models/downsampling.py:264-268 | src/diffusers/models/upsampling.py:324-328 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/downsampling.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64c125fbfdb1289573fda8e415cb3f3c0240f816168405dd2e28f6de934cdc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/diffusers/models/unets/unet_1d_blocks.py:71-85 | src/diffusers/models/unets/unet_1d_blocks.py:136-150 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_1d_blocks.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40b9870b4b916b81792e750789b0574a2a7756dc3d8081ea4944691948828af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:236-243 | src/diffusers/pipelines/ltx2/duration_head.py:68-75 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"38040cdad02ae4c14e017b7614eabd6d36cff01b2faa67d157fa3b01d2bc94cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1243-1264 | src/diffusers/models/autoencoders/autoencoder_rae.py:644-651 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a1529d1fb790ab049fbf364b414a50fbf338f41905f3f75de03121bf2bcc26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/modular_pipelines/flux/before_denoise.py:362-367 | src/diffusers/modular_pipelines/flux2/before_denoise.py:231-237 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/before_denoise.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1d048154653ca228ac0b689caf7c4c4b887a90196e11f4e04047562ecf428c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/loaders/peft.py:608-627 | src/diffusers/loaders/peft.py:630-650 \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":"src/diffusers/loaders/peft.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"f263428419c10b1ec426c17665b0aee2ff4a43d6df3ae23d3c1c4e4866117622"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:765-775 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1221-1231 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1227-1237 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b9a34f9d79ab32f8c36de8ba6eeaccc4821b5ef4e2854d504539334858753c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/diffusers/models/downsampling.py:246-252 | src/diffusers/models/upsampling.py:307-313 \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":"src/diffusers/models/downsampling.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"668f82c2cda3b6ce889625680d882f7bc4293a54a701994c9e85fa263f617e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:216-218 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:232-234 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60e55dc39fe8da27671a993b64f59f60d4ab70e01314b969a95c96f118cbdb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/diffusers/pipelines/prx/pipeline_prx.py:363-374 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:389-404 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d874c75378ff7466682ea3bcf37cc304d6c00f889296637539ce0bda66548a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/diffusers/models/transformers/transformer_flux2.py:310-318 | src/diffusers/models/transformers/transformer_flux3.py:62-70 \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":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a2e5ff45890ae3d4327782267acfe5c3e0063f7d2ef6fdf9edc5dadd8e4a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/diffusers/models/transformers/transformer_kandinsky.py:159-166 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:86-94 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b471d13e54fe65c51671dc2dee875fa9ca7e0685a765f80e6cef3bbd442450b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/modular_pipelines/qwenimage21/encoders.py:776-789 | src/diffusers/modular_pipelines/qwenimage21/encoders.py:865-879 \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":"src/diffusers/modular_pipelines/qwenimage21/encoders.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad24b50749eeb4ceb13b1ecc2c1411fa7fe1616bdf5abc2ca88f0f0875b7f11a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/diffusers/guiders/adaptive_projected_guidance.py:112-131 | src/diffusers/guiders/magnitude_aware_guidance.py:93-109 | src/diffusers/guiders/tangential_classifier_free_guidance.py:90-100 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/adaptive_projected_guidance.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"12da1a8d337dce9d50aff48a7874328a6c9bdbe9d505e5a471d7a6ce27bae853"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/models/attention_processor.py:4183-4186 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:171-174 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4183}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d04922e42f15be65ad2c6dd5953975fa67fcf0e6b45e8ec258908aa0cd89e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/diffusers/models/embeddings.py:1529-1543 | src/diffusers/models/transformers/transformer_lumina2.py:45-57 \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":"src/diffusers/models/embeddings.py"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46a542e6ac82475d62086774c0674baeb7dc62a36eeb7f3200f5ad823d9648e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/diffusers/models/transformers/transformer_sana_wm.py:2877-2881 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:407-411 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":2877}}}],"partialFingerprints":{"codehealthFindingId/v1":"11662ba1055423d27f37fa5cadb8f0485cffe6e8885decf3fdd46a870ef7d4e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/diffusers/pipelines/prx/pipeline_prx.py:444-456 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:202-217 \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":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"139a6a0a61f24f77a09792be007c01a36e846fdeeeafae875ff64660783025f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/diffusers/schedulers/scheduling_ddim_parallel.py:270-280 | src/diffusers/schedulers/scheduling_repaint.py:235-262 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim_parallel.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2f885e7b65827b24536f52028922de5b22ef113a3cf65c1e95041c3f2eaa41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/diffusers/models/autoencoders/autoencoder_dc.py:550-570 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1134-1156 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_dc.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b5c6c2471a33dda84850e57a3c6f3b6c89be9581622f2d7847ecdd2b273d92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:294-296 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:301-303 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:297-299 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"6265f8aa3354142e617a16302c44b3fd27a8b2f9dce5f1926937fd265339cca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py:418-423 | src/diffusers/models/autoencoders/mmaudio_vocoder.py:148-151 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecaeaad6d786223df10759e8e16c08f03fa01f148b0c81e056e99c52c3a0470"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): src/diffusers/models/modeling_utils.py:332-345 | src/diffusers/models/modeling_utils.py:367-376 | src/diffusers/models/modeling_utils.py:394-403 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe8b80a04fcc257d22de46c32244c7045cce9c9c104701827696cacc3391319"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/diffusers/models/transformers/transformer_kandinsky6.py:86-88 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:85-87 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:49-51 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"094e0ae3c798477b3774273e80911780f21dcf4173327bc3ca8b3eafef9b6acf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): examples/research_projects/anytext/ocr_recog/RecSVTR.py:77-86 | src/diffusers/models/transformers/transformer_sana_wm.py:53-61 \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":"examples/research_projects/anytext/ocr_recog/RecSVTR.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f99dbc7206cc35eb61103bfb08f79a603009669ee75b6454e35761983998cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): src/diffusers/loaders/single_file.py:208-216 | src/diffusers/models/modeling_utils.py:2011-2016 | src/diffusers/modular_pipelines/modular_pipeline.py:408-413 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"3118552f63b3a28294a57eaebe803fcadd9ccd7206e1c796d246e3e5a567cd46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): src/diffusers/models/transformers/transformer_kandinsky6.py:380-385 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:377-382 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:357-364 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"c415f2c55940b3bb8a66e4340b84ccb2fc08fbb567925c44e0b5c7c5dd6b0c48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py:55-64 | src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py:183-187 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64293834c147b44ee1bd1fe39b15c441400bed6393e32a730609868650ae70e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/modular_pipelines/qwenimage21/decoders.py:31-34 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:422-426 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage21/decoders.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d942a9b2b9e69a7ca127ae8c9c1e84a1fc92364b014f99cde575ba9eb2293e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:148-152 | src/diffusers/modular_pipelines/flux3/before_denoise.py:170-180 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c6244c56bcf6b8545eae8dfaaff7b920f8077ac022b29bd147d1deaed0d737"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:43-47 | src/diffusers/models/autoencoders/minimax_music3_vocoder.py:31-34 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bad9bb09cccbd4e30f6e6a13ec7bc56ea5218af77760052ff47455c2059dca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:516-524 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:504-510 \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":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc78d72a6ec5914aeb557ed194574029e180c7c0a61b206f8b182e869bcfb0ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/models/transformers/transformer_anyflow.py:45-48 | src/diffusers/models/transformers/transformer_anyflow_far.py:48-51 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0834ab5be5f89b3feb71d1891f37eee6f2c3e62b17735ec774ea2b3ddc7a047b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/diffusers/models/transformers/transformer_cosmos.py:86-92 | src/diffusers/models/transformers/transformer_cosmos.py:116-126 \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":"src/diffusers/models/transformers/transformer_cosmos.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb90317a5aa4f66b10c14d19116511b08209b887905a1dfd23091edc52d52588"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:117-128 | src/diffusers/models/transformers/transformer_qwenimage.py:176-182 \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":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47b0efb4dbfdffc36f2eab7490cfe53c0389614036238551200f9aa3e8fcfab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): src/diffusers/modular_pipelines/flux/before_denoise.py:489-506 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:443-463 | src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:458-465 | src/diffusers/modular_pipelines/z_image/before_denoise.py:629-637 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/before_denoise.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0eec1098384114a9a86246884251a487dbd5cd65ba2ab8379b44d7920c249e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 21\u002B corresponding lines): src/diffusers/loaders/lora_base.py:527-547 | src/diffusers/loaders/lora_base.py:814-841 | src/diffusers/loaders/lora_base.py:844-871 | src/diffusers/loaders/lora_base.py:874-909 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac89c15bb37f10fa05deefe37887b628f60b73a2995fc584c04146c76c7d876"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/diffusers/models/transformers/transformer_kandinsky.py:406-410 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:258-266 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecf8821ae5acd7d337f5471e6dd6dd90248be31a4dcfd18a43be0d3c16bbf28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/diffusers/loaders/single_file_utils.py:1615-1629 | src/diffusers/loaders/single_file_utils.py:2220-2231 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1615}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca262dafd8716b3b69505cf2bfb2b13a5329feac0c058014e7f45e290cea3d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/diffusers/models/autoencoders/autoencoder_asym_kl.py:161-188 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1545-1576 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_asym_kl.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6ed7a5ef38173e9f39a1671f69c8fc76c37a2253fee57d1225ac12c6ade7d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py:163-167 | src/diffusers/models/autoencoders/mmaudio_vocoder.py:79-81 | src/diffusers/pipelines/ltx2/vocoder.py:83-87 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85cbe305ca623cbf032f2c8ee75e225ae67d65265cb1c36d1c8755e721b5a65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:474-486 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:366-375 \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":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd4a28ccc3a720d6c493c3c195912c9e0d425354b8eab0aa52aa8263aa44da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/diffusers/modular_pipelines/wan/encoders.py:415-429 | src/diffusers/modular_pipelines/wan/encoders.py:462-477 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"6440009d4856fcbeb832197f37901f0ca17a35e5dbb5e65e3d028d30c54a23d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/pipelines/sana_wm/refiner.py:487-498 | src/diffusers/pipelines/sana_wm/refiner.py:509-511 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_wm/refiner.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa41731ca3e52c406331fa98ddf19ab67c56daee96d595b54b435a95f089ee56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/diffusers/guiders/classifier_free_zero_star_guidance.py:157-164 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:79-87 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/classifier_free_zero_star_guidance.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3b18aced3433a149536f33ae326a25d84dcb278ea83b2296cefb1cb08319c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:148-151 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:764-767 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3554833ff57d29b87fe35af41aab019689be900d57e96bd40b838c7aa6782adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): src/diffusers/models/normalization.py:348-351 | src/diffusers/models/transformers/auraflow_transformer_2d.py:140-143 | src/diffusers/models/transformers/transformer_cogview4.py:611-614 | src/diffusers/models/transformers/transformer_glm_image.py:497-500 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41bc262888e4fc316e1e1113c78c94441ce3012f4f8a12d1a5e5b04593f6571"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:526-531 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:568-576 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bebddadb4ff2ad6dd31c6d5760d88697732bd304a23b87b8f9fb300d452688"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:241-264 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:241-264 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"716d6f0d4f750b918a0e0d11102cc3bb4c3f782379a9fc90a88e2f38569b575e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:187-189 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:801-803 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"1991d3c0561f87732f096b96d2e28d31e3f4b9fadd4d56b564ca8d49da437401"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): src/diffusers/models/normalization.py:578-580 | src/diffusers/models/transformers/transformer_longcat_audio_dit.py:106-108 | src/diffusers/models/unets/unet_stable_cascade.py:88-90 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_common.py:55-57 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc53122c96bf794bf9fb3d9a355d112b844c9d296e358e5cc6ef4cb9a587353"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/models/transformers/transformer_prx.py:294-299 | src/diffusers/models/transformers/transformer_hidream_image.py:120-125 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_prx.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"a085b09db40f50f3e5192b65d2639c26e21e1ccba7f0b91494fbcf90260a7894"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): src/diffusers/modular_pipelines/cosmos/denoise.py:57-62 | src/diffusers/modular_pipelines/cosmos/denoise.py:103-108 | src/diffusers/modular_pipelines/cosmos/denoise.py:151-156 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/denoise.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e896df349ddce86e0f1d44af5c18c360c05bc95c6571641d16d477b27bd61a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): src/diffusers/models/transformers/transformer_bria_fibo2.py:493-498 | src/diffusers/pipelines/krea2/pipeline_krea2.py:358-363 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:304-311 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria_fibo2.py"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"6398931e85b0971d748a556efe07bea37de0831f43c431863477948ed2b6171e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:402-404 | src/diffusers/models/controlnets/controlnet_union.py:76-77 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"7352c20bbd5d41b2fe30751ac27bec29d80ef232988c4526a11e4ca2093fac49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): src/diffusers/models/controlnets/controlnet_z_image.py:161-164 | src/diffusers/models/transformers/transformer_bria_fibo2.py:90-93 | src/diffusers/models/transformers/transformer_ideogram4.py:176-179 | src/diffusers/models/transformers/transformer_z_image.py:173-176 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d9e52af74c1b5d91610358596b8cfd649791b14407ef430e34e7d23d3fddd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/diffusers/models/embeddings.py:1379-1390 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:205-213 | src/diffusers/models/transformers/transformer_nucleusmoe_image.py:131-142 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ce4d96d0874f8b0392449095f7268c0445e44945f2a1daeae71205f91caa0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/modular_pipelines/flux3/prompt_upsampler.py:576-586 | src/diffusers/modular_pipelines/p_h3_image/prompt_upsampler.py:179-188 \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":"src/diffusers/modular_pipelines/flux3/prompt_upsampler.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e992b9b8f57d0b9a88815ce43dcfa70c5d9369d89d247af6a50af71646014b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:528-538 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:632-640 \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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e30e704e6873a96b248c22341c610b374c75490411537b3d1a79b5bc58f838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py:376-382 | src/diffusers/models/transformers/transformer_minimax_music3.py:133-138 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fb75d3a0a30b734ce7d04c1ab5a3c6ca5192fa2afb0ef3c52c56e6ee951a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:101-114 | src/diffusers/models/transformers/transformer_omnigen.py:267-280 \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":"src/diffusers/models/condition_embedders/condition_embedder_ace_step.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdb54be1599a897eea941b95e678951d5f28f13559be842fb595810b38557e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/diffusers/models/downsampling.py:171-177 | src/diffusers/models/upsampling.py:203-209 \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":"src/diffusers/models/downsampling.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da03a8869f87b2218c36f9200e08b9f841288e37fe7ec3150e5b37ca1740eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/models/transformers/ace_step_transformer.py:139-142 | src/diffusers/models/transformers/transformer_ernie_image.py:232-236 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/ace_step_transformer.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57e12f5ff13091c0451592e5f137e80cd7e0ec4fa9be0995c934526a92b4b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:42-44 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:56-58 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e7722b3d8578ecff623cb302108bf194b9edcd2659b719d49014f2c8c157ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/pipelines/pipeline_utils.py:625-636 | src/diffusers/pipelines/pipeline_utils.py:2076-2081 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee019bd11f9731624755f97811bea31f718895b13d550612db6662b674d569bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/diffusers/utils/export_utils.py:38-49 | src/diffusers/utils/testing_utils.py:752-763 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/export_utils.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca02873e3e0861718c80528f7db99de79172b065736c0e78a69e2f09c511aa29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): examples/community/ip_adapter_face_id.py:62-68 | src/diffusers/models/embeddings.py:1317-1323 \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":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec22ad23a38be32eb206fa1dcbf70bd51eced55b24be2be0c74063f0717ad18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:238-247 | src/diffusers/models/attention_processor.py:4189-4193 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a5f6d727e0a24cea6dfdb4fc098d2bf8b2d5d849e90876de73e84d9d51b019"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/transformers/transformer_minimax_h3.py:130-132 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:110-112 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd313535cd93fb787e59120a8e958b51484145fbfd4ab1f60a44a079b1134c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 2\u002B corresponding lines): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:173-176 | src/diffusers/models/transformers/transformer_qwenimage.py:227-234 | src/diffusers/models/transformers/transformer_qwenimage.py:351-358 | src/diffusers/models/transformers/transformer_qwenimage21.py:677-678 | src/diffusers/models/transformers/transformer_wan_animate_2.py:32-38 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c043944d6da0d2d6737491c47805346b34225a602e45282a7ad9e6ed1d520be4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:111-120 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:274-284 \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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a3f90ffcab49f462f47dcf35b5708df20e197463955b30e5635dba765e22f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:185-192 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:222-227 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23c87c3129fda23f5ad72cf8ac49262731ae06ad1a8e3c0c26e525aa301ed60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/models/transformers/transformer_flux3.py:330-333 | src/diffusers/models/transformers/transformer_longcat_audio_dit.py:168-171 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux3.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00fddcd84ceea18442f5e0c244048b967624c46d6638b028b6ad2905769e7f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/modular_pipelines/cosmos/encoders.py:85-96 | src/diffusers/modular_pipelines/pan2/encoders.py:280-283 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffbcadd002c926f87db2c64cc1d70c015989d739786c3be47ef3aa77bc143da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:534-537 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:579-585 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c33fb63dfa918a478fd67a8fc88944693e9ba70d7258a9b4d7d2bfa2b8ec7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:48-49 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:63-64 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"611f9eab44cbbf06afec3e439816b95aa3ac503879feac74259af50848264b2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/autoencoders/autoencoder_longcat_audio_dit.py:50-55 | src/diffusers/models/autoencoders/mmaudio_vocoder.py:64-66 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_longcat_audio_dit.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"5207d2c4b072d0c292f07116d28c84803088326800cb4faaa500b0132ff78a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:38-40 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:676-678 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30cb02a15385ee3036436f14d41090bba57cd4ae2d9ba4e047571e37525dd6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:163-166 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:778-781 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c9da4ee9680bcf2299a7eb14cda1db23fdccbf7173e577c4e36d48247086fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): src/diffusers/models/normalization.py:552-560 | src/diffusers/models/transformers/transformer_cosmos3.py:172-176 | src/diffusers/pipelines/kolors/text_encoder.py:98-102 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"32eae978bc91a8aeb886404a96d7e2ac8ef85671d4d8b4adf23ebd9fdce5c986"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): src/diffusers/modular_pipelines/helios/denoise.py:755-766 | src/diffusers/modular_pipelines/kandinsky_s2v/denoise.py:389-394 | src/diffusers/modular_pipelines/wan_animate_2/denoise.py:735-747 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cc2c95bdc4bad6519d7e7e182aa5bedc2ce51dbcc2b4176b13dbe8e518b428"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:193-202 | src/diffusers/modular_pipelines/krea2/denoise.py:236-241 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2686eb89ae5881778ee07e110836a667d4e9fb6734f6df10f199efbdaf3028"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/modular_pipelines/qwenimage/denoise.py:98-100 | src/diffusers/modular_pipelines/qwenimage21/denoise.py:117-119 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/denoise.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d253e6efe581b4d9a1cdf86c25e5a6107b321c0520a40729de409cf057c27f6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/pipelines/llada2/pipeline_llada2.py:89-92 | src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py:84-87 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/llada2/pipeline_llada2.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba05cc74623659a19c21141f109c043f251ea93d9985c5ec8d520c32dd68343"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/quantizers/quantization_config.py:66-95 | src/diffusers/quantizers/quantization_config.py:148-167 \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":"src/diffusers/quantizers/quantization_config.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"160bb8b27f7902ea1d08ef17699f1324504dfd61e8ce0440542c25203a07a43f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/guiders/perturbed_attention_guidance.py:160-163 | src/diffusers/guiders/skip_layer_guidance.py:158-161 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/perturbed_attention_guidance.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"173063c3c3afd4c4f6d72775c910e719e56f7c6939590e5a4e0d2995f283cd4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/autoencoders/autoencoder_same.py:137-139 | src/diffusers/models/transformers/transformer_stable_audio3.py:106-108 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_same.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"1939f279111ab55754f423d60a32484af24761f84901a37702895eae1abaff04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): src/diffusers/models/transformers/transformer_hunyuan_video.py:191-194 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:169-172 | src/diffusers/models/transformers/transformer_hunyuanimage.py:211-214 | src/diffusers/models/transformers/transformer_motif_video.py:416-419 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"016e8b0fd8d744630661b5223d78cbf3de363be1d814f81be9b280feac88ac4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/diffusers/quantizers/bitsandbytes/utils.py:117-155 | src/diffusers/quantizers/bitsandbytes/utils.py:290-304 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/bitsandbytes/utils.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7020d2e09092ad168603a02dc4a3323f6a47fa2a689de15091558eab9e3e4cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/diffusers/models/autoencoders/autoencoder_dc.py:709-724 | src/diffusers/models/autoencoders/autoencoder_rae.py:685-702 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_dc.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1f04d48ae8cc9f8ef8688a35be364fd80bc2345dd36ab86601662e4f443861"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:102-112 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:266-276 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab96b64f166aae5d9334a6dc85390c8162d1e9e79738fe63ca549421713587d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:610-620 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:748-758 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"278cf2fe65629936082e15da92ef8bb0c911c2c1d3387bd75183a962676b5196"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/diffusers/models/normalization.py:264-266 | src/diffusers/models/transformers/transformer_ltx2.py:140-142 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:123-125 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"573319fba38f5b67fb8d304994e3efc409a1900647960b3b50c1d89ca7587975"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/diffusers/models/transformers/transformer_qwenimage21.py:205-209 | src/diffusers/models/transformers/transformer_omnigen.py:35-39 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_qwenimage21.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85a99859db26ca4d2305a437b30dd67983d43527ece1be74e2d138c6bf6821c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/diffusers/models/autoencoders/autoencoder_dc.py:573-580 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:770-777 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_dc.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"2826447aba20760f8c22a51dbff5927da1136104bb1f7a4950de21f1ee017780"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:674-697 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:795-818 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"93580729561bffbd6d71c5224b86fe083c0b05c800d42d18b2d9bca266175c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): src/diffusers/models/normalization.py:573-575 | src/diffusers/models/transformers/transformer_longcat_audio_dit.py:101-103 | src/diffusers/models/unets/unet_stable_cascade.py:83-85 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_common.py:50-52 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"906636135a9c6a265874d19667033c8e3c97aa34d0a652afe2f4d7c572a2ad29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/diffusers/models/transformers/transformer_hunyuan_video.py:169-172 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:147-150 | src/diffusers/models/transformers/transformer_motif_video.py:396-399 \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":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce88009833b44f288e0ff5de10aa21ce54f5eab6f15c745898c9ceb87881daf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/transformers/transformer_joyimage.py:79-81 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:72-74 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed992d86bb37c9c20e049ec024f32dc5dd3b85397d7027a07bd4b8f6b02d5856"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/autoencoders/autoencoder_same.py:87-89 | src/diffusers/models/transformers/transformer_stable_audio3.py:112-114 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_same.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6da63981ba71dce1c5db478e9549446163d5f1bcfe0e5f4c9178d765e41aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/diffusers/models/transformers/transformer_anyflow.py:324-333 | src/diffusers/models/transformers/transformer_anyflow_far.py:637-647 \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":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a750da18de6cdf43383518e2a35d9f0a701f73dd729830d22ad6e4903ad6d0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/diffusers/models/transformers/transformer_kandinsky.py:395-398 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:155-158 | src/diffusers/models/transformers/transformer_prx.py:318-321 \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":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb72fb1257fff60c746548cc68c8bdbf6dff428d2873eace2905fabe18e7b7a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/modular_pipelines/minimax_h3/modular_pipeline.py:226-229 | src/diffusers/modular_pipelines/pika_h3_flex/modular_pipeline.py:290-293 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/modular_pipeline.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a3d5ca20186274d1def63e4e9d112d71393df2011e0648eb1ee0b49f02bf19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:130-142 | src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py:120-131 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:118-127 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"419970a52c9d0b2b57178b82b33ad048cbb4bf4dcb4e817d476dad2fa28e6795"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:157-159 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:161-163 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:157-159 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"7030efa6aff1dc91bc65643cb1f78f90c18f92fb4078bd22718c0e0fe7810401"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:43-44 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:681-682 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c15abaae287adbe25d61981761631750f5d6a7ccdc032b61b23da8027821ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_same.py:132-134 | src/diffusers/models/condition_embedders/condition_embedder_anima.py:42-46 | src/diffusers/models/transformers/transformer_cosmos3.py:132-135 | src/diffusers/models/transformers/transformer_stable_audio3.py:99-103 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_same.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdd3cce04f47976ab195843328bb91faff17f521e643cd415ea2aaefea92a75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/diffusers/schedulers/scheduling_consistency_models.py:137-159 | src/diffusers/schedulers/scheduling_heun_discrete.py:266-285 \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":"src/diffusers/schedulers/scheduling_consistency_models.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f42e1ec33cfa751e4f2cfd6cf24ab9ae403aea3a9cd9f749aa1ce5a8afba91f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/schedulers/scheduling_discrete_ddim.py:96-99 | src/diffusers/schedulers/scheduling_entropy_bound.py:88-91 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_discrete_ddim.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad7eb4f549d9c475ad2cb90e3d236dbbecf2fb75bde3fa2e7155595c8a6c4fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): examples/research_projects/anytext/ocr_recog/RecSVTR.py:89-94 | src/diffusers/models/transformers/transformer_sana_wm.py:64-69 \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":"examples/research_projects/anytext/ocr_recog/RecSVTR.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"46cdc8b724a26cfa7ef588437574f4ede1a6ef10577b5ce036c95ce5cfadb039"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:319-327 | src/diffusers/training_utils.py:843-855 \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":"examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b12e2a7f881b826002a88d8b5a7f44f08077c5e81855338b7c6fe488580a49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): scripts/convert_sd3_to_diffusers.py:25-31 | src/diffusers/loaders/single_file_utils.py:3562-3567 \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":"scripts/convert_sd3_to_diffusers.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4e406ec16056e3819bf45426eb4f19104f020e4b0b2b2bf48e1960328fe594"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/diffusers/models/transformers/transformer_cosmos3.py:126-127 | src/diffusers/models/transformers/transformer_ideogram4.py:46-47 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cosmos3.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e698ea5efa1cf46a22e586c5a31ee851441277b23854789049c1854702a9432"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:239-242 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:242-245 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a657dcbfbe79a257a2f8a25692da2381b4090398a5d23d9cb4aed223a1ba70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:210-223 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:235-238 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9bd328602f80c75b141dae1b123c7abb67dfb6d4678153dae2322704909079"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): scripts/convert_flux2_to_diffusers.py:107-109 | src/diffusers/loaders/single_file_utils.py:1129-1131 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_flux2_to_diffusers.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"262420d9a3c519673786c31542416a1b299217ab7a73805ad0fa6f49a413c35f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/transformers/transformer_minimax_h3.py:147-149 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:128-130 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd32001b0f2b37c0d03fc6fea3106abf7413351e32dfde7f35c7acb5eed47f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 3\u002B corresponding lines): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:722-724 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:768-770 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1174-1176 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:636-638 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:790-792 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:720-722 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b05b5926bfbd957cc9d49ff1b343d81f4a873f317a623cc391670f33a5d1b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/diffusers/models/autoencoders/autoencoder_asym_kl.py:113-120 | src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py:222-243 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_asym_kl.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d435595544b223d0a75e678fac66f748036a4239a109c53843f188b1d0ad9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:52-55 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:53-56 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:49-52 \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":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5516cf25dd9889e0a2e82ea6b72a6a76d70779d950ea16cebc7aa8851b664f20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py:141-143 | src/diffusers/models/autoencoders/autoencoder_longcat_audio_dit.py:44-47 | src/diffusers/models/autoencoders/mmaudio_vocoder.py:59-61 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9c65663ad011647e108e38130dea8d9e6e019699fbd4df2074df23b3168b66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:156-157 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:772-773 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9c0a4fad662a65ac2e53a9c0474523faa481d986fe344b4cccd877f4008ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:180-182 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:794-796 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5af7752b2717373cbbd15a607601001a4638fefed5a2ffeed774af797978933"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/models/transformers/hunyuan_transformer_2d.py:45-48 | src/diffusers/models/transformers/transformer_mochi.py:99-103 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/hunyuan_transformer_2d.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53395db77792d09a9cb51c223db453b41621b00c5d3b86f4c0bb622d88c9cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/diffusers/models/transformers/transformer_kandinsky.py:40-41 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:44-45 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0354fd0428f507e1854ee6f24df2278b660954d149422ac0056cafa4bd1e04d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/transformers/transformer_kandinsky.py:177-179 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:109-111 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc90574be9fa0543e6821a38881a7badefab006caa0c22b4a69817e787633230"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/unets/unet_stable_cascade.py:35-37 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_common.py:12-14 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4dd05b942c9c49171a2d40167a6ec087cc1455a3e5f2f01dcba9566753a8c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): src/diffusers/modular_pipelines/flux2/before_denoise.py:264-267 | src/diffusers/pipelines/flux2/pipeline_flux2.py:474-481 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:390-397 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:451-458 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:394-401 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f00d0c0c99197480a0276a218caea2e4421353cfd7270d1c9f13abec20ab5f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/diffusers/schedulers/scheduling_dpmsolver_sde.py:353-356 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:231-234 | src/diffusers/schedulers/scheduling_heun_discrete.py:231-234 \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":"src/diffusers/schedulers/scheduling_dpmsolver_sde.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"012a256e01a3ef17600256a38038a56c87ae68bb548343ccd88bb4c9f3ccb187"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:1196-1199 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:665-668 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a665c4f2cc1ff527abeb4cb7122629ab4e12459c58f01c62a8b53d26b86d6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/diffusers/models/auto_model.py:31-36 | src/diffusers/pipelines/auto_pipeline.py:397-401 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/auto_model.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0457bc811d199e792b5238e7633238b1393af437d13285d0f42c3d9bb9837b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/models/downsampling.py:315-318 | src/diffusers/models/upsampling.py:374-377 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/downsampling.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"872451136b0877f97be21337d82aa01690a3c8bba1638c17a75de0a2ea03106c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/models/transformers/transformer_ltx2.py:986-989 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:571-574 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5163279d86ce7b889c4ff6e78fa259af5968adbdeab6202e6789d3e804c7ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 2\u002B corresponding lines): src/diffusers/modular_pipelines/echo/encoders.py:120-121 | src/diffusers/modular_pipelines/ltx/encoders.py:97-100 | src/diffusers/modular_pipelines/ltx2/encoders.py:543-544 | src/diffusers/modular_pipelines/wan/encoders.py:205-208 | src/diffusers/modular_pipelines/z_image/encoders.py:175-178 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/echo/encoders.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"951d453e8a677a15b58f7c9e42c3fd72edfe53519e9ed9af6eff188a2a11cb3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 3\u002B corresponding lines): src/diffusers/modular_pipelines/ltx2/before_denoise.py:173-175 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:708-710 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:817-819 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:635-637 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:576-578 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:643-645 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:797-799 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:769-771 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28489db6b9666b6cc6d3a1399fd3cc8073ffccba24df17b2ca61a44c12156c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 3\u002B corresponding lines): src/diffusers/modular_pipelines/ltx2/decoders.py:66-68 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:714-716 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:824-826 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:642-644 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:583-585 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:650-652 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:804-806 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:776-778 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/decoders.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"55010e00e8e2b5d792d5521e5acb7e2a5400f1f7c7dfd6804978e02a0e8e87ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kandinsky6_sr.py:162-164 | src/diffusers/models/latent_upscaler/latent_upscaler_kandinsky6_sr.py:49-51 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kandinsky6_sr.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"069431d8454043db7274979ec38647c5d9505c07f4ef48136d308014a941335a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:51-59 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:93-95 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb454a5d5052401aab0c82b6e5686bb1747cbb80fd6cfc2d758abd462bbcd193"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:169-170 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:784-785 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"820f991adbefed048fcb438d67af19e96e87361ac50809b554f3b2eabe44255a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/transformers/transformer_flux2.py:296-298 | src/diffusers/models/transformers/transformer_flux3.py:47-49 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a7a0e1b88a66d7961a101d64eca8d7ff16b24e813f97cc4a24bb5891f73bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:207-209 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:194-196 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"be289c509437b2df2452b0063155579ebabbf02faae3207c8f5a29621b4dda77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:426-428 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:438-440 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73ab9ba4ffe174de19fb6e245aaa6a786d32225dcbd0c4e73fb309c959814f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:667-669 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:694-696 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d91cc2c5c92b1dcfe3fdddb7233d151e5d83efe1f298fb4bee5b62ae1157bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 4\u002B corresponding lines): src/diffusers/modular_pipelines/flux/modular_pipeline.py:46-49 | src/diffusers/modular_pipelines/flux2/modular_pipeline.py:46-49 | src/diffusers/modular_pipelines/flux3/modular_pipeline.py:33-36 | src/diffusers/modular_pipelines/ideogram4/modular_pipeline.py:42-45 | src/diffusers/modular_pipelines/stable_diffusion_3/modular_pipeline.py:59-62 | src/diffusers/modular_pipelines/stable_diffusion_xl/modular_pipeline.py:69-72 | src/diffusers/modular_pipelines/z_image/modular_pipeline.py:52-55 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/modular_pipeline.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6c2c8d6766d29d2be2ab348586d3dc9e7dbd8e6f893763e59f708608e46967"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py:26-28 | src/diffusers/pipelines/stable_diffusion/safety_checker.py:27-29 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f5a89ba228a6818556ec75baf24b5e550c1555f9f5004024fb057fe1ebfa56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): utils/check_forward_call_docstrings.py:97-100 | utils/check_return_annotations.py:71-74 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_forward_call_docstrings.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"acca7f44b39b994f55ce5febc06bdd4fd03e927b2ab72c78715fc52ecc4c7ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/community/ip_adapter_face_id.py:71-73 | src/diffusers/models/embeddings.py:1326-1328 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f89425b1d1e83d5776d7160201bafa087d5d68027338a23f628a18374bb034"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:407-410 | src/diffusers/models/controlnets/controlnet_union.py:80-82 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c8187de895af5d1542f73d99289039dff229c1486f7c7273c1ba925f06a954"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:208-208 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:73-73 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:103-103 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0b943cf123cc6d054c36ef78126e0d03ac684955f55143535b89fc23d4dff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 3\u002B corresponding lines): scripts/convert_aura_flow_to_diffusers.py:26-28 | scripts/convert_cogview3_to_diffusers.py:57-59 | scripts/convert_mochi_to_diffusers.py:32-34 | scripts/convert_sd3_to_diffusers.py:37-39 | src/diffusers/loaders/single_file_utils.py:1991-1993 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_aura_flow_to_diffusers.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc3130894f012ef978a5f74acbe8948aecc5106d605e0a695b8bb5b453c54dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/diffusers/models/autoencoders/autoencoder_kandinsky6_sr.py:167-168 | src/diffusers/models/latent_upscaler/latent_upscaler_kandinsky6_sr.py:54-55 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kandinsky6_sr.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a5f4804a724f3d8d5073dd4ca934443c725208ff8933d8f506155d56a1257c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/models/transformers/transformer_minimax_h3.py:121-123 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:101-103 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46cdb93dd3ccab533e7ee74b84cd2c9a3e95e72219bca1cd67fdaca3027647a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/diffusers/models/transformers/transformer_minimax_h3.py:279-281 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:263-265 | src/diffusers/models/transformers/transformer_pan2.py:239-241 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a69e94a49a42487e2fc071498d5480f7bc3d7c676ed88f5a3d713a917f9b3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/modular_pipelines/minimax_h3_image/modular_pipeline.py:64-66 | src/diffusers/modular_pipelines/p_h3_image/modular_pipeline.py:74-76 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3_image/modular_pipeline.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d1ae6f51a6dbafb445d87a192b696ae429364f21e9a6617c5a6f4821885edf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:61-64 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:73-76 | src/diffusers/pipelines/wan/pipeline_wan.py:79-82 \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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"8922f94d53d5f31087338abd51d83e8c0721ebc8f966b763229484503ccd8691"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): src/diffusers/models/transformers/transformer_kandinsky.py:188-190 | src/diffusers/models/transformers/transformer_kandinsky6.py:244-246 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:267-269 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:124-126 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de644dcc819d18ec313d6293b2d14d147a0e229c3185b5ffdf76f7499e37006"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py:85-88 | src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py:197-200 | src/diffusers/modular_pipelines/qwenimage21/modular_pipeline.py:34-37 \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":"src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"811a74b8b7236c3bec3d15a875d3a92ea7e60171c20ee5ab9c4ee9194d61e2b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/modular_pipelines/hunyuan_video1_5/modular_pipeline.py:87-89 | src/diffusers/modular_pipelines/ltx/modular_pipeline.py:92-94 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/hunyuan_video1_5/modular_pipeline.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"771e59cdf2f8ff9b613ab62bc75e9c2d24da9dc66d2f0b82ff8c735f1cecd00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/diffusers/models/transformers/transformer_kandinsky6.py:263-265 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:287-289 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:144-146 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"5121d9d72c5c1106657a5505b658935634e573d8be9e43f144116f3343435f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/modular_pipelines/anima/modular_pipeline.py:41-44 | src/diffusers/modular_pipelines/krea2/modular_pipeline.py:41-44 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/modular_pipeline.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"975a2a8778f2957e28a3a99f8a426c3815cffbf406bd5d0bf87be227d99554f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/diffusers/modular_pipelines/ideogram4/before_denoise.py:82-85 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:109-112 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ideogram4/before_denoise.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda457e35fb4a6068cf94082f4be10cdf5be4e1f6c67098558786384bac01728"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:893-907 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:362-370 \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":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecc97285e1729db2bfd5a58db52cad9010021bcee80d246e65984eb1d6e67e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:980-1000 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:442-456 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5eb77ffabf142bc287bb675818c87969f4b2773b05a5c53f783f0bb32e3cd71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:385-387 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:549-551 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ff57da2635c1bb263ed9043bcbe200aa29848005d9bbc50d04504eaeca873b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:53-54 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:69-70 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2679fa290ad3e948e79ec935d485b38b67903e6a924a39399a33988a1caa60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:58-59 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:75-76 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6548815215801b1721fff732a72314fb37bb82c219fb9ec27e1edf90906b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (187\u2013235 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:978-1203 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1398-1629 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1830-2016 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1034-1268 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:978\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"452b009f7f09681bc24444498c1700bb05e1b9089080c46bd112e3a187e5a280"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (103\u2013213 lines \u00D7 23): examples/community/matryoshka.py:4278-4381 | examples/community/pipeline_controlnet_xl_kolors.py:821-977 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:995-1163 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1163-1375 | examples/community/pipeline_kolors_inpainting.py:1121-1311 | examples/community/stable_diffusion_xl_controlnet_reference.py:375-564 | examples/community/stable_diffusion_xl_reference.py:317-499 | examples/research_projects/anytext/anytext.py:1970-2096 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:940-1060 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:938-1058 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1029-1167 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1214-1405 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1043-1212 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1122-1302 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1194-1390 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1114-1298 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:807-910 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:885-987 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:912-1068 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:196-316 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:863-1029 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1018-1199 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1128-1332 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 23 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 23 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:4278\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":4278}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e40c8c4c8f37bac5f231cd91f782578f9150cf34b120c9d53db24dec74301f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (172\u2013180 lines \u00D7 3): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:367-546 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:379-552 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:352-523 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 409 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:557\u0060 calls \u0060reshape\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:551\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bfc9a66584d612bd47cf79f0c5fe38b86412d2acc23606e42a4f27421bbc14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (227 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:908-1134 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:850-1076 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 1105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d58a94089e7eb3cc8323627192e609f3925ce239f44a20676f9f5b30b2ea07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (133\u2013166 lines \u00D7 2): examples/community/pipeline_flux_differential_img2img.py:708-840 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:814-979 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_inpaint.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 987 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:708\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060DiffusionPipeline\u0060 names \u0060..pipeline_utils\u0060 in one and \u0060diffusers.pipelines.pipeline_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"897240ba7ac202abc3047537f0b457d99972558d0ababac47bb7d239415833d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (134\u2013162 lines \u00D7 3): examples/community/pipeline_flux_kontext_multiple_images.py:851-985 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:730-863 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:923-1084 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:851\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060DiffusionPipeline\u0060 names \u0060..pipeline_utils\u0060 in one and \u0060diffusers.pipelines.pipeline_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"d981a18f133fd1f725a032fa6de78063fa6ca448b169b1856961b37f6e2ede33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (159 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1248-1406 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:1161-1319 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 1105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"384ea8dd3a7e8a97b414846b0ec7fe21e4695d1739ddb0723cbd61af3a2201f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (92\u2013155 lines \u00D7 5): examples/community/masked_stable_diffusion_xl_img2img.py:90-181 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:978-1132 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:797-897 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:734-836 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:657-767 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 586 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:90\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":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb266b8365ec9710112c6366ba10dffaffefccb685d7833219abb3d6e33e95eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (137\u2013153 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1086-1222 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1115-1267 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 2039 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"8324b139341d908c31bc0a0d3ea53af156231288fb35f97c0b2411cc437a7ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (100\u2013145 lines \u00D7 2): examples/community/pipeline_flux_semantic_guidance.py:825-969 | src/diffusers/pipelines/flux/pipeline_flux_control.py:607-706 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 as WHOLE FILES: this scan already matched 56 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_semantic_guidance.py:825\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060DiffusionPipeline\u0060 names \u0060..pipeline_utils\u0060 in one and \u0060diffusers.pipelines.pipeline_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6efcf789e5df88c2eb3c1d48ff512e0e05e74e6c3dd4a570cc96830a6fdea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (187 lines \u00D7 2): src/diffusers/pipelines/helios/pipeline_helios.py:595-781 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:671-857 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios.py\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/helios/pipeline_helios.py:595\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8eff06409a753eee416dce25e72bcc1271e987da2fb2182f7dcbd12e7e30201"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (143 lines \u00D7 4): examples/community/pipeline_kolors_differential_img2img.py:819-977 | src/diffusers/pipelines/kolors/pipeline_kolors.py:683-825 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:818-976 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:703-851 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_kolors_differential_img2img.py:819\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060KolorsPipelineOutput\u0060 names \u0060..kolors.pipeline_output\u0060 in one and \u0060.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79395fc97cbdcf3524200ef0f8b2b5ba1a4e56dcc5483891fa3e7931d89de7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (87\u2013143 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:568-654 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:975-1117 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 638 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:568\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a55d555177561ca521a19f589f17bd643c9a3bc71375b845091f8821ad8a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (119\u2013141 lines \u00D7 4): examples/community/pipeline_hunyuandit_differential_img2img.py:770-910 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:666-796 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:600-718 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:616-740 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:770\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":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2fd57bbf9b1f3d6b1f2fb0ab839ac2c3ed1bb7ad21ced738d5aa3eca3d1427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (145 lines \u00D7 3): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:428-572 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:474-618 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:514-658 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 770 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:428\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd81548267cb9c26a625e0f2c8a62f8d85b05e8147a44b579f58413f4eb499b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (111\u2013138 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:749-859 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:817-954 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:749\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5dde202434f60e42281ea65fa3528260db3e7e0d081a6782aeca6efa6fd8e6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (132\u2013137 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:769-900 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:623-759 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:864-997 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:769\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060StableDiffusion3PipelineOutput\u0060 names \u0060..stable_diffusion_3.pipeline_output\u0060 in one and \u0060.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90043dcc91bc179eb4970eee90028e55a54d6f23741fab6f927cbfd9dd0cd31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (108\u2013136 lines \u00D7 4): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:896-1031 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:727-834 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:712-839 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:716-833 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_fill.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 432 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:896\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060StableDiffusion3PipelineOutput\u0060 names \u0060..stable_diffusion_3.pipeline_output\u0060 in one and \u0060.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf58385ee724addf717fe93d57866d293c145ed584699838a161edee2624fe59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (133\u2013136 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:514-649 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:470-602 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 730 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:514\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"321bec41fcf936d869d455bc94b75e70a2eab3fe98bbb8bf8e2d20042283b012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (133\u2013135 lines \u00D7 4): src/diffusers/pipelines/auto_pipeline.py:406-538 | src/diffusers/pipelines/auto_pipeline.py:704-837 | src/diffusers/pipelines/auto_pipeline.py:1018-1150 | src/diffusers/pipelines/auto_pipeline.py:1326-1460 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/auto_pipeline.py:406\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":"src/diffusers/pipelines/auto_pipeline.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"2850aee26c390d6b02a5245d746137ce911563a18af8029178197db1ed9338e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (122\u2013134 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_sana.py:634-755 | src/diffusers/pipelines/sana/pipeline_sana.py:712-833 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:763-896 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 791 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:634\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc91e2be9a01a5aa9a04f48d7383a261b425d168af466aceabf8f5aedaf3f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (124\u2013131 lines \u00D7 2): src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:799-929 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:853-976 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:799\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2538d7d1a739ef971218877387d094f09ecc6e917db5b6d120f66ec5128f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (75\u2013130 lines \u00D7 5): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1024-1153 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:714-836 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:667-741 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:541-642 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:607-702 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1024\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"394bb12ad6d898f534bd89d8a3aa068d80e3dd60fb0a65c40fbaeb12ef9dfe32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (149 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:581-729 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:587-735 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.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 22 separate duplicated blocks between them, totalling at least 634 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:581\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4cdd649d61644950be96521e9892477bd6a691f1d8a0f1f8ff751808a39bc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (126\u2013128 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx.py:565-690 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:627-754 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 953 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:565\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dcdfcc0571c5386a1b6620fccbda0057a1f2a0fce75a7f0800f5dd0b0ef6db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68\u2013125 lines \u00D7 6): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:706-778 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:775-848 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:559-626 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:885-1009 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1567-1687 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1084-1187 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:706\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da5a7c88fb5e332cf64aa5ef4284a92c385b9e19c2a68a9722e93ce49b41ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (118\u2013121 lines \u00D7 2): src/diffusers/pipelines/sana_video/pipeline_sana_video.py:752-869 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:780-900 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video.py\u0060 and \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 1092 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video.py:752\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6bd94424c65c337c7ccb5effe67623398830896641d96801ffbfdbcfccc80b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (120 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1684-1803 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1584-1703 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1684\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: \u0060StableDiffusionSafetyChecker\u0060 names \u0060.safety_checker\u0060 in one and \u0060diffusers.pipelines.stable_diffusion.safety_checker\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"2593102734d382345a680ffed96b8baf4e28fde59ddb0a87b0c71d01c155ff6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (147 lines \u00D7 2): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:410-556 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:480-626 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py:410\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a61f95d58f64146812aeccbb1358aae9006a7b9f87d56d38b259d20301fdc5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (109\u2013119 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:662-770 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:781-899 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py\u0060 as WHOLE FILES: this scan already matched 88 separate duplicated blocks between them, totalling at least 1179 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:662\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb35346d896654287b20f7119f4cd7448aa67dc5f0155d7859ec699263ce1f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (117 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1808-1924 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1705-1821 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc295ae672b6a194b8378d279f2e974e571a4115d9a5f71a3ea825e20aa5182c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (116 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:897-1012 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1007-1137 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1047-1208 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1125-1301 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:897\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060StableDiffusionPipelineOutput\u0060 names \u0060..stable_diffusion\u0060 in one and \u0060..stable_diffusion.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"7feab3ce42743a7f91c5ae22dda52f4067e8083db0d00d7a4875978e407faf3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (107\u2013116 lines \u00D7 2): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:598-704 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:668-783 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 833 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint.py:598\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c414ce7dce3a053b896a93467a1c052d68a54375f0dd2bdc0b6d9e61a0993e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (86\u2013115 lines \u00D7 5): examples/community/pipeline_flux_with_cfg.py:632-717 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:699-803 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:677-791 | src/diffusers/pipelines/flux/pipeline_flux.py:632-746 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:510-624 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_with_cfg.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 457 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_with_cfg.py:632\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060DiffusionPipeline\u0060 names \u0060..pipeline_utils\u0060 in one and \u0060diffusers.pipelines.pipeline_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"f368325b7f9ae8e917c9e716abb9a3fe04b8952e36f1d730cb72409c16e4c38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (107\u2013113 lines \u00D7 2): src/diffusers/modular_pipelines/ltx2/before_denoise.py:955-1067 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:1266-1372 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/ltx2/before_denoise.py:1375\u0060 calls \u0060zeros\u0060 and \u0060src/diffusers/modular_pipelines/ltx2/before_denoise.py:1069\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"795ac0ad1326bcf0f75617995c0590ba26d67415829aa18f02096599252d04d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (102\u2013111 lines \u00D7 3): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:432-533 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:428-534 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:461-571 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 306 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:432\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"0028369c6b3a87ec96b91b44bcf4387422bba36b3476364b62df3a8701247e0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (91\u2013110 lines \u00D7 4): examples/community/pipeline_stg_cogvideox.py:594-684 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:531-626 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:625-722 | src/diffusers/pipelines/consisid/pipeline_consisid.py:690-799 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_cogvideox.py:594\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060CogVideoXPipelineOutput\u0060 names \u0060.pipeline_output\u0060 in one and \u0060diffusers.pipelines.cogvideo.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"694e950404d1e0f39dc6d168ac93b80e3e47ef8d158ba97141d67f3c17b5e34f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (103\u2013110 lines \u00D7 2): examples/community/pipeline_z_image_differential_img2img.py:477-586 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:396-498 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 642 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_z_image_differential_img2img.py:477\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060DiffusionPipeline\u0060 names \u0060...pipelines.pipeline_utils\u0060 in one and \u0060diffusers.pipelines.pipeline_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"513ca21e33d45682b315b257070e27e2b4180cb769100d3a30bde812fb67ad2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (96\u2013110 lines \u00D7 2): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:714-823 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:506-601 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_video2video.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 558 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:714\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3f14f7036a1cd4fc477552be9c767d87be4278440bc023b5c588c96c821a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (102\u2013109 lines \u00D7 3): src/diffusers/pipelines/chroma/pipeline_chroma.py:616-721 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:532-640 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:434-535 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 422 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:616\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b9ae76c5cc8ca0878b7cb8c6d30c04be8d29c8437443b671037819709fbb69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (99\u2013109 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:566-664 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:745-853 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:566\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f66fa0c25cfbc1ed8114d1976b305f85cc6e457db97e84978b29d32e7d45e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (95\u2013108 lines \u00D7 3): src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:109-203 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:123-223 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py:140-247 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py\u0060 and \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:109\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc36b47f062b38878b598dfbf73cb7065ff0bc552f964c9bf9f04953352d73a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (107\u2013108 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:259-366 | src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py:210-316 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 194 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:259\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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"20045f1383529c8d01f3c7485e517bc45cd79cce2515052485a26c02a64a5ea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (83\u2013107 lines \u00D7 3): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:871-977 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:381-463 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:456-543 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:871\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18d90aa50fb4a3b6c6c7beb82d93aec6746f4b3f48c2e701eac1476e52ce74b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (90\u2013105 lines \u00D7 3): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:570-674 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:511-607 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:424-513 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 355 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:570\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd6edaa67c7aef8e87ce828101ef383f2a854d46af3ba9df681ff6c7a29c387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (103 lines \u00D7 4): examples/community/pipeline_hunyuandit_differential_img2img.py:360-462 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:291-393 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:263-365 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:273-375 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060DDPMScheduler\u0060 names \u0060...schedulers\u0060 in one and \u0060diffusers.schedulers\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fecffeef321709621e97d4176559ef4b510eba99b444bd91bc51ac28ca6bae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (95\u2013101 lines \u00D7 2): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_combined.py:171-271 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:727-821 \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 \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_combined.py:171\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_combined.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"79cf4850a2038112872790d24d5e2b4eaa1a7d52f6edc623112e8bdc119ffc44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (91\u2013101 lines \u00D7 2): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:226-316 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:472-572 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:472\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"580d6129c993c6f9294ccd8ed2cbdd433e7b4e119ffd51004c678cf755217e1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (96\u2013101 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:604-704 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:660-755 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 1024 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:604\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49de620a696b155524532a82254206e7727ceb1e57e86c00b652ab883fe70ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (86\u2013100 lines \u00D7 5): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:689-774 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:774-868 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:787-882 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:868-967 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:639-729 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 858 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:689\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee12bd4a6cf3af22b192f19515018530781b5f12b110f0df5e37c2384bcd08c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (94\u2013100 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1286-1379 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1175-1274 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1286\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7dfa8fa45d04d3d6e2a6a67198583fcd07a052ffd0f3beab4fa21f50955612a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (100 lines \u00D7 2): src/diffusers/pipelines/motif_video/pipeline_motif_video.py:260-359 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:272-371 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py\u0060 and \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 712 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e60b65ce34486a22f6e6d87682d9cd97e5ff0973fb1074e46c6747217b6f6c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (98 lines \u00D7 9): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:396-493 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:454-551 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:444-541 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:466-563 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:414-511 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:430-527 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:423-520 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:449-546 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:455-552 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 772 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db83c66a0d2e2933257b1fdb26ac2ce0a9dbb63a4558b3247d19e3c00a72d00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (96\u201398 lines \u00D7 2): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:476-571 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:505-602 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:476\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d6eeba38544c566e5c53ecb2c1ad93dd79d2cf609f62f9b3b1d9eb1a73c0dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201397 lines \u00D7 4): examples/community/kohya_hires_fix.py:84-167 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:668-709 | src/diffusers/models/unets/unet_2d_condition.py:995-1078 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1053-1149 \u2014 before extracting anything, compare \u0060examples/community/kohya_hires_fix.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 364 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/kohya_hires_fix.py:84\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/kohya_hires_fix.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b6135bd363c4d1d699534f7051298b26c9ba4f3bebdc97353ab797f9b59b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (97 lines \u00D7 2): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:820-916 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:715-811 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 948 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:820\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee70688f3c9832f6fd262f8d35e66dfd272d1b251acf67b5a1b68cb33f8ea1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (80\u201396 lines \u00D7 6): examples/community/instaflow_one_step.py:522-601 | examples/community/stable_diffusion_ipex.py:583-666 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:535-614 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:598-682 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:636-731 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:513-599 \u2014 before extracting anything, compare \u0060examples/community/instaflow_one_step.py\u0060 and \u0060examples/community/stable_diffusion_ipex.py\u0060 as WHOLE FILES: this scan already matched 45 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/instaflow_one_step.py:522\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060StableDiffusionPipelineOutput\u0060 names \u0060...stable_diffusion\u0060 in one and \u0060...stable_diffusion.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/instaflow_one_step.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9f895a0dfac32ec0917663f533feb24086b4108f46bd4b7d1d01c031966af0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (93\u201396 lines \u00D7 2): examples/community/pipeline_stg_mochi.py:592-684 | src/diffusers/pipelines/mochi/pipeline_mochi.py:470-565 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_mochi.py\u0060 and \u0060src/diffusers/pipelines/mochi/pipeline_mochi.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 799 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_mochi.py:592\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060DiffusionPipeline\u0060 names \u0060..pipeline_utils\u0060 in one and \u0060diffusers.pipelines.pipeline_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3f982fefc0e2bd09000cfc73f81bb6ac1ed478946d412ae1d75582f664e0ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (93 lines \u00D7 3): examples/community/pipeline_animatediff_ipex.py:598-690 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:704-806 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:604-706 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/deprecated/pia/pipeline_pia.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 945 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:598\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060AnimateDiffPipelineOutput\u0060 names \u0060..animatediff.pipeline_output\u0060 in one and \u0060diffusers.pipelines.animatediff.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c6210e91e8db441cd5b2a9ac5cb60231b8071e94ec76eb8a69b7ce7278f1f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (91 lines \u00D7 2): examples/community/pipeline_animatediff_img2video.py:766-856 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:774-876 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_img2video.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_img2video.py:766\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060AnimateDiffPipelineOutput\u0060 names \u0060.pipeline_output\u0060 in one and \u0060diffusers.pipelines.animatediff.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2979fbcb5cbbe8464d65442bc26459165dc974640f59b10ee16afdbada5af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (85\u201391 lines \u00D7 2): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:550-634 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:699-789 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:550\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"c636f995c30b0754168ec641574a1d3b762371d7fd53708778e20f808312ed9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (90\u201391 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:985-1075 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1133-1222 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee43de510424357ef2318a15a3252cbadc33581ff3e536919af14a7cfe18c7c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (90 lines \u00D7 4): examples/community/mod_controlnet_tile_sr_sdxl.py:1292-1415 | examples/community/rerender_a_video.py:627-716 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:752-849 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:944-1053 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:1292\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd24dd4ce19b65d6b3b23c9de233fa3cebf2672a503d6f3f42af9ac0fd1a7463"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (89\u201390 lines \u00D7 2): examples/community/pipeline_zero1to3.py:624-713 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:276-364 \u2014 before extracting anything, compare \u0060examples/community/pipeline_zero1to3.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_zero1to3.py:624\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_zero1to3.py"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"c626b2b279fe231ddefc7f4c9c16c24abc17d15a53d9afb8c307c42771bc5d58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (89 lines \u00D7 9): examples/community/ip_adapter_face_id.py:867-959 | examples/community/latent_consistency_interpolate.py:683-771 | examples/community/pipeline_stable_diffusion_pag.py:1126-1217 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1660-1851 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:599-692 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:731-826 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:781-880 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:831-932 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:665-757 \u2014 before extracting anything, compare \u0060examples/community/ip_adapter_face_id.py\u0060 and \u0060examples/community/latent_consistency_interpolate.py\u0060 as WHOLE FILES: this scan already matched 45 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/ip_adapter_face_id.py:867\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d232b54866233518cdd515c0f5a0ebde977726e032deb83e54a0cfdfaba44e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (169 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1481-1649 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1381-1549 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1481\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"550dd6ac5a476135a258d04217dfade9da264325b733e4ad0a4afd9e80a246f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (86\u201389 lines \u00D7 2): src/diffusers/pipelines/motif_video/pipeline_motif_video.py:520-608 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:648-733 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py\u0060 and \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 712 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e8d08dac1081777d5c0d415cfeccbcba2c2870b9c5704a6a1fe6e7af118e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (73\u201388 lines \u00D7 6): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:235-311 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:311-396 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:149-221 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:201-279 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:357-444 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:422-509 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:235\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b581eda663e78bb330158f9944c0425c6130cbe874553da4bc714eeaf2aacc28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201388 lines \u00D7 3): examples/community/masked_stable_diffusion_img2img.py:49-123 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:585-672 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:605-613 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_img2img.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_img2img.py:49\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060StableDiffusionPipelineOutput\u0060 names \u0060...stable_diffusion\u0060 in one and \u0060diffusers.pipelines.stable_diffusion\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_img2img.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41f570d1c37c6824be68f0ee1bea0ff48e0c16fdac29c5fc2b913dc3989f667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (88 lines \u00D7 3): src/diffusers/pipelines/z_image/pipeline_z_image.py:322-409 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:414-509 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:423-523 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 514 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py:322\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"9340ee407bf1e5cf8ab4f901a97f7f71c5c1f32327deb763be29aeed379b2842"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (87 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:282-368 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:243-329 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:288-374 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:282\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"58713d96d02c4fe84e60209b2dece82e41042bf8c3497ad4e807bdeaa820f03c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (154\u2013155 lines \u00D7 2): examples/community/pipline_flux_fill_controlnet_Inpaint.py:865-1018 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:774-928 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:865\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060FluxPipelineOutput\u0060 names \u0060.pipeline_output\u0060 in one and \u0060diffusers.pipelines.flux.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf28287d9bf0d7d6112be7e4d56ef4f89d3ae61713443724439a7cd30fd19a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (82\u201384 lines \u00D7 4): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:426-509 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:304-386 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:462-543 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:297-378 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c415dbba3a55e2aa80500d5eb20d3b405272f103096ae1e5860810bcb47c626"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (86\u2013104 lines \u00D7 4): scripts/convert_joyimage_edit_to_diffusers.py:115-200 | scripts/convert_skyreelsv2_to_diffusers.py:460-563 | scripts/convert_wan_to_diffusers.py:738-841 | src/diffusers/loaders/single_file_utils.py:3453-3556 \u2014 before extracting anything, compare \u0060scripts/convert_joyimage_edit_to_diffusers.py\u0060 and \u0060scripts/convert_skyreelsv2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_joyimage_edit_to_diffusers.py:115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_joyimage_edit_to_diffusers.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cbd7e7be56e2b868cf8b604f1e111b736172316f87223187aeb378b6257f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (72\u201382 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:235-306 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:456-537 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:697-777 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:235\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:778\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:308\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4ff3f6f006434572cb72d87a72355073b687286c48a08b1d5258c942cc4baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78\u201382 lines \u00D7 2): src/diffusers/pipelines/motif_video/pipeline_motif_video.py:693-774 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:821-898 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py\u0060 and \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 712 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b76a49d18452af8dc46042d41a7537835ad4576a4ca1a974828526c15c699d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (79\u201381 lines \u00D7 3): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:229-307 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:239-319 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:212-292 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 409 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:239\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"1616db347f661e269b44532355963951e7182144bc176eb378e23a30ede410d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (81 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:636-716 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2057-2137 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2057\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2241c6d4d85be939f304f49f98e2b94625c3d47c10c9071852dcd31dbb9f6a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60\u201381 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:203-262 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:284-364 \u2014 \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.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 13 separate duplicated blocks between them, totalling at least 239 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:203\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060LTXPipelineOutput\u0060 names \u0060..ltx.pipeline_output\u0060 in one and \u0060.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaaf6d7059688e80d66c228a1f8cd3183f668e8d8d04f2972a5b1d2c52ae9405"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69\u201376 lines \u00D7 3): src/diffusers/loaders/ip_adapter.py:66-141 | src/diffusers/loaders/ip_adapter.py:366-434 | src/diffusers/loaders/ip_adapter.py:613-688 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/ip_adapter.py:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79424573760a7f93d3515fd691aa10a21b3c2fbed3a3e69c627911e866abbb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (75 lines \u00D7 3): src/diffusers/pipelines/flux2/pipeline_flux2.py:874-948 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:753-827 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:703-777 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py:874\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"416b7a41a1b2c7e499f27be6edad1e326dc0132c07b04832ae3148d8c40d2d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (72 lines \u00D7 2): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:168-239 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:183-254 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 553 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e736401d00fbc08cbdd60cb90c1ecf036b854d694e1c40bc8c688de11903eda2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69\u201371 lines \u00D7 2): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:766-836 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:658-726 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 512 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bcd6896238dd86c1520d27af27f5914ce97561db050471e33509a6f714f59c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69\u201370 lines \u00D7 2): src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:892-960 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1095-1164 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 1187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95137f8b32f526ae0fe9368d5cee421a82c24ec861827925ac0ecaa99946e6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 4): scripts/convert_skyreelsv2_to_diffusers.py:401-468 | scripts/convert_wan_to_diffusers.py:679-746 | scripts/convert_wan_to_diffusers.py:996-1063 | src/diffusers/loaders/single_file_utils.py:3394-3461 \u2014 before extracting anything, compare \u0060scripts/convert_skyreelsv2_to_diffusers.py\u0060 and \u0060scripts/convert_wan_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_skyreelsv2_to_diffusers.py:401\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, \u0060scripts/convert_wan_to_diffusers.py:1070\u0060 calls \u0060replace\u0060 and \u0060scripts/convert_skyreelsv2_to_diffusers.py:473\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/convert_skyreelsv2_to_diffusers.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e7d7eedd08adbdd2ed2e1fc6d1672fba86971efc2fe20c09981240708e4f03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 3): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:861-928 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:940-1007 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:950-1017 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 770 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0ad2606332182cb04a76702b5886884f013004013b8af89fc18741909e94e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59\u201367 lines \u00D7 2): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:177-235 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:218-284 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:177\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f87fe9f97ae5468c600ce633ab6f92aa25d6c80e5273cfcd105869207c9f57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (66 lines \u00D7 6): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:507-572 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:560-625 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:321-386 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:337-402 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:582-647 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:513-578 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:507\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, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:574\u0060 calls \u0060no_grad\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:389\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbe67ef28d992ce8c5b39bbe9c15a6a8978453ef8b7212fc2dd5e1a893d73cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201364 lines \u00D7 4): examples/community/dps_pipeline.py:61-114 | examples/community/iadb.py:92-119 | src/diffusers/pipelines/ddim/pipeline_ddim.py:73-136 | src/diffusers/pipelines/ddpm/pipeline_ddpm.py:63-110 \u2014 \u0060src/diffusers/pipelines/ddim/pipeline_ddim.py\u0060 and \u0060src/diffusers/pipelines/ddpm/pipeline_ddpm.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 3 separate duplicated blocks between them, totalling at least 92 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/dps_pipeline.py:61\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060scheduler\u0060 to \u0060DDIMScheduler\u0060 in one and \u0060DDPMScheduler\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":"examples/community/dps_pipeline.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef919be16e67e399869ebb207c5f6eabe1a59094acbeafd4cf02efe6ca5ec8aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:927-990 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:865-928 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: \u0060PaintByExampleImageEncoder\u0060 names \u0060..deprecated.paint_by_example\u0060 in one and \u0060diffusers.pipelines.paint_by_example\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"14014fe3fdc792c2e28a0ede8122472a23e78be25bc2ca83338b8fc641b3ef4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59\u201364 lines \u00D7 2): examples/research_projects/rdm/pipeline_rdm.py:175-233 | src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:89-152 \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 \u0060examples/research_projects/rdm/pipeline_rdm.py:175\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":"examples/research_projects/rdm/pipeline_rdm.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb79535872495fda1509ed7c7f2091f57ccff264e35ad074aa098c1994d9f0e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:256-319 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:317-386 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 396 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:256\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"8beec057186d54f12542debc9921c428056247656a0de2eb5e1c9837a448daf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62\u201364 lines \u00D7 2): src/diffusers/schedulers/scheduling_edm_euler.py:440-501 | src/diffusers/schedulers/scheduling_euler_discrete.py:697-760 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_edm_euler.py\u0060 and \u0060src/diffusers/schedulers/scheduling_euler_discrete.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_edm_euler.py:440\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_edm_euler.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b01f4f73237200919f31b4e272c12533ecf3331ea8f191f7a46d00983b5466"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 3): examples/community/composable_stable_diffusion.py:368-430 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:251-385 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:543-632 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 209 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/composable_stable_diffusion.py:368\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":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d5dc5cf3536ccaad75925b74858683827ed6e75c44a9ad3788378ee42161e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (147 lines \u00D7 3): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:255-401 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:366-512 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:408-554 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a6b99a9e0782110692cc86cac6d62a10524e2d67a6173f1116b0eadb74e9c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59\u201363 lines \u00D7 2): src/diffusers/models/attention.py:1024-1086 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:323-381 \u2014 before extracting anything, compare \u0060src/diffusers/models/attention.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"8283810d6864a036fd55e6f71d9445f04afcc8701ccbeb9dfb1af62b9dcfbc29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1491-1553 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1482-1544 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 121 separate duplicated blocks between them, totalling at least 1970 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1491\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"617fac4d65cf26072158d7b26ca02ce18ad94b667cf86640086160a0ffad121b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57\u201362 lines \u00D7 3): src/diffusers/schedulers/scheduling_ddim.py:395-456 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:339-400 | src/diffusers/schedulers/scheduling_ddim_parallel.py:399-455 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19dfad3e1f89f05a72b10939e0f06d43f03a55c2c0fe19da696deb9db02acaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (101\u2013104 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1381-1481 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1276-1379 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060DIFFUSERS_REQUEST_TIMEOUT\u0060 names \u0060...utils.constants\u0060 in one and \u0060diffusers.utils.constants\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"56efb52b823cb0268e281ffe0b7f7972beba4575af8b3045fbc4765b49635665"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (110 lines \u00D7 2): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:211-320 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:375-484 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce239e78c8f286581cbe6e3bded6d6f6c81b8a9bc19fd98fb4ea3cc991fbffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201361 lines \u00D7 4): src/diffusers/modular_pipelines/minimax_h3/encoders.py:39-99 | src/diffusers/modular_pipelines/minimax_h3_image/encoders.py:40-100 | src/diffusers/modular_pipelines/p_h3_image/encoders.py:94-97 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:40-100 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/encoders.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 3 separate duplicated blocks between them, totalling at least 107 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf88ac0b8d28d7db695bfa93bf253451f651cc9a01536f7208c94718f22068a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2): examples/community/matryoshka.py:1248-1308 | src/diffusers/models/transformers/transformer_2d.py:336-396 \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 \u0060src/diffusers/models/transformers/transformer_2d.py:336\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de56b2d1c6638da77cdc83bc0e4c4b8c807e2d23f06950a964091640183570d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53\u201360 lines \u00D7 4): examples/community/fresco_v2v.py:335-390 | src/diffusers/models/unets/unet_3d_condition.py:490-544 | src/diffusers/models/unets/unet_motion_model.py:1896-1948 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:508-567 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_condition.py:490\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060UNet2DConditionOutput\u0060 names \u0060...models.unets.unet_2d_condition\u0060 in one and \u0060diffusers.models.unets.unet_2d_condition\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"88de2fbfa7ae69f3e8a9074718ab1c2d1325167aa86203b714347002f7098973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201360 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_hunyuan.py:347-406 | src/diffusers/models/controlnets/controlnet_sd3.py:405-449 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_sd3.py:405\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/diffusers/models/controlnets/controlnet_hunyuan.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9c4a9f059986bb70624cd14e2e03222eb46f1d60715356f7476e95300645b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/encoders.py:554-612 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:562-620 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/encoders.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 11 separate duplicated blocks between them, totalling at least 429 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":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f9a6e3bcdc5337428d2c362dae58ee480a2d7943cb2286166c20966f813441"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:254-312 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:258-316 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py\u0060 and \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea34f1154b4ffb9d82084b3fd0beaf3c7203a6fca3d3b650c63e1972a04376a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): src/diffusers/pipelines/kolors/pipeline_kolors.py:855-913 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:883-941 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_kolors.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1312 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors.py"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e02bcb09e3d7a2e0624f101c1786a12c5ca218a3e089be69d4c768040c77f6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1116-1174 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1258-1316 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc83264974bc421b43e25dc62c1900985df9407b4039f7cd5e61b422e9ead4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58\u201359 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1239-1297 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1433-1490 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1239\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"c140f16f10f592fe0a36f834ce6a1cd06e66e58badd9e416e42e5862062d4e1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 4): examples/community/pipeline_kolors_differential_img2img.py:238-295 | src/diffusers/pipelines/kolors/pipeline_kolors.py:212-269 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:232-289 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:229-286 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_kolors_differential_img2img.py:238\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"c609e633addcab9d9c1ad503cf36b76f5d4e1df64b7dea10af7298bf08e1533d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57\u201358 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:194-251 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:150-206 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:171-227 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.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 25 separate duplicated blocks between them, totalling at least 336 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:194\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"338fd62788e9b6f82abee668ee0bd6cc9d7ba619cd031f2105d15a2187290044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57\u201358 lines \u00D7 3): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:320-377 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:317-373 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:192-248 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5b2cf1e803c1ac1a60722298e035913fdeb4fefc8ef4529b1b6679e0672b33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201358 lines \u00D7 3): src/diffusers/models/attention_processor.py:2114-2171 | src/diffusers/models/attention_processor.py:2205-2262 | src/diffusers/models/transformers/transformer_hidream_image.py:218-222 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2114}}}],"partialFingerprints":{"codehealthFindingId/v1":"97aec8848a05ae8aba17ce74c6beb26f24e1e3456257780e4ef1600e4519a2cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56\u201358 lines \u00D7 2): src/diffusers/models/controlnets/controlnet.py:292-349 | src/diffusers/models/controlnets/controlnet_union.py:245-300 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_union.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82a18f0910509825304001ff8f28b32e8a4f8b1562bbc57e61c3d73e123c88d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2): src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py:192-249 | src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py:387-444 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"67618d0ed44b422242a9886d739517d5feeb5fe32eb1ba7a146f3762bc71da4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201357 lines \u00D7 30): examples/community/lpw_stable_diffusion_xl.py:269-300 | examples/community/mixture_tiling_sdxl.py:404-460 | examples/community/mod_controlnet_tile_sr_sdxl.py:411-467 | examples/community/pipeline_sdxl_style_aligned.py:524-580 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:710-766 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:257-313 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:404-460 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:284-340 | examples/community/pipeline_stable_diffusion_xl_ipex.py:284-340 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:312-368 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:343-399 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:307-363 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:315-371 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:307-363 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:296-352 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:307-363 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:326-382 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:239-295 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:601-657 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:414-469 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:322-378 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:312-368 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:309-365 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:327-383 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:417-473 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:299-355 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:317-373 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:421-477 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:228-281 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:327-383 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef41522f66013b2cd2dc819b026c167849c43e10a4732966bbb5e30b32ea12a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 6): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:240-296 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:264-320 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:417-473 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:268-324 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:419-475 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:375-431 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:240\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e78d9fa84490c9688f4974c4a60c66a7819292805e6a475d49de8917858a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 3): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:231-287 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:228-284 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:231-287 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 254 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e4180f5299979b01bf7443c32451d8156a1a379d4e6543656c665e6fefaf9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:544-600 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:755-811 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:753\u0060 calls \u0060Generator\u0060, \u0060manual_seed\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:542\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":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"9324593edbfcf0ac5e82d1ac5b8ea31d2a9a1b1d57ae3ac5bf5fdf1779078233"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47\u201356 lines \u00D7 4): examples/community/matryoshka.py:3036-3091 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:774-820 | src/diffusers/models/unets/unet_2d_condition.py:1117-1172 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1290-1345 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1285\u0060 calls \u0060get\u0060, \u0060scale_lora_layers\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py:1114\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":3036}}}],"partialFingerprints":{"codehealthFindingId/v1":"4405629af2d6ba5ffd95cc2ebcff0da407eaa77edccc807aea88056567e9bb87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48\u201356 lines \u00D7 4): src/diffusers/pipelines/auto_pipeline.py:618-673 | src/diffusers/pipelines/auto_pipeline.py:932-987 | src/diffusers/pipelines/auto_pipeline.py:1240-1295 | src/diffusers/pipelines/auto_pipeline.py:1507-1554 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/auto_pipeline.py:618\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":"src/diffusers/pipelines/auto_pipeline.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a9f3d4d48ea1157cca3cc0174a5b98e735c97e071c793943032bce9e46b713"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): src/diffusers/pipelines/prx/pipeline_prx.py:742-797 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:574-629 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/prx/pipeline_prx.py\u0060 and \u0060src/diffusers/pipelines/prx/pipeline_prx_pixel.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"138e9925361abc9b8e6811989a4b939f007cf8b2e0b95b4cd114e77e0bc278fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 3): examples/community/hd_painter.py:602-656 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1149-1203 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1167-1221 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d86878720e021c3b372c33aa733e71ea1a6613d0d0f904deede06cf7ca8af0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:346-400 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:434-488 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd45e4dc12c4911866ba73cd98226d2bbfb5327f9dce6c4e54551c35abfc5eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): src/diffusers/schedulers/scheduling_ddpm.py:362-416 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:378-432 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddpm.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddpm_parallel.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddpm.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92c93609684e8f70002fd62af8d4fccb5bb0ff78cd9c2cceded4735ac261eb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 4): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:261-314 | scripts/convert_zero123_to_diffusers.py:61-114 | src/diffusers/loaders/single_file_utils.py:933-986 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:259-312 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_zero123_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 877 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ab16bc4d359f63310f801a7455f853144fb2eb0c6a71ac0eb746618d44a16a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 3): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:78-131 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:80-133 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:88-141 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0712ed317959a512d1cc26b0b2ee3c36391ade19cc381f166b29081e3b7b3f04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201354 lines \u00D7 2): src/diffusers/models/resnet.py:324-377 | src/diffusers/models/unets/unet_dreamlite.py:232-282 \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":"src/diffusers/models/resnet.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3c25f04207684b8f0261708c7d51c4d9c0bcb5d2d387a4f7c22e7213db5271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:771-824 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:861-914 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 833 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"a029e2e727207cf8c150731bf914ed16b56d26d3d489f51434524b2774b2fbcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:198-251 | src/diffusers/models/controlnets/controlnet.py:618-670 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bed973fecb7d708b4f0cbb87a8cbe6e310dea38b2231e170193606a05a871ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (66 lines \u00D7 2): src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:650-715 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:782-847 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 1187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28bd6299634605136a44c207340eec784486464e4de4b51522f1d559950ead8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:261-321 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:233-293 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf31266dddbf99be44e2ebfb97b2f9034712fb0878452547276f8e93de61360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201353 lines \u00D7 3): src/diffusers/modular_pipelines/helios/encoders.py:141-144 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_combined.py:198-250 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:419-471 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/encoders.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5288fcb65d394d46be3aa587af0235edaa410874eac22130e2daecf8a2ccf63c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201353 lines \u00D7 2): src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:445-493 | src/diffusers/schedulers/scheduling_flow_match_heun_discrete.py:237-289 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_flow_match_heun_discrete.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"d157988fab099ed088452079b6ba426a1fa27bda521856b678f52943c84f2600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201352 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_sana.py:133-183 | src/diffusers/models/transformers/sana_transformer.py:432-483 | src/diffusers/models/transformers/transformer_sana_video.py:588-639 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_sana.py\u0060 and \u0060src/diffusers/models/transformers/sana_transformer.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_sana.py:133\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":"src/diffusers/models/controlnets/controlnet_sana.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1403cc8d8f9f5e9fc69837e178ff75d8ead8a787292d51890e13b6aa96a4dba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201352 lines \u00D7 2): src/diffusers/configuration_utils.py:331-382 | src/diffusers/modular_pipelines/mellon_node_utils.py:875-883 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/configuration_utils.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25dc823e5d35665f376b2f6f7e0d440c6debfc8b662cbcc17a7942e8c671fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46\u201352 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3.py:621-672 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:558-603 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_minimax_h3.py:673\u0060 calls \u0060audio_proj_in\u0060, \u0060to\u0060, \u0060get_parameter_dtype\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py:604\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33b53d22c776379d7bcef65a73b3d03152f477f59e4d8cc537403f80af02b7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:109-166 | src/diffusers/schedulers/scheduling_helios_dmd.py:88-145 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_helios.py\u0060 and \u0060src/diffusers/schedulers/scheduling_helios_dmd.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5bede9de36cc715e9b9c26434bcb8b86e68adc107d6d6642d01cddeb12d10d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 7): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:312-362 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:363-413 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:474-524 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:414-464 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:373-423 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:385-435 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:316-366 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d70a347c0972f4295c44defeda5ca559ef51d9fc5cc73f14b7ea21a281751e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201351 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1536-1586 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1974-2024 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2412-2460 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1615-1665 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1536\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f03dc38107097125050b80f86a51ae0ab9a2fb16887879ff27c2baaf14034e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/encoders.py:266-316 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:270-320 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/encoders.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 11 separate duplicated blocks between them, totalling at least 429 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. 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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbdfc122943a922547f80299e80e34302daf4653e0bfe5ac26e2fdd13650182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:268-318 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:299-349 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 1187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37c1582bfefae8a6279923ce08ce0d8f65d8f9dd0efe951fab846f8b8500a6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:122-172 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:286-336 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32608c8e894e98330dd8f98e2ee12d84359b6c730f5da03225abe7fbd209b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (92 lines \u00D7 2): examples/community/regional_prompting_stable_diffusion.py:907-998 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:896-987 \u2014 before extracting anything, compare \u0060examples/community/regional_prompting_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/regional_prompting_stable_diffusion.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bea547320d7265d14b69d750318651e9c530c3983ca6beb17a2d7bc30a7e06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): src/diffusers/loaders/lora_pipeline.py:4210-4259 | src/diffusers/loaders/lora_pipeline.py:4476-4525 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":4210}}}],"partialFingerprints":{"codehealthFindingId/v1":"854c826e61009e0246bcd0bab0b8fc16a86ca4dd71ec0e46d4ba58bb9c303e4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46\u201350 lines \u00D7 2): src/diffusers/pipelines/helios/pipeline_helios.py:906-951 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:1082-1131 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios.py\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:1082\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios.py:906\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4cb1080d2be7e439fd1b70585f6ef66c8f8c95760f6a53cd7b9a281fc1a9f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 8): examples/community/matryoshka.py:2600-2648 | src/diffusers/models/controlnets/controlnet.py:538-586 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:470-518 | src/diffusers/models/controlnets/controlnet_union.py:477-525 | src/diffusers/models/unets/unet_2d_condition.py:726-774 | src/diffusers/models/unets/unet_3d_condition.py:291-339 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:430-478 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:902-950 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:2600\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060slice_size\u0060 to \u0060Union[str, int, List[int]] = \u0022auto\u0022\u0060 in one and \u0060str | int | list[int]\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":"examples/community/matryoshka.py"},"region":{"startLine":2600}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d92a891ce416935e0a727f5742a04cfec3c486c37bd868f8cae6fdd583a8d1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64\u201370 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1389-1458 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1176-1239 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1297-1363 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f36f5bf299724bbfc35ec96d7197a0fef151e19af4865dda2eecd1fccfd023a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 6): src/diffusers/pipelines/sana/pipeline_sana.py:231-278 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:245-292 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:183-230 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:190-237 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:254-301 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:251-298 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_controlnet.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"7670c9da831dd2cbcd85de820d8d032161727c6f048d00ca6d5e6329ec766d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 4): src/diffusers/pipelines/allegro/pipeline_allegro.py:230-277 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:205-252 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:318-365 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:262-309 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 636 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"a877d7265853913459faf51c1122f1b3566b7b0e5b10656193c22aa2e217d672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 4): src/diffusers/pipelines/sana/pipeline_sana.py:824-871 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:887-934 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:861-908 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:893-940 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_controlnet.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/sana/pipeline_sana.py:824\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b3fe85696ede3e1d461edd2b37465a37a414375f19e4909ad93ca2429e3677"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47\u201348 lines \u00D7 2): src/diffusers/configuration_utils.py:418-464 | src/diffusers/modular_pipelines/mellon_node_utils.py:899-946 \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 \u0060src/diffusers/configuration_utils.py:418\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/configuration_utils.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8485813c1d7092223647bc2bc11b4a998542eb1c479716a33954fc1c6c4940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py:147-194 | src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py:246-293 \u2014 before extracting anything, compare \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py\u0060 and \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dec06f579a4ee80b1d2925693886a6438bb96ddc0767a730d7255d6cc0dc444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:912-959 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2335-2382 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2335\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"f808fdcea702c0d0480710e80b302bece9721096673a941ade242625012f057d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/encoders.py:494-541 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:502-549 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/encoders.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 11 separate duplicated blocks between them, totalling at least 429 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py:494\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060references\u0060 to \u0060list[MiniMaxH3Reference]\u0060 in one and \u0060list[PikaH3FlexReference]\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":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"25572cd5c8ab4a85ebcd478a234a3e8bc925404011d7cbb49af0135019b2e19f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/encoders.py:719-770 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:728-779 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/encoders.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 11 separate duplicated blocks between them, totalling at least 429 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py:719\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e92f5a06c6440bed440bbb05a6592e9053b468871e094fa140d9596a247cc63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1298-1345 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1260-1307 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 121 separate duplicated blocks between them, totalling at least 1758 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1298\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa41c5ab8d9829b37388f94a337a5b93dfa405329e04fee05f649b81f657645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 5): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:382-451 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:434-503 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:444-513 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:456-525 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:387-456 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e7edf05b2a8196a675427ee63757f038a50e3edbef9966c1de9158c5d458ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201347 lines \u00D7 3): src/diffusers/models/attention_processor.py:4297-4341 | src/diffusers/models/attention_processor.py:4516-4560 | src/diffusers/models/attention_processor.py:4755-4801 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/attention_processor.py:4802\u0060 calls \u0060to\u0060 and \u0060src/diffusers/models/attention_processor.py:4342\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4297}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ec9bd87da53330f92a276a3974bcfa50fd03b52d1e81cbd2518d57c2112e19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): examples/community/matryoshka.py:2031-2077 | src/diffusers/models/unets/unet_2d_condition.py:239-285 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_condition.py:239\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2031}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c420566819543d7c5d74e4a0d9d372f78e364f94d5db0073f8a2713853cc73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:813-859 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:751-797 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef90551dc2bb366a0f46e2aa612af162200b97361e9125d1055b4fdd34e0dfd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): src/diffusers/models/unets/unet_3d_blocks.py:438-484 | src/diffusers/models/unets/unet_3d_blocks.py:672-718 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_blocks.py:438\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9ef2840d95a971a162ecb26df51402d5067e8289248464dae5ae8082a8a1f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet.py:660-706 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:618-664 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1735 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py:660\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8dcdbed220092899fb5bc798d25bc5f5291604335389071caec93f9996ae4a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:265-311 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:262-308 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"45759f844ce689bad27d794261551a77093e3ae515343815244c01656ab327f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 8): examples/community/pipeline_stg_ltx.py:323-390 | examples/community/pipeline_stg_ltx_image2video.py:346-413 | examples/community/pipeline_stg_mochi.py:330-397 | src/diffusers/pipelines/ltx/pipeline_ltx.py:297-364 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:383-450 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:566-633 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:320-387 | src/diffusers/pipelines/mochi/pipeline_mochi.py:268-335 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"4899372babe808565821bc63ea5388db2d91b1a240dbdc0ec44ebaf57c4da667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 8): src/diffusers/modular_pipelines/anima/before_denoise.py:71-116 | src/diffusers/modular_pipelines/flux3/inputs.py:35-80 | src/diffusers/modular_pipelines/helios/before_denoise.py:132-177 | src/diffusers/modular_pipelines/qwenimage/inputs.py:30-75 | src/diffusers/modular_pipelines/qwenimage21/inputs.py:40-85 | src/diffusers/modular_pipelines/stable_diffusion_3/inputs.py:33-78 | src/diffusers/modular_pipelines/wan/before_denoise.py:43-88 | src/diffusers/modular_pipelines/z_image/before_denoise.py:43-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/anima/before_denoise.py:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6344bea59125cfeb91840aff02f69ad253c4185b3e96aa46687b776d95c5b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201346 lines \u00D7 8): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:180-224 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:204-248 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:357-401 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:208-252 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:359-403 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:315-359 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:105-150 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:120-165 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:227\u0060 calls \u0060_text_preprocessing\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:153\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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bfbb2f1062b30db38499fa0538093fe23f44b06cc4ddd7e31866f6e6903b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 3): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:617-662 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:772-817 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:913-958 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:617\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"9689566415640aecf766ce11656746af86df3a7aa2c9703d4c32bf086c7bd446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:446-491 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:467-512 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 723 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da58e7206e0431d5ac9c976af4dd8a736820f9ceeb048894e9ef5335e119639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1138-1183 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1144-1189 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e32f4d1f4c84760a0555b6aee31bbbe0ea7bb58f8854bd4731a57ed37e2fb58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201346 lines \u00D7 2): src/diffusers/models/transformers/sana_transformer.py:499-542 | src/diffusers/models/transformers/transformer_sana_video.py:665-710 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/sana_transformer.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_video.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/sana_transformer.py:499\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2bbc53ff0acf1193160b3d1a39257aac6e622c134063e9c5bf4e76562be3868"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:938-983 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:523-568 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7554af97dc63c06d008ef1b756099bc12f7c7b92f1e29f8cc73e60f213f1f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (66 lines \u00D7 2): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:233-298 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:237-302 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"41010cf851122aeb388d28256ac072c1af932fb99f219f7de37c11770dd5ca66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1166-1211 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1325-1370 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfc1238e3abd94a2e590f7befe1cc3477019d507aa85ef1e3430abad8f5599e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:1594-1639 | src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:1641-1686 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fef3a3c3464c76e1039ef03003f1634152ec3442ea43a1235e409b5e87e08a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 2): src/diffusers/pipelines/helios/pipeline_helios.py:208-275 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:226-293 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios.py\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"635161a4e54244e94356466a91559792b4506673d7b3c200f8286e646c3d9a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:418-463 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:412-461 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:418\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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d835a001d5a253af24976490d960bd510db3f98ab322c6c97eb440750320cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:912-957 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:841-886 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py\u0060 and \u0060src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 873 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:912\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b194468ac827c498bc245550d78d9af1d988dcddd19121d651105980dbd0b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): src/diffusers/pipelines/prx/pipeline_prx.py:390-435 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:277-322 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/prx/pipeline_prx.py\u0060 and \u0060src/diffusers/pipelines/prx/pipeline_prx_pixel.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb2915b89a54e607f07b8ff8095202fa2e975dff2a91b0b0441ac7fb3224e54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (95\u201397 lines \u00D7 2): src/diffusers/schedulers/scheduling_ddpm.py:469-565 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:486-580 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddpm.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddpm_parallel.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddpm.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1c6a9727704b13bc754923d7a84c5af517a716f1265fd7a6d8351f44399099"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201345 lines \u00D7 6): src/diffusers/pipelines/sana/pipeline_sana.py:296-340 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:311-355 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:244-281 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:252-289 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:319-363 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:317-361 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_controlnet.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c63cb62b2787b340c948f790c054fd6807991e814c353d0f9dab5a64360c5a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 4): examples/community/pipeline_hunyuandit_differential_img2img.py:571-615 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:499-543 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:470-514 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:481-525 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:571\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40e0d9a5f3fc0046926eb2b0651f911441b826b387beb72abd6d58cea6e996b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201345 lines \u00D7 4): examples/community/unclip_image_interpolation.py:347-389 | examples/community/unclip_text_interpolation.py:421-465 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:392-436 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:317-361 \u2014 before extracting anything, compare \u0060examples/community/unclip_image_interpolation.py\u0060 and \u0060examples/community/unclip_text_interpolation.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 179 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/unclip_text_interpolation.py:421\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"120fe3a0efb822ec956a70dcf173f9d1936e60f0a52e0a007ed9237ab56d43cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201345 lines \u00D7 3): examples/community/adaptive_mask_inpainting.py:206-246 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:127-171 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:125-169 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe758165adc776b2984f790df953ec8e47a58e2c451d3ca975b62e7e37fc116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): examples/community/stable_unclip.py:205-249 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:287-331 \u2014 before extracting anything, compare \u0060examples/community/stable_unclip.py\u0060 and \u0060src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_unclip.py:205\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":"examples/community/stable_unclip.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcf3edefe0697938ddf3258ed6681b063342290cdf030e0ab61336e4637463f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): src/diffusers/models/controlnets/controlnet.py:453-497 | src/diffusers/models/controlnets/controlnet_union.py:397-441 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_union.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet.py:453\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"275368239ea77301a062a728ae39b390900f4c217c4b4bf39edfdacbf42d5ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): src/diffusers/models/transformers/transformer_chronoedit.py:690-734 | src/diffusers/models/transformers/transformer_wan.py:677-721 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_wan.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 632 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_wan.py:674\u0060 calls \u0060contiguous\u0060 and \u0060src/diffusers/models/transformers/transformer_chronoedit.py:687\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"87942f0632f80815f162fdbe5e5a9e88db38857223f06d5decde6b404c323215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:736-780 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:742-786 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.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 22 separate duplicated blocks between them, totalling at least 634 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdcdbb6789cca1369c8a318d632116e4500f9cfbb217bab3ea7522d86aa6cdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (72 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1218-1289 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1284-1355 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py\u0060 as WHOLE FILES: this scan already matched 83 separate duplicated blocks between them, totalling at least 1724 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1218\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c2ec9ec47172906c21892c77094d5bba3c4aba02a862b06ab4020b5a618177"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201344 lines \u00D7 4): examples/research_projects/anytext/anytext_controlnet.py:409-451 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:338-381 | src/diffusers/models/controlnets/controlnet.py:753-796 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:668-709 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext_controlnet.py\u0060 and \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dbce7a1b5cad2640c5cd0c86482f7f542de214e143d3567aa931c3cebebb04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201344 lines \u00D7 4): src/diffusers/modular_pipelines/flux2/before_denoise.py:490-517 | src/diffusers/pipelines/flux2/pipeline_flux2.py:411-454 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:324-367 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:328-371 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcea3670ec4e7cc34371849b63e376306d9092130ed04a855ecf4a26c798966c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201344 lines \u00D7 4): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:552-593 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:435-478 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:591-632 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:422-465 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:552\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade68f4a252008871a80a95223c1335164e686f7323f8466827381414bb0a07a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201344 lines \u00D7 4): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:788-829 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:673-716 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:859-901 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:633-675 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:788\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa0a1a67533cd3c7573eb68a51744c7cdf59668c5e8b792b7baa04d90908de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201344 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1424-1467 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1856-1899 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2274-2314 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1500-1543 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1424\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, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1548\u0060 calls \u0060chunk\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1472\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"5268bfda9b04aa899086695cb0aa1e724abca2f4757022f7475f75acc0a4de83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201344 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:791-834 | src/diffusers/models/unets/unet_motion_model.py:916-945 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2213-2256 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_motion_model.py:916\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060DualTransformer2DModel\u0060 names \u0060....models.transformers.dual_transformer_2d\u0060 in one and \u0060..transformers.dual_transformer_2d\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e7981698d26d7d6ee8937695620d4f894e3d88bbd73de13ee3674b722e37d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/modular_pipeline.py:51-94 | src/diffusers/modular_pipelines/pika_h3_flex/modular_pipeline.py:109-152 \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":"src/diffusers/modular_pipelines/minimax_h3/modular_pipeline.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3935564791cdfbcc66ba0bb58f89ece55a6ba78f048adab2045025f7d38284fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:669-712 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:747-790 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py\u0060 as WHOLE FILES: this scan already matched 56 separate duplicated blocks between them, totalling at least 957 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e48aff1a0343bdc34aed189b13690e7aa5e7788a2d9e5d0a117308b0a97cac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201344 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:770-812 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:893-936 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac56d2eeb778aafd674819685a0163585ee7d7c5df6d3205365c1523a281410"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (66\u201367 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1304-1370 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1384-1449 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py\u0060 as WHOLE FILES: this scan already matched 83 separate duplicated blocks between them, totalling at least 1724 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1304\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, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1382\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1304\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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c771647d0a54ca081c82a2f46d737c8d3d904464c027581bab6b3eb3a6b69bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:542-585 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:488-531 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 700 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:542\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"255ee0c4c7d983aac04bed92028af05eabca17b094a19f5c7675f599013288c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:642-685 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:669-712 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 695 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"899b6a794d6110f5fa87d43a8bf0fe2015be3c86f85df0c227fb2e972a233f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 58): examples/community/fresco_v2v.py:1429-1471 | examples/community/gluegen.py:262-304 | examples/community/ip_adapter_face_id.py:496-538 | examples/community/latent_consistency_interpolate.py:293-335 | examples/community/llm_grounded_diffusion.py:1244-1286 | examples/community/matryoshka.py:3805-3847 | examples/community/pipeline_animatediff_controlnet.py:210-252 | examples/community/pipeline_animatediff_img2video.py:327-369 | examples/community/pipeline_prompt2prompt.py:262-304 | examples/community/pipeline_stable_diffusion_boxdiff.py:599-641 | examples/community/pipeline_stable_diffusion_pag.py:566-607 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:205-247 | examples/community/regional_prompting_stable_diffusion.py:543-585 | examples/community/stable_diffusion_reference.py:424-466 | examples/research_projects/anytext/anytext.py:1372-1414 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:334-376 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:166-208 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:211-253 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:220-262 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:310-352 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:288-330 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:294-336 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:339-381 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:367-409 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:244-286 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:228-270 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:308-350 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:434-476 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:232-274 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:263-305 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:324-366 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:295-337 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:223-265 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:300-342 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:271-313 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:204-246 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:201-243 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:419-461 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:171-213 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:206-248 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:828-870 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:376-418 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:253-295 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:238-280 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:287-329 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:263-305 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:316-358 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:177-219 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:311-353 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:346-388 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:344-386 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:216-258 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:370-412 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:324-366 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:229-271 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:309-351 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:271-313 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:323-365 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/gluegen.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c9840552ddcf73c94244a1c767072ab578fc021b16e8fa8555e62dc7307909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 26): src/diffusers/schedulers/scheduling_consistency_decoder.py:19-61 | src/diffusers/schedulers/scheduling_ddim.py:56-98 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:56-98 | src/diffusers/schedulers/scheduling_ddim_inverse.py:54-96 | src/diffusers/schedulers/scheduling_ddim_parallel.py:56-98 | src/diffusers/schedulers/scheduling_ddpm.py:53-95 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:55-97 | src/diffusers/schedulers/scheduling_deis_multistep.py:39-81 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:57-99 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:39-81 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:39-81 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:148-190 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:41-83 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:56-98 | src/diffusers/schedulers/scheduling_euler_discrete.py:59-101 | src/diffusers/schedulers/scheduling_heun_discrete.py:56-98 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:57-99 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:56-98 | src/diffusers/schedulers/scheduling_lcm.py:58-100 | src/diffusers/schedulers/scheduling_lms_discrete.py:57-99 | src/diffusers/schedulers/scheduling_pndm.py:33-75 | src/diffusers/schedulers/scheduling_repaint.py:52-94 | src/diffusers/schedulers/scheduling_sasolver.py:40-82 | src/diffusers/schedulers/scheduling_tcd.py:57-99 | src/diffusers/schedulers/scheduling_unclip.py:53-95 | src/diffusers/schedulers/scheduling_unipc_multistep.py:39-81 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_consistency_decoder.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d77e393ec90a33af5c031120784facf96b80c3676f875e5d98dcd52d42f43cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 6): examples/community/pipeline_z_image_differential_img2img.py:251-293 | src/diffusers/pipelines/z_image/pipeline_z_image.py:209-251 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:264-306 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:271-313 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:240-282 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:262-304 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060ZImageTransformer2DModel\u0060 names \u0060...models.transformers\u0060 in one and \u0060diffusers.models.transformers\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc4dc22f62ee5fda9b8d7ed7e47780c095d95c6f72f9a7e8dac5b579d0c54dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 4): examples/community/pipeline_hunyuandit_differential_img2img.py:915-957 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:801-843 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:723-765 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:747-788 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:915\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cd8ee0d1f4e767f54b6c0b1fcb3f5e37ee591020f38121e763c2ac12979f66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 3): src/diffusers/modular_pipelines/qwenimage/inputs.py:372-414 | src/diffusers/modular_pipelines/qwenimage/inputs.py:589-631 | src/diffusers/modular_pipelines/qwenimage/inputs.py:818-859 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/inputs.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8d0a3ee121c924fd1245bcb3bf2fe89bdc1d4a289552733743effe4f76b96d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201343 lines \u00D7 3): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1005-1047 | scripts/convert_gligen_to_diffusers.py:54-56 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:943-985 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7123b34063b8372e0e9330b5fafca0ffaa32c93a10722be51af30dc962375af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): src/diffusers/models/attention.py:413-455 | src/diffusers/models/attention_processor.py:662-704 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2816342abb1f0d701af24cc2681aafd341545f4e84b0628a5bb857c89bff796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:994-1036 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:579-621 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.py:994\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"745066a1e103058a2c41bc22d5adbcf929b3b3ce3d86e467e746142da46bfb84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:412-454 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:418-459 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.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 22 separate duplicated blocks between them, totalling at least 634 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:412\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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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 before the matched lines, \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:417\u0060 calls \u0060align_num_frames\u0060 and \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:412\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"6381f57a48586e11d3ed06182115814e5599709961f4eb95f1c2d2320d1dcfcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:2686-2728 | src/diffusers/pipelines/pipeline_utils.py:429-471 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2686}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2af521c072eb427c9aa35fd1c142183090cf85c95cfa6ea235bf778fbe3293"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:336-378 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:308-350 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa0b700b6eaee734ba37360541c04e43ef28378162bfe21dbdd970db0245f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:76-118 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:94-136 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 638 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"957101e1212ad11b64e1a8e89a1e79f16249e88bb987cba4029b362592348230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1647-1689 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2031-2073 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 2039 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1647\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":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f15c7851ad107e8a55190b8e281fe5263979a2f861ee9caf2b502c1b1645d5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201342 lines \u00D7 5): examples/community/kohya_hires_fix.py:269-310 | examples/community/matryoshka.py:3078-3119 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:809-845 | src/diffusers/models/unets/unet_2d_condition.py:1159-1200 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1332-1373 \u2014 before extracting anything, compare \u0060examples/community/kohya_hires_fix.py\u0060 and \u0060examples/community/matryoshka.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/kohya_hires_fix.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50765bf6e861037cbfca19a8d79649f587e07134b15cf0359ff7ba5fd488d6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 5): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:586-627 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:640-681 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:400-441 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:662-703 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:593-634 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b25d4ebf284ee4c6a767f43f558b21896d1e3059867fec67bd98cb8fcfe2045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:857-898 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:864-905 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.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 22 separate duplicated blocks between them, totalling at least 634 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. 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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4f157f5327f2acaa98e315ff97b1186eb6fcbbd3c5e85b389bfecdb457a8aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:612-653 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:854-895 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:612\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae633a3538285b119397c0993474dd1ed958bad0199af132817827d2908e0f9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:563-618 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:617-672 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py:563\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":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adf515cd845d23eb7e238566b3d79e617b7961f0c7180106abfc9a1551db473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:451-492 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:448-489 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py\u0060 and \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:451\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4caa52e2e18c85bd20980cb29b4a1c26cd17c6cb271d84d1f16c3bd7fa52a35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:821-862 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:775-816 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 533 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2246c5edd8446d6d43f6733bc292fcd65b52fa0edae648f22653db6dc2e6f5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): src/diffusers/pipelines/prx/pipeline_prx.py:510-551 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:334-375 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/prx/pipeline_prx.py\u0060 and \u0060src/diffusers/pipelines/prx/pipeline_prx_pixel.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/prx/pipeline_prx.py:510\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f25fb79abc399c49291e291aefa70fc59bd13cacee37ca4e3ce2179127bc2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201342 lines \u00D7 2): src/diffusers/pipelines/prx/pipeline_prx.py:694-735 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:532-571 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/prx/pipeline_prx.py\u0060 and \u0060src/diffusers/pipelines/prx/pipeline_prx_pixel.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"815aa9f65209934bf7e98c0cee38d58d7570348b557571f75fac7cc7255bf377"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201342 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:686-724 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:727-768 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py\u0060 as WHOLE FILES: this scan already matched 77 separate duplicated blocks between them, totalling at least 987 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:686\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42f02227fc063437b40fd789dc9e250696f1ab35e01db30990d0a9029182200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:771-812 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:830-871 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 770 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:771\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53e4b02a8f55778a84ff7f250bc6fac9e9cb29d2c6f101cf3ad5e75eda62a17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201341 lines \u00D7 26): examples/community/pipeline_stg_cogvideox.py:310-348 | examples/community/pipeline_stg_wan.py:240-278 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:192-230 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:209-247 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:254-292 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:256-294 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:265-303 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:275-313 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:281-319 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:222-262 | src/diffusers/pipelines/consisid/pipeline_consisid.py:367-405 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:266-301 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:285-320 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:251-286 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:295-330 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:252-290 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:210-248 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:231-269 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:236-274 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:292-330 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:253-291 | src/diffusers/pipelines/wan/pipeline_wan.py:212-250 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:303-341 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:266-304 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:259-297 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:277-315 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060examples/community/pipeline_stg_wan.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_cogvideox.py:310\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfec5b57e4ceced61bb5942473de55f9f8b739b126015064a8d67c6aaef6c11b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 23): examples/community/composable_stable_diffusion.py:96-136 | examples/community/instaflow_one_step.py:116-156 | examples/community/ip_adapter_face_id.py:198-238 | examples/community/llm_grounded_diffusion.py:343-383 | examples/community/lpw_stable_diffusion.py:503-543 | examples/community/pipeline_prompt2prompt.py:138-178 | examples/community/pipeline_stable_diffusion_boxdiff.py:424-464 | examples/community/pipeline_stable_diffusion_pag.py:391-431 | examples/community/pipeline_zero1to3.py:115-155 | examples/community/stable_diffusion_ipex.py:112-152 | examples/community/stable_diffusion_tensorrt_img2img.py:717-757 | examples/community/stable_diffusion_tensorrt_inpaint.py:721-761 | examples/community/stable_diffusion_tensorrt_txt2img.py:633-673 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:217-257 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:245-285 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:90-130 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:148-188 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:332-372 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:223-263 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:218-258 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:250-290 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:218-258 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:246-286 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 297 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/composable_stable_diffusion.py:96\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: \u0060FrozenDict\u0060 names \u0060....configuration_utils\u0060 in one and \u0060...configuration_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4537ee777835d08c5e3d9ee51f199cef6c49e4481e2edd1c494c532179b3da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201341 lines \u00D7 15): examples/community/matryoshka.py:454-484 | examples/community/scheduling_ufogen.py:343-373 | src/diffusers/schedulers/scheduling_ddim.py:292-332 | src/diffusers/schedulers/scheduling_ddim_parallel.py:295-335 | src/diffusers/schedulers/scheduling_ddpm.py:419-459 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:436-476 | src/diffusers/schedulers/scheduling_deis_multistep.py:358-398 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:501-541 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:376-416 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:443-483 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:387-427 | src/diffusers/schedulers/scheduling_lcm.py:360-400 | src/diffusers/schedulers/scheduling_sasolver.py:356-396 | src/diffusers/schedulers/scheduling_tcd.py:390-430 | src/diffusers/schedulers/scheduling_unipc_multistep.py:537-577 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060examples/community/scheduling_ufogen.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_ddim.py:292\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":"examples/community/matryoshka.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06cb0aa6aa8f32226888eaa8871bc9884e938a0abf11dc526394a87c852fb77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201341 lines \u00D7 4): src/diffusers/pipelines/bria/pipeline_bria.py:158-198 | src/diffusers/pipelines/chroma/pipeline_chroma.py:278-314 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:305-341 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:307-343 \u2014 \u0060src/diffusers/pipelines/bria/pipeline_bria.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.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 22 separate duplicated blocks between them, totalling at least 247 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":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e98812e72f7cb59ede2feb59d0f1f2696423fe4a8889ccf2e0964eebfa2ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 3): src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:209-249 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:223-263 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py:247-287 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py\u0060 and \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:265\u0060 calls \u0060preprocess\u0060 and \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:253\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":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9745e8af80c35e592bddc02d60fa4a32630b0816e4502c222d50374a4da533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (85 lines \u00D7 2): scripts/convert_flux2_to_diffusers.py:141-225 | src/diffusers/loaders/single_file_utils.py:1527-1611 \u2014 before extracting anything, compare \u0060scripts/convert_flux2_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_flux2_to_diffusers.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1531959a2a5f93582203c282cf097dd256ea4190694762e01c4f556485fe1c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): src/diffusers/loaders/lora_conversion_utils.py:2316-2356 | src/diffusers/loaders/lora_conversion_utils.py:3041-3081 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd48b87f1a348ee49d38d9e341ba4793884a5674fa5b2392ef8206eae617895a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201341 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:1753-1791 | src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:1796-1836 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"569c5d04487aa1a15f00dc72dca8d4bb95714f288f42c091b3e840fb5539dbb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): src/diffusers/pipelines/wan/pipeline_wan.py:486-526 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:629-669 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/wan/pipeline_wan.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_i2v.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 502 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/wan/pipeline_wan.py:486\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d407220f666173ce765b9de1a3c0dedf73f792389825f4d49b127791a8b94d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:261-301 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:284-324 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 484 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060num_inference_steps\u0060 to \u0060int | None = None\u0060 in one and \u0060int = None\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbb6f1f8706451102720e9b6332876ddefb1a8fd87e00830000838eb67cf15b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 3): examples/community/pipeline_z_image_differential_img2img.py:617-656 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:529-568 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:716-755 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 642 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe5e58dd3dd7f8bec6273aae3cea1990b32ac137f24546eb2157677734e81e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201340 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:746-783 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:720-759 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:720-759 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:720\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:744\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:720\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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e914e1f067bf1ca358d88787f79aa0fa3788e0d9d049bb9dd5314f29b149dc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): examples/community/unclip_image_interpolation.py:130-169 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:130-169 \u2014 before extracting anything, compare \u0060examples/community/unclip_image_interpolation.py\u0060 and \u0060src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 238 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ea25050fb3a53454ca67b11b68cfdf75696990b864687cf8afbf8799c8d0ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1115-1154 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1053-1092 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: \u0060StableUnCLIPImageNormalizer\u0060 names \u0060.stable_unclip_image_normalizer\u0060 in one and \u0060diffusers.pipelines.stable_diffusion.stable_unclip_image_normalizer\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"02572e054ded2e7c4bae8a06c9ad88339843d262932d0bb1ab2d99136214a490"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201340 lines \u00D7 2): src/diffusers/models/transformers/transformer_temporal.py:133-172 | src/diffusers/models/unets/unet_motion_model.py:151-185 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_temporal.py\u0060 and \u0060src/diffusers/models/unets/unet_motion_model.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_temporal.py:133\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":"src/diffusers/models/transformers/transformer_temporal.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e29f6b9d75b3830dfa758b3989d2639de9f7fdae889387e391bbdacb4721fac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/encoders.py:618-657 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:626-665 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/encoders.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 11 separate duplicated blocks between them, totalling at least 429 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. 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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"0802de99af7d6b8f1259c6f364c8245c6b4814e0795f7122585af117fa544b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:137-193 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:156-212 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 638 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:137\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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccdddae062a74ec1f09a4ac8eec15a7da1f04f515e87c8d89c599f588c7d0f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201340 lines \u00D7 2): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:193-232 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:199-234 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py\u0060 and \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"7047056227be32995e0e461508acbf029775069459b2814b6c9e3069ce710eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201340 lines \u00D7 2): src/diffusers/pipelines/helios/pipeline_helios.py:798-837 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:860-897 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios.py\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/helios/pipeline_helios.py:798\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdcc3bc8bd6fd017553b23361d9b91abb6395c9fa0c752a95faf96b79a970767"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:307-346 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:234-273 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 512 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65e1e9b56960c20b205de7d3bc753baf926020814d0d666356a9062af32b1ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:844-883 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:776-815 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py\u0060 and \u0060src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 873 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:886\u0060 calls \u0060preprocess\u0060 and \u0060src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:818\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4675f3109337ea2b6237ae57fcfdc9110d7b40817c927e6f4080ebf42e334c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): src/diffusers/pipelines/shap_e/pipeline_shap_e.py:264-303 | src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py:251-290 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/shap_e/pipeline_shap_e.py\u0060 and \u0060src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/shap_e/pipeline_shap_e.py:306\u0060 calls \u0060maybe_free_model_hooks\u0060 and \u0060src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py:292\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/shap_e/pipeline_shap_e.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19a2453a709c2f4ff171f956f1ba74f09a157aefe487f5fc5ca13afd125919a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): src/diffusers/schedulers/scheduling_ddim_cogvideox.py:208-247 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:210-249 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim_cogvideox.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpm_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim_cogvideox.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"023ed0c193547998208b15b24a7a79da7c1d148e0f3575ad5f052195adbac0d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): src/diffusers/schedulers/scheduling_ddpm.py:216-255 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:229-268 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddpm.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddpm_parallel.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddpm.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4cfc9c309b8ae1a759566c05fe645535b6791421b0535f76375ac3e479cc51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): utils/check_doc_toc.py:109-148 | utils/check_doc_toc.py:158-197 \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":"utils/check_doc_toc.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dfb93cf4c164d25f98245d8fa1da38214d6388ff96447f3886a7154c7b4e85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201339 lines \u00D7 6): src/diffusers/models/transformers/transformer_bria.py:408-445 | src/diffusers/models/transformers/transformer_bria_fibo.py:350-387 | src/diffusers/models/transformers/transformer_chroma.py:318-356 | src/diffusers/models/transformers/transformer_flux.py:460-497 | src/diffusers/models/transformers/transformer_longcat_image.py:313-350 | src/diffusers/models/transformers/transformer_ovis_image.py:316-353 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_bria.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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"e557d586ff50c6e16c28e7b80b6e03ee80452a74bcac0f449fe744024f7aee17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 4): examples/community/unclip_image_interpolation.py:397-435 | examples/community/unclip_text_interpolation.py:473-511 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:444-482 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:370-408 \u2014 before extracting anything, compare \u0060examples/community/unclip_image_interpolation.py\u0060 and \u0060examples/community/unclip_text_interpolation.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 179 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/unclip_text_interpolation.py:473\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a2a39fab4002374f6d22797281cbfae7d070e4bc2fffe57c9f401de699e194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): examples/community/pipline_flux_fill_controlnet_Inpaint.py:776-814 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:380-418 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_fill.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 733 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:776\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":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f39aadd5d67082a894e21d19f8bed5b919b4ee46cd09e69fd62588ac15133e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201339 lines \u00D7 2): scripts/convert_mochi_to_diffusers.py:111-149 | src/diffusers/loaders/single_file_utils.py:2771-2807 \u2014 before extracting anything, compare \u0060scripts/convert_mochi_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 188 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_mochi_to_diffusers.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d83c1732d66785e6f2f3ac103495ddf571d1ddb656dcbc832131139fdaf435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1166-1204 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1057-1095 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"78739081f6b6de9695d3a48eca49e23b6fb9cbd60f53b3f6f9782a04d0e7ca4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:534-572 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1013-1051 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.py:534\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"662cb3e80e43d80bbb3ed8a0c69dd9898b96a1af6d8ffa840073f3880b0908e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201339 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1780-1818 | src/diffusers/models/unets/unet_dreamlite.py:868-898 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:868\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d9b35382133454d1a15617a4b2c7c615b9e8de767c8d42b9e70466120937af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/encoders.py:451-489 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:459-497 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/encoders.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 11 separate duplicated blocks between them, totalling at least 429 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"35852fb34b746590b71995d1e93e3056689d1bcc1a51eee373e3ffc3ee48094c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201339 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:402-439 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:865-903 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 638 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:402\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"c133a41b188525fa040dd998d50fdd338d7881aa9e77d5648f46076fa580b949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201339 lines \u00D7 2): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:730-768 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:687-724 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 533 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:730\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c47c0500bf2c5cfb0f668aec921f34e9d03562edb42b026181cb26a5502707"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201339 lines \u00D7 2): src/diffusers/schedulers/scheduling_ddim.py:466-502 | src/diffusers/schedulers/scheduling_ddim_parallel.py:465-503 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim_parallel.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_ddim.py:466\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c20dae98f189ecfda2d7feedc41ea924d2a1ca322251f5061cb3c2a26a7f74e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:291-329 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:300-338 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_flow_match_lcm.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:331\u0060 calls \u0060warning\u0060 and \u0060src/diffusers/schedulers/scheduling_flow_match_lcm.py:340\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"196ad63e80e093046b86c52d94293029fc40446437a409c69cd2e4722d384952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 6): src/diffusers/models/unets/unet_2d_blocks.py:1186-1222 | src/diffusers/models/unets/unet_2d_blocks.py:2357-2393 | src/diffusers/models/unets/unet_motion_model.py:401-438 | src/diffusers/models/unets/unet_motion_model.py:588-625 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1642-1678 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1892-1928 \u2014 there are 6 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_motion_model.py:401\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: \u0060DualTransformer2DModel\u0060 names \u0060....models.transformers.dual_transformer_2d\u0060 in one and \u0060..transformers.dual_transformer_2d\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"666eeaf816c2d6eb8dd942487c69906adb363423b7c7f563968d0ac768919877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201338 lines \u00D7 5): src/diffusers/modular_pipelines/ltx2/encoders.py:1035-1038 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:854-891 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:715-752 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:656-693 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:877-914 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Note first that the copies are not typed on the same thing: \u0060LTX2VideoCondition\u0060 names \u0060...pipelines.ltx2.pipeline_ltx2_condition\u0060 in one and \u0060.pipeline_ltx2_condition\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ceaaa644b57dffba4f180cc11805bd8d098b4f41c2ae88b977483ad632912c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201338 lines \u00D7 2): scripts/convert_flux_to_diffusers.py:84-121 | src/diffusers/loaders/single_file_utils.py:2320-2349 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 279 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.py:84\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, \u0060src/diffusers/loaders/single_file_utils.py:2318\u0060 calls \u0060pop\u0060 and \u0060scripts/convert_flux_to_diffusers.py:82\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/convert_flux_to_diffusers.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"be806fe74cf1b31c0c7c7607f62e5ec5b0b765304daec700a442be89cda31837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201338 lines \u00D7 2): src/diffusers/models/attention.py:460-492 | src/diffusers/models/attention_processor.py:709-746 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:709\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b65c8c1d2d30e395c756a2e70da2eab799753866748d534647959af5c97a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201338 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video.py:73-110 | src/diffusers/models/transformers/transformer_hunyuanimage.py:74-105 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9e8524481426b7c5739d4c199777815030c8f0774c7664fab55191fec315ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:47-84 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:46-83 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b2ae73cfd6a44f99dd06ea6cd271240ba845bf73509f5c9f0914e2e943e7e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 2): src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:95-131 | src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:302-339 \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":"src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"2181656078fe7d62f816b5b85a984547175bdc164d077d85301d9adc0cc2660e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201338 lines \u00D7 2): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:609-643 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:649-686 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad70e1f057aae54d86aab9e08688d5591e16528cd043d0e74edbaa9cb329af8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:202-239 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:233-270 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea2dd0c525253c3e24ee63a7d8575bbf34896372844099b0f215ade8bcfdf03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx.py:731-768 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:803-840 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 953 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:731\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:841\u0060 calls \u0060unsqueeze\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:770\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09c72c0515ae66c6de5fe991c8cfa09d429bf0e2149275f04ce1575a0f8e8e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:606-643 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:585-622 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 700 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"965101a4ba202603aa25a3c1aaf9a110ecb0e845910e9a018f446602ee32be1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 6): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:809-845 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:770-806 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:937-973 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:724-760 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:780-816 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:872-908 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 914 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e2045dae54537a2ac5e1023e1b8397f20d0c1bf5579929e91f810bf547e1f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201337 lines \u00D7 4): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:874-910 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:762-798 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:948-984 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:719-754 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"2263720a222aa925e6c8298a2cda2057d504c78de9d63d27666eeb27ab5c0715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201337 lines \u00D7 4): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:612-644 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1205-1241 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:1026-1061 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:734-767 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:612\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d78a129e90bcf4244d0493148819ccebce56da23c6ef354823c17821aabd2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 3): examples/community/pipeline_animatediff_controlnet.py:1059-1095 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1051-1087 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1289-1325 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 69 separate duplicated blocks between them, totalling at least 975 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_animatediff_controlnet.py:1056\u0060 calls \u0060repeat_interleave\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1048\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":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd7bfef9bb86dff48d4a04719314fe10ae83ca413c06d817eaa52fefa29735f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 3): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:641-677 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:594-630 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:765-801 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 730 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c55d5fe55d11431c2fc2d7e8eb434e8aed5a6a35c5a3219b25129651c9f3c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1168-1204 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1106-1142 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa6c694b94df586517dd49e2cedd1c7120fa075809cafc5bbc68bea49787ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/diffusers/models/controlnets/controlnet.py:366-402 | src/diffusers/models/controlnets/controlnet_union.py:326-362 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_union.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba4db5b8710269aef2890b5fc725c058f6670b48c70e2607c762f3b6e5a4eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201344 lines \u00D7 2): src/diffusers/models/transformers/transformer_joyimage.py:288-330 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:236-279 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_joyimage.py\u0060 and \u0060src/diffusers/models/transformers/transformer_joyimage_edit_plus.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b4ea3a80b063c674c03884d6d3864d26a750d15b98738d0c8c8aae9609ec40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/diffusers/modular_pipelines/flux/inputs.py:208-244 | src/diffusers/modular_pipelines/flux/inputs.py:267-303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"806e0ab56fa3f4eb74b5d0548b4ab18e0875f0f04ac8be313f5ef4c2b90dd602"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1064-1100 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:619-655 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 527 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb08a18f8fe0fd006145ae1fbea831a78d8d7c4429b00a92e498fdd8750dcc72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux.py:795-831 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:582-618 \u2014 \u0060src/diffusers/pipelines/flux/pipeline_flux.py\u0060 and \u0060src/diffusers/pipelines/ovis_image/pipeline_ovis_image.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 39 separate duplicated blocks between them, totalling at least 458 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux.py:795\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10b8c3a9acf610c010f13a13bf1fd6c8d57f0b6360279df6b890db177c3f6ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:984-1020 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1048-1084 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1292 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c527168774e4828d59f2138c32a1e89b347e1381ed3f64ec90b7d68697c769"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:374-410 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:367-403 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1063 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cbb75348c0c2e7cb29dcfaf4d8f82eb9c28a1b634c605dbdf714ea33cb63071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 2): src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:172-241 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:191-260 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py\u0060 and \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 344 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:172\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":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f74d062b3e228549c7aa35fa252094d9693a596f02d1a4f0e581475aa5d5375"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201337 lines \u00D7 2): src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:904-939 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:809-845 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 700 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:904\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"b210404eed1ed297118a42afd693b8d60e40742d536aa7e7b6c1424fb5fc9367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201336 lines \u00D7 8): examples/community/pipeline_controlnet_xl_kolors.py:368-398 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:392-427 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:442-477 | examples/community/pipeline_kolors_differential_img2img.py:352-387 | examples/community/pipeline_kolors_inpainting.py:629-664 | src/diffusers/pipelines/kolors/pipeline_kolors.py:326-361 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:346-381 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:343-378 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_controlnet_xl_kolors.py:368\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"92faa9ddca1b76b0827bbd17419307ea8008fc06a2b2d1f3d6f58ff5701365fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 8): src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:449-484 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1048-1083 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1027-1062 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:565-600 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:663-698 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:912-947 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:651-686 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:912-947 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:560\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:658\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e2ded70097250d6bd29aaff7fb70f694ac27a64d61a632159dd693007ff823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201336 lines \u00D7 5): examples/community/latent_consistency_img2img.py:416-446 | examples/community/latent_consistency_txt2img.py:331-361 | examples/community/matryoshka.py:239-273 | examples/community/scheduling_ufogen.py:55-89 | src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py:49-84 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f62f9472b43a2c15fa5c5a3e7c31a526eb1e9b835fec8521e7b6dc4ca30b0b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 5): examples/community/pipeline_stg_cogvideox.py:502-537 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:448-483 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:494-529 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:541-576 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:518-553 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d5daccfc37380a058d714bc61783f1f6e0fe5fc5085ea016686b7e648ddc3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 4): src/diffusers/pipelines/sana/pipeline_sana.py:373-408 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:388-423 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:396-431 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:394-429 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_controlnet.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2d66ccd89c1c7d8df84632909bca4198a2faf835db70e3b203fbdb8ac198e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 3): src/diffusers/models/transformers/transformer_chronoedit.py:130-165 | src/diffusers/models/transformers/transformer_wan.py:127-162 | src/diffusers/models/transformers/transformer_wan_animate.py:610-645 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_wan.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 632 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db3f141be41b9c8cc9f54a52a2c4b8da9b017997fc3f2683b34ff9a0c5723fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201336 lines \u00D7 3): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:691-725 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:930-961 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1145-1180 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:691\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e14ce0f98b05f5bf7ca93358804f537eded164095afaf27385c94e2510254f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:863-898 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:801-836 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f19795f8f0ecf0388e5c695544812972f47bd1189dbe11069f7d03ba1051d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/diffusers/guiders/adaptive_projected_guidance.py:173-208 | src/diffusers/guiders/adaptive_projected_guidance_mix.py:216-251 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/adaptive_projected_guidance.py\u0060 and \u0060src/diffusers/guiders/adaptive_projected_guidance_mix.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/adaptive_projected_guidance.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a28486db673bbdf95d658cc638422c34b7ab98c5a326b2646827e26abfff954"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/diffusers/models/unets/unet_3d_condition.py:227-262 | src/diffusers/models/unets/unet_i2vgen_xl.py:264-299 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_condition.py\u0060 and \u0060src/diffusers/models/unets/unet_i2vgen_xl.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_condition.py:227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69306a886c66242fb4580e0e57e8e28ee42e00b9f1d3c1b7418765862dd494a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:2751-2786 | src/diffusers/pipelines/pipeline_utils.py:496-531 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2751}}}],"partialFingerprints":{"codehealthFindingId/v1":"925fa5b6942c9905cf446c1f7fec5f743bc2eeabc62c53587c891e6276646bc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:338-373 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:416-451 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 216 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d3f3ccda254f7e7f07b28d889e07dc91ae4c61541cf1a24f648819ac729254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:672-707 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:784-819 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:672\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"215b63e703ab279e237fc3adf9de9140f6a1de43e0e4179f3914cbd8514b57d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1077-1112 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1223-1258 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebe2ff1c28e39678c3f6eb512991089f690f32fd6292b873d78ba8459d70dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:974-1009 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:998-1033 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 2039 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1659f4cc086580f11a9391ad186e2c57898d85a656d38c51c7728edf46d162"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:878-913 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:849-884 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 77 separate duplicated blocks between them, totalling at least 1086 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:878\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bc33041d68bd709dc4fbd8a32548409188839ebdb98e5dacbd9e8bfc568e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201336 lines \u00D7 2): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:500-531 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:534-569 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 332 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:534\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6785c908aa972dc2a54f2e272ea02d650181e6614e57c7da80de40bad6213f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:337-372 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:340-375 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_flow_match_lcm.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:331\u0060 calls \u0060warning\u0060 and \u0060src/diffusers/schedulers/scheduling_flow_match_lcm.py:338\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"2971c45b69a5d22472e9b7c3a1a7e7fa879969f2f2090d7594397df497ffa971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): src/diffusers/utils/export_utils.py:53-96 | src/diffusers/utils/testing_utils.py:774-817 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/utils/export_utils.py:97\u0060 calls \u0060Struct\u0060 and \u0060src/diffusers/utils/testing_utils.py:818\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/export_utils.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb212d3ad3918d9e634fb9b65529570e247c92280d947131659a814905fc11b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 7): examples/community/pipeline_z_image_differential_img2img.py:598-632 | src/diffusers/pipelines/z_image/pipeline_z_image.py:414-447 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:514-547 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:528-561 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:510-544 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:697-731 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:475-509 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f93797915975f3bb2a1a51c1c0bb1f626b516adf55db5dcab874a7f7d506c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 6): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:234-268 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:299-333 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:281-315 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:277-311 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:288-322 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:300-334 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9aca7facac2e3a89deb081d930df3c4ade049211726033a861bd7585020fa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 4): examples/community/adaptive_mask_inpainting.py:246-280 | examples/community/stable_diffusion_repaint.py:71-105 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:171-205 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:169-203 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/stable_diffusion_repaint.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"606a50aa3ea9d1d2b9555d5e74a97e49b653e1edacb4a578d50daf8e78357cdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 4): examples/community/matryoshka.py:934-968 | src/diffusers/models/unets/unet_2d_blocks.py:774-808 | src/diffusers/models/unets/unet_dreamlite.py:423-456 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2196-2230 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:423\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/unets/unet_2d_blocks.py:615\u0060 calls \u0060Tensor\u0060 and \u0060examples/community/matryoshka.py:863\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":"examples/community/matryoshka.py"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"486a98536ca86033d3e73a0dbcdbc386f72975b78146a54cab5341977f94509f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 4): examples/community/pipeline_hunyuandit_differential_img2img.py:472-506 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:403-437 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:375-409 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:385-419 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"968f3fa54aaf42c5670c75e5c08a51302867e682e263bf40d87efcc5e9cc21da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201335 lines \u00D7 4): src/diffusers/models/downsampling.py:187-220 | src/diffusers/models/downsampling.py:360-389 | src/diffusers/models/upsampling.py:219-253 | src/diffusers/models/upsampling.py:466-494 \u2014 before extracting anything, compare \u0060src/diffusers/models/downsampling.py\u0060 and \u0060src/diffusers/models/upsampling.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/downsampling.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e0eb0e591a9d2695e0c8d5d7735315b6438ab9234f44fd1855c9aca6638c5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): examples/community/pipeline_flux_kontext_multiple_images.py:1150-1184 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1038-1072 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1346-1380 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1344\u0060 calls \u0060cat\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1148\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84c711330418b1ddc58397cfd5186647e78d1e25d2a239fe6890450b4df185f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:282-316 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:294-328 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:296-330 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 786 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60fd6be1c348991bbd686677630351b77282743cde963e94898210dadca2137"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 3): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:775-809 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:626-660 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:692-725 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"547fa9c2a5defe2964b8dba0a8ffc5a80f1ac9ce3523cc1c148656bf5ccae658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): examples/community/pipeline_stg_mochi.py:809-863 | src/diffusers/pipelines/mochi/pipeline_mochi.py:668-722 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_mochi.py\u0060 and \u0060src/diffusers/pipelines/mochi/pipeline_mochi.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 799 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060MochiPipelineOutput\u0060 names \u0060.pipeline_output\u0060 in one and \u0060diffusers.pipelines.mochi.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78554431a77def3e9f52b9548468f03e4edf7c682e48ca04dda0cd860bb6d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): examples/community/pipeline_stg_wan.py:538-572 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:513-547 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:513\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b31a08b18d11055e55a85450c0775ffbf36dbc04f497dbbf970c54df556263"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:536-570 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:652-686 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dbec72f380ff6debc45d9478cd4b911353169bd61eaad312aa6c32c9076be6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:764-798 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:803-836 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"2642ae61beaae0385a9c31dc84055bba378f8da81e3a50f68aecd67e11b82b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1382-1416 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1264-1298 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be7459d74a5caa43d7667e2033bc6fe5a33a50ceb5e29690ef93f9c8b7cd385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/diffusers/models/embeddings.py:895-929 | src/diffusers/models/transformers/transformer_bria.py:65-100 \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 \u0060src/diffusers/models/embeddings.py:895\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa23b57c3a40655401b9430055e63191c9893ec63760df3f6a1eebb13ae2fd00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow.py:417-451 | src/diffusers/models/transformers/transformer_anyflow_far.py:530-564 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddb68abbb1b16913530361e0d6f992cdb6baeac7f2d06458a5755e43afc924c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:79-113 | src/diffusers/models/transformers/transformer_glm_image.py:108-142 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_cogview4.py\u0060 and \u0060src/diffusers/models/transformers/transformer_glm_image.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5752f28f530124f0bfeed3417ae2f203d3907d50eb059260eb6fc15dec31a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1269-1303 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1557-1591 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1330 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f912af3608de56626cf4783079446cb2863d0b92431bd2082be6f8f5088635a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:673-707 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:747-781 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2ac36422e5b7e57e90590bb9f958f28024b0d55614daa30f6ce13f6aa0b2db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:407-441 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:402-435 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py\u0060 and \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:407\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cdaaa185b34e1f80456e8bf82bad2458f9d9a8f62cf334b82e2b9e06be2b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux.py:763-797 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:887-921 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 76 separate duplicated blocks between them, totalling at least 1048 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux.py:763\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"171db557d3ffaa90db38416d311c1d7577cc35618de99a2a230c742403a2995c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:494-528 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:480-513 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 533 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42b8a09d43b594791c180bbd0340530d33892c3efa6d9dc10ee3172b45eb682"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1413-1447 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1498-1532 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 117 separate duplicated blocks between them, totalling at least 1765 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1413\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbea858457a788b58edeb41b5638be89f2bdbbdea3837f2251526bb4f931450"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201335 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:922-956 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:993-1024 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py\u0060 as WHOLE FILES: this scan already matched 69 separate duplicated blocks between them, totalling at least 1053 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:922\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:991\u0060 calls \u0060max\u0060, \u0060progress_bar\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:922\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":"src/diffusers/pipelines/pag/pipeline_pag_sd_3.py"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af188c5ab64037ee41bf1e658afd2bfb3a6eb4578c1a66c58cf2dc81c27f94b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 2): src/diffusers/pipelines/shap_e/pipeline_shap_e.py:311-345 | src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py:300-332 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/shap_e/pipeline_shap_e.py\u0060 and \u0060src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/shap_e/pipeline_shap_e.py:311\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py:298\u0060 calls \u0060maybe_free_model_hooks\u0060 and \u0060src/diffusers/pipelines/shap_e/pipeline_shap_e.py:311\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/shap_e/pipeline_shap_e.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"752053fb43e76b088b3b6723d0a009e4d547c6bc757ca157229b0533c5c8b95f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:208-242 | src/diffusers/schedulers/scheduling_helios_dmd.py:186-220 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_helios.py\u0060 and \u0060src/diffusers/schedulers/scheduling_helios_dmd.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be9f9e1075b7ac6c2ed6c7a9bda98d0202949b7dd7520fd9b2ed8552e442f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201334 lines \u00D7 26): examples/community/mixture_tiling_sdxl.py:577-608 | examples/community/pipeline_sdxl_style_aligned.py:696-727 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:879-910 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:429-460 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:576-607 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:456-487 | examples/community/pipeline_stable_diffusion_xl_ipex.py:456-487 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:487-520 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:518-549 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:482-513 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:490-521 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:482-513 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:471-502 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:482-513 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:501-532 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:414-445 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:776-807 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:497-528 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:487-518 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:484-515 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:502-533 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:592-623 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:474-505 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:492-523 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:596-627 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:502-533 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 548 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4f813f7bec443965d74ed017d4589a4a3e3caad50cbd3898d86b59105f4dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 14): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:367-400 | src/diffusers/schedulers/scheduling_deis_multistep.py:402-435 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:545-578 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:420-453 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:508-541 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:487-520 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:431-464 | src/diffusers/schedulers/scheduling_euler_discrete.py:484-517 | src/diffusers/schedulers/scheduling_heun_discrete.py:381-414 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:370-403 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:413-446 | src/diffusers/schedulers/scheduling_lms_discrete.py:403-436 | src/diffusers/schedulers/scheduling_sasolver.py:400-433 | src/diffusers/schedulers/scheduling_unipc_multistep.py:581-614 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/schedulers/scheduling_euler_discrete.py:481\u0060 calls \u0060to\u0060, \u0060_sigma_to_t\u0060 and \u0060src/diffusers/schedulers/scheduling_heun_discrete.py:319\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"867119da7015fe239c41c62e6841c43698aeafbf56e91d3e48c8a156e48ba72f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 7): examples/community/pipeline_z_image_differential_img2img.py:761-794 | src/diffusers/pipelines/z_image/pipeline_z_image.py:539-572 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:676-709 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:703-736 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:651-684 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:856-889 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:685-718 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce1b1bde7cc41c43a87582c14cc919ba710bc4354bbd33f7e009a16b5707be6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 4): examples/community/matryoshka.py:2136-2169 | src/diffusers/models/unets/unet_2d_condition.py:344-377 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:281-314 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:634-667 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_condition.py:344\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":"examples/community/matryoshka.py"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"3714b385eca19ed74a0a52ad793e89b3957be26d4dba64cc5370588ef54d0a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 4): examples/community/pipeline_kolors_inpainting.py:1416-1449 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1971-2004 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1440-1473 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1447-1480 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1440\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"8529a4dcb4a62c554bfee7ba051d4d728b2b1a677971261e56863dcf155adf42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 4): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:592-625 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:642-675 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:633-666 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:678-711 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 858 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ee4a813038caebf6013faf4d5c07d7d2928699d283f25e009da6c2064f2579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201334 lines \u00D7 3): examples/community/matryoshka.py:2079-2111 | src/diffusers/models/unets/unet_2d_condition.py:286-319 | src/diffusers/models/unets/unet_dreamlite.py:1718-1748 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_condition.py:286\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d7e1a4be9c85ddcc5ebe7f7c44191cdbfdaacec535794192214e98ad168724"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): src/diffusers/image_processor.py:567-600 | src/diffusers/modular_pipelines/wan_animate_2/video_processor.py:84-117 | src/diffusers/pipelines/wan/image_processor.py:140-173 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80768b21f93d9d009d616b584d0c0a6f40fe10d19c54a0a1f6d39ed1abd901e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:926-959 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1406-1439 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1288-1321 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5704cbd84d8ccccfc334c37286c59f7d3dbc8d7b59ab1f85e0a7cf43140919"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201334 lines \u00D7 3): src/diffusers/pipelines/chroma/pipeline_chroma.py:217-250 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:231-262 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:248-279 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 792 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c6c8152d0945c121ba6299f426e3c46d65e8d1d5d40c3417c58fb0f9c4c365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201334 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1178-1207 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1432-1465 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1313-1343 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1330 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"3721da64adfcddbfbd954e368dcfa4cd5097e307870649df7765d49e30d2e5a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:169-202 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:171-204 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:127-160 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 984 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4610d597d2f623d4a725d67f0c6dd29f1818ac5419420eeaec33d4a40a4b5dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:158-219 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:191-252 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:322-383 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 396 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:158\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1791a0fc1e25e698c43646afcaba63e8348822a713dfb2d17134d822b95f347c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1076-1109 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1014-1047 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"e522ffb4310f9747e37740e9a1a8c54f383ef0b9fedb9146573fe2824cedd073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201334 lines \u00D7 2): src/diffusers/loaders/lora_conversion_utils.py:414-447 | src/diffusers/loaders/lora_conversion_utils.py:2633-2664 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/lora_conversion_utils.py:414\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":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6975061c69764d61d1dfb2e6ddf289d546c896cde23d620f554617c50d3323"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): src/diffusers/loaders/lora_pipeline.py:4160-4200 | src/diffusers/loaders/lora_pipeline.py:4425-4465 \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":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":4160}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7ec0ae685522e6fd515d894cbb8f98dd38dbe7f809685369fdd81697385803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201334 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:2417-2450 | src/diffusers/models/attention_dispatch.py:2702-2733 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/attention_dispatch.py:2456\u0060 calls \u0060detach\u0060 and \u0060src/diffusers/models/attention_dispatch.py:2735\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":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":2417}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2d074418fdc7903a2df1a4a35a0baad8cd7b9571652b1a788ec520c2a85bf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/diffusers/models/unets/unet_dreamlite.py:752-785 | src/diffusers/models/unets/unet_dreamlite.py:1147-1180 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:752\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41f5603b7729f1acb4775fbc0b9cfe9c71a0d7d2b1aed944fc4fe61a230ed8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/diffusers/modular_pipelines/ideogram4/encoders.py:249-282 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:300-333 \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":"src/diffusers/modular_pipelines/ideogram4/encoders.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2ded5894877690e9b4ae017b3da7b99c5dd65d73cf79ffca65b63eb8f6615e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:929-962 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1247-1280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1245\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:928\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"34eb9a6ff34944d6638c426f254276e824022f69a2f1d556863bdedea0e2eed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux_img2img.py:985-1018 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1141-1174 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_inpaint.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1244 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_img2img.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93749d838cc34b410acb7d1d78376079067f3b74c19052c45c27dba5599b2f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:942-975 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:1019-1052 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:1016\u0060 calls \u0060normalize_first_frame\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:939\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"7656eb78ef783fa3dcd0b67eab2d7402f5589fd3ecb280ad5ada15d55ae2b85d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py:255-288 | src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py:542-575 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dab4ed0e6e9e5e729de8b0c9e153b884f98641708ad90f9c70c6e8b59bc050e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201333 lines \u00D7 40): src/diffusers/schedulers/scheduling_deis_multistep.py:461-489 | src/diffusers/schedulers/scheduling_deis_multistep.py:500-527 | src/diffusers/schedulers/scheduling_deis_multistep.py:536-568 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:603-631 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:668-695 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:704-736 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:479-507 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:518-545 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:554-586 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:570-597 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:606-638 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:546-574 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:585-612 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:621-653 | src/diffusers/schedulers/scheduling_euler_discrete.py:521-549 | src/diffusers/schedulers/scheduling_euler_discrete.py:560-587 | src/diffusers/schedulers/scheduling_euler_discrete.py:595-627 | src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:535-563 | src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:574-601 | src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:610-642 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:509-537 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:548-575 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:584-616 | src/diffusers/schedulers/scheduling_heun_discrete.py:418-446 | src/diffusers/schedulers/scheduling_heun_discrete.py:457-484 | src/diffusers/schedulers/scheduling_heun_discrete.py:493-525 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:407-435 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:446-473 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:482-514 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:450-478 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:489-516 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:525-557 | src/diffusers/schedulers/scheduling_lms_discrete.py:464-491 | src/diffusers/schedulers/scheduling_lms_discrete.py:500-532 | src/diffusers/schedulers/scheduling_sasolver.py:459-487 | src/diffusers/schedulers/scheduling_sasolver.py:498-525 | src/diffusers/schedulers/scheduling_sasolver.py:534-566 | src/diffusers/schedulers/scheduling_unipc_multistep.py:640-668 | src/diffusers/schedulers/scheduling_unipc_multistep.py:679-706 | src/diffusers/schedulers/scheduling_unipc_multistep.py:715-747 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e70561580abd55bfc8527964816ac78ed7f5f6a06f4566047dba767c3517a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201333 lines \u00D7 15): examples/community/latent_consistency_img2img.py:452-481 | examples/community/latent_consistency_txt2img.py:367-396 | examples/community/matryoshka.py:280-312 | examples/community/scheduling_ufogen.py:96-128 | src/diffusers/schedulers/scheduling_ddim.py:104-136 | src/diffusers/schedulers/scheduling_ddim_inverse.py:103-135 | src/diffusers/schedulers/scheduling_ddim_parallel.py:105-137 | src/diffusers/schedulers/scheduling_ddpm.py:102-134 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:104-136 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:88-120 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:105-137 | src/diffusers/schedulers/scheduling_euler_discrete.py:108-140 | src/diffusers/schedulers/scheduling_lcm.py:107-139 | src/diffusers/schedulers/scheduling_tcd.py:106-138 | src/diffusers/schedulers/scheduling_unipc_multistep.py:88-120 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca16345edd279038941dc5b0fa017402b62f01b0eb22b2636017f8fea0397ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 7): examples/community/pipeline_zero1to3.py:202-235 | examples/community/stable_diffusion_controlnet_img2img.py:195-227 | examples/community/stable_diffusion_controlnet_inpaint.py:294-326 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:279-311 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:118-151 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:172-208 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:139-172 \u2014 before extracting anything, compare \u0060examples/community/pipeline_zero1to3.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_zero1to3.py:202\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":"examples/community/pipeline_zero1to3.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"356a76a77c92bc8fed4b655af341552876d3490dddec8a23c358b1f7bf884ddd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 7): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:286-318 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:310-342 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:463-495 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:314-346 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:465-497 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:421-453 | src/diffusers/pipelines/latte/pipeline_latte.py:308-340 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a653cb94f6340d6e73a0e98fd279d8dd66476bd1200c47f1112e86a1874f8ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 6): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1137-1169 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1022-1054 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1049-1081 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1066-1098 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:910-942 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:850-882 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 667 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e578df6e55fcd4c717c229945189bbfbbfe701e1fe1e2a8a6de541fa78d7e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 5): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1047-1078 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:849-880 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:913-944 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:961-992 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1008-1040 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 998 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c50662c86f50b2f528971e492b9a1a419847ac06b7adb1c193095e665eb5629"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201333 lines \u00D7 4): src/diffusers/models/unets/unet_2d_blocks.py:1210-1237 | src/diffusers/models/unets/unet_dreamlite.py:618-650 | src/diffusers/models/unets/unet_dreamlite.py:768-800 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1666-1693 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:618\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: \u0060DualTransformer2DModel\u0060 names \u0060....models.transformers.dual_transformer_2d\u0060 in one and \u0060..transformers.dual_transformer_2d\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebed140446d57b6d66c3f26ced28a0029051b37f2716ea8aa3a2fd32aed7c1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 3): examples/community/stable_diffusion_ipex.py:321-354 | examples/community/stable_diffusion_repaint.py:295-327 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:506-539 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_ipex.py\u0060 and \u0060examples/community/stable_diffusion_repaint.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 607 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_ipex.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5cd5c3a084c5c0111b58ba8530f39c7b767ff22195fbea7a050fff43ef4b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 3): examples/community/stable_unclip.py:91-122 | examples/community/unclip_text_interpolation.py:152-184 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:156-188 \u2014 before extracting anything, compare \u0060examples/community/stable_unclip.py\u0060 and \u0060examples/community/unclip_text_interpolation.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/unclip_text_interpolation.py:152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_unclip.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfb352d718ee7729e4953014df0c15afaffb4f2df1963e50a1c3b18db5c6ea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 3): src/diffusers/models/transformers/transformer_chronoedit.py:654-686 | src/diffusers/models/transformers/transformer_skyreels_v2.py:645-681 | src/diffusers/models/transformers/transformer_wan.py:638-670 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_chronoedit.py:654\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_wan.py:674\u0060 calls \u0060contiguous\u0060 and \u0060src/diffusers/models/transformers/transformer_chronoedit.py:690\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2a9b42ee70498f950331c77760477ef111df55b3c89dbf51297215e0ad2745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201349 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video.py:86-134 | src/diffusers/models/transformers/transformer_hunyuanimage.py:87-129 | src/diffusers/models/transformers/transformer_motif_video.py:150-190 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:86\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8e75a33f2483c6e12cfff8035c09e8f510abf3522f8ad9c61e53fc55a62a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201333 lines \u00D7 3): src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:861-889 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:866-894 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1065-1097 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a42602f325ce1380efc7ad50154dcb3b75d5dbc943c831697f9ce87ffe02fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201333 lines \u00D7 3): src/diffusers/pipelines/chroma/pipeline_chroma.py:858-886 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:937-969 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1118-1150 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 792 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be552bdf339db706130ec93d048a9b18c9eeb19f5a4e449854a80c3f744dec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): examples/community/fresco_v2v.py:2290-2322 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1149-1181 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 123 separate duplicated blocks between them, totalling at least 1589 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2290}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3cda31ca2d8b960e436485a281f2fdf8ed307dab0ff12ff9fea5988c6cfdce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:216-247 | src/diffusers/models/autoencoders/vae.py:112-144 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"390af8b232185015e546e4d459d4c4ccc4bb2752161d2aac73f538462415d605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): src/diffusers/models/attention.py:843-875 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:132-163 \u2014 before extracting anything, compare \u0060src/diffusers/models/attention.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention.py:843\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: \u0060SinusoidalPositionalEmbedding\u0060 names \u0060..embeddings\u0060 in one and \u0060.embeddings\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcba53d9eeaab5d1a684b0ec1548daebddc5135975c5b7b928c68ee11cc3bd87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): src/diffusers/models/attention.py:977-1009 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:268-299 \u2014 before extracting anything, compare \u0060src/diffusers/models/attention.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96210434bfcef9ec979f6baf4268724c185218c8c81e0a4bbbb7d70b336db2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_flux.py:402-433 | src/diffusers/models/controlnets/controlnet_flux.py:440-472 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_flux.py:440\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_flux.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc8dab31eb3f3426b793530e109f06cd637fcc6e831e5542c472740f6262ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_z_image.py:592-624 | src/diffusers/models/transformers/transformer_z_image.py:593-625 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 289 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b22960447879931da6a661b5813b2f32266d8ca18e6bfed0241549b04fadc2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:2807-2839 | src/diffusers/models/unets/unet_2d_blocks.py:2919-2951 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2807}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e496b5e3f4498b10978f6ebc323d193b07161e4c3db8ef24425620fa1217c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201333 lines \u00D7 2): src/diffusers/modular_pipelines/anima/denoise.py:85-117 | src/diffusers/modular_pipelines/z_image/denoise.py:127-152 \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":"src/diffusers/modular_pipelines/anima/denoise.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2163288d63a2cf635a12517de3c5d471126b42b0aad22644d5e9819759966700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): src/diffusers/pipelines/helios/pipeline_helios.py:852-884 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:996-1028 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios.py\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/helios/pipeline_helios.py:852\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7ca70e0739341e3465640adeb35e350181696aa4ea8bebd3e3f81082c803cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (81 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1442-1522 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1711-1791 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fc75c949dd05c3839b61e13d102d2a75fd433b730585bbd8132aabb4a79afe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 19): examples/community/pipeline_flux_differential_img2img.py:340-371 | examples/community/pipeline_flux_kontext_multiple_images.py:382-413 | examples/community/pipeline_flux_rf_inversion.py:337-368 | examples/community/pipeline_flux_semantic_guidance.py:341-372 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:370-401 | src/diffusers/pipelines/flux/pipeline_flux.py:323-354 | src/diffusers/pipelines/flux/pipeline_flux_control.py:337-368 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:348-379 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:387-418 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:355-386 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:349-380 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:360-391 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:432-463 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:346-377 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:350-381 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:371-402 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:404-435 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:310-341 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:304-337 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9877dca0fa4c0969c954de20910038dc35316128e07275f16f856bec624ddf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 10): examples/community/pipeline_flux_kontext_multiple_images.py:466-497 | src/diffusers/pipelines/chroma/pipeline_chroma.py:384-415 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:412-443 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:413-444 | src/diffusers/pipelines/flux/pipeline_flux.py:405-436 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:439-470 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:430-461 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:434-465 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:455-486 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:488-519 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 535 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ffbe3eead2892ef76d42ba3f17ee0b12cd93a0adb6bd3de12812fe4e4a39f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201332 lines \u00D7 4): examples/community/matryoshka.py:2551-2582 | src/diffusers/models/attention.py:65-96 | src/diffusers/models/controlnets/controlnet_hunyuan.py:142-171 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:853-884 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060processor\u0060 to \u0060Union[AttentionProcessor, Dict[str, AttentionProcessor]]\u0060 in one and \u0060AttentionProcessor | dict[str, AttentionProcessor]\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":"examples/community/matryoshka.py"},"region":{"startLine":2551}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5ae2803bc9daefd8a7d5dbdc0057a6319c6feeabbdc1f02f514be65f52f812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:603-634 | scripts/convert_zero123_to_diffusers.py:451-482 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:601-632 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_zero123_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 877 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa8c144d29ceab103f54908e7a6ce9eb41b07cca904a0c38bd036b6f2262913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201332 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:2537-2568 | src/diffusers/models/unets/unet_dreamlite.py:1303-1332 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1810-1841 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1806\u0060 calls \u0060get\u0060, \u0060deprecate\u0060 and \u0060src/diffusers/models/unets/unet_dreamlite.py:1302\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2537}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed3fe81b350b4ca77e7579943c6f4d9bd448e86734f0ddf83672e3fe3b3c914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): src/diffusers/modular_pipelines/anima/encoders.py:292-323 | src/diffusers/modular_pipelines/qwenimage/encoders.py:223-254 | src/diffusers/modular_pipelines/qwenimage21/encoders.py:164-195 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/encoders.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89678f416aaabe523d18e462a9024730c0e5e461049cb32530c404a7ed4ce8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 3): src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py:106-136 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:296-327 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:336-367 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"add9deb60531bd846844cd813231414b96c0109f74cf6fa0faf36a99d1849382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:639-670 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:741-772 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:910-941 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py\u0060 as WHOLE FILES: this scan already matched 56 separate duplicated blocks between them, totalling at least 701 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aaab17f42bbfaf5fbcd9b3369bebc78b7e5bef77a3f02e7f4299eb37743a7ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): examples/community/pipeline_stg_mochi.py:83-114 | src/diffusers/models/transformers/transformer_mochi.py:210-241 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15db0bd5402b3f3046a6be9b2dc90826aa203efda9a79cce28306cf7c8f8901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): src/diffusers/models/attention_processor.py:1298-1329 | src/diffusers/models/attention_processor.py:2427-2457 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"131774418605317b915cf01d9caf1d09438b5c01b9725a384d1c39969347c745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl.py:303-362 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:315-374 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 342 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e08c36f7a132a3529f6883375c58acf407f7157117eb28bd911775c605c5bae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/diffusers/models/embeddings.py:1834-1867 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:198-231 \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, \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:197\u0060 calls \u0060FourierEmbedder\u0060 and \u0060src/diffusers/models/embeddings.py:1833\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":1834}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73fdb3a55a3ae80f1411a8d516c9bfec9af8e7f57c55ba3194ff1cdd9efb04e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:2595-2626 | src/diffusers/models/unets/unet_2d_blocks.py:2676-2707 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2595}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffe8bc4399239c4a25df4961e9ae4575f410afa385ed42575c3af2a9142d315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/diffusers/modular_pipelines/cosmos/encoders.py:29-65 | src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:64-100 \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":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"818a93d4d016bbd56c8a2e57d4185acf38af82f53d6dba34634165184162851c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1108-1139 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:945-976 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py\u0060 as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 1062 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1108\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet.py"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5080e319fd17deed84f84c7231e393537db6d6286fe6c30e88199cbc4a44425"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/diffusers/pipelines/prx/pipeline_prx.py:467-498 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:229-260 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/prx/pipeline_prx.py\u0060 and \u0060src/diffusers/pipelines/prx/pipeline_prx_pixel.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0b77293030675bd9c8bcf211b5e5573517d737b379888e077f659940077682"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:109-140 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:120-151 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_flow_match_lcm.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0955ab080fa9235656920cb5281e245d235ffc5c4e651697890b31bd353d9073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 6): examples/community/pipeline_z_image_differential_img2img.py:717-747 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:620-650 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:647-677 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:606-636 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:811-841 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:623-653 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 368 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8b31c3108c3397ed713dc9bf45c94bfd6f3e1831478d553fe2e9cf108f0322"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201331 lines \u00D7 5): examples/community/matryoshka.py:487-512 | src/diffusers/schedulers/scheduling_ddim.py:335-365 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:282-309 | src/diffusers/schedulers/scheduling_ddim_parallel.py:339-369 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:284-312 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060device\u0060 to \u0060str | torch.device = None\u0060 in one and \u0060str | torch.device | None = None\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bae80d75381a7511c4fd47e12115d3c86969f1e291a466945f46f4e1b9e3709"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 5): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1538-1568 | scripts/convert_original_audioldm2_to_diffusers.py:928-958 | scripts/convert_original_audioldm_to_diffusers.py:868-898 | scripts/convert_original_musicldm_to_diffusers.py:873-903 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1438-1468 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"b420c92b19fb119597c788ac8f4149b39fade4db27ba406bf37832fb6ffc291d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201331 lines \u00D7 4): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1024-1054 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:916-946 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:799-826 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:932-962 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:794\u0060 calls \u0060preprocess\u0060, \u0060to\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:912\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b37ff197961e317605af0c8809c8560f025a6b4c64b63292a9a798d556f59c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201331 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:973-999 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1154-1184 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1160-1190 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:737-761 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0501484c98fedeb794ef6a52b7ff33ef5b7344e197b878890bb4ca82e34fbcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 4): src/diffusers/models/transformers/transformer_ltx2.py:183-211 | src/diffusers/models/transformers/transformer_ltx2.py:270-300 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:167-195 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:255-285 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1abc00c11602e44103cd5fcf5f9d08f218ac0d713f96dd55b146e6a58cdbb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 4): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:733-763 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:910-940 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:948-978 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1152-1182 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"add6f4571ef6ef806a46da1920651644bd1264bae68230419b00bd72603015bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1496-1525 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1932-1961 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2363-2393 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1574-1603 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1496\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"242e26f7a138a389e0c300a3779c73cfe1935016bf510d565eb4bf6479d49df1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 3): examples/community/lpw_stable_diffusion_xl.py:785-849 | examples/community/pipeline_demofusion_sdxl.py:249-313 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:287-351 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_demofusion_sdxl.py:246\u0060 calls \u0060adjust_lora_scale_text_encoder\u0060 and \u0060examples/community/lpw_stable_diffusion_xl.py:783\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"833d7663b35592293d396444fa35f51a9b1fd26700db73df5065fbf687646d1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): examples/community/stable_diffusion_ipex.py:665-695 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:470-500 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:550-580 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_ipex.py\u0060 and \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 356 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_ipex.py:665\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":"examples/community/stable_diffusion_ipex.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73334e967951d7ed8262b4412cdc32b60fad11b9e0aee2de9d0449f2f4fbb50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:771-801 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:985-1015 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:815-845 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 786 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bcaf11058976ebd6b4814eaea1af4d47086b2681a4745906c508987fe32f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/community/pipeline_flux_semantic_guidance.py:1204-1234 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:585-615 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e9a1260ba84d4494be9b00cce30b70e14c7ed0e2df3a56ea755f8b4ac374ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/community/pipeline_stg_cogvideox.py:741-771 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:680-710 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"308bf538b065a1fd7b3ccd1db62c4686d8f0c393081ae94cb02c95a57a59d88d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): src/diffusers/models/attention.py:916-946 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:208-237 \u2014 before extracting anything, compare \u0060src/diffusers/models/attention.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention.py:916\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc2f27f6fe11e88a5d0f31df98074084f4a093d668405e0615f1bd384bcf88d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:58-89 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:57-88 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b9132efed1fdb82a49d3dee7ea2c3a7e5f539d6ab62d2d29618c4b8fc4e817"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201331 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py:283-313 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:343-368 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py:283\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":"src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f61d4ca561878c69bf608f92f3c7d52b5e671f537a618cb1b1937c196863e69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow.py:465-495 | src/diffusers/models/transformers/transformer_anyflow_far.py:578-608 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8ac44be086eafafe0f370c50b26bc6b921dea48e1bdefb12b47bb1c4b3494c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201331 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:1176-1206 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1208-1234 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79551a70862cb22b8d080399201458588c7cb8f5da51bd27362202834ab0ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1391-1421 | src/diffusers/models/unets/unet_2d_blocks.py:1478-1508 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"476cab3b30b8ab3e94a8cd3ebd9c1140c559db629d760e8056e5d2e271cf919e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage/inputs.py:433-463 | src/diffusers/modular_pipelines/qwenimage/inputs.py:880-910 \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":"src/diffusers/modular_pipelines/qwenimage/inputs.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c44b2485e96a6701e069d0d705b3a7d917e6c225f4da9d502d531197fa5a4fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1595-1625 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1598-1628 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 121 separate duplicated blocks between them, totalling at least 1970 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"6510bfddb5ce6b4f9a5466abdb1d80ffa4d5f65e03a6d0b9d8ee5456d44666fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:508-538 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:523-553 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:508\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, \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:540\u0060 calls \u0060maybe_free_model_hooks\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:554\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"9417c3ec5f3dfc80356f50de8df50359cb42877b4e77f97bbf85bcb66cab9145"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:177-207 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:174-204 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2848160be796b1f9958b606459ea4e9799c87e7dc7a190293af5be81a73a4381"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201346 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1914-1957 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:1711-1756 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 1105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:1711\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":1914}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef2c947f5e12971621cad7ca93edfbc71a8e8843701fe01c752b2e15cd783b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201331 lines \u00D7 2): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:375-405 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:391-415 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 770 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:375\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52f9e2c4118b91dc3ce6c76737ef84202607a3a03a82da7ec141309f52f03f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/diffusers/schedulers/scheduling_lcm.py:462-492 | src/diffusers/schedulers/scheduling_tcd.py:491-521 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_lcm.py\u0060 and \u0060src/diffusers/schedulers/scheduling_tcd.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 434 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_lcm.py"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"7771ece9de984c89fbf5389b17c80786629cf08cf433468f00b79a1a721ff30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201331 lines \u00D7 2): src/diffusers/utils/loading_utils.py:17-47 | src/diffusers/utils/testing_utils.py:711-736 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/utils/loading_utils.py:50\u0060 calls \u0060convert_method\u0060 and \u0060src/diffusers/utils/testing_utils.py:737\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/loading_utils.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c211564bbbc77b7377cc606b4f136239d1ad3b6a9266271a6e1722275de6a03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 174): examples/community/matryoshka.py:148-177 | examples/community/mixture_tiling_sdxl.py:231-261 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:142-171 | examples/community/pipeline_flux_differential_img2img.py:121-150 | examples/community/pipeline_flux_kontext_multiple_images.py:138-167 | examples/community/pipeline_flux_rf_inversion.py:115-144 | examples/community/pipeline_flux_semantic_guidance.py:112-141 | examples/community/pipeline_flux_with_cfg.py:91-120 | examples/community/pipeline_hunyuandit_differential_img2img.py:189-218 | examples/community/pipeline_kolors_differential_img2img.py:91-120 | examples/community/pipeline_kolors_inpainting.py:263-292 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:92-121 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:126-155 | examples/community/pipeline_stg_cogvideox.py:150-179 | examples/community/pipeline_stg_hunyuan_video.py:154-183 | examples/community/pipeline_stg_ltx.py:145-174 | examples/community/pipeline_stg_ltx_image2video.py:150-179 | examples/community/pipeline_stg_mochi.py:149-178 | examples/community/pipeline_z_image_differential_img2img.py:105-134 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:136-165 | examples/community/regional_prompting_stable_diffusion.py:1616-1645 | examples/community/stable_diffusion_xl_controlnet_reference.py:99-128 | examples/community/stable_diffusion_xl_reference.py:88-117 | examples/research_projects/anytext/anytext.py:1136-1165 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:197-226 | src/diffusers/modular_pipelines/flux/before_denoise.py:41-70 | src/diffusers/modular_pipelines/flux2/before_denoise.py:60-89 | src/diffusers/modular_pipelines/flux3/before_denoise.py:41-70 | src/diffusers/modular_pipelines/hunyuan_video1_5/before_denoise.py:43-72 | src/diffusers/modular_pipelines/ltx/before_denoise.py:54-83 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:62-91 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:51-80 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:55-84 | src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:53-82 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:55-84 | src/diffusers/modular_pipelines/wan/before_denoise.py:135-164 | src/diffusers/modular_pipelines/z_image/before_denoise.py:135-164 | src/diffusers/pipelines/allegro/pipeline_allegro.py:93-122 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:159-188 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:130-159 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:148-177 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:72-101 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:120-149 | src/diffusers/pipelines/chroma/pipeline_chroma.py:99-128 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:111-140 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:118-147 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:96-125 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:103-132 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:95-124 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:104-133 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:67-96 | src/diffusers/pipelines/consisid/pipeline_consisid.py:185-214 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:111-140 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:129-158 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:124-153 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:92-121 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:115-144 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:92-121 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:97-126 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:89-118 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:116-145 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:102-131 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:130-159 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:112-141 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:107-136 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:104-133 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:83-112 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:135-164 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:237-266 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:279-308 | src/diffusers/pipelines/flux/pipeline_flux.py:95-124 | src/diffusers/pipelines/flux/pipeline_flux_control.py:108-137 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:127-156 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:153-182 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:126-155 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:121-150 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:123-152 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:102-131 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:118-147 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:115-144 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:125-154 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:149-178 | src/diffusers/pipelines/flux2/pipeline_flux2.py:186-215 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:90-119 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:125-154 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:90-119 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:108-137 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:109-138 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:73-102 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:104-133 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:93-122 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:187-216 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:155-184 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:115-144 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:142-171 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:78-107 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_sr.py:74-103 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:113-142 | src/diffusers/pipelines/kolors/pipeline_kolors.py:72-101 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:91-120 | src/diffusers/pipelines/krea2/pipeline_krea2.py:83-112 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:77-106 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:82-111 | src/diffusers/pipelines/latte/pipeline_latte.py:89-118 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:154-183 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:153-182 | src/diffusers/pipelines/ltx/pipeline_ltx.py:92-121 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:160-189 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:97-126 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:131-160 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:188-217 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:165-194 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:183-212 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:151-180 | src/diffusers/pipelines/lumina/pipeline_lumina.py:84-113 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:85-114 | src/diffusers/pipelines/mochi/pipeline_mochi.py:87-116 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:97-126 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:106-135 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:81-110 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:68-97 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:78-107 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:117-146 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:134-163 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:77-106 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:93-122 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:96-125 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:106-135 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:85-114 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:101-130 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:101-130 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:133-162 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:121-150 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:140-169 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:153-182 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:190-219 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:134-163 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:81-110 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:141-170 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:114-143 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:90-119 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:91-120 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:93-122 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:83-112 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:86-115 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:98-127 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:83-112 | src/diffusers/pipelines/sana/pipeline_sana.py:138-167 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:145-174 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:89-118 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:95-124 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:135-164 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:111-140 | src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:55-84 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:124-153 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:103-132 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:131-160 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:77-106 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:97-126 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:117-146 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:116-145 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:119-148 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:137-166 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:164-193 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:82-111 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:140-169 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:162-191 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:109-138 | src/diffusers/pipelines/z_image/pipeline_z_image.py:86-115 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:137-166 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:137-166 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:98-127 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:114-143 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:87-116 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 174 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 174 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:148\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060SchedulerMixin\u0060 names \u0060...schedulers\u0060 in one and \u0060diffusers.schedulers.scheduling_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4e10bc599ea950480c0f37274924b95fd2a48224caccfda1c161e956d35f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 20): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:615-644 | src/diffusers/pipelines/allegro/pipeline_allegro.py:465-494 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:435-464 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:479-508 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:232-261 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:519-548 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:234-263 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:190-219 | src/diffusers/pipelines/latte/pipeline_latte.py:452-481 | src/diffusers/pipelines/lumina/pipeline_lumina.py:484-513 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:439-468 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:446-475 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:551-580 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:496-525 | src/diffusers/pipelines/sana/pipeline_sana.py:522-551 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:537-566 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:413-442 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:437-466 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:545-574 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:547-576 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a23e85fdf94da2630606cc8c83dec966e49d1124f5c3867103a3ba3164cfd84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 11): examples/community/fresco_v2v.py:1314-1343 | examples/community/rerender_a_video.py:326-353 | examples/community/stable_diffusion_controlnet_img2img.py:153-180 | examples/community/stable_diffusion_controlnet_inpaint.py:251-278 | examples/research_projects/anytext/anytext.py:1261-1288 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:206-233 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:227-254 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:205-232 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:208-235 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:235-262 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:209-236 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/rerender_a_video.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1314\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca2bec14aea384ae0be625564ce34fbacf21d914752f55f3377b2ced60db0c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 7): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:515-544 | scripts/convert_gligen_to_diffusers.py:280-308 | scripts/convert_original_audioldm_to_diffusers.py:396-424 | scripts/convert_original_musicldm_to_diffusers.py:392-420 | scripts/convert_versatile_diffusion_to_diffusers.py:465-493 | scripts/convert_zero123_to_diffusers.py:364-392 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:513-542 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e8e8cc0113de48d5e482810c7bf84dc14a78074752c8f63f6b69cf3c520325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 7): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:556-585 | src/diffusers/schedulers/scheduling_deis_multistep.py:869-898 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1149-1178 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1140-1169 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:678-707 | src/diffusers/schedulers/scheduling_sasolver.py:1214-1243 | src/diffusers/schedulers/scheduling_unipc_multistep.py:1105-1134 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"047683b1f4c4dd14d5a8d226a2a359a99561d891278724c87d0350bc41d29812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 6): src/diffusers/modular_pipelines/ltx2/encoders.py:75-103 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:603-632 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:657-686 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:417-446 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:679-708 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:610-639 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:603\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb6c6889313db58bdebf7e3e8d09497ceb2e2b161b77e05658d068394e17be2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): examples/community/matryoshka.py:1154-1183 | src/diffusers/models/unets/unet_2d_blocks.py:2439-2468 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1974-2003 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1974\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a4d6bf3bab8877c36455cd614d282d7da8fa2113ff408d21fb46f6a7442bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 3): examples/community/pipeline_z_image_differential_img2img.py:344-371 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:318-347 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:431-460 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 642 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_z_image_differential_img2img.py:338\u0060 calls \u0060_prepare_latent_image_ids\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:312\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d579b8791b21b439d1945bc7c1fc0b4d70c4ed33154403a1adcb8c66357788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:201-230 | src/diffusers/models/controlnets/controlnet_z_image.py:349-378 | src/diffusers/models/transformers/transformer_z_image.py:197-226 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 289 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d5c066cf6e5e5a738a0ad141f523f7619af276ddf307c1e5411c80a2bf902a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:645-674 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:698-727 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:718-747 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 867 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:645\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e86efac79b09416e3020ce4bb9a0a5a4ee21edadb8c23170a28d517847d6360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:309-336 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:375-404 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:499-526 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 396 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"8caf16af0b97bb121d06170361802a4a9f55a839b307b5e54be27c1a2ada7001"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:168-197 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:139-168 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:267-296 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"429b0245e8242990a53006bb169814489f97262c4fa521fa8719d81ea6c86c02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): examples/community/pipeline_stg_mochi.py:706-735 | src/diffusers/pipelines/mochi/pipeline_mochi.py:580-609 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_mochi.py\u0060 and \u0060src/diffusers/pipelines/mochi/pipeline_mochi.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 799 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"1559fa250448de31e74d6de909dfa907e028545d37183950e3e65bf4fc627db6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): scripts/convert_mochi_to_diffusers.py:62-91 | src/diffusers/loaders/single_file_utils.py:2722-2751 \u2014 before extracting anything, compare \u0060scripts/convert_mochi_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 188 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_mochi_to_diffusers.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b427b549926eddb4fe2d5603800090cafb22240283a8d746f71c9a9dd5338948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201330 lines \u00D7 2): src/diffusers/configuration_utils.py:178-207 | src/diffusers/modular_pipelines/mellon_node_utils.py:842-855 \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":"src/diffusers/configuration_utils.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95a41fb1332cc9d07beb2dc3994f0efa0b464670241e87e5ac6849bd719b329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1469-1498 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1350-1379 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c716a3d2c97af3f8dbb7948dd3913bf00e7e32bc5dc7cbcffdabca44f695320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:830-859 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:415-444 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"5424d36f111a0ce0a87134e537ffbee7522c1fd98ca155aeb8f65290abc071dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/diffusers/modular_pipelines/helios/before_denoise.py:184-213 | src/diffusers/modular_pipelines/wan/before_denoise.py:94-123 \u2014 \u0060src/diffusers/modular_pipelines/helios/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/wan/before_denoise.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 5 separate duplicated blocks between them, totalling at least 113 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":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"c517cace18ff70a4b531566ef31090b9cd82ce583a296e75827ec094449b77cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_encoder.py:286-344 | src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py:279-337 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_encoder.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.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 5 separate duplicated blocks between them, totalling at least 140 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. 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":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"145ec40296d74e0967263721b950f16b4b1864f83b306b266c105dd298ae94b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/references.py:274-305 | src/diffusers/modular_pipelines/pika_h3_flex/references.py:280-311 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/references.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/references.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 5 separate duplicated blocks between them, totalling at least 106 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/references.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac54af3b41c72ebac2d77400c3e1b9416c4293825e7619071f258219f42d1e94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:864-893 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1182-1211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:864\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fcd40f1dba1693fe66370236378ff6f0c677adb397bde10540375146a079cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:178-207 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:198-227 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f649d7404178cf42d4b4e4f7b9b34d2d377960beb84520e09ece5acf11843e8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1191-1220 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1479-1506 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 704 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1191\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"909d381df1c9935c574af441bf8883b68b99ba0e1ff9df8d1c934debd11e521a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1386-1415 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1393-1422 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1848 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1386\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce22e05f8375328e8623f650bd86b5c0b039b75e2762d3e0bb6b1fabdf66679f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:246-275 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:191-220 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:246\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"2386bf968edd89989a9cbd64c478f6d43f594e8925c8773077c7cc20d3585375"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201329 lines \u00D7 13): src/diffusers/schedulers/scheduling_deis_multistep.py:648-671 | src/diffusers/schedulers/scheduling_deis_multistep.py:709-728 | src/diffusers/schedulers/scheduling_deis_multistep.py:782-802 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:855-876 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:929-951 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1055-1077 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:707-728 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:782-804 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:909-931 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:770-796 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:837-864 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:951-979 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1077-1105 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a5c480402c2e8de7cfa53a57b5d40fe7ebec7a48d206523abcfafa717e5182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201329 lines \u00D7 9): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:420-446 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:574-602 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:609-633 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:425-453 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:460-484 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:577-605 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:612-636 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:641-669 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:537-563 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 858 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:420\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e2746a7dcf1372a90f162e0414d66a3ba70d1543876797647cc03a4793e55e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 7): examples/community/stable_diffusion_xl_controlnet_reference.py:638-666 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1277-1305 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1368-1396 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1263-1291 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1386-1414 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1262-1290 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1356-1384 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 1253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:638\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"17afc9e78bbd34beea041f22d7d8f060f4b2820d655169234a642a0c75c28b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 5): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:934-962 | src/diffusers/pipelines/allegro/pipeline_allegro.py:799-827 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:723-751 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:828-856 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:772-800 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:799\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6af8c5515afb096bc5e8ef65f0e5b95f9fb5a27f8d7584dfedf048b5277969b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): examples/community/pipeline_flux_kontext_multiple_images.py:1018-1046 | src/diffusers/pipelines/flux/pipeline_flux.py:779-807 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:903-931 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1193-1221 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 990 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f36a62dbae1181cb40753153a3ba60394c798682f78ba6b2aaaabc25bd3f718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 4): examples/community/pipeline_flux_kontext_multiple_images.py:1120-1148 | src/diffusers/pipelines/chroma/pipeline_chroma.py:827-853 | src/diffusers/pipelines/flux/pipeline_flux.py:870-896 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1008-1036 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 535 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux.py:900\u0060 calls \u0060cache_context\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:858\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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"703818b60a1d4f5b5357c130661ab6cfdedc00da1724c33fb73f4ec9d56db127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): examples/community/pipeline_hunyuandit_differential_img2img.py:303-331 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:239-267 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:212-240 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:217-245 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.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. Note first that the copies are not typed on the same thing: \u0060DDPMScheduler\u0060 names \u0060...schedulers\u0060 in one and \u0060diffusers.schedulers\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"04465fcdd3e5d60de06ba65cb4b2b8d8a25bd460845d53df814dadcb941fc28e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201329 lines \u00D7 4): examples/community/pipeline_stable_diffusion_pag.py:1298-1323 | examples/community/regional_prompting_stable_diffusion.py:1003-1031 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:961-989 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:995-1023 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_pag.py\u0060 and \u0060examples/community/regional_prompting_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 851 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/regional_prompting_stable_diffusion.py:1003\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23efb3dc50348e91ab7989bc5892ccfdc52c1d564a54f639f7e47f21f7d548e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): examples/community/pipeline_stg_hunyuan_video.py:294-322 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:260-288 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:233-261 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:337-365 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 451 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_hunyuan_video.py:294\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"83af22b1eb2f871dbd3d1e871f0b93e153ba3decffd06c507de3c79662bbe6e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:45-73 | src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:37-65 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:40-68 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:46-74 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.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 4 separate duplicated blocks between them, totalling at least 58 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"53133fc16acf061263ab0729bf96edcb0b22d5df0984ca4a2a43a171bb789eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:388-416 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:265-293 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:384-412 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:259-287 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7eb46237e305d86fc4597e0f29435a44798940ba929319b753564abd2575c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): examples/community/adaptive_mask_inpainting.py:1063-1091 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1336-1364 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1298-1326 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 470 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:1063\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12f6382561ef910feb76590989fc07f26690d764cc847c195e79fc1abbb61dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): examples/community/matryoshka.py:1637-1665 | src/diffusers/models/unets/unet_2d_blocks.py:115-143 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:728-756 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_blocks.py:115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd613ca2fe5afa654f13e7c0b1ae7dd21a29d9e4c9e8914a3d1803923730cb2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:123-151 | src/diffusers/models/transformers/transformer_ernie_image.py:126-153 | src/diffusers/models/transformers/transformer_z_image.py:122-150 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ff6b2dbd8cb65ec63059f6fc6b139fc5fad00a2c875efa75526c190e870a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 3): src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py:75-102 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:258-286 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:297-325 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbacfb890d60a4c4a85f00dde6fae43de6db70da5c9033178dfa32d851b59688"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:1212-1243 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:913-944 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:1227-1258 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf54390664879caf072ef27ce15f54acc53bf0944883f56fb5aa9e2c359c339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): src/diffusers/pipelines/chroma/pipeline_chroma.py:733-761 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:807-835 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:958-986 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 792 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e8cfec14b0adea7de9e3b74ded7383b1dc07f2400813f370ea8a53463ed8d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): examples/community/pipeline_hunyuandit_differential_img2img.py:1069-1097 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:837-865 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 1060 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"e154eb3027091da2f192b04432aadd4c29838466aad3734d0f1146a8a44e34ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1855-1883 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1336-1364 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py\u0060 as WHOLE FILES: this scan already matched 120 separate duplicated blocks between them, totalling at least 1767 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"3795ca54b457c998d918e32f508375663f1cce1e1fe1f16bae6f0bab87b8b253"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:706-734 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:692-720 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c9281faf86e07b57aca8717ceafe75399b26cbfd9820f4150aa45156135862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201329 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow_far.py:1454-1478 | src/diffusers/models/transformers/transformer_anyflow_far.py:1555-1583 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow_far.py"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"faaa3059332dd04191ecf77f0fd9c0eaa85529fac0c4839816f0d6b9d75cbfe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:987-1015 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2410-2438 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ad3a16acee790614ae6b5a60c8d4b779f19a9dbb605cd7f2d16abd1f354d2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/diffusers/models/unets/unet_dreamlite.py:577-605 | src/diffusers/models/unets/unet_dreamlite.py:725-753 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:577\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e91272121623973dcbce396c19cc70902770936f2162bac867d833adf89a7e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/diffusers/models/unets/unet_dreamlite.py:962-990 | src/diffusers/models/unets/unet_dreamlite.py:1120-1148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:962\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3173de96fffb54a31c19bf6531745a198ae1553ddcf7fd4d46623feda219367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1152-1180 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1094-1122 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1735 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"acaf2e7027cacb60e91a61e3956f9e7af3445b5c85d378d14c174dcc5be19cfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:328-356 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py:359-387 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py\u0060 and \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:328\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2074164bc2fe9efc733996702e22170b64537bff6e8d3a0070300c041d0360c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:793-821 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:973-1001 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:791\u0060 calls \u0060enable_fuser\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:972\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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eeda276cd345e92100c01a8a18fccd81f40d128ea6ce1a4ac711353731ee597"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_kolors.py:935-962 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1135-1163 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_kolors.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 806 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1135\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_kolors.py"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f76d41e7505bf74f79eaa74d45c887c1b56b431ceb17e84db8b5c3564bb8c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:558-609 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:513-564 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1063 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:558\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"d309f07cf12b6c0d35f0c2c6a0daf8d6e95858d5810d3bd8ec7a8f63b579ea51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 8): src/diffusers/models/autoencoders/autoencoder_kl.py:420-447 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:1048-1074 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1414-1439 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:1081-1106 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:432-459 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:783-810 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:945-970 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:1053-1080 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 8 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl.py:420\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":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f4c13f8fea7068f56c50204d1e9a415ff11a70cb4a7e9ce872e345551ee960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 7): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:260-287 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:302-328 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:190-215 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:204-229 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:309-335 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:324-350 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:263-290 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:260\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:288\u0060 calls \u0060getattr\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:216\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a46541dac6d2305aaebe907be210d212b3beca1919933137b285981d79ca72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 6): examples/community/pipeline_kolors_inpainting.py:1435-1462 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1990-2017 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1527-1554 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1611-1638 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1459-1486 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1466-1493 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1611\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5cd6b8bcae4ccd7c3ff51868e188781b3de3de10a2dd7508e4490ebc46d33b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 4): examples/community/pipeline_kolors_differential_img2img.py:1048-1075 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1043-1070 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1282-1308 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1274-1300 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7094939d34b3b691c45f6968296dce29b31b9eb19f7fbce8ac6ec19d7c25a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4): src/diffusers/models/unets/unet_dreamlite.py:590-617 | src/diffusers/models/unets/unet_dreamlite.py:738-765 | src/diffusers/models/unets/unet_dreamlite.py:975-1002 | src/diffusers/models/unets/unet_dreamlite.py:1133-1160 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:590\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a492178b2adfea332f96b158c2ec877df0e6bfce1017577498ffbb8e1a1182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): examples/community/matryoshka.py:865-892 | src/diffusers/models/unets/unet_2d_blocks.py:1253-1280 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1705-1732 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3a209363570e5ec55f25052e5ff16e040c65325e7b1a145a4084f5825fad4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201328 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1120-1147 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1458-1485 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:571-593 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:571\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7ff14a898729ec0a4991bb711e540e7566ae02e39c12ff761d82026c26a3eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): src/diffusers/models/condition_embedders/condition_embedder_ltx2.py:137-171 | src/diffusers/models/transformers/transformer_ltx2.py:1032-1066 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:617-651 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/condition_embedders/condition_embedder_ltx2.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ac23e92eaaeb0eb04a6e23b09d2dae4ae61db490bdb31e96bf2b1ab316e047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): src/diffusers/models/transformers/transformer_chronoedit.py:446-473 | src/diffusers/models/transformers/transformer_wan.py:431-458 | src/diffusers/models/transformers/transformer_wan_animate.py:910-937 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_wan.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 632 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf918209e4dc47e67e62b4e67430d39625a125b5418dd627dc872c6d774bb59c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/decoders.py:102-129 | src/diffusers/modular_pipelines/p_h3_image/decoders.py:103-130 | src/diffusers/modular_pipelines/pika_h3_flex/decoders.py:103-130 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/decoders.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/decoders.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 4 separate duplicated blocks between them, totalling at least 57 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. 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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/decoders.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae5c48f6e69e3e8b22b919767a293c9208bb5a41c9feab9fb44c5fe1d553e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201328 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1776-1803 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1500-1523 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1592-1614 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1500\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7fcb06c68272461f55f0bb1165b81ac7eb18ccc167620a6b6adfde66c2870a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:206-233 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:225-252 | src/diffusers/schedulers/scheduling_edm_euler.py:220-247 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 484 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc303e4c188e0721aaaaee56174739ddaa8cc5b5911a54c50f9f228bb2c5f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): examples/research_projects/pixart/controlnet_pixart_alpha.py:166-193 | src/diffusers/models/transformers/pixart_transformer_2d.py:275-302 \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 \u0060examples/research_projects/pixart/controlnet_pixart_alpha.py:166\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":"examples/research_projects/pixart/controlnet_pixart_alpha.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb40ed25b103820e73e63d7697fa52d4a42e58f32d83dc30089e5cf8ce237295"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/loaders/lora_pipeline.py:325-352 | src/diffusers/loaders/lora_pipeline.py:747-774 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/lora_pipeline.py:325\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":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8e5363c257a5d56585d207341acdcfcd2127bd480857d460e77111a0055eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/loaders/single_file_utils.py:1292-1319 | src/diffusers/loaders/single_file_utils.py:1423-1450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"52df7b6899a115490939025425ed8afbfc20a7e9b8f0a24d8088abfba26e3265"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201328 lines \u00D7 3): examples/community/fresco_v2v.py:1090-1092 | src/diffusers/models/attention_processor.py:1455-1482 | src/diffusers/models/attention_processor.py:4950-4977 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"622ba543d0a71577abf135aee15b01ac645b2bca88e0bedc6229fbf03198defc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:794-821 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:844-871 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:794\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"64490cf14c0f8731a040631727b2b0820899099d89ca66a172f5ad277d2ec07c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:163-190 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:264-291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_mochi.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"803c6bbb65a7eb0de06bda19b2241aa6d8d1e368e19be4e2baf45d3dcd111a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_z_image.py:559-586 | src/diffusers/models/transformers/transformer_z_image.py:561-588 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 289 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d9a6ae960af8b063798394039b774158d4c631e3fda766aeb21b61ad31372a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): src/diffusers/models/embeddings.py:35-62 | src/diffusers/models/transformers/transformer_qwenimage.py:50-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b5e1d7ec831d5d8c4598f089b2055d87f8fc6b71be6baef37329a13797c8b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/models/unets/unet_motion_model.py:241-268 | src/diffusers/models/unets/unet_motion_model.py:381-408 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_motion_model.py:241\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf72f375f836ada05769803d221a35b934f2f658e25677720bbef3827642d763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:816-843 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:799-826 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:816\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce49d0e7fa97a21636ee11e30ce9c35b0f3ad0075988a570e289095de5e60d19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:660-687 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:744-771 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py\u0060 as WHOLE FILES: this scan already matched 45 separate duplicated blocks between them, totalling at least 682 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af36651cac26b430e73ddfa9babf86fc8fc603880cd4065509201b0cb332219"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201328 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:695-719 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1220-1247 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 638 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:695\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0a5b8d066b9ef3246bf2bdb5737971ef5cc89b4ee2d36e12799e3b66e10fc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:733-760 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1069-1096 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 515 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"278db2d575060db54bae6d28f6e96fffd2f11bb01085594a97608df9073b3c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1608-1635 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1712-1739 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py\u0060 as WHOLE FILES: this scan already matched 83 separate duplicated blocks between them, totalling at least 1724 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1608}}}],"partialFingerprints":{"codehealthFindingId/v1":"f087f0f27a32db57c1d0ad0d64860fc83e68928b30ac9ee3cbd59f0fd48f186f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py:63-90 | src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py:381-408 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e835db1db013ff8f0347583f39895b54186d4a9f6baecc80f46b984d8de272fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 8): examples/community/pipeline_animatediff_img2video.py:870-896 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:784-809 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1425-1449 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:674-698 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:734-758 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:553-577 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:615-639 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:669-693 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_img2video.py\u0060 and \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 541 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:697\u0060 calls \u0060preprocess\u0060, \u0060to\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:762\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a57937ea583bfdd29fd75a9a2b076fa31fd3102160decb594f8f92a264e768"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 7): src/diffusers/models/controlnets/controlnet_sd3.py:179-205 | src/diffusers/models/transformers/hunyuan_transformer_2d.py:477-503 | src/diffusers/models/transformers/transformer_sd3.py:176-202 | src/diffusers/models/unets/unet_3d_condition.py:356-382 | src/diffusers/models/unets/unet_i2vgen_xl.py:318-344 | src/diffusers/models/unets/unet_motion_model.py:1761-1787 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:264-290 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_sd3.py:179\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_sd3.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9a34c79bfa69332432795b9add05ebd10dc0edf682ab08a8907c0510eadb03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 6): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:424-450 | src/diffusers/pipelines/allegro/pipeline_allegro.py:314-340 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:289-315 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:297-323 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:402-428 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:346-372 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00c42fa0afc2d9ba15144a28a9d94097d694d9abf13eabd246fd15c37ee3386"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201327 lines \u00D7 5): examples/community/matryoshka.py:3038-3063 | examples/community/matryoshka.py:3504-3530 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:775-795 | src/diffusers/models/unets/unet_2d_condition.py:1119-1144 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1292-1317 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:3038\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":"examples/community/matryoshka.py"},"region":{"startLine":3038}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b905490b01f7f48dfb9623203f1c59f88c7fa5edc8eb1083493419913d0934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 5): examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1526-1552 | examples/community/pipeline_kolors_inpainting.py:1403-1429 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1958-1984 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1427-1453 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1434-1460 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 1028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_inpaint.py"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"b788d0228872a6d8fdbfb8abc4898b723abe2f463126a8526044038bc7026d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201327 lines \u00D7 5): src/diffusers/modular_pipelines/flux2/before_denoise.py:241-260 | src/diffusers/pipelines/flux2/pipeline_flux2.py:378-404 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:290-316 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:337-363 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:294-320 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b215bf6146257c1315c159617769b3c5ed947dacac2c32e31b341b287e01cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): examples/community/matryoshka.py:2434-2460 | src/diffusers/models/unets/unet_2d_condition.py:627-653 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:239-265 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:555-581 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2434}}}],"partialFingerprints":{"codehealthFindingId/v1":"50047c6b4bf8dbffe501b7a9517079faa8052a08b79eac72823da64e946c27d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): examples/research_projects/anytext/anytext_controlnet.py:352-378 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:280-306 | src/diffusers/models/controlnets/controlnet.py:696-722 | src/diffusers/models/controlnets/controlnet_union.py:641-667 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext_controlnet.py\u0060 and \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c10eae85c1a921358bca8fa836b25b486f314a954e7887eb22bdd635148719"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): src/diffusers/modular_pipelines/flux2/encoders.py:322-348 | src/diffusers/modular_pipelines/flux2/encoders.py:466-492 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:228-254 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:275-301 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/flux2/encoders.py:322\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/encoders.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f4788319ded33cff1f3dfb1926c677652a8565a3a05463638a2bf0e595a57a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): examples/community/matryoshka.py:2397-2423 | src/diffusers/models/unets/unet_2d_condition.py:590-616 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:526-552 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2397}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91fd9ffb76560c96dd7334150260ddb7f75b7c597d0652d9116c9238d687f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201327 lines \u00D7 3): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1081-1107 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:851-874 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:989-1015 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1048 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa8fdaf371cb6e1c2a194dd3a60f5070345f7e75b305bded4e0c9424f0391d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:748-774 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:730-756 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:700-726 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee844684aad113fa1a9896b4862370a40aa4d23069fca90ca4f88c269081795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video.py:134-159 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:111-137 | src/diffusers/models/transformers/transformer_hunyuanimage.py:129-154 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:134\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":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f88a096d77ca5b4821f20bfdb37c7ccd79dd056225a55e2c53d3703c16099c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:516-542 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:634-660 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:524-550 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"f697177a05bbfad5113b376d9048a6a60488bbc9ddbe0581f9f232fd2ed95938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 3): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1012-1037 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:486-512 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:566-592 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1012\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a03402e5ab0cc9b86ddbdc5ff8e8358bd1a1da12ed5bb8a4b7cc3935725bef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201327 lines \u00D7 3): src/diffusers/pipelines/flux/pipeline_flux_control.py:731-757 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:836-859 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:985-1008 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 906 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py:731\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b24e391248cf09e4b573ba028cf181667ef2cf65d9253f5fdb73250c898a413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:431-457 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:449-475 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:534-560 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"3145c96827d041b7d582ed6377f80b730b7bbf6ec0a56ee3d4b06e05884df1bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 3): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1773-1799 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1308-1332 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2179-2203 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 823 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1773\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1773}}}],"partialFingerprints":{"codehealthFindingId/v1":"d208b3e17ac035d28b270d06228d1be295cc6aa611fcf1090a666c49e74cfb88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/image_processor.py:745-771 | src/diffusers/image_processor.py:1117-1143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a0a433886d1b0fddc49324000152dec28cc8f76a53b0d65b710428a987a277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): src/diffusers/models/attention.py:501-525 | src/diffusers/models/attention_processor.py:758-784 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"b678440689c7cbeab198633743cabd3fd8c182071daad4fbffc4b135267b7ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201327 lines \u00D7 2): src/diffusers/models/attention.py:889-915 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:182-205 \u2014 before extracting anything, compare \u0060src/diffusers/models/attention.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention.py:889\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"c158f5f17c7843010721e450b569d61fd4c3a48c6f4f43b52f58bcb5738a3e5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201327 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:579-605 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:553-572 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 367 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:579\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e8e106e7cc3711c82526c6bd34492caf3454aa44097d858bff124caec55727"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/models/transformers/cogvideox_transformer_3d.py:90-116 | src/diffusers/models/transformers/consisid_transformer_3d.py:284-310 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/cogvideox_transformer_3d.py\u0060 and \u0060src/diffusers/models/transformers/consisid_transformer_3d.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/cogvideox_transformer_3d.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c18487045b1565816ef22cd27d77b38575cab3a4c9218bee4ef5df21d272382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): src/diffusers/models/transformers/transformer_chronoedit.py:613-639 | src/diffusers/models/transformers/transformer_wan.py:598-623 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_wan.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 632 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_chronoedit.py:613\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"011acc9e431753ec64a7492fd6f04e5e0c540cabd6418d956b745cfa18383075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:870-912 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:455-497 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4c593652f9818c803676b9d412b34ab4ba0c077bcef6ec787fe481876e11e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm.py:1822-1848 | src/diffusers/models/transformers/transformer_sana_wm.py:2314-2340 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c809fefa8d287c7fd1199d59d62ce17b0995f976949279dd1709203f47a08d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1318-1344 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1553-1579 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1553\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddd687a69165a210da2ad26f4abacc35219c9080b2563015e2bd62a364d5170"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): src/diffusers/models/unets/unet_dreamlite.py:1415-1440 | src/diffusers/models/unets/unet_dreamlite.py:1550-1576 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:1415\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f30648748bf9c67d2de162207fefc1fe8200e868f3101d382dc1a8cd93c42ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_encoder.py:463-489 | src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py:477-502 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_encoder.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.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 5 separate duplicated blocks between them, totalling at least 140 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/before_encoder.py:463\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"40eabbd847fd6fb36ec48ac6145e21e2b9bcbaa90af922396026cf0bfcdd9746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:162-188 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:430-456 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 541 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd81727516d1e9535fa6c6d39351848d24c46438bb87fd85ac16de9acb44ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1224-1250 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1144-1170 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 788 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1224\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e211f2683ea683b2f5b457aebcc40f019ec6cf8b45bc3866881e066b6908f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201327 lines \u00D7 2): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:887-910 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:935-961 \u2014 \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.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 66 separate duplicated blocks between them, totalling at least 1080 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:887\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1a1fd3ef66af947fcc738e442d90fcaa5b545a05d59dba538f116fb28986b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:502-527 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:549-575 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py\u0060 and \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 398 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:502\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39321e5bf242218e8c6ef479b4839d693e492ae9b83a60f92b6d6f3f17c0413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:798-824 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:752-778 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:798\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":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee98d5810d6e94d8601e6aa443a1c0c6958f43c8947fa9e1ac9d40138aa1ee72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:751-777 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:935-961 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7ce110440053034161a88f843caf797f8239e0416cebc6454cf97722ab2d31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/diffusers/pipelines/helios/pipeline_helios.py:391-419 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:413-441 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios.py\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"423dfe2acfca8f274968a51934ffe5b043db90bcb64106281f92323720ec50c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:675-701 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:732-758 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py\u0060 and \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a26337c7834ffe737b33dcdbd75572d01818341ff76d79abd4d3cb89b8e79e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201327 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:902-922 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1434-1460 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 903 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d8cf07be161d33aece6bf2bd3279a15181a52ffb99a3a70f382d2ae6d9307e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1254-1280 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1246-1272 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1580 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa4d1b4b97e3b9b912cb5bcd53a51aa7a9d49129efdce9ba37b26b2c985debe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1326-1351 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1539-1565 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py\u0060 as WHOLE FILES: this scan already matched 100 separate duplicated blocks between them, totalling at least 1450 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd87d3dbc9474ae7f9d6703d3595991c49bcc91a3b1dbabe53295f1bb18a4b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 28): examples/community/mixture_tiling_sdxl.py:514-539 | examples/community/mod_controlnet_tile_sr_sdxl.py:521-546 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1392-1416 | examples/community/pipeline_sdxl_style_aligned.py:634-659 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:819-843 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:367-392 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:514-539 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:394-419 | examples/community/pipeline_stable_diffusion_xl_ipex.py:394-419 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:427-451 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:455-480 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:419-444 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:427-452 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:419-444 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:408-433 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:419-444 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:438-463 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:351-376 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:713-738 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:434-459 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:424-449 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:421-446 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:439-464 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:529-554 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:411-436 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:429-454 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:533-558 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:439-464 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:516\u0060 calls \u0060to\u0060 and \u0060examples/community/mixture_tiling_sdxl.py:508\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"34588f32fa5daf60adcf704a8f5f19b1688b328db76e06b694046e75f44fd8d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 19): examples/community/pipeline_flux_differential_img2img.py:381-406 | examples/community/pipeline_flux_kontext_multiple_images.py:423-448 | examples/community/pipeline_flux_rf_inversion.py:378-403 | examples/community/pipeline_flux_semantic_guidance.py:382-407 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:411-436 | src/diffusers/pipelines/flux/pipeline_flux.py:364-389 | src/diffusers/pipelines/flux/pipeline_flux_control.py:378-403 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:389-414 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:428-453 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:396-421 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:390-415 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:401-426 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:473-498 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:387-412 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:391-416 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:412-437 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:445-470 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:351-376 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:355-380 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"244a2d36d324451287b73bfc8be3ccf31f74fc80ec637961e29eaba6739862f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 9): examples/community/hd_painter.py:583-608 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1511-1535 | examples/community/pipeline_kolors_inpainting.py:1388-1412 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1943-1967 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1131-1155 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1412-1436 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1148-1173 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1183-1205 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1419-1443 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/hd_painter.py:583\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"e495d99e6144db9a27b47f76cdc8c2f3c1e707389597e8ca130af96dbcbfb039"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 7): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:260-285 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:282-307 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:230-255 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:246-271 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:241-266 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:265-290 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:271-296 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c78d978101a73d990b218d8a7c4823e114912910d6e48c6d7b4204e68b450a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 6): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:940-965 | src/diffusers/pipelines/allegro/pipeline_allegro.py:805-830 | src/diffusers/pipelines/lumina/pipeline_lumina.py:769-794 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:729-754 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:834-859 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:778-803 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py:767\u0060 calls \u0060sqrt\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:803\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"1185e06a407eee594120362b276aeb6bf42fb0bd33650429d699732893d0487c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 6): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:748-772 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:925-949 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:880-904 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:963-988 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1167-1192 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:827-850 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py:748\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ddcdec0ce9ff4f57d8d0efb2a5f435be9c1e4980d7fda4e80c8de7b2f9754e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 6): src/diffusers/pipelines/sana/pipeline_sana.py:349-374 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:364-389 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:283-308 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:291-316 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:372-397 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:370-395 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_controlnet.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7901ea756d023b8cd4a56f168ab38191f9be06c640e4540a54ae010f3c3973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 5): examples/community/pipeline_controlnet_xl_kolors.py:1059-1083 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1251-1273 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1460-1485 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:835-857 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1403-1425 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:835\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2bd0fcb86c53b4d3deb36cb0f8d117c4e93409e400bf34142e4f90caeda56b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 5): examples/community/pipeline_kolors_inpainting.py:1446-1471 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2001-2026 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1622-1647 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1310-1335 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1477-1502 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1622\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"8448e9400cbf6c1c683b04d26cc441a8017a25e88c0a150e65a1626fec139da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 5): examples/community/pipeline_stg_hunyuan_video.py:279-304 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:245-270 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:218-243 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:322-347 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:302-327 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 451 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a445cfeed836e8dae46c5d39e4c7421cfc2c50cb073694c0ee91c1b9537957e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 5): src/diffusers/modular_pipelines/flux2/encoders.py:311-336 | src/diffusers/modular_pipelines/flux2/encoders.py:455-480 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:217-242 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:264-289 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:222-247 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/flux2/encoders.py:338\u0060 calls \u0060get_module_execution_device\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:249\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/encoders.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a4f04094253c6f2174bb19026cafbca851315c92cf66cc9a1fe659221a7393"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 4): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1174-1200 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1386-1412 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1223-1248 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1143-1168 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 119 separate duplicated blocks between them, totalling at least 2012 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05334a444ac6801ac44470488a600b404e664142a66b4f53a85069d8d733a20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 4): examples/community/pipeline_flux_kontext_multiple_images.py:987-1011 | src/diffusers/pipelines/chroma/pipeline_chroma.py:714-739 | src/diffusers/pipelines/flux/pipeline_flux.py:741-765 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:865-889 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 535 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:987\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a02935d86c956fd05c822ce5fef43ea07313a168fbc7c89a16826aea84c502"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 4): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:657-682 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:388-412 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:715-739 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:812-836 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 341 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a985e1c9461d352f96a5c0611adc4dd10c4aea0ccc863a0b58cdbdd922b49f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201326 lines \u00D7 4): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1672-1694 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1275-1300 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1709-1730 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1703-1724 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 703 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1275\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"a113940f15c8946757ee4afa410d1ac56c9a703d8a1b8add4f3657fea5d5e624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 4): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:786-811 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:883-908 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:896-921 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:983-1008 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 858 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d2ca54bfc223c4315dbc5707898a476407042e7e9e6a69f6cf9ba6ea66383c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 4): src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:874-899 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:664-689 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:853-876 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:598-623 \u2014 \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.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 69 separate duplicated blocks between them, totalling at least 920 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":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7a1ecdbfdbe767147de0c9c115136f94a6226da57de9dfa5c48e019a254138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:937-962 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:798-823 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:739-764 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:960-985 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"59eccb838c032ac1b24a3f170a1a8952f7012ae1cd4e3644b6434216c011d587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 3): examples/community/pipeline_stable_diffusion_boxdiff.py:947-972 | examples/community/pipeline_stable_diffusion_pag.py:940-963 | src/diffusers/pipelines/pipeline_utils.py:2294-2318 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_pag.py\u0060 as WHOLE FILES: this scan already matched 76 separate duplicated blocks between them, totalling at least 1088 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"addd41288c0b3e0a9f2ac43f08546d77ce037853dac258b838770a88d3018ac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): src/diffusers/loaders/lora_pipeline.py:3362-3387 | src/diffusers/loaders/lora_pipeline.py:4126-4151 | src/diffusers/loaders/lora_pipeline.py:4390-4415 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":3362}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7349fadf0487661156e9f0410dbde27ddb0ab87e53483bc7e44c968c4b5be1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:243-268 | src/diffusers/models/transformers/transformer_bria_fibo2.py:325-350 | src/diffusers/models/transformers/transformer_z_image.py:239-264 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"58afc8c37a8af1e4ada3021221d6780967772ffe154d6c46fc60f035f8a9cd90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:1054-1079 | src/diffusers/models/unets/unet_2d_blocks.py:1500-1525 | src/diffusers/models/unets/unet_2d_blocks.py:2225-2250 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4afe88e7d5e96e74d2beab57c4790aacf304ecaab231beb18601f62cb63e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201326 lines \u00D7 3): src/diffusers/modular_pipelines/qwenimage/denoise.py:217-236 | src/diffusers/modular_pipelines/qwenimage/denoise.py:304-323 | src/diffusers/modular_pipelines/qwenimage21/denoise.py:176-201 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060QwenImageModularPipeline\u0060 in one and \u0060QwenImage21ModularPipeline\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":"src/diffusers/modular_pipelines/qwenimage/denoise.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc40b19278125e91d7282e40e65eb1649aec8884c7151b87ac02368a9b33cf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:947-976 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1057-1086 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:801-830 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 984 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"1453abe1dd5d4fb1c19564cf3370f77d51e724b9bf33d0100adf3c2ff847f369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): src/diffusers/pipelines/flux2/pipeline_flux2.py:662-687 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:522-547 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:530-555 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"7498e3322e203ca958a01c8ee0aa147689d009927ea06ab7e22319354010fae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:722-747 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:781-806 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:817-842 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 770 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:722\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"0008f69de9ae50f06884f041ed3854f17595ebc8202d31b08aec57a09cae6fc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): examples/community/adaptive_mask_inpainting.py:430-455 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:243-268 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 633 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:430\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: \u0060FrozenDict\u0060 names \u0060...configuration_utils\u0060 in one and \u0060diffusers.configuration_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b45ba8a79dfcac941c1b92c732fd1f33c14c0a3f1b01ab86e6c0fdca93195ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): examples/community/pipeline_animatediff_ipex.py:727-752 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:767-792 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 631 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py:765\u0060 calls \u0060repeat_interleave\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py:725\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":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"5984f3759091e19ce743d5d1afb279b3754ca3b1ae54081a9eab37859f8227f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201326 lines \u00D7 2): src/diffusers/guiders/skip_layer_guidance.py:113-138 | src/diffusers/guiders/smoothed_energy_guidance.py:107-128 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/skip_layer_guidance.py\u0060 and \u0060src/diffusers/guiders/smoothed_energy_guidance.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/skip_layer_guidance.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0c3c45898d1f4730ed3fc28ad67dc7ff05e8829186d4fd100ab10acf4cd272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:1251-1276 | src/diffusers/models/attention_dispatch.py:1376-1400 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_dispatch.py:1251\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":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e235f35a8f902ddb0ac4dfa5b9425736e7c4406897f9b8ad8198b312994244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/models/controlnets/controlnet.py:242-267 | src/diffusers/models/controlnets/controlnet_union.py:217-242 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_union.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet.py:242\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc499f1ba541dc2e5c499cdef5911cefa27a5f0da7a1c3c164212107d95103e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:1317-1342 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1336-1361 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.py:1317\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1365\u0060 calls \u0060set_processor\u0060, \u0060SanaWMLTX2RefinerAttnProcessor\u0060 and \u0060src/diffusers/models/transformers/transformer_ltx2.py:1345\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":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9fc9c39ebf706daa2296ff57509a69eada9ff888c60ac56a32673baf567012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3.py:176-212 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:158-194 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"72053d541566f2a889bcd95e99e5300bd60987553e8bc206c4ce457b14ac021c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/models/unets/unet_3d_condition.py:590-615 | src/diffusers/models/unets/unet_motion_model.py:2019-2044 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_condition.py\u0060 and \u0060src/diffusers/models/unets/unet_motion_model.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 377 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/unets/unet_motion_model.py:2046\u0060 calls \u0060hasattr\u0060 and \u0060src/diffusers/models/unets/unet_3d_condition.py:616\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ced4f19879eecc180bfdabc687b502ab330f0712b0da0d69ae43596847dfbf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:797-822 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:799-824 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:797\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa9b10bc195eed64e82e6bd54a7a617b59e3713b207751f7dd29af4bce3fb00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:663-688 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:910-935 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:907\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:660\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"982f9d93ee05e9ee7ef73aac3000839891ee3ac1225f196a815f1a9d97ab48b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:707-743 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:954-990 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb097a3178f8ee50ebd62ad4fe5aadb684c9840cc87c5a0d5bafe99449268b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): src/diffusers/pipelines/chroma/pipeline_chroma.py:315-366 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:342-393 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 792 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba793257a8278e2068d8e2420aa3e43092ae379bc41ddfe9f80fef30d3eb516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:740-765 | src/diffusers/pipelines/consisid/pipeline_consisid.py:816-841 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py\u0060 and \u0060src/diffusers/pipelines/consisid/pipeline_consisid.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"249d1fa8b15fbf3547befb709e54d90cbbf5f0419131208c2edb1f801763e33a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:398-423 | src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py:330-355 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 194 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:398\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"eccc7e7d4dd49bcd0209bce8920b7bddc2e667190947008a8065108e25acdbb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1020-1045 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1192-1217 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1020\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab558db277219533261fb336ec0a10da3e40a2647ae32c5627da3887dc906ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:558-583 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:831-856 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_vace.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:558\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5be52c5baa59823e18d16a4c184ed7ee99e7245a17547cc26c217b410c9cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/pipelines/lumina2/pipeline_lumina2.py:599-624 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:764-789 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lumina2/pipeline_lumina2.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 318 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/lumina2/pipeline_lumina2.py:599\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina2/pipeline_lumina2.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0679addafa3c549d1f4c906e5b9ad6dda21fbe330f72cfd7b9224855d43b4d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:641-668 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:701-728 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 77 separate duplicated blocks between them, totalling at least 1086 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f4533f6f7b42517bb4b912124ddd2cf63f9889b1470ec28e29ee2b9e15b041"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/schedulers/scheduling_sasolver.py:1045-1070 | src/diffusers/schedulers/scheduling_sasolver.py:1181-1206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_sasolver.py"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"e014c6c7e26cae44b6345b3431e7b5729fe75e729e4dca63e690479be10743bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 32): examples/community/adaptive_mask_inpainting.py:417-441 | examples/community/composable_stable_diffusion.py:133-157 | examples/community/instaflow_one_step.py:153-177 | examples/community/ip_adapter_face_id.py:235-259 | examples/community/llm_grounded_diffusion.py:380-404 | examples/community/lpw_stable_diffusion.py:540-564 | examples/community/matryoshka.py:3724-3746 | examples/community/pipeline_fabric.py:153-176 | examples/community/pipeline_prompt2prompt.py:175-199 | examples/community/pipeline_stable_diffusion_boxdiff.py:461-485 | examples/community/pipeline_stable_diffusion_pag.py:428-452 | examples/community/pipeline_zero1to3.py:152-176 | examples/community/stable_diffusion_ipex.py:149-173 | examples/community/stable_diffusion_reference.py:182-206 | examples/community/stable_diffusion_repaint.py:237-261 | examples/community/stable_diffusion_tensorrt_img2img.py:754-778 | examples/community/stable_diffusion_tensorrt_inpaint.py:758-782 | examples/community/stable_diffusion_tensorrt_txt2img.py:670-694 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:254-278 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:282-306 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:347-371 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:127-151 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:215-238 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:185-209 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:369-393 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:260-284 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:255-279 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:287-311 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:133-155 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:105-129 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:283-307 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:230-254 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:417\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, \u0060examples/community/adaptive_mask_inpainting.py:446\u0060 calls \u0060info\u0060 and \u0060examples/community/composable_stable_diffusion.py:160\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d09c0add8a635af58882f3a8ae32318dec046257b47f6e7a68295f65722ef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 30): src/diffusers/loaders/lora_pipeline.py:303-327 | src/diffusers/loaders/lora_pipeline.py:725-749 | src/diffusers/loaders/lora_pipeline.py:996-1020 | src/diffusers/loaders/lora_pipeline.py:1280-1304 | src/diffusers/loaders/lora_pipeline.py:1474-1498 | src/diffusers/loaders/lora_pipeline.py:2381-2405 | src/diffusers/loaders/lora_pipeline.py:2566-2590 | src/diffusers/loaders/lora_pipeline.py:2754-2778 | src/diffusers/loaders/lora_pipeline.py:2947-2971 | src/diffusers/loaders/lora_pipeline.py:3163-3187 | src/diffusers/loaders/lora_pipeline.py:3351-3375 | src/diffusers/loaders/lora_pipeline.py:3541-3565 | src/diffusers/loaders/lora_pipeline.py:3733-3757 | src/diffusers/loaders/lora_pipeline.py:3927-3951 | src/diffusers/loaders/lora_pipeline.py:4115-4139 | src/diffusers/loaders/lora_pipeline.py:4379-4403 | src/diffusers/loaders/lora_pipeline.py:4645-4669 | src/diffusers/loaders/lora_pipeline.py:4833-4857 | src/diffusers/loaders/lora_pipeline.py:5025-5049 | src/diffusers/loaders/lora_pipeline.py:5220-5244 | src/diffusers/loaders/lora_pipeline.py:5414-5438 | src/diffusers/loaders/lora_pipeline.py:5613-5637 | src/diffusers/loaders/lora_pipeline.py:5800-5824 | src/diffusers/loaders/lora_pipeline.py:6002-6026 | src/diffusers/loaders/lora_pipeline.py:6194-6218 | src/diffusers/loaders/lora_pipeline.py:6382-6406 | src/diffusers/loaders/lora_pipeline.py:6578-6602 | src/diffusers/loaders/lora_pipeline.py:6780-6804 | src/diffusers/loaders/lora_pipeline.py:6966-6990 | src/diffusers/loaders/lora_pipeline.py:7560-7584 \u2014 all 30 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf028be3f12f9f0f98566c6f6f7848808efc157b650d48d1a047d05db53272d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 17): examples/community/mod_controlnet_tile_sr_sdxl.py:982-1006 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:901-925 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:977-1001 | examples/community/pipeline_kolors_inpainting.py:977-1001 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1251-1275 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1107-1131 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:819-843 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1174-1198 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1105-1129 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1015-1039 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1084-1108 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1006-1030 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1021-1045 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:884-908 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:975-999 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:870-894 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:975-999 \u2014 before extracting anything, compare \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 337 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_kolors_inpainting.py:1004\u0060 calls \u0060upcast_vae\u0060, \u0060deprecate\u0060, \u0060to\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1201\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d5ab32cd88e5ffdfb4c70fdf018a0a615e9fdc94c57855a7ccfd7d54d6857b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201325 lines \u00D7 16): examples/community/fresco_v2v.py:1780-1803 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:602-626 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:653-677 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:654-673 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:801-820 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:632-655 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:648-670 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:634-657 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:673-696 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:771-794 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:714-737 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:718-741 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:606-628 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:623-646 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:722-745 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:724-747 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1780\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c15318dcb0e440ba85245c3bd3c2b79532830283868ccad57c65668eca93e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 8): examples/community/instaflow_one_step.py:599-622 | examples/community/pipeline_animatediff_img2video.py:865-889 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:779-802 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:669-692 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:729-752 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:548-571 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:610-633 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:664-687 \u2014 before extracting anything, compare \u0060examples/community/instaflow_one_step.py\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 362 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/instaflow_one_step.py:599\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/instaflow_one_step.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f2081da0f95edcb512742d5943b09bd3a3aa3b1338ef976022b60aca2d1e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 7): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:307-329 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:372-394 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:354-376 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:355-377 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:370-392 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:354-376 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:378-402 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:378\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"016fa4ee0e6d44b80093bd7d9eb6a50a66c77be9e659954f447c8d9adb69f7d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 6): examples/community/pipeline_flux_kontext_multiple_images.py:1103-1127 | src/diffusers/pipelines/chroma/pipeline_chroma.py:810-834 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:895-919 | src/diffusers/pipelines/flux/pipeline_flux.py:853-877 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:991-1015 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1300-1324 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 535 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"76501e2d744f02b52c5cf7e9473160227d2184b79ffe866e5a6c406a820bb1b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 6): examples/community/pipeline_stg_ltx.py:696-720 | examples/community/pipeline_stg_ltx_image2video.py:758-782 | examples/community/pipeline_stg_mochi.py:699-722 | src/diffusers/pipelines/ltx/pipeline_ltx.py:678-702 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:742-766 | src/diffusers/pipelines/mochi/pipeline_mochi.py:573-596 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:678\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, \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:704\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/mochi/pipeline_mochi.py:598\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"f641bbbd1283025e13bad4e042371df5e5b88b2858deff5555374f4f7649b97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 5): examples/community/pipeline_flux_kontext_multiple_images.py:1011-1035 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:877-901 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:861-885 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:994-1018 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1186-1210 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 659 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1011\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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"5650b3f722845bd3f9c5f5eeae7a2e6ac10d743cf9005d0dd3e22f3ebe0717c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 5): src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:878-902 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:668-692 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:857-879 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:602-626 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:944-968 \u2014 \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.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 69 separate duplicated blocks between them, totalling at least 920 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"398245c235320eeef73e166e897e4859e029610c460b4d064f524dc0290ea6c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 4): examples/community/pipeline_flux_semantic_guidance.py:1008-1032 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:889-912 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:873-896 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1006-1029 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 879 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:889\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c478b133296868e70f13d91ea04baba1877d02ba6ed03b237985976916412a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 4): examples/community/pipeline_hunyuandit_differential_img2img.py:993-1017 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:905-929 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:784-808 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:807-831 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:993\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f5903c153d5a0a76bd1b7cab9e502e801166291ef6fdb6c8ef94903a4a28b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 4): examples/community/scheduling_ufogen.py:281-304 | src/diffusers/schedulers/scheduling_consistency_models.py:202-226 | src/diffusers/schedulers/scheduling_ddpm.py:295-318 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:310-333 \u2014 before extracting anything, compare \u0060examples/community/scheduling_ufogen.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddpm.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/scheduling_ufogen.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"38aad8ed3f99ee502228b341744d3fe44a67e2d4b806f1181b780c661c4ffa48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): examples/community/kohya_hires_fix.py:174-198 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:716-740 | src/diffusers/models/unets/unet_2d_condition.py:1084-1108 \u2014 before extracting anything, compare \u0060examples/community/kohya_hires_fix.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 364 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/kohya_hires_fix.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa70f0d92336114e68437e6854737b24a6238dd7151fce9d61c0bce0603e6df9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): examples/community/llm_grounded_diffusion.py:934-958 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:692-716 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:879-903 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 644 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"719aa08116a56ed3618b00cf7fc4015a1510be28387e7dfc4a51a6192fe15909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 3): examples/community/matryoshka.py:1313-1334 | src/diffusers/models/transformers/transformer_2d.py:411-435 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:562-583 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_2d.py:411\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad30bcc407116569c76f19f3b50f3fcd2f355302891cb47bd671845a5d741ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): examples/community/stable_diffusion_xl_controlnet_reference.py:1170-1194 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1426-1450 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1421-1445 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 1253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:1195\u0060 calls \u0060is_torch_version\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1451\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":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dac1ff175f87a48dff68152950f99b0ff6896d5d4d1107a5a7d3095c2b556ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:400-424 | scripts/convert_zero123_to_diffusers.py:254-278 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:398-422 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_zero123_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 877 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"78adafb5caa93ae9787716b636c8e72a8e5a079d09dd2d3d8cc8c0ee7ae87927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 3): examples/research_projects/sana/train_sana_sprint_diffusers.py:128-150 | src/diffusers/models/transformers/sana_transformer.py:142-164 | src/diffusers/models/transformers/transformer_sana_video.py:300-324 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py:128\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/sana/train_sana_sprint_diffusers.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1308ef93b57b86b65718d217756543ea5cd7049a43e66285db25c4f475af0f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): src/diffusers/models/attention_processor.py:4244-4268 | src/diffusers/models/attention_processor.py:4449-4473 | src/diffusers/models/attention_processor.py:4689-4713 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4244}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b38039c6018bf38dfcaad7dde327f83e136432193b9834768ee76ae6ea4fc73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:312-336 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:422-446 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:411-435 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"3289a9defae05e2a3919994430130b036424f351df59962f0b7d23d65b70fc8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): src/diffusers/models/transformers/transformer_sana_video.py:183-207 | src/diffusers/models/transformers/transformer_wan.py:362-386 | src/diffusers/models/transformers/transformer_wan_animate.py:841-865 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_sana_video.py:183\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_video.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdc7cfe3317b4ad3f3d1d94651a652f96ce02c85243c5d69140eab7b8921d1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:705-733 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:829-857 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:947-975 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"80421f5bc4ff5c9375491390a4f0a0b23cd1ef6b0bee994a579af78b413adfe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:107-131 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1405-1429 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1673-1697 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc695e2377afbeedcdb675515486101680eb4edbdff7c2b2286a621a2b7351a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 3): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:310-331 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:542-566 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:558-581 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f58a0a79d8caf28e3b971f6cb45c3d2f62a0be2f54f8a30d0cf09e90929d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 3): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1467-1491 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1903-1925 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1544-1568 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1467\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b9c365f6139d1daad6fce140f34031c4c352ebd4f7413a9bf5740c389f93ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:667-691 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:848-872 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:708-732 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 786 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:667\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"2214a123223aedef98a642b6d15e96adc31bb84d3f9171533f493408d5726f5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): examples/community/hd_painter.py:540-564 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1100-1122 \u2014 before extracting anything, compare \u0060examples/community/hd_painter.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 488 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"d061663472974ed380ed0b40ee3cd88dcf6ca7ca28b9a2d53b94958e31d4c5f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): examples/community/pipeline_stg_cogvideox.py:87-111 | src/diffusers/models/transformers/consisid_transformer_3d.py:319-343 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a68c7f56745aa52f1ed1ad09150cf73a85dca82027e6a04c8c7e73aaa2c3c1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): scripts/convert_sd3_to_diffusers.py:183-207 | src/diffusers/loaders/single_file_utils.py:2154-2178 \u2014 before extracting anything, compare \u0060scripts/convert_sd3_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 249 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_sd3_to_diffusers.py:183\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/convert_sd3_to_diffusers.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a793ebc4c66619dc962036e774e3e8a529ed723e085e9dcca03accc39e45a0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/loaders/ip_adapter.py:142-166 | src/diffusers/loaders/ip_adapter.py:689-713 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/ip_adapter.py:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cff0e6ee95c59fe1aec33c1e82b2fd1cc83585a1283406d75346d3caa0761b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): src/diffusers/models/attention.py:386-408 | src/diffusers/models/attention_processor.py:633-657 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention.py:386\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":"src/diffusers/models/attention.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8c9876830290c4407b6730b0ca35c370a44789a8a1e72d6627e183c926d1c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/models/attention_processor.py:4038-4062 | src/diffusers/models/attention_processor.py:4135-4159 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:4038\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4038}}}],"partialFingerprints":{"codehealthFindingId/v1":"978f336ac5679a3dff9ede3e78dbcf52e444468d5307f786f5f6fe5e844caf4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:857-881 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:760-784 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"980650374531d3f9beb231570e6b57d52f44c25b48e439e3ea06387dc0059289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/models/autoencoders/vae.py:218-242 | src/diffusers/models/autoencoders/vae.py:432-456 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/vae.py:218\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/vae.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97d85d4861707742e0090cb96b48163da552e91090db65548db7d1ae64a3d69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_xs.py:137-157 | src/diffusers/models/controlnets/controlnet_xs.py:1196-1220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_xs.py:137\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5c7d5c7f495e7d177cd64313910e096ab96f19953190cb7fb008a25ccaa454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow.py:338-362 | src/diffusers/models/transformers/transformer_anyflow_far.py:653-677 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow.py:338\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":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ae914b018ec24ac3ef38e8df141dd5060221a6160477d0713bc0e5fea55be6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow_far.py:1350-1374 | src/diffusers/models/transformers/transformer_anyflow_far.py:1475-1499 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow_far.py"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"98419497d0996f24e0409316e970a23b778d2a810a90bcad4365b0e39d1c554d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/models/transformers/transformer_flux2.py:456-480 | src/diffusers/models/transformers/transformer_flux2.py:687-711 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"6642b23f46b98201966bf400947b2f60d14f6780c1f3f2aa8c131bb1bbe81524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1609-1633 | src/diffusers/models/unets/unet_2d_blocks.py:1700-1724 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b4809eb5e82459b013865af1beabfc61370215dc7ba25ae90710eae628d5c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:2147-2171 | src/diffusers/models/unets/unet_2d_blocks.py:3429-3453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"023b349b917647f881c489f38e2385f8e03a8a310ec3ae9fec93c208e55e40ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/models/unets/unet_3d_condition.py:641-665 | src/diffusers/models/unets/unet_motion_model.py:2080-2104 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_condition.py\u0060 and \u0060src/diffusers/models/unets/unet_motion_model.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 377 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd71fb24734cc71ca38074126e4f540a0f45551f9736a5df80f85ba0bf086c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 2): src/diffusers/modular_pipelines/flux2/encoders.py:125-146 | src/diffusers/pipelines/flux2/pipeline_flux2.py:323-347 \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":"src/diffusers/modular_pipelines/flux2/encoders.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f060b9695b5661951b31e3a4ef0c81c7416f561a1e37aee71b87492490954769"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:140-164 | src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:357-377 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:140\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"253380107de9edfe620ccd097e764c5d521e2362a74c40af0841a07f91774c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:583-607 | src/diffusers/pipelines/lumina/pipeline_lumina.py:797-819 \u2014 \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py\u0060 and \u0060src/diffusers/pipelines/lumina/pipeline_lumina.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 20 separate duplicated blocks between them, totalling at least 283 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":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"a482397772dc1840a0dffc6a9e55446a9f8be60fb72d723bfa82b8dc0f804d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:639-687 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:691-739 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py:638\u0060 calls \u0060cache_context\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:690\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5e019dfde22312de19d633d4d98fefefed99ab63ce47b5fa77264a6a8c104b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1071-1095 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1069-1093 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 111 separate duplicated blocks between them, totalling at least 1729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"15041fadb7493a27c9d2f4d5b444cfb63cb6f861fa3bc9fdac934885f26c5a72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:406-429 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:424-448 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 526 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a5c115c9abfdf055b4b64721d73c0561a2d72155f0101d1357b66eb1fca0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:294-317 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:359-383 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 553 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:294\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"622a4311d2c41c35a6a9a90b7d9e9c145fd3abc0a035fdf9732377b448e0eb3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:825-849 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:879-903 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py\u0060 as WHOLE FILES: this scan already matched 83 separate duplicated blocks between them, totalling at least 1724 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"396809043bbbc25c51809f49986e0ee0ed7b55695beda80af3c1777b0af537e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1199-1223 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:1111-1135 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 1105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d842fd5f36dfa961693af986ed64109be8d2eb90cd73ec22b4418c81bdd0901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1214-1238 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1341-1365 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py\u0060 as WHOLE FILES: this scan already matched 100 separate duplicated blocks between them, totalling at least 1450 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1341\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f286cd68c7a2007d05619bd02a55f9219755e2f1cd1daab56b9d344df8eb2a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/pipelines/sana/pipeline_sana.py:878-902 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:961-985 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_controlnet.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/sana/pipeline_sana.py:878\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d56de39ee0a8ddf14f00c5410dcadd293656dbb98b8bab28d5edc25825ff09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:565-589 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:625-649 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 332 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:565\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a678ae70496f3dd4746cd8f63f5bec53c12fec03533f444ec1ebea6ff86d479"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:374-398 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:337-361 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 704 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe5193a8bf94992b74f99027799e52424353fe69ccfbb2a4bf9f8ddf449a086"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:427-451 | src/diffusers/schedulers/scheduling_unipc_multistep.py:807-831 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_helios.py\u0060 and \u0060src/diffusers/schedulers/scheduling_unipc_multistep.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0231fcd7052752b83d269bbe4fefd03e8069b0e5db2f347dc9d439e79a572c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 47): examples/community/matryoshka.py:4036-4059 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:475-498 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:526-549 | examples/community/pipeline_kolors_differential_img2img.py:435-458 | examples/research_projects/anytext/anytext.py:1588-1611 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:166-188 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:382-405 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:427-450 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:613-636 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:436-459 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:484-507 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:515-538 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:526-549 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:504-527 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:510-533 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:577-600 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:585-608 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:577-600 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:566-589 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:577-600 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:596-619 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:538-561 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:540-563 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:511-534 | src/diffusers/pipelines/kolors/pipeline_kolors.py:409-432 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:429-452 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:469-492 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:454-477 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:503-526 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:479-502 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:592-615 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:582-605 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:426-449 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:532-555 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:393-416 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:527-550 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:562-585 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:579-602 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:833-856 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:375-398 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:558-581 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:586-609 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:540-563 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:569-592 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:820-843 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:379-402 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:597-620 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 47 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 47 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:4036\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":"examples/community/matryoshka.py"},"region":{"startLine":4036}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb409e0d15fe22ca63a3ef0bbe1eddce01e0d7bd8327c2e5036c3dcf7722540b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 31): examples/community/lpw_stable_diffusion_xl.py:859-882 | examples/community/mixture_tiling_sdxl.py:547-570 | examples/community/mod_controlnet_tile_sr_sdxl.py:554-577 | examples/community/pipeline_demofusion_sdxl.py:323-346 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1424-1447 | examples/community/pipeline_sdxl_style_aligned.py:667-690 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:851-874 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:400-423 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:547-570 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:427-450 | examples/community/pipeline_stable_diffusion_xl_ipex.py:427-450 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:459-482 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:488-511 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:452-475 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:460-483 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:452-475 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:441-464 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:452-475 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:471-494 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:384-407 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:746-769 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:467-490 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:457-480 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:454-477 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:472-495 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:562-585 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:444-467 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:462-485 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:566-589 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:361-384 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:472-495 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:859\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/lpw_stable_diffusion_xl.py:857\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/mixture_tiling_sdxl.py:546\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ab6a3750f2e77d96702af8397ac60fdd11aacb831928e838425dde868a182d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 28): examples/community/fresco_v2v.py:1883-1906 | examples/community/mod_controlnet_tile_sr_sdxl.py:796-819 | examples/community/pipeline_animatediff_controlnet.py:634-657 | examples/community/pipeline_controlnet_xl_kolors.py:637-660 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:712-735 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:763-786 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:502-525 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:649-672 | examples/research_projects/anytext/anytext.py:1794-1817 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:555-578 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:740-763 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:592-615 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:764-787 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:737-760 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:776-799 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:625-648 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:823-846 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:827-850 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:615-638 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:626-649 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:818-841 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:586-609 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:534-557 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:583-606 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:723-746 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:726-749 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:831-854 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:833-856 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 28 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 28 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9eb35d7cb798ef54cf72bfd27b68d5204a350aadbf45b92220277c05bb51e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 18): examples/community/latent_consistency_interpolate.py:251-274 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:127-150 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:240-263 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:141-164 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:165-188 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:168-191 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:165-188 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:73-96 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:233-256 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:157-180 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:218-241 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:248-271 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:219-242 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:99-122 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:123-146 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:341-364 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:195-218 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:142-165 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_interpolate.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 422 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/latent_consistency_interpolate.py:251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:96\u0060 calls \u0060isinstance\u0060, \u0060error\u0060 and \u0060examples/community/latent_consistency_interpolate.py:249\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cb32726d162dd9250fb04cf5568f63c3396125c076ffa81f539abd26d6dcb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 7): src/diffusers/schedulers/scheduling_deis_multistep.py:588-611 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:756-782 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:607-633 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:673-699 | src/diffusers/schedulers/scheduling_helios.py:379-404 | src/diffusers/schedulers/scheduling_sasolver.py:586-612 | src/diffusers/schedulers/scheduling_unipc_multistep.py:767-790 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:756\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fab7feb2190aed66eada761e0984b0483209256906d059311f7a1ebdb68c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 6): examples/community/adaptive_mask_inpainting.py:1058-1081 | examples/community/hd_painter.py:611-634 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1332-1354 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1294-1316 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1158-1181 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1176-1199 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaed7b516f844f0a5e63d47c5c8ef6eec3ca00e2a2efb05924e9c9821ffffce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 6): examples/community/pipeline_animatediff_ipex.py:711-734 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1122-1145 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1120-1143 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1242-1265 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1022-1045 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1113-1136 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 509 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:711\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, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1146\u0060 calls \u0060preprocess\u0060, \u0060to\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1268\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":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"87896d14b6e82ad381db06db14578b9e2e482cb99dfc9c45962d532526de7812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 6): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:681-704 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:755-778 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:536-556 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:618-638 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:524-544 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:646-666 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:681\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, \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:533\u0060 calls \u0060to\u0060, \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:681\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"4279164e6b891fe4493afde4682041ebd924bb1da0dfdd5df220ee08ced6cdeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 6): src/diffusers/schedulers/scheduling_helios.py:463-490 | src/diffusers/schedulers/scheduling_helios.py:602-631 | src/diffusers/schedulers/scheduling_sasolver.py:952-978 | src/diffusers/schedulers/scheduling_sasolver.py:1083-1112 | src/diffusers/schedulers/scheduling_unipc_multistep.py:841-864 | src/diffusers/schedulers/scheduling_unipc_multistep.py:971-996 \u2014 there are 6 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d55ec4dc1df8d456997f0c375f433e2ac7b327d0b8d2847f52b42299489b049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 5): examples/community/matryoshka.py:880-903 | src/diffusers/models/unets/unet_2d_blocks.py:1268-1291 | src/diffusers/models/unets/unet_dreamlite.py:668-689 | src/diffusers/models/unets/unet_dreamlite.py:818-839 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1720-1743 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:668\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":"examples/community/matryoshka.py"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"43472fc106ca54c6d1e6845f6f92dd0819c1411f2c6a3bd70a7e6f8da0f2fafa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 5): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1174-1198 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1386-1410 | examples/community/stable_diffusion_xl_controlnet_reference.py:575-598 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1223-1246 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1143-1166 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 119 separate duplicated blocks between them, totalling at least 2012 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b70ad58b3db811fe2ac3e764b6e7cf422585fe8a61efc273895a0d81b4bc210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 5): examples/community/pipeline_stable_diffusion_xl_ipex.py:983-1005 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1136-1159 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1184-1206 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1115-1137 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1113-1135 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_ipex.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py\u0060 as WHOLE FILES: this scan already matched 69 separate duplicated blocks between them, totalling at least 989 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1136\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff36c12db32d590b83695e98c090ff7bb64952f2f3e0ccdc559b68f965d370c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 5): examples/community/stable_unclip.py:239-262 | examples/community/unclip_text_interpolation.py:350-373 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:321-344 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:496-519 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:511-534 \u2014 before extracting anything, compare \u0060examples/community/stable_unclip.py\u0060 and \u0060examples/community/unclip_text_interpolation.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_unclip.py:239\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_unclip.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e24b72f52483ed6a126719411a9391f6c097dd8d274c48f1051d39090b1270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 5): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:1010-1033 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:733-762 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1195-1218 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1201-1224 | src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:796-822 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2d251d5b24554f66f9fc927bbfa87e5764fd80ba077574c3a807789010f898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): examples/community/matryoshka.py:1013-1036 | src/diffusers/models/unets/unet_2d_blocks.py:867-890 | src/diffusers/models/unets/unet_dreamlite.py:515-538 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2289-2312 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/unets/unet_2d_blocks.py:615\u0060 calls \u0060Tensor\u0060 and \u0060examples/community/matryoshka.py:863\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"771fddecae0e7ab175dad0a17234c16a139c4a2e4f74466062790b4dbc95aba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 4): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1403-1426 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1750-1772 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1475-1496 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1567-1588 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 699 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1d541541667c47f1c3589b3b246642d153bde8fc293ad6658eafbf9e0d9409"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): examples/community/pipeline_flux_semantic_guidance.py:1088-1111 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1063-1086 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:951-974 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1107-1130 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_img2img.py:951\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"a782f289e55c6b74229a5dcc5160dc03344ec2c98a3016a00bc518f5b717e40e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): examples/community/pipeline_stg_cogvideox.py:707-730 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:642-665 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:695-718 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:715-738 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2a4dbf9acf1c75ddea25d0678f9b56888fc5084454604be37a2e136e169a31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): examples/community/pipeline_stg_ltx.py:839-862 | examples/community/pipeline_stg_ltx_image2video.py:938-961 | src/diffusers/pipelines/ltx/pipeline_ltx.py:809-832 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:907-930 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f002b18cf4b3eb69ab2aecdcf1bd6e431cba821ff3ab1c81792a31451641621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201324 lines \u00D7 4): examples/community/stable_diffusion_xl_controlnet_reference.py:1230-1249 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1764-1787 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1485-1504 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1544-1562 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"128dd9e4b4797e91569b4c7618c017f36644caa447541f581d247edfac176cbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 4): src/diffusers/models/transformers/transformer_chronoedit.py:89-138 | src/diffusers/models/transformers/transformer_skyreels_v2.py:92-141 | src/diffusers/models/transformers/transformer_wan.py:86-135 | src/diffusers/models/transformers/transformer_wan_animate.py:569-618 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_chronoedit.py:89\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5b7a7dcd8200dfc30180776bb221070a0c85b0ab3d685e0db3d5d8a01be3a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): src/diffusers/modular_pipelines/helios/before_denoise.py:231-254 | src/diffusers/modular_pipelines/qwenimage/inputs.py:306-329 | src/diffusers/modular_pipelines/qwenimage/inputs.py:521-544 | src/diffusers/modular_pipelines/qwenimage/inputs.py:753-776 \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":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e433208e7aec3f370ed2428ae012396abbdbe42538f321cdf8c25d130a500a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1180-1203 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1337-1360 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1122-1145 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1322-1345 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1180\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cd366ff4ee0bf54dcdf50c78bad940220eb06c7c0cb84e785378e45ca2fd45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1027-1050 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1157-1180 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1323-1346 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:697-720 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1027\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, \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1350\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:725\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"353179b4a05966cb99ce9b46904bc4f39e8bbcbf3cdf379503da5efe3591b42c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): examples/community/adaptive_mask_inpainting.py:390-413 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:320-343 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:203-226 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note first that the copies are not typed on the same thing: \u0060FrozenDict\u0060 names \u0060....configuration_utils\u0060 in one and \u0060...configuration_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab7c8a40227719f31a35adef92311151e5f31f5389a94e0d93f608a95b1efed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 3): examples/community/gluegen.py:733-753 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:857-880 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1141-1164 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:733\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8b81a867fe4b8d45a4ad373fc2c5fd18a40e0187921bcaed1974a56fd6a0e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): examples/community/matryoshka.py:2828-2851 | src/diffusers/models/unets/unet_2d_condition.py:945-968 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1247-1270 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060added_cond_kwargs\u0060 to \u0060Dict[str, Any]\u0060 in one and \u0060dict[str, Any]\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, \u0060examples/community/matryoshka.py:2853\u0060 calls \u0060hasattr\u0060, \u0060text_encoder_hid_proj\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1271\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":"examples/community/matryoshka.py"},"region":{"startLine":2828}}}],"partialFingerprints":{"codehealthFindingId/v1":"8073777dcac7d56d78556bc540f3ab97d2777e9eab39602175fb2da3a5470242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 3): examples/community/pipeline_animatediff_controlnet.py:1011-1034 | examples/research_projects/anytext/anytext.py:2215-2237 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:992-1015 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/research_projects/anytext/anytext.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 841 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_controlnet.py:1011\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f00e6ccb1b757e4970312c117e6356d296f6ec4afbfbd35a2833885aef0d099"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): examples/community/pipeline_animatediff_ipex.py:675-698 | examples/community/pipeline_animatediff_ipex.py:856-879 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:791-814 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/deprecated/pia/pipeline_pia.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 945 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d4ca2792da36d0611aaa26ab5761d9adb14eb7818c937e0600ae03c57d6f18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): examples/community/pipeline_animatediff_ipex.py:743-766 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:783-806 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:921-944 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 631 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:743\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d32d8470aa4549f9f4f9467820ee8e1211dce196ccf7e43ddf6b0fa9e0732c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): examples/research_projects/anytext/anytext.py:1725-1748 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:695-718 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:653-676 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 as WHOLE FILES: this scan already matched 100 separate duplicated blocks between them, totalling at least 1558 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext.py"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc247f92f89db33db297d8f82f744a544158cc15032cc39611dba86020aee803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): src/diffusers/models/attention.py:834-857 | src/diffusers/models/attention.py:1439-1462 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:123-146 \u2014 before extracting anything, compare \u0060src/diffusers/models/attention.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060SinusoidalPositionalEmbedding\u0060 names \u0060..embeddings\u0060 in one and \u0060.embeddings\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/attention.py:1436\u0060 calls \u0060set_free_noise_properties\u0060 and \u0060src/diffusers/models/attention.py:831\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7871499b69f1e7313c7769377e4de451fc209f34c90c38782a2f636a4de0b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:178-201 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:183-206 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:179-202 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:178\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43f717e8b7921a6d27292367ffcb6ba79ca0ba6c4d9ddb6aaffac0b176f3d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 3): src/diffusers/models/transformers/transformer_2d.py:184-205 | src/diffusers/models/transformers/transformer_2d.py:224-247 | src/diffusers/models/transformers/transformer_2d.py:271-294 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_2d.py:224\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0aa9c5ee270f96830d3fb39336fba90ac2cc785ddf56a94d2e9438e116a5d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 3): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:147-169 | src/diffusers/models/transformers/transformer_qwenimage.py:201-224 | src/diffusers/models/transformers/transformer_qwenimage.py:326-348 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be98f7d707a7f20d0da4d6dd7083394285ec16382c7796db28f7b93f9624093"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/encoders.py:105-136 | src/diffusers/modular_pipelines/p_h3_image/encoders.py:34-65 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:107-138 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/encoders.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 3 separate duplicated blocks between them, totalling at least 107 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa211da409ed2d69f354125e846458a3df3777a29764f63ce7f3e836596dbff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:491-514 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:420-443 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:447-470 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:491\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1035429fa63eb2affe5c6c2bfc8b0c7ffd2f5c89945943694fbabbe6ac18265"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): src/diffusers/pipelines/z_image/pipeline_z_image.py:453-476 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:581-604 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:608-631 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 514 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b846d17273bb871028d7d327a328b3da73c69f5f750abf6c19c3f38ba8f20d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/community/matryoshka.py:1768-1791 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:785-808 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 549 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:785\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1768}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f2fbfd0efdb56af17efc88cd1c3f90ff04c93accad9449cd5cee700e82ee28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/community/matryoshka.py:2268-2291 | src/diffusers/models/unets/unet_2d_condition.py:468-491 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_condition.py:468\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe71ceacf3899fbe208afe56710ebe5e5ec016fc899cd030fb10d4acea967f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201340 lines \u00D7 2): examples/community/pipeline_flux_kontext_multiple_images.py:1058-1097 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:949-985 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1058\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3eeffa88383411fabffc1d460e167f9bca9ae7f1fff23ce3988cc07a68e82a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/community/pipeline_flux_semantic_guidance.py:1244-1267 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:623-646 \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 \u0060src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:623\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":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e9963183e1ef43e00f28dbfda687d2b1eccf225c7c20fd3abebe214a8256a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1206-1229 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1097-1120 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py\u0060 as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fa7dc6b0f7244ddefee9df53427c794ef981dd6fd13af33ac09716a73227b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): examples/community/pipeline_stg_ltx.py:728-751 | src/diffusers/pipelines/ltx/pipeline_ltx.py:708-728 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 759 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:708\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":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2004c6cccdc651a479d32d2b514d759184d042b02f45ff56dc13f261adf9d69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): examples/community/stable_diffusion_repaint.py:738-758 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1398-1421 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_repaint.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 450 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_repaint.py:738\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_repaint.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f19e85268462632098dcf6aea2e2678a7e916c28830abc1123a6ce59ad7562"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): examples/research_projects/anytext/anytext.py:2212-2232 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:738-761 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py\u0060 as WHOLE FILES: this scan already matched 45 separate duplicated blocks between them, totalling at least 597 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:738\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext.py"},"region":{"startLine":2212}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8dad1624a1204ede83125528b4de306b791becfc393202dde5ce30bf5a2b821"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): src/diffusers/loaders/single_file_utils.py:1482-1505 | src/diffusers/utils/state_dict_utils.py:402-424 \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 \u0060src/diffusers/loaders/single_file_utils.py:1482\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd4bb09b18cd0d3acb9b70438581ad08e6013db83a661e246028d15fa0f0e60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201324 lines \u00D7 5): examples/research_projects/sana/train_sana_sprint_diffusers.py:154-155 | src/diffusers/models/attention_processor.py:1615-1638 | src/diffusers/models/attention_processor.py:1780-1803 | src/diffusers/models/attention_processor.py:4943-4945 | src/diffusers/models/transformers/transformer_cosmos.py:284-285 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:1615\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/sana/train_sana_sprint_diffusers.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"191db44e65e347a58a7b1e2b2b216b5beeaa7417fcb5bf920ccb24de01f97790"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py:323-346 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:258-280 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"17cf5c98b70e055f9a86d1aaccd2e1f4c051ba4c7b02b31bf333e6978ff79e88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:631-654 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:672-695 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:631\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"36195ad83e7be6b3e976a552189bafac7f637235eb31229764ef68ded2d6af5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow.py:255-281 | src/diffusers/models/transformers/transformer_anyflow_far.py:435-461 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9bfa32d0a61a133e3afd4d06627f0bcba35fd1d6a1dd3399a2ca5715d95eda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:184-204 | src/diffusers/models/transformers/transformer_qwenimage.py:247-270 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"1676fd3c393f7144548078884ea54c25b29ea9163457d7001bddfe372a5b502a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage21/encoders.py:392-415 | src/diffusers/modular_pipelines/qwenimage21/encoders.py:529-552 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/qwenimage21/encoders.py:392\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage21/encoders.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"9528e7b9e024e701dea239bc7f77dc5b55b2de7dfebee3123be4e97e6a1bf54f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1267-1290 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1447-1470 \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":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c394879093a8fe61eefee3e2a27fe55ab6213c5f50f70565a8d5a6c3548b5ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:500-523 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:609-632 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83c516773ae89fef8181e67b8b1733ec3a6ae6d331c5a75fc891504f3b419ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:176-199 | src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py:165-188 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 194 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2eaa3129e2165c01b965743f1bce6496ad906eccc877d3fd340613e48cd04d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): src/diffusers/pipelines/deprecated/spectrogram_diffusion/continuous_encoder.py:48-69 | src/diffusers/pipelines/deprecated/spectrogram_diffusion/notes_encoder.py:44-67 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/spectrogram_diffusion/continuous_encoder.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e2449f8614ac658ea203df8b59f2ee8bf64567835ccdf2e93d268c25bb806a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:222-245 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:239-262 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 638 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"886a8eb5faff9bce97db5daf19771a88d55232507b88632125f25c76c0eb0f2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:272-295 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:291-314 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 638 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0737133c0516f255bbe98c3a594b8dfa179088c7a8bc47bfab4226ab1a4b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:222-245 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:193-216 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:222\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":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1567ab054e2480c362ba31437431f674159a6e6a2f2e0e351faa1611bace61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:94-117 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:91-114 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 742 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b9cda91d8c55a76791cbfa6bf4c2a78109628a37bc15453fcc5611371cf514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:235-258 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:200-223 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 512 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6801592b53eb0968f42c57c9892b2831a34b6d10780a85a549cf0f13631220"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:531-554 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:544-567 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 319 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bd83096545a21523f0f3cf2a383b812ce156d17279fb257340c8013f38a232"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/pipelines/latte/pipeline_latte.py:891-914 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:296-319 \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":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c360a4141012e90fabd4a1d27b6ff56fac14642d23a289cceb7f53b11c66be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:2066-2089 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2500-2522 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 2039 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":2066}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2de0e99f5cf3eb7ddf68ce922be1f2990a1021f3d917171a60e52f478a57760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:872-895 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:811-834 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 986 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:872\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbe651b2a613efbabfa3cd1ace01b730727c54abebb1f64cef9bdd81c07b454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:625-648 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:647-670 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py\u0060 as WHOLE FILES: this scan already matched 77 separate duplicated blocks between them, totalling at least 987 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"33086b2c3c7528ce994019c408b05d8137b5862da7b00ea424fef4eee574d891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201323 lines \u00D7 57): examples/community/gluegen.py:140-150 | examples/community/instaflow_one_step.py:42-52 | examples/community/ip_adapter_face_id.py:77-87 | examples/community/lpw_stable_diffusion_xl.py:507-517 | examples/community/matryoshka.py:126-136 | examples/community/mixture_tiling_sdxl.py:197-219 | examples/community/pipeline_demofusion_sdxl.py:78-88 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1076-1094 | examples/community/pipeline_hunyuandit_differential_img2img.py:151-161 | examples/community/pipeline_kolors_inpainting.py:93-103 | examples/community/pipeline_prompt2prompt.py:62-72 | examples/community/pipeline_sdxl_style_aligned.py:314-324 | examples/community/pipeline_stable_diffusion_boxdiff.py:308-318 | examples/community/pipeline_stable_diffusion_pag.py:280-290 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:296-306 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:142-152 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:288-298 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:89-99 | examples/community/pipeline_stable_diffusion_xl_ipex.py:99-109 | examples/community/regional_prompting_stable_diffusion.py:1668-1690 | examples/community/stable_diffusion_xl_reference.py:66-76 | src/diffusers/guiders/guider_utils.py:375-396 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:125-147 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:145-167 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:135-157 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:140-162 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:68-90 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:78-100 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:73-95 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:319-341 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:101-123 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:177-199 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:199-221 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:124-146 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:244-266 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1645-1667 | src/diffusers/pipelines/ltx/pipeline_ltx.py:145-167 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:227-249 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:120-142 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:164-186 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:184-206 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:241-263 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:218-240 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:236-258 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:204-226 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:127-149 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:72-94 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:99-121 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:87-109 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:92-114 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:105-127 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:70-92 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:85-107 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:89-111 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:100-122 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:100-110 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:128-150 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:140\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae99c4e46cd25e57a9b16e1074e7d51cc7142d4d632e7a00ca38b62c33252b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 28): examples/community/composable_stable_diffusion.py:142-163 | examples/community/instaflow_one_step.py:162-183 | examples/community/ip_adapter_face_id.py:244-265 | examples/community/llm_grounded_diffusion.py:389-410 | examples/community/lpw_stable_diffusion.py:549-569 | examples/community/pipeline_fabric.py:160-182 | examples/community/pipeline_prompt2prompt.py:184-205 | examples/community/pipeline_stable_diffusion_boxdiff.py:470-491 | examples/community/pipeline_stable_diffusion_pag.py:437-458 | examples/community/pipeline_zero1to3.py:161-182 | examples/community/stable_diffusion_ipex.py:158-179 | examples/community/stable_diffusion_tensorrt_img2img.py:763-784 | examples/community/stable_diffusion_tensorrt_inpaint.py:767-788 | examples/community/stable_diffusion_tensorrt_txt2img.py:679-700 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:263-284 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:291-312 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:356-377 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:136-157 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:223-244 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:194-215 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:378-399 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:269-290 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:264-285 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:296-317 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:268-289 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:140-161 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:114-135 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:292-313 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 297 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/composable_stable_diffusion.py:142\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060FrozenDict\u0060 names \u0060....configuration_utils\u0060 in one and \u0060...configuration_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce98926554dea45f0cc2d6698a3de39aa14c1199f2429961b648491c8b42b9fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 18): src/diffusers/schedulers/scheduling_consistency_models.py:467-488 | src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:695-716 | src/diffusers/schedulers/scheduling_deis_multistep.py:1003-1024 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1309-1330 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:1124-1145 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:782-803 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1283-1304 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:814-835 | src/diffusers/schedulers/scheduling_edm_euler.py:542-563 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:485-506 | src/diffusers/schedulers/scheduling_euler_discrete.py:808-829 | src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:194-216 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:215-237 | src/diffusers/schedulers/scheduling_heun_discrete.py:668-689 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:700-721 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:672-693 | src/diffusers/schedulers/scheduling_lms_discrete.py:632-653 | src/diffusers/schedulers/scheduling_unipc_multistep.py:1256-1277 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_consistency_models.py\u0060 and \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_consistency_models.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11ca84e320885394c5a95115777d5e115dc680ddd1e91ec2edb80d813f5c55b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 13): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1238-1259 | examples/community/pipeline_stable_diffusion_xl_instantid.py:906-928 | examples/community/pipeline_stable_diffusion_xl_ipex.py:996-1017 | examples/community/stable_diffusion_xl_controlnet_reference.py:1140-1162 | examples/community/stable_diffusion_xl_reference.py:990-1011 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1150-1171 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1396-1418 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1391-1413 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:992-1014 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1381-1403 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1128-1149 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1126-1147 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1183-1204 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"107b259c6da03b7727541b24b7e282ffb63ef31be4f3ac025c69d2dd704dab9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 9): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:800-822 | examples/community/pipeline_stable_diffusion_xl_instantid.py:792-814 | examples/community/stable_diffusion_xl_controlnet_reference.py:636-658 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1275-1297 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1366-1388 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1261-1283 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1384-1406 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1260-1282 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1354-1376 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"074c261f7ecfc18585a3c0d580e636686a9d972ed16d4293435dd899ac0bfe47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 8): examples/community/pipeline_controlnet_xl_kolors.py:538-559 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:584-606 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:635-657 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:755-775 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:696-718 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:700-722 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:704-726 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:706-728 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_controlnet_xl_kolors.py:538\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, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:753\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py:538\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd996f10bccd8f14631ca8584e26873288f2c173ce65b8c4eddaee08511b1f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 8): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1174-1197 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1386-1409 | examples/community/stable_diffusion_xl_controlnet_reference.py:575-597 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1178-1200 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1432-1454 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1223-1245 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1313-1335 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1143-1165 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 119 separate duplicated blocks between them, totalling at least 2012 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:575\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:600\u0060 calls \u0060check_ref_inputs\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1455\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":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c80525e87618e8073a3c4595264216e2d685b4a6d377fff9d7002728d4f06fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 7): examples/community/lpw_stable_diffusion_xl.py:1273-1295 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1072-1094 | examples/community/pipeline_kolors_inpainting.py:877-899 | examples/community/pipeline_sdxl_style_aligned.py:1073-1095 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1149-1171 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:870-892 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:870-892 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1273\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2370cfb910c522c828bf591e3ef60e6c26f4251400e6475d04775d6af9660ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 7): examples/community/pipeline_kolors_differential_img2img.py:537-559 | src/diffusers/pipelines/kolors/pipeline_kolors.py:507-529 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:531-553 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:525-547 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:691-713 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:680-702 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:709-731 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_kolors_differential_img2img.py:537\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"b643014ebe3c918ae80d5113d1a09fbcc41c48e0e79629bf961b44accb293307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 6): examples/community/adaptive_mask_inpainting.py:379-397 | examples/community/stable_diffusion_reference.py:139-161 | examples/community/stable_diffusion_repaint.py:194-216 | examples/community/text_inpainting.py:78-96 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:309-327 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:192-210 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/stable_diffusion_reference.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:379\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060FrozenDict\u0060 names \u0060....configuration_utils\u0060 in one and \u0060...configuration_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9013bb114b07a993d1395c3b830abc59a4af8a654ab1dd33e6d781ad5648ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 6): examples/community/pipeline_hunyuandit_differential_img2img.py:898-920 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:784-806 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:618-640 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:773-795 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:914-936 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:706-728 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:898\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"86675e599399cf4a25f64189f3a916a3b079970bad09553e98a2a38bff12609b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 6): examples/community/pipeline_z_image_differential_img2img.py:219-241 | src/diffusers/pipelines/z_image/pipeline_z_image.py:178-200 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:233-255 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:240-262 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:208-230 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:230-252 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: \u0060ZImageTransformer2DModel\u0060 names \u0060...models.transformers\u0060 in one and \u0060diffusers.models.transformers\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"671bf25734866ce1a1094d9273cafc8337ffef6d2166ed5f301841e13b28f7c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 5): examples/community/matryoshka.py:1135-1157 | src/diffusers/models/unets/unet_2d_blocks.py:2420-2442 | src/diffusers/models/unets/unet_dreamlite.py:1039-1059 | src/diffusers/models/unets/unet_dreamlite.py:1199-1219 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1955-1977 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1952\u0060 calls \u0060get\u0060, \u0060warning\u0060 and \u0060src/diffusers/models/unets/unet_dreamlite.py:1038\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"42795914117414ca6b9418d86c91a00b6af9548e6b65ca982a77fb096fac55ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 5): examples/community/stable_diffusion_controlnet_inpaint_img2img.py:863-885 | examples/community/stable_diffusion_ipex.py:662-684 | examples/community/stable_diffusion_repaint.py:753-775 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:467-489 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:547-569 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py\u0060 and \u0060examples/community/stable_diffusion_ipex.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint_img2img.py"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7038f796050b8261beb0d114941b429503997f2ab1855eaa2d2d64c33e67fe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 5): src/diffusers/models/transformers/transformer_chronoedit.py:196-220 | src/diffusers/models/transformers/transformer_helios.py:177-201 | src/diffusers/models/transformers/transformer_skyreels_v2.py:196-220 | src/diffusers/models/transformers/transformer_wan.py:191-215 | src/diffusers/models/transformers/transformer_wan_animate.py:665-689 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d2fefa1dd3a5765d00873974bbcbe770b8dc7deaf10917e10cd131b9a6ca31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): examples/community/hd_painter.py:626-648 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1173-1195 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1191-1213 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1223-1245 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/hd_painter.py:626\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab87b04174c609d082623cf755e418358b66e15d2499f34e0d94f97f12709f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201323 lines \u00D7 4): examples/community/kohya_hires_fix.py:215-237 | examples/community/matryoshka.py:3032-3054 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:771-788 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1286-1308 \u2014 before extracting anything, compare \u0060examples/community/kohya_hires_fix.py\u0060 and \u0060examples/community/matryoshka.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/kohya_hires_fix.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"1611d2aec14b02b9b5a8c5c2f26c1a5a68deb3a550ba866a83801e5c33582553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 4): examples/community/matryoshka.py:2215-2237 | src/diffusers/models/unets/unet_2d_condition.py:418-440 | src/diffusers/models/unets/unet_dreamlite.py:1834-1853 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:740-759 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_condition.py:418\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2215}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d524825fe8a00e1565d0e91b29f453b01713e99174b4bfcad2934046392d162"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 4): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1154-1176 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1151-1171 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1310-1330 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1047-1067 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 914 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47d25dc4d23d384d7c55889b6e9fa4098f0eea87bb8e08c223fd2b7d5f30196"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:115-137 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:133-155 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:106-128 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:101-123 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf3c6767945e481d2ef8681f0e2f855171773244210dfde3d8fcbed333a6d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 4): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1217-1238 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1098-1120 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:936-957 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1113-1134 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f69623d7ff38b3f70ac55d3161bfe79e55d1d0a2ba0b102d773d861a91a0e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 4): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1002-1024 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1175-1196 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:987-1009 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1103-1125 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1002\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05383137afc0a4e0c30879d864b8d25df6f2a950c50831c50bc8145cb568f00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201323 lines \u00D7 6): src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1415-1416 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:207-210 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1021-1043 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:836-858 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:777-799 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1046-1068 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1044\u0060 calls \u0060arange\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1417\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm_refiner.py"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"532fb618cbc7d0e3e6e97e42d935fba042eec34836328a8cc7a304059931b2fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_sd.py:1013-1035 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1244-1266 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1437-1458 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1653-1674 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 553 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd.py"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ab91c05d22d2259b90076c3607526e7f2332666cb6abd416b7138ea76d21d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): src/diffusers/schedulers/scheduling_helios.py:538-560 | src/diffusers/schedulers/scheduling_helios.py:682-704 | src/diffusers/schedulers/scheduling_unipc_multistep.py:909-931 | src/diffusers/schedulers/scheduling_unipc_multistep.py:1044-1066 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_helios.py\u0060 and \u0060src/diffusers/schedulers/scheduling_unipc_multistep.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dfe4a69c5c8277df2f5bb7a6da0834ff75addbc09e02514319ed75656aac83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1489-1511 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1514-1536 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1505-1527 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 87 separate duplicated blocks between them, totalling at least 1274 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1514\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"616fa4eb7b8b3629df7e7fd4c94b982368ab2e2af178c9a8f6077210e03ab8ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 3): examples/community/pipeline_stg_ltx.py:94-114 | examples/community/pipeline_stg_ltx_image2video.py:99-119 | src/diffusers/models/transformers/transformer_ltx.py:351-373 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx.py:351\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"7247dafdc4f3e365780e9c322657cbec7882aa8452e9200e1738e4851e5ee930"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): examples/research_projects/anytext/anytext.py:2107-2130 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1063-1085 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1018-1040 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext.py\u0060 and \u0060examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext.py"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0b496ec7ebaf3715b2cb308ba313a3b334272c12cfb46013a103d4f10f2554"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:419-441 | scripts/convert_svd_to_diffusers.py:266-288 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:417-439 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_svd_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 454 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e541fc72f50e38611bed13a7d1b820b86b240c39adf86c6e14f5949bf0f24e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl.py:365-388 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:377-400 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:730-753 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 342 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_kl.py:390\u0060 calls \u0060post_quant_conv\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:754\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":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84eba3e63e37260d1412147bac342dedbe13d2f11ba52976607a91703fbe20b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 3): src/diffusers/models/transformers/transformer_flux.py:92-114 | src/diffusers/models/transformers/transformer_flux2.py:343-365 | src/diffusers/models/transformers/transformer_flux2.py:425-445 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_flux.py\u0060 and \u0060src/diffusers/models/transformers/transformer_flux2.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f78900935454105481bcae27757df3d8fcd5a9ac7cbfae131821bf41f488a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:46-68 | src/diffusers/models/transformers/transformer_qwenimage.py:102-124 | src/diffusers/models/transformers/transformer_qwenimage21.py:94-116 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6d7ee07122edbf59688e60e43a209e90ed9310c3d8249a9840c224d34173ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:1254-1276 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:956-978 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:1271-1293 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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. 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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92d82f2bca2a33552087244a014b205def889d8fe161fd599e72529a089e343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1442-1464 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1471-1493 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1430-1452 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 1887 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1442\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb28b2d531f212030ad12356a99a2d44cd20b3ae0bd3cf0ba9efa78f5f2956f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:438-460 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:517-539 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:446-468 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 515 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0b8b2eecf0a130a2294a50920a17c81ba73e6f8f79b17af28dab9109329c80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1253-1275 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1698-1720 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1319-1341 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1253\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"306e3e949d9885c764782e4b0e1e51f315b5db122b57a8211782e8d98e10c839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1651-1673 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1733-1755 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2035-2057 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"9637883665e112124fa1d7ce62dd9d32ebf20d1f0e0c82bae4cb68a5de36ab8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:313-335 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:333-355 | src/diffusers/schedulers/scheduling_edm_euler.py:329-351 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 484 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:313\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"96feb07963ac60b07fab034e04378f445eb45e6b9fbde7d0e05ba735fae15cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:995-1017 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:848-870 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:907-929 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:995\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa306db695f56894bfba1cf4369825df73715bbd3f0475552abdb99ba394ece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/community/matryoshka.py:1757-1779 | src/diffusers/models/unets/unet_2d_blocks.py:356-378 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"9033a034c6a068ad187091aa92e861f8826064221d64e70fb4b3051402e1b150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:689-711 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:746-768 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 723 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5be49fe61a4552aba468279eae4f01b251f1bfeb81d33e0462e37f96c8df75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201329 lines \u00D7 4): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:92-120 | examples/community/pipeline_stable_diffusion_xl_instantid.py:92-120 | src/diffusers/models/transformers/consisid_transformer_3d.py:70-78 | src/diffusers/models/transformers/consisid_transformer_3d.py:218-228 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fff8bea3573efba3ab263fa1f887ca7ece2ba2f2535a448f0a4066de5de9110"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/community/stable_diffusion_xl_controlnet_reference.py:601-623 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1240-1262 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 1253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:601\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, \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:600\u0060 calls \u0060check_ref_inputs\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1239\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":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5b5a00efce063071bc5eb16fc5c478782b4f745a8ebab60441964c1b1bfa6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): scripts/convert_flux2_to_diffusers.py:113-135 | src/diffusers/loaders/single_file_utils.py:1135-1157 \u2014 before extracting anything, compare \u0060scripts/convert_flux2_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_flux2_to_diffusers.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbaf412f2c9154f659a2fc11e38f526842c61abf91d2f517c8c59f69862b9d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/loaders/ip_adapter.py:330-352 | src/diffusers/loaders/ip_adapter.py:574-596 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"30487583204ef5f55eb87175e61868474e73c556304e640c3b4fcd38e9cef383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:885-906 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:788-810 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"edea4cd6e0c62b0988a2727a1dc17e19937e4033601b38dd567ec9cd5edaf2ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:781-803 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:767-789 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6f7fb9f7e959110f39ae6c4d656b1dd1a8b64ecab37bc174c8e06f643de799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py:105-127 | src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py:201-223 \u2014 before extracting anything, compare \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py\u0060 and \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py:225\u0060 calls \u0060SpatialRationalResampler\u0060 and \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py:128\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea43fd9aaf93120d03e60b89f4fbaea6096d7753c990637bbe29351d9e5385c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): src/diffusers/models/unets/unet_motion_model.py:679-701 | src/diffusers/models/unets/unet_motion_model.py:823-843 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_motion_model.py:679\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8592c7678b91eca56f89e6d277c0758c3cefec62260626ecd5f7467a06a9cd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/modular_pipelines/helios/before_denoise.py:100-122 | src/diffusers/modular_pipelines/wan/before_denoise.py:252-274 \u2014 \u0060src/diffusers/modular_pipelines/helios/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/wan/before_denoise.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 5 separate duplicated blocks between them, totalling at least 113 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. 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 \u0060components\u0060 to \u0060HeliosModularPipeline\u0060 in one and \u0060WanModularPipeline\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":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc168d2a6bb5681b1b6816434720a3735f80715ca0116b06ec803f52682745d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_encoder.py:118-136 | src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py:110-132 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_encoder.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.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 5 separate duplicated blocks between them, totalling at least 140 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26812ae7277e914123c8cf5f4df8ca5b8327abd26abaf7c82b7c28b213674d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:224-244 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:281-303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:224\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6657d6071324f4997a18f8c955849b8a58e906e5906f269383a7de8aa801bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1071-1093 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1043-1065 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 86 separate duplicated blocks between them, totalling at least 1265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1071\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60ce21dc1813727f6236c75a303ff2a1cd9a1c5d665e8016b80d918466d3c8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:177-199 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:341-363 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e50d7960f7f7a5cb953736acf8ee6a16b072d60a331ca33808bddb38bf347c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:845-867 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:996-1018 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 823 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bccee30ae3b2fc309ac82d455171c4a72a678c6358b51628d2064c9bcf374d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1256-1278 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1218-1240 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 121 separate duplicated blocks between them, totalling at least 1758 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1256\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b10322909a58b35ad9716e8da994b9a78f2599bdac5052d237caaaf072bc7fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1848-1870 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1860-1882 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 121 separate duplicated blocks between them, totalling at least 1970 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fb5b39604dae19c288ef66a11cae28112d68da21e5dae375612070bf8dc6df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1562-1584 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1435-1457 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1548 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"39af7d854748a2a8fee615774a39bbda5ed49d52bcd8bfa108508ac414e54e1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:914-935 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:938-960 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f403aeb87757af61bc422dc591eeeab3a9d6bbefebd667c105d708193474bc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:649-671 | src/diffusers/pipelines/latte/pipeline_latte.py:739-761 \u2014 \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/latte/pipeline_latte.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 23 separate duplicated blocks between them, totalling at least 347 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/latte/pipeline_latte.py:739\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"96445b79237d60b558ec0f7732968c7b5c6bb67cb0f8c0da76bd2bf123327ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201323 lines \u00D7 2): src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:925-939 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1012-1034 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py\u0060 as WHOLE FILES: this scan already matched 56 separate duplicated blocks between them, totalling at least 957 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be688552fd2a5481bd01d7ebfacfd39696f78467b90e745fb4e8c31b410c9db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:248-267 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:83-105 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 229 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:107\u0060 calls \u0060isinstance\u0060, \u0060list\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:269\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":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b88e61efeebc74d6a7d678974f2c3838fd3634a686efd0deb4dce79a3d4f9bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:570-592 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:547-569 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py\u0060 and \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd37244c6f3bcf8dcf085ebe07924dca0bca8055a1978eb4b86fda8a1f7ebd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:728-750 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:895-917 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 361 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"12742b5aa5a2225c1b660f5d9ff919ad9fc8fb8ef6ebc83e7927a8fd99d8911e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:448-470 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:477-496 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec91242f27b005721068edeed7add12645045ac1b155e47c0a2d0f189cbfa363"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:520-542 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:587-607 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 553 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:520\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7089264facda6f99f644b48323398c008e32af8f9f4b346735001ebf8a35487"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2345-2367 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2394-2416 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py"},"region":{"startLine":2345}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bfbbc170aff9cbdc72bcf6c9efd11d951943872b4380b31ee06fdadac80385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:584-606 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:590-612 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 409 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53b9865b764f6251ed97674938bd24d790e13da4522a831c4956944dabd9d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:495-518 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:551-573 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 484 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b80140bb154a859ce32b8c019bb1f8560345883db33441cc8a23ac6f4afb8a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 66): examples/community/fresco_v2v.py:1600-1621 | examples/community/lpw_stable_diffusion_xl.py:920-941 | examples/community/matryoshka.py:3993-4014 | examples/community/pipeline_animatediff_controlnet.py:381-402 | examples/community/pipeline_animatediff_img2video.py:498-519 | examples/community/pipeline_animatediff_ipex.py:353-374 | examples/community/pipeline_controlnet_xl_kolors.py:434-455 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:431-452 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:481-502 | examples/community/pipeline_kolors_differential_img2img.py:391-412 | examples/community/pipeline_kolors_inpainting.py:417-438 | examples/community/pipeline_sdxl_style_aligned.py:747-768 | examples/community/pipeline_stable_diffusion_boxdiff.py:769-790 | examples/community/pipeline_stable_diffusion_pag.py:735-756 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:618-639 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:719-740 | examples/community/regional_prompting_stable_diffusion.py:1240-1261 | examples/research_projects/anytext/anytext.py:1544-1565 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:505-526 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:115-136 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:338-359 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:383-404 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:569-590 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:392-413 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:440-461 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:471-492 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:482-503 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:460-481 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:466-487 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:533-554 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:541-562 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:533-554 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:522-543 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:533-554 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:552-573 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:509-530 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:537-558 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:400-421 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:496-517 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:467-488 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:496-517 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:395-416 | src/diffusers/pipelines/kolors/pipeline_kolors.py:365-386 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:385-406 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:425-446 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:410-431 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:459-480 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:435-456 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:548-569 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:538-559 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:382-403 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:488-509 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:349-370 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:483-504 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:518-539 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:535-556 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:789-810 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:331-352 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:515-536 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:542-563 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:496-517 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:647-668 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:525-546 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:776-797 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:335-356 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:553-574 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 66 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 66 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:327\u0060 calls \u0060set_pag_applied_layers\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py:413\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1600}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbb8ba63e2cef01c56a923b4569583585074f327119291aef31cf81f2b7834a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 65): examples/community/adaptive_mask_inpainting.py:606-627 | examples/community/fresco_v2v.py:1551-1572 | examples/community/instaflow_one_step.py:339-360 | examples/community/ip_adapter_face_id.py:618-639 | examples/community/latent_consistency_interpolate.py:415-436 | examples/community/llm_grounded_diffusion.py:1368-1389 | examples/community/pipeline_animatediff_controlnet.py:332-353 | examples/community/pipeline_animatediff_img2video.py:449-470 | examples/community/pipeline_animatediff_ipex.py:303-324 | examples/community/pipeline_fabric.py:303-324 | examples/community/pipeline_prompt2prompt.py:386-407 | examples/community/pipeline_stable_diffusion_boxdiff.py:721-742 | examples/community/pipeline_stable_diffusion_pag.py:687-708 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:327-348 | examples/community/regional_prompting_stable_diffusion.py:665-686 | examples/community/regional_prompting_stable_diffusion.py:1193-1214 | examples/community/stable_diffusion_ipex.py:409-430 | examples/community/stable_diffusion_reference.py:546-567 | examples/community/stable_diffusion_repaint.py:382-403 | examples/research_projects/anytext/anytext.py:1494-1515 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:456-477 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:288-309 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:333-354 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:342-363 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:390-411 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:421-442 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:432-453 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:410-431 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:416-437 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:461-482 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:489-510 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:366-387 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:350-371 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:430-451 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:556-577 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:354-375 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:385-406 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:446-467 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:417-438 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:345-366 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:422-443 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:393-414 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:326-347 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:323-344 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:541-562 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:293-314 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:328-349 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:950-971 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:375-396 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:360-381 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:409-430 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:385-406 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:438-459 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:299-320 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:433-454 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:468-489 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:466-487 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:338-359 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:492-513 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:446-467 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:596-617 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:351-372 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:431-452 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:393-414 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:445-466 \u2014 there are 65 copies across 64 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 65 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"c737e21c1601488a015bfd036e729251a4958fde49e7edf88cd2e7fb6073600f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 25): src/diffusers/loaders/lora_pipeline.py:1390-1411 | src/diffusers/loaders/lora_pipeline.py:2489-2510 | src/diffusers/loaders/lora_pipeline.py:2676-2697 | src/diffusers/loaders/lora_pipeline.py:2868-2889 | src/diffusers/loaders/lora_pipeline.py:3084-3105 | src/diffusers/loaders/lora_pipeline.py:3273-3294 | src/diffusers/loaders/lora_pipeline.py:3463-3484 | src/diffusers/loaders/lora_pipeline.py:3655-3676 | src/diffusers/loaders/lora_pipeline.py:3848-3869 | src/diffusers/loaders/lora_pipeline.py:4037-4058 | src/diffusers/loaders/lora_pipeline.py:4300-4321 | src/diffusers/loaders/lora_pipeline.py:4566-4587 | src/diffusers/loaders/lora_pipeline.py:4755-4776 | src/diffusers/loaders/lora_pipeline.py:4947-4968 | src/diffusers/loaders/lora_pipeline.py:5142-5163 | src/diffusers/loaders/lora_pipeline.py:5336-5357 | src/diffusers/loaders/lora_pipeline.py:5536-5557 | src/diffusers/loaders/lora_pipeline.py:5933-5954 | src/diffusers/loaders/lora_pipeline.py:6115-6136 | src/diffusers/loaders/lora_pipeline.py:6304-6325 | src/diffusers/loaders/lora_pipeline.py:6500-6521 | src/diffusers/loaders/lora_pipeline.py:6700-6721 | src/diffusers/loaders/lora_pipeline.py:6890-6911 | src/diffusers/loaders/lora_pipeline.py:7081-7102 | src/diffusers/loaders/lora_pipeline.py:7670-7691 \u2014 all 25 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e5c598886fbea961f49438db17d10d07ccc1e9c6d7bb60422aacd6c5473690"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 20): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:589-610 | src/diffusers/pipelines/allegro/pipeline_allegro.py:439-460 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:410-431 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:453-474 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:206-227 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:493-514 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:208-229 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:164-185 | src/diffusers/pipelines/latte/pipeline_latte.py:426-447 | src/diffusers/pipelines/lumina/pipeline_lumina.py:458-479 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:413-434 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:420-441 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:525-546 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:470-491 | src/diffusers/pipelines/sana/pipeline_sana.py:496-517 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:511-532 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:387-408 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:411-432 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:519-540 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:521-542 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"988c7e864cc06cbd41a3f8937f219c2a4da9df2c069f962b3c14a4635288b9a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 19): src/diffusers/schedulers/scheduling_ddim.py:523-547 | src/diffusers/schedulers/scheduling_ddim.py:561-582 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:434-458 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:472-493 | src/diffusers/schedulers/scheduling_ddim_parallel.py:633-657 | src/diffusers/schedulers/scheduling_ddim_parallel.py:671-692 | src/diffusers/schedulers/scheduling_ddpm.py:575-599 | src/diffusers/schedulers/scheduling_ddpm.py:612-633 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:674-698 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:712-733 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:528-552 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:566-587 | src/diffusers/schedulers/scheduling_lcm.py:673-697 | src/diffusers/schedulers/scheduling_lcm.py:711-732 | src/diffusers/schedulers/scheduling_pndm.py:467-491 | src/diffusers/schedulers/scheduling_sasolver.py:1386-1410 | src/diffusers/schedulers/scheduling_tcd.py:708-732 | src/diffusers/schedulers/scheduling_tcd.py:746-767 | src/diffusers/schedulers/scheduling_unclip.py:362-386 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bc83da2ef7c0f0a1295ea8a557ae3463f2ecac269b537030c265dc299cc0d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 12): examples/community/stable_unclip.py:129-150 | examples/community/unclip_image_interpolation.py:169-190 | examples/community/unclip_text_interpolation.py:191-212 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:195-216 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:169-190 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:213-234 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:246-267 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:377-398 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:381-402 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:339-360 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:374-395 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:240-261 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:237\u0060 calls \u0060replace_example_docstring\u0060 and \u0060examples/community/unclip_text_interpolation.py:215\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_unclip.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1736203a0880569695883e1768496017c003d8e75e2c696daaa2e4e36ae34c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 10): examples/community/hd_painter.py:522-543 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1081-1102 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1079-1100 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1193-1214 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1451-1472 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1329-1350 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:760-781 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:894-915 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:991-1012 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1082-1103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/hd_painter.py:522\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, \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:756\u0060 calls \u0060is_compiled_module\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:987\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9a055979ab7f7fd93347c0f301cea9e1426043f34b1b4cd986e19ef8b34c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201322 lines \u00D7 10): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:524-540 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:599-615 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:583-599 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:655-671 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:542-563 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:560-576 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:580-596 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:568-584 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:598-614 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:605-621 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 772 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py:524\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d1fd859d7132696386a13c6ace2e727b350a9af8d46896f29eca26228d7d1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 9): examples/community/pipeline_controlnet_xl_kolors.py:988-1010 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1174-1196 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1386-1408 | examples/community/stable_diffusion_xl_controlnet_reference.py:575-596 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1178-1199 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1432-1453 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1223-1244 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1313-1334 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1143-1164 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:575\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:600\u0060 calls \u0060check_ref_inputs\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1455\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f8684fab178e61340045d7d71505e64cf4df86446d7bf0fa001a6b39de5be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 9): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:283-323 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:328-368 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:317-357 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:339-379 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:287-327 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:303-343 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:297-337 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:322-362 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:328-368 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 772 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9b5539e9401ef9323607b1d259ef3c4c75e0229ad9986de7c89017b01e6c46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201322 lines \u00D7 8): examples/community/pipeline_controlnet_xl_kolors.py:313-329 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:335-352 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:386-402 | examples/community/pipeline_kolors_differential_img2img.py:297-318 | examples/community/pipeline_kolors_inpainting.py:573-589 | src/diffusers/pipelines/kolors/pipeline_kolors.py:271-292 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:291-312 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:288-309 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_controlnet_xl_kolors.py:313\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, \u0060examples/community/pipeline_controlnet_xl_kolors.py:330\u0060 calls \u0060zeros_like\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py:319\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c9403f12b1e6585a0171ec68d489956c1ae499ff38712ae7b1e75e79ddb6e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 7): examples/community/pipeline_kolors_inpainting.py:1444-1465 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1999-2020 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1346-1367 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1620-1641 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1308-1329 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1468-1489 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1475-1496 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1346\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac571767ed6e45a246806fc80b67f9b8904f50b308cde950e8e5ed9c4f8fa3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201322 lines \u00D7 7): src/diffusers/modular_pipelines/helios/denoise.py:438-443 | src/diffusers/modular_pipelines/helios/denoise.py:630-635 | src/diffusers/modular_pipelines/helios/denoise.py:971-976 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:751-772 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:874-895 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:723-731 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:847-855 \u2014 there are 7 copies across 5 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 7 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"e824e51ec2b908076b673c327e95e5fea9c4bd2f4ab8462c0ba180a514d02a01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 7): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:290-311 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:375-396 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:200-221 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:258-279 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:392-413 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:423-444 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:488-509 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b160ded4edb9f0d008dc7417c59b98b97863fddfd36fd4a38812ac173bf8541"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 6): examples/community/fresco_v2v.py:1763-1784 | examples/community/pipeline_animatediff_controlnet.py:528-549 | examples/community/rerender_a_video.py:425-445 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:615-636 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:529-550 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:617-638 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1763\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a96a2b085c5ff701a0b2bc3926f95f77fc16aad73686a8589c7146a6d394b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 6): examples/community/pipeline_animatediff_controlnet.py:1008-1029 | examples/community/pipeline_animatediff_ipex.py:741-762 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:781-802 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:989-1010 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:919-940 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:779-800 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 639 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50949fc2db5ca9085ee4f00cc5dc232d2aa5c6f517c282e09b40540db0d0952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 6): examples/community/pipeline_flux_differential_img2img.py:483-502 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:515-534 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:535-554 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:505-524 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:569-590 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:609-630 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 789 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:569\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"21146b92d0251d6383d06040dbe240a2422d93b4af1e75d6edbb8049338f5138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 6): examples/community/pipeline_stg_cogvideox.py:829-850 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:751-772 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:861-882 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:832-853 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:639-660 | src/diffusers/pipelines/consisid/pipeline_consisid.py:935-956 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b449d02afa41e33882506ec0860f4149292e5c0be17a56b222c10f83dfac8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 6): src/diffusers/models/unets/unet_2d_blocks.py:1206-1226 | src/diffusers/models/unets/unet_2d_blocks.py:2377-2397 | src/diffusers/models/unets/unet_dreamlite.py:614-635 | src/diffusers/models/unets/unet_dreamlite.py:999-1020 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1662-1682 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1912-1932 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:614\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: \u0060DualTransformer2DModel\u0060 names \u0060....models.transformers.dual_transformer_2d\u0060 in one and \u0060..transformers.dual_transformer_2d\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7c892ba3cdfa8af00982e847e975c7c8c2cd0172bb51d8a9a472cf01870365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 6): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:743-764 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:867-888 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:986-1007 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:989-1010 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1100-1121 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:840-861 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf240031dd7f8d8c19ee280fabf5102970725f6952636537f4ec77ee421ca02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 5): examples/community/kohya_hires_fix.py:239-260 | examples/community/matryoshka.py:3056-3076 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:790-807 | src/diffusers/models/unets/unet_2d_condition.py:1137-1157 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1310-1330 \u2014 before extracting anything, compare \u0060examples/community/kohya_hires_fix.py\u0060 and \u0060examples/community/matryoshka.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/kohya_hires_fix.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29fb03e0b51d0f2f09b1718d7c5736ac453a0d47b726075ff5d41757f3fd042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5): examples/community/matryoshka.py:4389-4410 | examples/community/regional_prompting_stable_diffusion.py:939-960 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:887-908 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:939-960 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:928-949 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060examples/community/regional_prompting_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 659 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":4389}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c4d886f04d82ea473c03365129b63383aa30795c92ee6b6cf3c9434fac160b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201322 lines \u00D7 4): examples/community/matryoshka.py:2118-2139 | src/diffusers/models/unets/unet_2d_condition.py:326-347 | src/diffusers/models/unets/unet_dreamlite.py:1752-1768 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:616-637 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2118}}}],"partialFingerprints":{"codehealthFindingId/v1":"07947678892845ff47b3162b5cb8410b1a634094af35333be77ff3fbf61537e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): examples/community/matryoshka.py:2313-2334 | src/diffusers/models/unets/unet_2d_condition.py:511-532 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:180-201 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:448-469 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_condition.py:511\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2313}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a95cd747f6c40854c7ba783df55313afca449d9c8f2213cbe618cc8c972608"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 4): examples/community/pipeline_controlnet_xl_kolors.py:1049-1069 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1450-1471 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1258-1276 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1220-1238 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 88 separate duplicated blocks between them, totalling at least 1521 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1258\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f4a154457bd28c191228d7f39ab070bde4fd6b31d6c70b7445d8b76a72cbee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): examples/community/pipeline_flux_differential_img2img.py:829-850 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:938-959 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:968-989 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:764-785 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060 as WHOLE FILES: this scan already matched 45 separate duplicated blocks between them, totalling at least 550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed428454e7ce20e65ba24706319fd1b17375d4316afac3608d649eeb5132b1c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:805-826 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1142-1163 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:624-645 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:793-814 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:805\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":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1692f6560ca0fd353a19e7545f05f13f7ff2d19aff59023b62589b456fc547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): examples/community/pipeline_z_image_differential_img2img.py:739-760 | src/diffusers/pipelines/z_image/pipeline_z_image.py:515-536 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:628-649 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:833-854 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b33c6aba86885ffa372ca667e13b835260b676301fe4489e291065068f8e94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 4): examples/community/stable_diffusion_xl_controlnet_reference.py:658-679 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1138-1156 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1297-1318 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1282-1303 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 659 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:658\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, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1136\u0060 calls \u0060cat\u0060 and \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:658\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":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"5901f159805231c7e08f4d86e8d58dc3966cc2b2a49e09cba8fe8df11f69a04b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 4): src/diffusers/models/attention_processor.py:1544-1561 | src/diffusers/models/attention_processor.py:1591-1612 | src/diffusers/models/attention_processor.py:1709-1726 | src/diffusers/models/attention_processor.py:1756-1777 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:1591\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"06cac5e50e4a0414139c2b22ef1e5f94766321a5e8a6a3efb52b957f883c694f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 4): src/diffusers/models/transformers/transformer_chronoedit.py:484-503 | src/diffusers/models/transformers/transformer_helios.py:436-457 | src/diffusers/models/transformers/transformer_wan.py:469-488 | src/diffusers/models/transformers/transformer_wan_animate.py:948-967 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_helios.py:436\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc52d569a79d2211cb7099d3f7aad659947febaba34b22d6c0428f99d2164d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201322 lines \u00D7 5): src/diffusers/modular_pipelines/flux2/decoders.py:71-92 | src/diffusers/pipelines/flux2/pipeline_flux2.py:485-499 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:417-420 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:463-477 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:406-420 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/flux2/decoders.py:92\u0060 calls \u0060zeros\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:420\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/decoders.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"167712a50defd1b502d21f08c7dfeb1ed175b01c2880f9e7827d4868623d49c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1067-1087 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1198-1218 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:727-748 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:938-958 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1067\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, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:750\u0060 calls \u0060repeat_interleave\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1220\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e118cccc8cf0692a808fba056ea7d261e39041af6394115d1501a2e22ca188e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): examples/community/kohya_hires_fix.py:328-349 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:850-871 | src/diffusers/models/unets/unet_2d_condition.py:1209-1230 \u2014 before extracting anything, compare \u0060examples/community/kohya_hires_fix.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 364 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/kohya_hires_fix.py:328\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, \u0060examples/community/kohya_hires_fix.py:353\u0060 calls \u0060unscale_lora_layers\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py:1232\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":"examples/community/kohya_hires_fix.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbb6354adcd19cee99f06c7c63a8072d4e910d85ba972cd55980b5aff135335"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): examples/community/pipeline_hunyuandit_differential_img2img.py:1069-1090 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:837-858 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:886-907 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 1060 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"592bba8ee54043a34443ddd15ed552b586abf4c52dd6d549eac3692e814e443c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1133-1154 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1206-1227 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1348-1369 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 100 separate duplicated blocks between them, totalling at least 1328 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1133\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_differential_img2img.py"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2818375c73a4fa1c09806c1ce9740b4254cb48734a501758e1b7b01e99f96b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): examples/community/pipeline_stg_cogvideox.py:855-876 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:777-798 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:887-908 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060CogVideoXPipelineOutput\u0060 names \u0060.pipeline_output\u0060 in one and \u0060diffusers.pipelines.cogvideo.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"53360c8a9a8fa0080b642cc486fb2e9268c6df65e62e6532155b94a48d49e052"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 3): examples/community/pipeline_stg_ltx_image2video.py:572-590 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:548-566 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:843-864 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 808 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_ltx_image2video.py:572\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":"examples/community/pipeline_stg_ltx_image2video.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8dcf71df7f4eed677b82b6df5ea6d59e2a0b4e302850e0da2f29b35780a08e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 3): src/diffusers/models/attention_processor.py:1234-1254 | src/diffusers/models/attention_processor.py:3827-3847 | src/diffusers/models/attention_processor.py:3934-3955 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e5083ede031c6b09c723a5031c29ed08efd3f2285f8580a0b24b26ad1feb56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:1321-1342 | src/diffusers/models/unets/unet_2d_blocks.py:1413-1434 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1556-1577 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1556\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa19fee39ded60f13616059e53b17dc4476350b91de6ef188239b53e619f2e25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1105-1126 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1276-1297 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:894-915 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"c536d3cfdde5de712e1fba470cafbedd59e6929058159cda4e29c7e95d0e37b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:679-707 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:715-743 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:584-612 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 984 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c8cb9297065de43ad2b37133fc0bf159e3f7ec01f3b74c5ddbd671feba5ffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:279-300 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:307-328 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py:337-358 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py\u0060 and \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:279\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb933c8fa8d79b2c7c6bd5c716d1613c1466a69b5db8a1d42c8f9da556ce8b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:346-367 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:317-338 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:423-444 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 730 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"73eb3e2a9902cf0be334d3a3c99de5246018e6a12226c7d75d0024315cee05fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): src/diffusers/pipelines/ltx/pipeline_ltx.py:659-680 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1004-1025 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:723-744 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_condition.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:659\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a45aa759ed45fbcf787c8ff25fd9b16c5a43160d26e4a134d57cbbf35fdc45b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/community/matryoshka.py:1627-1648 | src/diffusers/models/unets/unet_2d_blocks.py:71-92 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"a907d1eca4e5f4b52a6d079a63bf50caae1d40ee4fc262507fedc5c0458bbd2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): examples/community/pipeline_demofusion_sdxl.py:844-865 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:913-933 \u2014 before extracting anything, compare \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 and \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 416 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:913\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"299fbdc8558b9ff101ed39c0e1feb4c0113b7278a08c641e16b72d417c0d5764"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/community/pipeline_demofusion_sdxl.py:857-878 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:771-792 \u2014 before extracting anything, compare \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede4c36ec046b5dda617bfe06ca1dcdfb01c45ea8d4b2807721d963b38e711a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/community/pipeline_flux_with_cfg.py:706-727 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:846-867 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_with_cfg.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"a263cd354f0e98735c988301390f0472d2eb370d4155c43baad25f1d9d2562b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/community/pipeline_kolors_inpainting.py:1315-1336 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1072-1093 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 862 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"7537abe9cf761bf71fa9e4ddc0ef2a634b2670037e578367ec28d7b7eda9372d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/community/pipeline_prompt2prompt.py:694-715 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1170-1191 \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 \u0060examples/community/pipeline_prompt2prompt.py:694\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dca4681e14e186584a21a2caa7e304991fae3a29c29a136ac13c6540ccf25c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:816-837 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1124-1145 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 768 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1124\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":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dee8670f8f3f207b31799c792c46a92ef537df1c49181d3b228674941aa0e09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201334 lines \u00D7 2): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:992-1022 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:876-909 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 948 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:876\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc466a1c3cc45dcc0265264b47f2324ae2609229d968d0f67d6145f143cbd536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201322 lines \u00D7 2): scripts/convert_sd3_to_diffusers.py:71-92 | src/diffusers/loaders/single_file_utils.py:2051-2064 \u2014 before extracting anything, compare \u0060scripts/convert_sd3_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 249 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_sd3_to_diffusers.py:71\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/loaders/single_file_utils.py:2051\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/convert_sd3_to_diffusers.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afd48c426787bcc4c6005b0e1240b77ce9d990b6e8dd8dbc3d8b306f6979093"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/guiders/perturbed_attention_guidance.py:219-240 | src/diffusers/guiders/skip_layer_guidance.py:214-235 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/perturbed_attention_guidance.py\u0060 and \u0060src/diffusers/guiders/skip_layer_guidance.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/perturbed_attention_guidance.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"379565c912be0c4c2d21b60a91f5ddbeb6dea1cbaaae53f381f3ba59b19e9b1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): src/diffusers/loaders/lora_base.py:1071-1092 | src/diffusers/loaders/peft.py:441-460 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"df13754ff494e1362158a5e0896109f03fb78df31911a2503c7be6307afa5d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201322 lines \u00D7 2): src/diffusers/loaders/lora_conversion_utils.py:2310-2316 | src/diffusers/loaders/lora_conversion_utils.py:3011-3032 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/lora_conversion_utils.py:3011\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2310}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca97bd86faa20e7152a303c25de25c55496512b189ffc9aa148f17f16440946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/loaders/lora_pipeline.py:915-936 | src/diffusers/loaders/lora_pipeline.py:1201-1222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"af84b9c80f1d93d620e8475028daf01f2198489861584968296f7f490fe8bdf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/loaders/lora_pipeline.py:5470-5491 | src/diffusers/loaders/lora_pipeline.py:5867-5888 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/lora_pipeline.py:5470\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":5470}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91a8a69bb6a8946481b631a46f2ae6b3dcf5724e4f9adb2a12f77ae81dfad5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:3850-3871 | src/diffusers/models/attention_dispatch.py:3901-3922 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_dispatch.py:3850\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":3850}}}],"partialFingerprints":{"codehealthFindingId/v1":"816ea350b901876e2913bfd2d9c7ca74c026df35142144f65f19640b753a1268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201322 lines \u00D7 3): src/diffusers/models/attention_processor.py:2368-2371 | src/diffusers/models/attention_processor.py:3252-3273 | src/diffusers/models/attention_processor.py:3703-3724 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2368}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a92a905d3e5c442e27ca66a9ea8f8dc8a7dce3721938738cf5b0707aceffb3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:250-270 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:373-394 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:250\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"426cb9e815d1b8bd512c2cd32c540342dbb402d7bd06bbb1de527009da979276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:113-134 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:111-132 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6281ecbf57be9a494d18a0b485296b802e43b01da907b4b82b6d3053da0271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:615-636 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:601-622 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc9fc6e5025d2a923418ca26e26f8eec7a3ae6757d9d8d86d1f9afc692fae05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:91-112 | src/diffusers/models/transformers/transformer_qwenimage.py:150-171 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe5896e5dd278f656d7ddc8b6538c044d623e9985a6eaebab51f79d0e8f7f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1882-1903 | src/diffusers/models/unets/unet_2d_blocks.py:3130-3151 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"c831ac28068ec2ae363a766a28ecac4c50610ed507d5e84d114e2cc9cc40c0ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): src/diffusers/models/unets/unet_3d_blocks.py:333-354 | src/diffusers/models/unets/unet_motion_model.py:939-959 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_motion_model.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_blocks.py:333\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d2d8e363115c2291a13b48efe19ffe8b148f62219ec95183897031447bf87d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/models/unets/unet_3d_condition.py:187-208 | src/diffusers/models/unets/unet_i2vgen_xl.py:224-245 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_condition.py\u0060 and \u0060src/diffusers/models/unets/unet_i2vgen_xl.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_condition.py:187\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c64a0e424922cd7c461d59e9dfbd83136b127934e6202870c64683af973c45b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/modular_pipelines/cosmos/encoders.py:168-189 | src/diffusers/modular_pipelines/cosmos/encoders.py:422-443 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/cosmos/encoders.py:168\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ececed73cb96c0186f72265777bc1d711a8822eb813a5efd0184a4b738f86a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:379-400 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:385-406 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.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 22 separate duplicated blocks between them, totalling at least 634 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c7cc687194ed56e80f21552d01b21edad93499240e84ef08a7dddb3402a96c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:1120-1140 | src/diffusers/modular_pipelines/modular_pipeline.py:1567-1588 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c86261fe7d4cb81a119262da97c966dd7a06225b8fb9a9a851974403094f9fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:516-537 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:587-607 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:516\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ffb45c60d8b56d29d9cb6fefdb104c505b501044876629cc1ba5ee10535f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:682-703 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:274-295 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 527 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddb0df842c0a968c3d667013fe2f3e10c6f04c33aa6863df6d1715b32e1f555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:859-879 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:921-942 \u2014 \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_img2img.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 45 separate duplicated blocks between them, totalling at least 504 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":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"760945b7e6a149e4665a30d2d822ded1936231e891798ad88e2fc581544be5ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:717-738 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:798-819 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 826 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c714f8b58272e89d89e10240646c64084284d25918e68bab6f5b57732222d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1210-1230 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1175-1196 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 121 separate duplicated blocks between them, totalling at least 1758 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1210\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7001c7041112281fe105292372f70584366512f00c0686acc9ff7961e87c3db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:667-688 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:582-603 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 449 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"35812b12607767f856ec6440ed5e63faa5d7aa0151a5d06e8186a887fd13401f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:478-499 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:589-610 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f375ac2337d62e625592d5ec9dcda50800bb931eb420f39ed0b8cd64623311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:204-225 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:226-247 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 742 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc89f1f8146713f961619d5a227f53fb5f2eb8430e1ba63eec9eab22e130e8b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:946-967 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1080-1101 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1225 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_inpaint.py"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ada860ecd0920879b35d99b9b5d7aa10f99787924d62e96396bb6ee37795e99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:498-519 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:759-780 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"732f9274bf2e1ec2df26365ed6d3342f28e66d75be4154a9d1f0f7e5ab70869a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): src/diffusers/pipelines/lumina/pipeline_lumina.py:315-336 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:304-322 \u2014 \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py\u0060 and \u0060src/diffusers/pipelines/lumina2/pipeline_lumina2.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 28 separate duplicated blocks between them, totalling at least 362 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py:315\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"201f1d93c753a7e085b42e30aef39f9bda3e9b6687007f8414794aab13f864df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/pipelines/motif_video/pipeline_motif_video.py:224-245 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:235-256 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py\u0060 and \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 712 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a84aca375e3d115dc11a6da4c0fdb1d767390a77e0da65aabb7ff48a0e53c1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/pipelines/motif_video/pipeline_motif_video.py:392-413 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:524-545 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py\u0060 and \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 712 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee503c5a66f34da2f48420f60d522710d7a87be9b7dc201e043030cc19a53d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): src/diffusers/pipelines/pipeline_utils.py:1190-1209 | src/diffusers/pipelines/pipeline_utils.py:1303-1324 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pipeline_utils.py:1303\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21425b25a9c831b65b9c25b6786560cc31743d9e6d4de8450e46ca0d2c749a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): src/diffusers/pipelines/sana_video/pipeline_sana_video.py:984-1029 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:1037-1082 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video.py\u0060 and \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 1092 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video.py"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"a049fc32177b2fb03d627b8acf1b91a8468a926c43783c6669eaeb90f3998747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:454-475 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:572-591 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py\u0060 and \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 344 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:454\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"601941dad3c92fa86ce5c5aea69b04f0e775299623e0ec0249f28d813dc716a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_sde.py:545-566 | src/diffusers/schedulers/scheduling_lms_discrete.py:439-460 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_sde.py\u0060 and \u0060src/diffusers/schedulers/scheduling_lms_discrete.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 255 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_sde.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34e9d2fbfecbdc920a680b8b4a63a3a2592500f9972c47ddbed79a2d521060e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:286-317 | src/diffusers/schedulers/scheduling_lms_discrete.py:297-328 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_lms_discrete.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca29cc3a20a5e818f1cb0a4641e5c2bffd0edb2841c31a53dd37166d32a2181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:568-589 | src/diffusers/schedulers/scheduling_unipc_multistep.py:939-960 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_helios.py\u0060 and \u0060src/diffusers/schedulers/scheduling_unipc_multistep.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_helios.py:568\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":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ddbd0e1ccfc366fdf21144f0fda871c3deafd00e5bcaa23b73bd354f50c76a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 30): examples/community/adaptive_mask_inpainting.py:403-423 | examples/community/composable_stable_diffusion.py:119-139 | examples/community/instaflow_one_step.py:139-159 | examples/community/ip_adapter_face_id.py:221-241 | examples/community/llm_grounded_diffusion.py:366-386 | examples/community/lpw_stable_diffusion.py:526-546 | examples/community/pipeline_prompt2prompt.py:161-181 | examples/community/pipeline_stable_diffusion_boxdiff.py:447-467 | examples/community/pipeline_stable_diffusion_pag.py:414-434 | examples/community/pipeline_zero1to3.py:138-158 | examples/community/stable_diffusion_ipex.py:135-155 | examples/community/stable_diffusion_reference.py:168-188 | examples/community/stable_diffusion_repaint.py:223-243 | examples/community/stable_diffusion_tensorrt_img2img.py:740-760 | examples/community/stable_diffusion_tensorrt_inpaint.py:744-764 | examples/community/stable_diffusion_tensorrt_txt2img.py:656-676 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:240-260 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:268-288 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:333-353 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:113-133 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:201-220 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:171-191 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:355-375 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:246-266 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:241-261 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:273-293 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:241-261 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:91-111 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:269-289 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:216-236 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a79071c64d23d25214be9a90aba260229d9daecea6c52fba7ee35f7fe535b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201321 lines \u00D7 26): scripts/convert_aura_flow_to_diffusers.py:35-41 | scripts/convert_cogview3_to_diffusers.py:71-81 | scripts/convert_cogview4_to_diffusers.py:80-90 | scripts/convert_flux_to_diffusers.py:78-96 | scripts/convert_flux_to_diffusers.py:108-122 | scripts/convert_hunyuan_image_to_diffusers.py:700-716 | scripts/convert_hunyuan_video1_5_to_diffusers.py:179-199 | scripts/convert_hunyuan_video1_5_to_diffusers.py:255-262 | scripts/convert_hunyuan_video1_5_to_diffusers.py:466-482 | scripts/convert_if.py:518-525 | scripts/convert_mochi_to_diffusers.py:49-55 | scripts/convert_ovis_image_to_diffusers.py:67-73 | scripts/convert_pixart_alpha_to_diffusers.py:22-28 | scripts/convert_pixart_alpha_to_diffusers.py:43-60 | scripts/convert_pixart_sigma_to_diffusers.py:22-28 | scripts/convert_pixart_sigma_to_diffusers.py:43-60 | scripts/convert_sana_controlnet_to_diffusers.py:29-35 | scripts/convert_sana_to_diffusers.py:86-98 | scripts/convert_sana_to_diffusers.py:106-120 | scripts/convert_sana_video_to_diffusers.py:61-67 | scripts/convert_sd3_to_diffusers.py:49-61 | src/diffusers/loaders/single_file_utils.py:2032-2043 | src/diffusers/loaders/single_file_utils.py:2316-2326 | src/diffusers/loaders/single_file_utils.py:2336-2350 | src/diffusers/loaders/single_file_utils.py:2708-2715 | src/diffusers/loaders/single_file_utils.py:3117-3127 \u2014 before extracting anything, compare \u0060scripts/convert_aura_flow_to_diffusers.py\u0060 and \u0060scripts/convert_flux_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.py:78\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_sd3_to_diffusers.py:62\u0060 calls \u0060pop\u0060 and \u0060scripts/convert_aura_flow_to_diffusers.py:41\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/convert_aura_flow_to_diffusers.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b13e132d33d9dffa3626f4881063d2301cf606a412fe0ad2a3f43acc817fca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201321 lines \u00D7 24): src/diffusers/loaders/lora_pipeline.py:1039-1054 | src/diffusers/loaders/lora_pipeline.py:1324-1339 | src/diffusers/loaders/lora_pipeline.py:2424-2439 | src/diffusers/loaders/lora_pipeline.py:2610-2625 | src/diffusers/loaders/lora_pipeline.py:2802-2817 | src/diffusers/loaders/lora_pipeline.py:3000-3015 | src/diffusers/loaders/lora_pipeline.py:3207-3222 | src/diffusers/loaders/lora_pipeline.py:3398-3412 | src/diffusers/loaders/lora_pipeline.py:3589-3604 | src/diffusers/loaders/lora_pipeline.py:3782-3797 | src/diffusers/loaders/lora_pipeline.py:3971-3986 | src/diffusers/loaders/lora_pipeline.py:4689-4704 | src/diffusers/loaders/lora_pipeline.py:4881-4896 | src/diffusers/loaders/lora_pipeline.py:5076-5091 | src/diffusers/loaders/lora_pipeline.py:5270-5285 | src/diffusers/loaders/lora_pipeline.py:5660-5673 | src/diffusers/loaders/lora_pipeline.py:6049-6064 | src/diffusers/loaders/lora_pipeline.py:6238-6253 | src/diffusers/loaders/lora_pipeline.py:6434-6449 | src/diffusers/loaders/lora_pipeline.py:6634-6649 | src/diffusers/loaders/lora_pipeline.py:6824-6839 | src/diffusers/loaders/lora_pipeline.py:7015-7030 | src/diffusers/loaders/lora_pipeline.py:7282-7302 | src/diffusers/loaders/lora_pipeline.py:7604-7619 \u2014 all 24 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/loaders/lora_pipeline.py:5675\u0060 calls \u0060items\u0060, \u0060startswith\u0060 and \u0060src/diffusers/loaders/lora_pipeline.py:3017\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":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a20d8d2664fc2f5d980f3e79c6d89b3218b29caf1180f30b28feae41c8bb86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 15): examples/community/pipeline_stg_wan.py:523-542 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:519-538 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:590-609 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:610-630 | src/diffusers/pipelines/helios/pipeline_helios.py:626-645 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:702-721 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:586-603 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:498-517 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:754-773 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:813-832 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:849-868 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:613-633 | src/diffusers/pipelines/wan/pipeline_wan.py:529-546 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:672-689 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:612-631 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 323 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c38a6bc0e3929ec98b789b085ed6c32b72fe26102580a96aa27eeb8199ebce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 13): examples/community/pipeline_controlnet_xl_kolors.py:1147-1167 | examples/community/pipeline_kolors_differential_img2img.py:1086-1105 | examples/community/pipeline_stable_diffusion_xl_instantid.py:913-933 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1003-1022 | examples/community/stable_diffusion_xl_controlnet_reference.py:1147-1167 | examples/community/stable_diffusion_xl_reference.py:997-1016 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1157-1176 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1403-1423 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1398-1418 | src/diffusers/pipelines/kolors/pipeline_kolors.py:907-926 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1081-1100 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1133-1152 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1190-1209 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 415 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py:913\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, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1179\u0060 calls \u0060repeat_interleave\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py:936\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcabb1d4186486a916ecde04e6385299c6ff3bbd4a875f7046bdff0b8c78f497"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 10): examples/community/pipeline_controlnet_xl_kolors.py:988-1009 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1174-1195 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1386-1407 | examples/community/pipeline_stable_diffusion_xl_instantid.py:744-764 | examples/community/stable_diffusion_xl_controlnet_reference.py:575-595 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1178-1198 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1432-1452 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1223-1243 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1313-1333 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1143-1163 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py:744\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0552143b8943515d360d170c6155df5a95bf4b8408f7c45100b0468471e055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 9): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:822-842 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1056-1076 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1030-1050 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1202-1222 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:858-878 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:922-942 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:970-990 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1018-1038 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1130-1150 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 772 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1030\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":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab24242a30c0f244af16a1e323f48f553195a7e887075d0041676a6f22da1e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 9): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:310-330 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:375-395 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:357-377 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:358-378 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:394-411 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:373-393 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:357-377 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:387-404 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:383-403 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:310\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"289033655ab778cd8fd5d26ce7675ded6b1a49118be2cb457538fdf0cd19bc7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201321 lines \u00D7 8): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1119-1139 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1457-1477 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:933-953 | src/diffusers/pipelines/allegro/pipeline_allegro.py:798-818 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:570-585 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:722-742 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:827-847 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:771-791 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:798\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3d4ed9bbc6b4e7dd9d63872ecc5e1a835302a20478752cb60185e86c7d2f9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 7): examples/community/latent_consistency_img2img.py:567-587 | examples/community/latent_consistency_txt2img.py:479-499 | examples/community/matryoshka.py:399-419 | src/diffusers/schedulers/scheduling_ddim.py:222-242 | src/diffusers/schedulers/scheduling_ddim_parallel.py:228-248 | src/diffusers/schedulers/scheduling_lcm.py:234-254 | src/diffusers/schedulers/scheduling_tcd.py:235-255 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_ddim.py:222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5fdef15aae9f8aa6edb97b0ef3fd2276738ed099c1d6f47625404ed1367249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 7): examples/community/pipeline_controlnet_xl_kolors.py:1204-1222 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:965-983 | examples/community/pipeline_stable_diffusion_xl_instantid.py:954-972 | examples/community/stable_diffusion_xl_controlnet_reference.py:1206-1224 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1738-1758 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1461-1479 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1520-1538 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 423 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:1204\u0060 calls \u0060cudagraph_mark_step_begin\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1735\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba05cdeb150cda0a05910217352b67a99cded154b17d3d8de53f13f53914c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 7): examples/community/pipeline_kolors_inpainting.py:1432-1452 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1987-2007 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1524-1544 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1608-1628 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1611-1631 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1456-1476 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1463-1483 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5b7c72410ec072badea44c274955229d7db720bdad68783e89c058fcd1d52a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 6): examples/community/pipeline_flux_semantic_guidance.py:1104-1124 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:911-931 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1063-1083 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:967-987 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1123-1143 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1316-1336 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"94db76d38088dff977646f479abaf5a2bdfb2effe98d2076ead5f7b07370f6a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 6): examples/research_projects/anytext/anytext_controlnet.py:340-360 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:268-288 | src/diffusers/models/controlnets/controlnet.py:684-704 | src/diffusers/models/controlnets/controlnet_union.py:629-649 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:591-611 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1161-1181 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext_controlnet.py\u0060 and \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bc7b30ae55a3271bf6c6c44a87029ca3695f0deba2f3a4c71010faef907588"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 5): examples/community/masked_stable_diffusion_xl_img2img.py:179-199 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1864-1884 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1130-1150 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1203-1223 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1345-1365 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 355 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:179\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b613c5a3b227f947b832936d4806baa17a6f1c29e4fbea973473294187fb5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 5): examples/community/masked_stable_diffusion_xl_img2img.py:345-365 | examples/community/pipeline_kolors_inpainting.py:1521-1540 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1261-1281 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1335-1355 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1555-1574 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:345\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":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c7f31a973206c1175fae59b069824cef9a9b302563ca9f92e33d6c89fb9985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 5): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:604-624 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:872-892 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:662-682 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:851-871 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:596-616 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 583 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:604\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":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c3990f2887188a4af92f41419f8961493f0b45a1353e1d1f67699abde4b397"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201321 lines \u00D7 6): src/diffusers/models/attention_processor.py:1569-1589 | src/diffusers/models/attention_processor.py:1633-1653 | src/diffusers/models/attention_processor.py:1734-1754 | src/diffusers/models/attention_processor.py:1798-1818 | src/diffusers/models/attention_processor.py:1881-1883 | src/diffusers/models/attention_processor.py:1884-1902 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:1569\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/attention_processor.py:1567\u0060 calls \u0060scaled_dot_product_attention\u0060 and \u0060src/diffusers/models/attention_processor.py:1881\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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf52b8f55cdaa737b782401c3c5729d9b77b99506edd0c991afa4751a5e5c89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): examples/community/matryoshka.py:2391-2411 | src/diffusers/models/controlnets/controlnet.py:269-289 | src/diffusers/models/unets/unet_2d_condition.py:584-604 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:520-540 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2391}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bef822490c04b183c771d4762b3c1a5c58f5f694f740075d54e69972364fb0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): examples/community/pipeline_animatediff_ipex.py:674-694 | examples/community/pipeline_animatediff_ipex.py:855-875 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:790-810 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:690-710 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/deprecated/pia/pipeline_pia.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 945 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4ccade4f0bbffbfd5f03505be07dc1bb9675e13633ad66898d31f07dec43d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): examples/community/pipeline_kolors_differential_img2img.py:330-350 | src/diffusers/pipelines/kolors/pipeline_kolors.py:304-324 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:324-344 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:321-341 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_kolors_differential_img2img.py:330\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"032c5fd6c68a339f92c7513ec50816f28da66c93530668057868842904d6587f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): examples/community/pipeline_kolors_differential_img2img.py:1241-1261 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1038-1058 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1218-1238 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1101-1121 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:1038\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4ca60cc1bbd17c97dfebf27f916ebd37a787787560bbd1a17ef0c1e9721908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:926-946 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1392-1412 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1408-1428 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:1012-1032 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"171e9418c1d4e4f572dd6a00b8a39417d6769f0c90df837f19645cc4202693e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:655-675 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:778-798 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:888-908 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:739-759 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b3df571d2925518da236d14ffb39b380918c66a9c05c5f7b87cd7d9b73be3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201321 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1790-1810 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1323-1338 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2194-2213 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1440-1460 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 823 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1790\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"9526cba6e34c7b4d898b4589c34230b6973b918fac1f6ed070cf9b806362af64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:545-565 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:672-692 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:638-658 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:782-802 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:545\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:633\u0060 calls \u0060preprocess\u0060, \u0060to\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:541\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad9be1b7d1eb246e7bd1401d2eaf3c3972e7afb1fcdd0fd08819ad57af20c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 3): examples/community/matryoshka.py:2491-2511 | src/diffusers/models/unets/unet_2d_condition.py:675-695 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:591-609 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:2491\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2491}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c366fa08cd266a7f483c55eb55fd32d4a2bb48c28b40a9ef431272d49fba86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): examples/community/matryoshka.py:2779-2799 | src/diffusers/models/unets/unet_2d_condition.py:896-916 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1196-1216 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:2779\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 \u0060added_cond_kwargs\u0060 to \u0060Dict[str, Any]\u0060 in one and \u0060dict[str, Any]\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 before the matched lines, \u0060examples/community/matryoshka.py:2778\u0060 calls \u0060add_embedding\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py:895\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":"examples/community/matryoshka.py"},"region":{"startLine":2779}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a2907ba8c6b98d987b0a8c2b0752be22e383edf8c0f2a09a807bf1d61de457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 3): examples/community/pipeline_animatediff_controlnet.py:552-568 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:553-569 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:674-694 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 69 separate duplicated blocks between them, totalling at least 975 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b25dfed7f765c5621da99e648c96895c1e41f705030a3fd1ded40e5b8c3008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_instantid.py:831-851 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1155-1175 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1316-1336 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 and \u0060examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 591 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py:831\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instantid.py"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d6502f4bda2e369745117ca41b63c088a73cce4adce7919f6c0aeeb2b4f6fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): examples/community/pipeline_stg_cogvideox.py:382-402 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:328-348 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:338-358 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5893179ed184e1c18fb6787423011d41e8d71ec21d51d744c995403944f075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 3): examples/community/pipeline_z_image_differential_img2img.py:577-594 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:489-506 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:670-690 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 642 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d67b2413bbaacb8f7ec0259c256b0edd2149e1cdff5e1738d6f88711ae84cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): examples/community/pipline_flux_fill_controlnet_Inpaint.py:241-261 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:257-276 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:229-249 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py\u0060 as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 861 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"547c1440fd06c124086b5e7436c45aea2ba6f7f85a6146a12eb2e2bdec7c53c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): examples/community/stable_diffusion_xl_reference.py:527-547 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1076-1096 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1048-1068 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1076\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_xl_reference.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa264b42f948d13eff505595ac43ec9e15242ac7717dd766f530818d3f14195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 3): examples/research_projects/anytext/anytext.py:1702-1722 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:640-658 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:598-616 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 as WHOLE FILES: this scan already matched 100 separate duplicated blocks between them, totalling at least 1558 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/anytext/anytext.py:1702\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext.py"},"region":{"startLine":1702}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0b2e70ce0198bcb62e3155337cccd01b1802af0ddc6f859c60be980fbc7a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1809-1828 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1564-1584 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1706-1725 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90c63b661689166cf9a356e6fb08af4f0294140cf97d304169b02e16b290e3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/diffusers/models/attention_dispatch.py:3228-3248 | src/diffusers/models/attention_dispatch.py:3518-3538 | src/diffusers/models/attention_dispatch.py:4294-4314 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/attention_dispatch.py:4292\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/models/attention_dispatch.py:3227\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":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":3228}}}],"partialFingerprints":{"codehealthFindingId/v1":"5011114297207257a6bbe1de112d4e35deea7ccdbe707ba0f37652cf43ddbbf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:163-182 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:251-270 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:374-394 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"b527a9dd6582fd367975c9a959d25262536ffea040568494fbb752c8545b6a13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:657-677 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:638-658 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:605-625 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:657\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":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7dda928c6e66f60f563e070ae2cbe35d1af2358c29d1fc4137b1e9600f1145a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/diffusers/models/unets/unet_2d_condition.py:451-471 | src/diffusers/models/unets/unet_dreamlite.py:1864-1884 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:770-790 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e7900dd456625868c8031e46869bc781d2859c10ed5de9b0fc9023f9982f3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/diffusers/models/unets/unet_3d_blocks.py:344-364 | src/diffusers/models/unets/unet_3d_blocks.py:569-589 | src/diffusers/models/unets/unet_3d_blocks.py:818-838 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_blocks.py:344\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd1fb0813f597dc5ec8e5d411f8412aab5798d8d5e55cdb63ece2d6b39c17fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/diffusers/models/unets/unet_3d_condition.py:134-154 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:168-188 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:436-456 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_condition.py\u0060 and \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 234 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_condition.py:134\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a87dbdbed94bbd378a1b307b791f2d68fd2b616167e8b83d4f4a2758bd0c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 3): src/diffusers/modular_pipelines/cosmos/encoders.py:179-197 | src/diffusers/modular_pipelines/cosmos/encoders.py:433-453 | src/diffusers/modular_pipelines/cosmos/encoders.py:600-620 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/cosmos/encoders.py:179\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf1ae4a9712e3615f01c1eee7ec26deb1f48b4fa79353a66e2f376bc9979c8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/diffusers/modular_pipelines/modular_pipeline.py:949-969 | src/diffusers/modular_pipelines/modular_pipeline.py:1357-1377 | src/diffusers/modular_pipelines/modular_pipeline.py:1654-1674 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"682238ffd711601e86717b12f46de9d06156031d115d1fface1fc382cc2c03d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:738-758 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:289-309 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:326-346 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2dd8c554978953476a7fb7dbb6b2a104436e0414a602640318fddd62e0337d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 3): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:509-526 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:347-367 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:425-445 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 229 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:347\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, \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:529\u0060 calls \u0060set_transformer_params\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:370\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"747d4e223731442487f8fa314afbedaf6050a9a05b5ef4915d006a1072ba294e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:219-238 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:321-341 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:363-383 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3c00ded028dc85f0ee799a10a8323cb07a6867acb531bd7db00164b44b1e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:359-397 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:450-488 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:586-624 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 396 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:584\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:357\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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"796fd182404c2bd30a0cfa71f8627d862eec1aa41b417f6f1602600cf8d76fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:164-184 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:382-402 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:623-643 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70724d1ee65637801c94acc7d98752833368a2e1a9748496b3798970d255409"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:152-172 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:386-406 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:652-672 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b6e7d2c53fd5a4937d394c65cd56719b66e0c02a597a56cb743108975b7190"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/diffusers/schedulers/scheduling_ddpm.py:519-539 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:534-554 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:643-663 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddpm.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddpm_parallel.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddpm.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"a604bf2a044f13fd643ef03ba9f9bad6f84d42fd2010e428e3a92da6de746eb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:818-838 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:669-689 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:734-754 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"f545071575e288ba905d4b0d057dba59b7cb7e0a5f71951f58988488b0bed437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/community/pipeline_stg_mochi.py:237-257 | src/diffusers/pipelines/mochi/pipeline_mochi.py:175-195 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_mochi.py\u0060 and \u0060src/diffusers/pipelines/mochi/pipeline_mochi.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 799 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060VideoProcessor\u0060 names \u0060...video_processor\u0060 in one and \u0060diffusers.video_processor\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2bef0e2dd5ce03fd3018944da27d418b51863ca8d5ad2c1fa816f8ba943f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:453-473 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:451-471 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:453\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee600ce32958b6af326d941d84689c9f86f85b7f164a5c0a59dba185bcb7720"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 2): src/diffusers/callbacks.py:119-135 | src/diffusers/callbacks.py:162-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/callbacks.py:119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/callbacks.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"433596adb75fec8736e4b5370f85e871512cee07ff5b185c77641c7f797d74e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): src/diffusers/loaders/ip_adapter.py:215-234 | src/diffusers/loaders/ip_adapter.py:763-783 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/ip_adapter.py:763\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"3454840b16df39e3e56d5b835d7e822fe927bfa935e262a9c3372a730d3b4c58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/loaders/ip_adapter.py:283-303 | src/diffusers/loaders/ip_adapter.py:535-555 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32df2960ade78275cf0a1c6e9d7f1cafcb73d19621b0c69f67ff0569c6f2efd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/loaders/lora_conversion_utils.py:1597-1624 | src/diffusers/loaders/single_file_utils.py:2813-2840 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fddb5c314361968b201ce16eb9ff9db96d130a039d3fef274e0429bcd239712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:1439-1459 | src/diffusers/models/attention_dispatch.py:1782-1802 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1439}}}],"partialFingerprints":{"codehealthFindingId/v1":"6511fbbb2318106aa384ea9981cc9d779608afe252c7122d5b2e53b4be089273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:4160-4180 | src/diffusers/models/attention_dispatch.py:4212-4232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_dispatch.py:4160\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":4160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2ac26258062d2181c6abf26f7a3c6d80282fefe8c9e1454db4aec71225eaa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/models/attention_processor.py:2528-2548 | src/diffusers/models/attention_processor.py:4728-4748 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:2528\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2528}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25fc351acf9bb9198aeb74c7df80698185835cbbeb3f135c421872c4834fb35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): src/diffusers/models/attention_processor.py:4214-4232 | src/diffusers/models/attention_processor.py:4417-4437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:4417\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4214}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff81300758bd3cbcc078ca3ada04fa3eb034cc67ae4275e6287eaf951c91711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:486-506 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:528-547 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ec8e336561f48d9ffc238dde631e5b9b786b4aa11c82a1d5f1e2e6609151b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:335-355 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:442-461 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:335\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"d866c3aeb1d62fee86d090918b49302ec1dd014349a41cccb1bbdf4b6d130542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:405-425 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:536-556 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad824def9da25aa2247c8c82eb2a7b3969a441e8c0b1e295969630066787467"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/models/transformers/transformer_chroma.py:525-545 | src/diffusers/models/transformers/transformer_flux.py:737-757 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chroma.py\u0060 and \u0060src/diffusers/models/transformers/transformer_flux.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chroma.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fe81a9327c61470a4e0d9c38526713f31fa31efe4eb1b96d90c146c41a5ee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:514-534 | src/diffusers/models/transformers/transformer_glm_image.py:409-429 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_cogview4.py\u0060 and \u0060src/diffusers/models/transformers/transformer_glm_image.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_cogview4.py:514\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":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"36630ebe087e5719c69f20596807531838f085ad2c31a1179a2e1d0c4e32057c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201321 lines \u00D7 3): src/diffusers/models/transformers/transformer_ltx2.py:900-920 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:485-505 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1426-1428 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33f51bd8135afe99482d3d8ffcb84624bc0d315aa38b5da16336a11d251b2b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/models/unets/unet_3d_blocks.py:434-454 | src/diffusers/models/unets/unet_3d_blocks.py:565-585 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_blocks.py:434\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"436fbe5dd3cca25696bba3a868b6e41b1c2488c867237000746e7230c9f69ce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/models/unets/unet_3d_blocks.py:668-688 | src/diffusers/models/unets/unet_3d_blocks.py:814-834 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_blocks.py:668\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"03069935c59f1a0f75bdb2c968e0684da37b7a08ad3a925186d883f45b713b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/modular_pipelines/helios/denoise.py:450-470 | src/diffusers/modular_pipelines/helios/denoise.py:642-662 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/helios/denoise.py:450\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1723cc7ffbfcef78af6c28d7480d661968980fbc245b0b9c3466b42583564a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/modular_pipelines/ltx/denoise.py:121-141 | src/diffusers/modular_pipelines/ltx/denoise.py:354-374 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/ltx/denoise.py:121\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx/denoise.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"311aaee0d71358065850f2a98b3b4d81879ead7a8fd4d67b64affda62e1f2caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:960-980 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:667-687 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:960\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0396fc67ea4247a3123ece1caa68e2132c355e562bf982062369c97bff36fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/modular_pipelines/wan/encoders.py:280-300 | src/diffusers/modular_pipelines/z_image/encoders.py:251-271 \u2014 \u0060src/diffusers/modular_pipelines/wan/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/z_image/encoders.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 5 separate duplicated blocks between them, totalling at least 58 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. 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 \u0060components\u0060 to \u0060WanModularPipeline\u0060 in one and \u0060ZImageModularPipeline\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":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"32077a9c9a2565d0796a8389441c9b66cf41e6962edb4fe7f271ee71c5737d0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:999-1019 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1253-1273 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 1187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:999\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"4980c6139e6910f0bfac69fa61b42cf7d947c6a27a58bc50c0495297223b33fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1505-1525 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1524-1544 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1594 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f1cde61013883812cbf616c23c8e5a89e5fcaef743d19ab1d1e03236fead03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:567-587 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:550-570 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 505 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd6d339c3c65866b8d8ae6f3147d8365fed8414cb8f40d613338cb8473fa05a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:346-364 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:218-238 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py\u0060 and \u0060src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 438 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:346\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a59f01e5ad5a1e615310729d76ef24fa66a051637c9317fe5b43f287cb3f80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:393-411 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:480-500 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:393\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, \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:415\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:504\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da31af74481858c1a6c2f572bdd6866ee6aa806c260da6f66338024dc5c1d37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:264-308 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:313-357 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:264\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57adbc55c1e57d0083ed0af23a751e3400e6004936de6308542c7665497d41a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1752-1772 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2158-2178 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 2039 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1752\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"02de491cf7bb96ceafb910fdecbf68975ec357f13c8f2dc250dd2e7fb8b7676f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:796-816 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:744-764 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1063 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:796\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f071bb74705c2bc103a27ba79f4ac2390aa198675aa15bd0b89d32e238452c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/pipelines/sana_video/pipeline_sana_video.py:220-240 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:210-230 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video.py\u0060 and \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 1092 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_video/pipeline_sana_video.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"358b73c68f871915f4f6f837ed8afeea9ea3fe528010ccbeb99158a0e65b55e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:454-475 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:508-528 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 484 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a92445a15b4777fd444d56bb6fd0634c754cdd2debf362397e64d1685932d59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:715-735 | src/diffusers/schedulers/scheduling_unipc_multistep.py:1077-1097 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_helios.py\u0060 and \u0060src/diffusers/schedulers/scheduling_unipc_multistep.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_helios.py:715\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":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9da180652bce9e81219f5be84937da9ef6bc36a8b77adc928b4d9fa4abe3d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 60): examples/community/fresco_v2v.py:1504-1522 | examples/community/gluegen.py:335-354 | examples/community/ip_adapter_face_id.py:571-589 | examples/community/latent_consistency_interpolate.py:368-386 | examples/community/pipeline_animatediff_controlnet.py:285-303 | examples/community/pipeline_animatediff_img2video.py:402-420 | examples/community/pipeline_animatediff_ipex.py:256-274 | examples/community/pipeline_stable_diffusion_boxdiff.py:674-692 | examples/community/pipeline_stable_diffusion_pag.py:640-658 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:280-298 | examples/community/regional_prompting_stable_diffusion.py:618-636 | examples/community/stable_diffusion_reference.py:499-517 | examples/research_projects/anytext/anytext.py:1447-1465 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:409-427 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:241-259 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:286-304 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:295-313 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:343-361 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:374-392 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:385-403 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:363-381 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:369-387 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:414-432 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:442-460 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:319-337 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:230-248 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:303-321 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:383-401 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:509-527 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:307-325 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:338-356 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:399-417 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:370-388 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:298-316 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:375-393 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:346-364 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:279-297 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:276-294 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:494-512 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:246-264 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:281-299 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:903-921 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:451-469 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:328-346 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:313-331 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:665-683 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:362-380 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:338-356 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:391-409 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:252-270 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:386-404 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:421-439 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:419-437 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:291-309 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:445-463 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:399-417 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:304-322 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:384-402 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:346-364 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:398-416 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/gluegen.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1504\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d0e2c8c3da2e5a4d433cdd25bb22c234c98d478b69ebe76182a7e36f170b47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201320 lines \u00D7 26): scripts/convert_aura_flow_to_diffusers.py:35-41 | scripts/convert_cogview3_to_diffusers.py:70-81 | scripts/convert_cogview4_to_diffusers.py:79-90 | scripts/convert_flux_to_diffusers.py:77-96 | scripts/convert_flux_to_diffusers.py:107-122 | scripts/convert_hunyuan_image_to_diffusers.py:703-716 | scripts/convert_hunyuan_video1_5_to_diffusers.py:180-199 | scripts/convert_hunyuan_video1_5_to_diffusers.py:469-482 | scripts/convert_if.py:517-525 | scripts/convert_mochi_to_diffusers.py:48-55 | scripts/convert_ovis_image_to_diffusers.py:66-73 | scripts/convert_pixart_alpha_to_diffusers.py:21-28 | scripts/convert_pixart_alpha_to_diffusers.py:42-60 | scripts/convert_pixart_sigma_to_diffusers.py:21-28 | scripts/convert_pixart_sigma_to_diffusers.py:42-60 | scripts/convert_sana_controlnet_to_diffusers.py:28-35 | scripts/convert_sana_to_diffusers.py:72-79 | scripts/convert_sana_to_diffusers.py:85-98 | scripts/convert_sana_to_diffusers.py:105-120 | scripts/convert_sana_video_to_diffusers.py:60-67 | scripts/convert_sd3_to_diffusers.py:48-61 | src/diffusers/loaders/single_file_utils.py:2032-2043 | src/diffusers/loaders/single_file_utils.py:2315-2326 | src/diffusers/loaders/single_file_utils.py:2335-2350 | src/diffusers/loaders/single_file_utils.py:2708-2715 | src/diffusers/loaders/single_file_utils.py:3116-3127 \u2014 before extracting anything, compare \u0060scripts/convert_aura_flow_to_diffusers.py\u0060 and \u0060scripts/convert_flux_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_sd3_to_diffusers.py:62\u0060 calls \u0060pop\u0060 and \u0060scripts/convert_aura_flow_to_diffusers.py:41\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/convert_aura_flow_to_diffusers.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e168621d21136d1f4a98545000f01dd49400f35969fd9a1ed74332605565a061"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 21): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:681-698 | src/diffusers/pipelines/allegro/pipeline_allegro.py:531-548 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:501-518 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:545-562 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:298-315 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:585-602 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:300-317 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:256-273 | src/diffusers/pipelines/latte/pipeline_latte.py:518-535 | src/diffusers/pipelines/lumina/pipeline_lumina.py:550-567 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:505-522 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:512-529 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:617-634 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:562-579 | src/diffusers/pipelines/prx/pipeline_prx.py:182-201 | src/diffusers/pipelines/sana/pipeline_sana.py:588-605 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:603-620 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:479-496 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:503-520 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:611-628 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:613-630 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/prx/pipeline_prx.py:202\u0060 calls \u0060strip\u0060 and \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:700\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":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a16ec6cc9304f8b3de19185c2c21382e1b1479b9d13c628e92a17751975b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 18): examples/community/pipeline_flux_kontext_multiple_images.py:332-351 | examples/community/pipeline_flux_rf_inversion.py:287-306 | examples/community/pipeline_flux_semantic_guidance.py:291-310 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:320-339 | src/diffusers/pipelines/flux/pipeline_flux.py:273-292 | src/diffusers/pipelines/flux/pipeline_flux_control.py:286-305 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:297-316 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:336-355 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:305-324 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:298-317 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:309-328 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:301-320 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:295-314 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:299-318 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:320-339 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:353-372 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:259-278 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:252-271 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0abf6c505e5ca9474968cae872788ad1a9561643a5e08b1fc2a8e9ea96a2769"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 16): examples/community/mod_controlnet_tile_sr_sdxl.py:759-776 | examples/community/pipeline_animatediff_controlnet.py:591-608 | examples/community/pipeline_controlnet_xl_kolors.py:579-596 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:654-671 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:705-722 | examples/research_projects/anytext/anytext.py:1735-1754 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:697-714 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:592-609 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:719-736 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:705-724 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:822-839 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:765-782 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:769-786 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:663-682 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:773-790 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:775-792 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 16 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 16 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:759\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ddfac29dcf14381c3cfdc6f03dd8b543bf3a021259a03f4585eb8fa0552afd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 16): examples/community/pipeline_controlnet_xl_kolors.py:987-1006 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1173-1192 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1385-1404 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:747-765 | examples/community/pipeline_stable_diffusion_xl_instantid.py:743-761 | examples/community/stable_diffusion_xl_controlnet_reference.py:574-592 | examples/research_projects/anytext/anytext.py:2106-2125 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1062-1080 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1070-1088 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1068-1086 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1177-1195 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1431-1449 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1222-1240 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1312-1330 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1017-1035 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1142-1160 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:747\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"1103cd385b4972ca6fb96765dc7718b055dba6db16c7f3b8e13cf2d0df7851da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 12): examples/community/masked_stable_diffusion_xl_img2img.py:317-336 | examples/community/mod_controlnet_tile_sr_sdxl.py:1590-1609 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2051-2070 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1233-1252 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:916-935 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1477-1496 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1506-1525 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1465-1484 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1315-1334 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1528-1547 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1307-1326 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1527-1546 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:317\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":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad11df413dcc97118df8d448e978d4d98356ed4ef1ab0f04c224fcff9bf00f87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 11): examples/community/lpw_stable_diffusion_xl.py:1804-1823 | examples/community/masked_stable_diffusion_xl_img2img.py:365-384 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1663-1682 | examples/community/pipeline_kolors_differential_img2img.py:1134-1153 | examples/community/pipeline_kolors_inpainting.py:1540-1559 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2123-2142 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1120-1139 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1386-1405 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1599-1618 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1355-1374 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1574-1593 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb5168b2814251749819f5129ecd2db02d71d3d0a168e1c51a5a39d2c7b056a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201320 lines \u00D7 11): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:142-155 | scripts/convert_original_audioldm2_to_diffusers.py:127-140 | scripts/convert_original_audioldm_to_diffusers.py:119-132 | scripts/convert_original_musicldm_to_diffusers.py:119-132 | scripts/convert_svd_to_diffusers.py:187-206 | scripts/convert_svd_to_diffusers.py:557-571 | scripts/convert_svd_to_diffusers.py:594-607 | scripts/convert_unidiffuser_to_diffusers.py:66-79 | scripts/convert_versatile_diffusion_to_diffusers.py:166-179 | scripts/convert_zero123_to_diffusers.py:641-654 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:140-153 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff86d3025f32763aef6ce8d84757eb47c280359c2ca216bde084578f2403d69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 11): src/diffusers/models/autoencoders/autoencoder_kl.py:217-237 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1211-1230 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:229-249 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:827-846 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:542-561 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:646-666 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:914-933 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:868-887 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1339-1358 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1224-1243 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:492-512 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060z\u0060 to \u0060torch.FloatTensor\u0060 in one and \u0060torch.Tensor\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":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcc79fc798740678293b31a505f1cc37e7feda3cc50785085fa57eae2ea9c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 10): examples/community/fresco_v2v.py:1628-1647 | examples/community/pipeline_animatediff_controlnet.py:409-428 | examples/community/pipeline_animatediff_img2video.py:526-545 | examples/community/pipeline_animatediff_ipex.py:381-400 | examples/community/pipeline_kolors_inpainting.py:445-464 | examples/community/pipeline_stable_diffusion_pag.py:762-781 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:646-665 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:747-766 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:422-441 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:674-693 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf627c2adb31efd70fccbd2f28fa93992099684dfdd840fd06a98dce8988729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201320 lines \u00D7 10): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:552-566 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:627-641 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:611-625 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:683-697 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:585-604 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:588-602 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:608-622 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:596-610 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:626-640 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:633-647 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 772 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"f432c650fb42575f013016425d47a0e1a6b05162130d254f7a7df107ee0145d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 9): examples/community/adaptive_mask_inpainting.py:1073-1092 | examples/community/pipeline_kolors_inpainting.py:1444-1463 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1999-2018 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1536-1555 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1346-1365 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1620-1639 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1308-1327 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1468-1487 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1475-1494 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:1073\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28cbbdb7193e9db633b34c7eaa464a151de4ac9a6b0ab4de28df1eaed3db0fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 9): examples/community/pipeline_animatediff_img2video.py:878-897 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:791-810 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1432-1450 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:982-1000 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:681-699 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:741-759 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:560-578 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:622-640 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:676-694 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_img2video.py\u0060 and \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 541 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:697\u0060 calls \u0060preprocess\u0060, \u0060to\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:762\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8796e6b8bc427a30fa998272317f46b17e90ea09d78e823f81696be8d44738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 8): examples/community/mod_controlnet_tile_sr_sdxl.py:919-938 | examples/community/pipeline_kolors_differential_img2img.py:655-674 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:952-971 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:943-962 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:652-671 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:958-977 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:750-769 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:737-756 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:919\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"21621b25c8047b2ec77ac6e37a05137a69456851cb507ec51d4c4b57884c7b09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 8): examples/community/pipeline_kolors_differential_img2img.py:285-303 | examples/community/pipeline_kolors_differential_img2img.py:339-358 | src/diffusers/pipelines/kolors/pipeline_kolors.py:259-277 | src/diffusers/pipelines/kolors/pipeline_kolors.py:313-332 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:279-297 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:333-352 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:276-294 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:330-349 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"a529bd5b457107e73103859a6009c14f934a96e4c1cd595952e1a1656d257b03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 7): examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1579-1598 | examples/community/pipeline_kolors_inpainting.py:1455-1474 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2010-2029 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1631-1650 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1319-1338 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1211-1230 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1486-1505 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 1028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1631\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_inpaint.py"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cc58e621fcb2c08dbf625e7e80a15b411a11b063be1dd03a5308b859ca95b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 7): examples/community/pipeline_flux_differential_img2img.py:637-656 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:675-694 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:699-717 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:710-728 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:664-682 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:735-753 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:838-856 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 789 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:637\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40b9e2af5139395a2420fd74b299c1fcd2650a393bcb3b84d6d75ff93c715da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 6): examples/community/lpw_stable_diffusion_xl.py:1596-1615 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1984-2003 | examples/community/pipeline_kolors_differential_img2img.py:974-993 | examples/community/stable_diffusion_xl_reference.py:503-522 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:973-992 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1033-1052 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 832 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:973\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e6e7dd6a0a64cb7e6e2885f43235a66d0d689938bd9387a9ab30d156807282"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 6): examples/community/matryoshka.py:870-889 | examples/community/matryoshka.py:1161-1180 | src/diffusers/models/unets/unet_2d_blocks.py:1258-1277 | src/diffusers/models/unets/unet_2d_blocks.py:2446-2465 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1710-1729 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1981-2000 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0b48922663c0921acb2e1915046ff027d96936411d9c85a5199947b3c81e99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 6): examples/community/pipeline_controlnet_xl_kolors.py:1020-1038 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1207-1225 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1421-1439 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1471-1490 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1250-1268 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1344-1362 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1471\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"8890dca2b6cf56aee79aee8f0ef0b5a2ff25b0e4fb292576fb0b08bc87bd8048"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 6): examples/community/pipeline_flux_differential_img2img.py:849-867 | examples/community/pipeline_flux_rf_inversion.py:803-821 | src/diffusers/pipelines/flux/pipeline_flux_control.py:708-727 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:780-799 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:906-925 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:848-867 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 629 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py:708\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a682b5db84cd55b6ed93967ca69ca3ece4c96159acb00be33f62573cef3736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201320 lines \u00D7 6): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1325-1339 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1742-1756 | examples/community/stable_diffusion_xl_controlnet_reference.py:1228-1243 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1762-1781 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1483-1498 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1542-1556 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:1228\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4eb0e857a874a37eb2654898b83c50d65f34d120b20548e1730a3dbae803a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 6): src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:893-911 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:683-701 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:872-888 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:753-771 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:959-978 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:572-590 \u2014 \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.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 69 separate duplicated blocks between them, totalling at least 920 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:893\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba6a565d943050223b1019e6a191a0df90661838333fa8f8a9836dc0e8afb1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): examples/community/matryoshka.py:2236-2255 | src/diffusers/models/unets/unet_2d_condition.py:439-458 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:209-228 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:362-381 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:758-777 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_condition.py:439\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":"examples/community/matryoshka.py"},"region":{"startLine":2236}}}],"partialFingerprints":{"codehealthFindingId/v1":"767a9626bbb7944a786ceb21d1d8d19868901714157ddd38e84cd8cb22455bb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 5): examples/community/pipeline_kolors_differential_img2img.py:1060-1079 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1212-1230 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1055-1074 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1294-1312 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1286-1304 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 465 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee779dadc2d7c8a2e20becc5b606f424e7d3a71894a043b4030ef693129731e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 5): examples/community/pipeline_prompt2prompt.py:702-721 | examples/community/stable_diffusion_ipex.py:688-707 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:763-782 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:679-695 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:371-390 \u2014 before extracting anything, compare \u0060examples/community/pipeline_prompt2prompt.py\u0060 and \u0060examples/community/stable_diffusion_ipex.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:759\u0060 calls \u0060cat\u0060 and \u0060examples/community/pipeline_prompt2prompt.py:698\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b975e947d9d444e5ba1dfe1a899f9309ca338504c7f430d05c59354fe119b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 5): examples/community/pipeline_stg_hunyuan_video.py:798-816 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:766-784 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:718-736 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:816-835 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:940-958 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 451 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"583d97fa616247d2b593f77fab618d7e354bd7154a3c0b9b3c2dc8719e001b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): examples/community/pipeline_stg_ltx.py:239-258 | examples/community/pipeline_stg_ltx_image2video.py:258-277 | src/diffusers/pipelines/ltx/pipeline_ltx.py:213-232 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:295-314 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:232-251 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_ltx.py:239\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: \u0060VideoProcessor\u0060 names \u0060...video_processor\u0060 in one and \u0060diffusers.video_processor\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a676460f38ea222597260331bea30fb58b245242445b8fbe8fada5574a0bb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:913-932 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:318-337 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:864-883 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:797-816 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:771-790 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 and \u0060src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:913\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3876d48c410311e0cfa460a158a54ac219c60a602398b72e707d9bb8236f118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:998-1017 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:822-841 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:886-905 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:983-1002 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1099-1118 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 872 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:998\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"c799773bc9761de94fb6c7eb53299be3791ef54d05af7e4e193e6135cc6e9d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): examples/community/pipeline_kolors_differential_img2img.py:1007-1026 | src/diffusers/pipelines/kolors/pipeline_kolors.py:853-872 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1006-1025 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:881-900 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:853\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":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde4e5ef59dc62b54655d6d105c74c2b6d8da16913e051a5e449730b9a7c045c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): examples/community/pipeline_kolors_inpainting.py:1314-1333 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1854-1873 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1071-1090 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1335-1354 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1071\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":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ce71cc1649d512e7574b3a61d84db2cf76f4b8e727f9800bc98270c195cd1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 4): examples/community/pipeline_stable_diffusion_boxdiff.py:1528-1547 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:897-916 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:948-967 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:665-683 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 and \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa9ab57003d388af7bcff04c6f3111d7e7dddefb89adc93847e7b0d79b6cdea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 4): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1058-1092 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:952-984 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:830-862 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:966-1000 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1058\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"c437ca60e3e23a47806c316c122d0ee611de42a26d005fed2a4c2f6a0cbe90fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:909-928 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:697-716 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:804-823 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:748-767 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 736 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:697\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":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"34092e904dfc2a34aa7307b651b06b3780cd5d712e7df7bcb1e269d6837ceb14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 4): src/diffusers/modular_pipelines/ltx/denoise.py:98-115 | src/diffusers/modular_pipelines/ltx/denoise.py:332-348 | src/diffusers/modular_pipelines/wan/denoise.py:165-183 | src/diffusers/modular_pipelines/wan/denoise.py:298-317 \u2014 \u0060src/diffusers/modular_pipelines/ltx/denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/wan/denoise.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 5 separate duplicated blocks between them, totalling at least 54 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx/denoise.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9536c969f1ac24672ca2e7c91ac40ee350a4c90b0378b5cf574b0efbe9607b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 4): src/diffusers/pipelines/consisid/pipeline_consisid.py:800-818 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:827-846 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:696-715 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:776-795 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/consisid/pipeline_consisid.py:800\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/consisid/pipeline_consisid.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99bc6d0f0a659bc72720993f76a8956d33aa0143bbd9549585b2dd2fcae71d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): src/diffusers/pipelines/kolors/pipeline_kolors.py:884-903 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:912-931 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1109-1128 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1107-1126 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_kolors.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1312 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:884\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ebf2193a79a9c8ff7c7903a5b52d4e830974b8e327cfccd27da4f74af995c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:641-660 | src/diffusers/pipelines/wan/pipeline_wan.py:585-604 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:742-761 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:954-973 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 500 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/wan/pipeline_wan.py:583\u0060 calls \u0060set_begin_index\u0060 and \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:639\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"92347b7833591163f8cc18977e0b26a2aa5ba65399b420c225b4c28df2f9cd6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201320 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1209-1227 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:919-938 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:949-967 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1237-1251 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 721 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1209\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"598a2f4b683199b546f0535dbfc27a5e8b8ea75692f0dd954fce889161440ecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 4): src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:881-897 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:657-674 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:934-952 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:839-858 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9610f2480daaed0381446b58be0fa07e04ea13cd0a8453f956021ee3ac387b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): src/diffusers/schedulers/scheduling_ddpm.py:649-668 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:750-769 | src/diffusers/schedulers/scheduling_lcm.py:756-775 | src/diffusers/schedulers/scheduling_tcd.py:791-810 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddpm.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddpm_parallel.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddpm.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"8003381f0869114051ebdae0aaafa824ab0a690e4bdf69e846f43e30630be684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201323 lines \u00D7 5): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:522-528 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:977-999 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:830-852 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:889-911 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:577-599 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0486ca1a9a87781865add34ee06de24ecee9885fd06ed38967d6d47d8ba76d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/community/pipeline_animatediff_controlnet.py:891-910 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:852-871 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1056-1075 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 69 separate duplicated blocks between them, totalling at least 975 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_controlnet.py:891\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb52ac09a544b61bd2d10c10859d81d4dcd675daa8647c0a17236cedbeea34f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1131-1150 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1469-1488 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:561-580 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:561\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":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00febeaefef0dde35f9981348fde92b13ac76ff2c54ddb7996d79f8b584cec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/community/pipeline_stg_cogvideox.py:752-771 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:691-710 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:794-813 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:691\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, \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:816\u0060 calls \u0060new_full\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:713\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":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c5f76728b8dbb17d4bf0df702fe5b9c89414240f8c7435dfe98c2a57b09b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 3): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1191-1210 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:914-931 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1087-1106 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1048 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1191\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"0344e388ba05c4bcced51ba8188497efbe04727009390ca98e70321c7a05c64a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/community/stable_diffusion_xl_reference.py:1024-1043 | src/diffusers/pipelines/kolors/pipeline_kolors.py:934-953 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1160-1179 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_reference.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 464 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:934\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":"examples/community/stable_diffusion_xl_reference.py"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e705e5bf630d37f98904d18ea8d8abdc30c1d5ac35dab80464c6d4e2f9ae01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:239-258 | scripts/convert_zero123_to_diffusers.py:39-58 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:237-256 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_zero123_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 877 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13cd97fdc12bf8cd80f44f91b0ee3e51910a137af75f119d9934566b29ec097"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/loaders/lora_conversion_utils.py:1916-1935 | src/diffusers/loaders/lora_conversion_utils.py:1942-1961 | src/diffusers/loaders/lora_conversion_utils.py:1968-1987 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1916}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7bba8ea8130c9d58f297cb7af27947d8e7a1cbbcd74a940633fb09bec0db2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py:254-273 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:66-85 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:71-90 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd4877fa2538656f20ca962f3f4c6eb9f65d6614fc1141343b42620d28f3019"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:974-993 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1455-1474 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1336-1355 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a4b83c167ab97d98f64bd535f87356e1de266bc0f6444bd3b92ca29d74d387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/models/controlnets/controlnet.py:231-250 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:208-227 | src/diffusers/models/controlnets/controlnet_union.py:206-225 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 317 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py:228\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/models/controlnets/controlnet.py:253\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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b5650e57583ac6dbeef2571a743e2b9684e169e4824505f7dcdad649b2bb88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): src/diffusers/models/controlnets/controlnet.py:394-412 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:342-361 | src/diffusers/models/controlnets/controlnet_union.py:354-372 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 317 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet.py:394\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f21f59f9d662025b74334fc397c60bc2cfb5c90a8b863a4ba7d4a16d15d8226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201320 lines \u00D7 3): src/diffusers/models/transformers/transformer_flux3.py:131-143 | src/diffusers/models/transformers/transformer_motif_video.py:91-103 | src/diffusers/models/unets/unet_dreamlite.py:359-378 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:359\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, \u0060src/diffusers/models/transformers/transformer_flux3.py:128\u0060 calls \u0060apply_rotary_emb\u0060, \u0060to\u0060 and \u0060src/diffusers/models/transformers/transformer_motif_video.py:89\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux3.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca70e65a5cd252efcc526a45900d5e957a5627ea8a95234b1f00d105f84b06a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/denoise.py:114-133 | src/diffusers/modular_pipelines/p_h3_image/denoise.py:115-134 | src/diffusers/modular_pipelines/pika_h3_flex/denoise.py:115-134 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/denoise.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 3 separate duplicated blocks between them, totalling at least 43 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. 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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/denoise.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9120063852801590ec31abc5b1e0ed26bed62db8bfe28a04990653bb1e6e0c3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/modular_pipelines/qwenimage/inputs.py:449-468 | src/diffusers/modular_pipelines/qwenimage/inputs.py:682-701 | src/diffusers/modular_pipelines/qwenimage/inputs.py:896-915 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/inputs.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"b598492e8a8c9dff40d9c8cb3b1d3af62c7919ff36fc3a1946ef2661386d778f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:931-950 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1091-1110 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1249-1268 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e314c2968895ccb50e71c1b47fe4d5e99f8b8cc848cf88f507ba9a9a3ade29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1128-1143 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:971-990 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1030-1045 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 937 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1128\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8bc05a8436515612ed917af5f90d429ac201a4448c70a717cadd87003ec839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1563-1582 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1804-1823 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1615-1634 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1278 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"788cabc0ca92bb62b0967acd2a0ee0f02d4046e4e93a23bd67441ed3b8ed741c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:453-472 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:564-583 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:606-625 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:453\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61dd5399380d4d2affc440f60f60fdb05082963fa766b35d949f12eab8eccc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:619-638 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:572-591 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:741-760 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 730 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:619\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"28dc25eed2fe6adda0f6df9b967f93b160802eeb14fab15fa062a8374245efa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:457-476 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:445-464 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:455-474 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.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 25 separate duplicated blocks between them, totalling at least 336 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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"3beb40f4054723de8d58eb279a767fffe3c8439cb2e11d1b18cc4989fa1261e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:263-282 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:322-341 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:480-499 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 188 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:478\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:261\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":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e248c3c7272a8deb521d3eeff340b7c6d296df41ec54a99dedc20f2e078d12f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:767-786 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:838-857 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:743-761 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:767\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"31317c66c8ec5e6692df60f0255a313208f99c231f2f97ef8c3d2d9e97e7fc50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:162-181 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:174-193 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:151-170 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 409 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:162\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1fccd61e2b265fc7cd07ddbd0e8fa9b1b6c4198bc77f32e26ba5b9f813aa1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_sana.py:805-824 | src/diffusers/pipelines/sana/pipeline_sana.py:876-895 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:959-978 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 791 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdad625a176b8b6f626a4afbdb94557a17fed11dfcbdd9be73d7441d0dfd8256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): examples/community/lpw_stable_diffusion.py:417-444 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:51-78 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion.py:417\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":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e68f88766dc585d97fa523dff578b9a25503a9cf965aed43f494c3ad0ecdd39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/community/matryoshka.py:800-819 | src/diffusers/models/unets/unet_2d_blocks.py:1173-1192 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"73deda42ee9c3a41036a2bc9b82185a9cd771de4213dd43939e351d59acd3f92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/community/matryoshka.py:830-849 | src/diffusers/models/unets/unet_2d_blocks.py:1909-1939 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"d658a80abdc6b4c79b69cf94b0dda095f31bbdc39ef4dd6bf928514b2b601df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/community/pipeline_demofusion_sdxl.py:870-889 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1165-1184 \u2014 before extracting anything, compare \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 468 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ce6a9998e79086412fe917186b86d6a6ccc848ac02d57c25d2c21fce5f689b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): examples/community/pipeline_flux_differential_img2img.py:961-980 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1053-1071 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py\u0060 as WHOLE FILES: this scan already matched 62 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1053\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e51215e8497e9e64eea87f9590c15d4322d1b8e145085757d5f35e48bb7f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/community/pipeline_stable_diffusion_boxdiff.py:1499-1518 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:866-885 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 and \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_boxdiff.py:1499\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e80d9165266f9a1498334c6e3b27a710a8568ea85bd299b50f832a44ec2c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1145-1164 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1006-1025 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1006\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"637f95c40ba2df6debc875617f60466ab3a57a133c26b7f928e29195224b2bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): examples/community/pipeline_stg_ltx_image2video.py:790-809 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:772-788 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 808 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx_image2video.py"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b674460e2cb896b55273e836d91309c9cd6a26d0024d51da6464f5f2383bf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): examples/community/pipeline_stg_ltx_image2video.py:901-934 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:870-903 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 808 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx_image2video.py"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"a848a2c93185c0ad495fa13678aaf734e512b266bdbf2b755a5b2462154ad20f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): examples/community/pipeline_stg_mochi.py:271-295 | src/diffusers/pipelines/mochi/pipeline_mochi.py:209-233 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_mochi.py\u0060 and \u0060src/diffusers/pipelines/mochi/pipeline_mochi.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 799 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ee6a81fb6b17182ad153557cdc636da282304855be4b0f1d926a0ddbc8eda7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1958-1977 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1857-1876 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1855\u0060 calls \u0060open\u0060, \u0060read\u0060 and \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1956\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bdeae30142d47a46fc7d7d1abd9353cce2b803f2be4edefd7a806df3ea59ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/models/attention.py:297-316 | src/diffusers/models/attention_processor.py:816-835 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92dd405464d15426f2301d56fe7dfe48f35d3fb2cebf6fc22be7d060b80cd42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl.py:99-118 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:103-122 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 342 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl.py:99\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ac7b30c325feb8db2af3f15c9289bcf04e1f9ae67f150df7200910484ba2bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:298-316 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:360-379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ad45557a2d363d5b8c523b0d13e567c4193d51174e4e7d298ededd2c917cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:814-833 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:848-867 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a60aaa18b51f9e824162ba8b17a6067b65600babbec45b326761672d4ff7bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_flux.py:263-281 | src/diffusers/models/controlnets/controlnet_flux.py:283-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_flux.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e07e538eb2e1aaf3369ebd0c4af68a05e2e5424d538d1594707b117bc0fc3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_sana.py:84-103 | src/diffusers/models/transformers/sana_transformer.py:386-405 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_sana.py\u0060 and \u0060src/diffusers/models/transformers/sana_transformer.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_sana.py:84\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_sana.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8231075f172ca1e91607592cacbfacc5d44e78391d52361f45a4c8806dd86b31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/models/transformers/sana_transformer.py:395-414 | src/diffusers/models/transformers/transformer_sana_video.py:551-570 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/sana_transformer.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_video.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/sana_transformer.py:395\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"862380b370d48e253f8e9eda01714f5bf1c4ff417dbc9e20011414b6588458ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow.py:185-204 | src/diffusers/models/transformers/transformer_anyflow_far.py:355-374 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b252c67d1111ac1eacd4570667c9bc18c1e1f59eb7211ce699a21d6e69c56d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/models/transformers/transformer_bria.py:656-675 | src/diffusers/models/transformers/transformer_bria.py:681-700 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"5270eca550df63d452d13d483a1b4d071a5bcec7c011408d79a6cd390d66ff5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/models/transformers/transformer_flux.py:759-778 | src/diffusers/models/transformers/transformer_flux.py:791-810 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d92f17cd7f314032c1b4c97864959a88c53c736b2b1eb82ef285b186e2ef08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): src/diffusers/models/transformers/transformer_flux2.py:612-630 | src/diffusers/models/transformers/transformer_flux2.py:701-720 \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":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"b269ed53b471963f955f51a67e954903fe5f6ae454cfa833c055828db7a87e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): src/diffusers/models/transformers/transformer_mochi.py:469-486 | src/diffusers/models/transformers/transformer_ovis_image.py:561-580 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_mochi.py:488\u0060 calls \u0060reshape\u0060, \u0060permute\u0060 and \u0060src/diffusers/models/transformers/transformer_ovis_image.py:582\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_mochi.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5f8998a488e64489e851aa025d8113d9d543f73828490fa052ba2ced38fcb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1049-1067 | src/diffusers/models/unets/unet_2d_blocks.py:2694-2713 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2089d6ccda41cca048543f24394c0d334f912d8b18de4174a64758875c1435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201337 lines \u00D7 3): src/diffusers/modular_pipelines/helios/denoise.py:584-620 | src/diffusers/modular_pipelines/helios/denoise.py:923-959 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:969-976 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/helios/denoise.py:584\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef40402b26b30cc07e73fb2d4bae8e5e165697916adb725cc72f96b1139a106c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/modular_pipelines/ltx2/before_denoise.py:404-423 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:1574-1593 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/ltx2/before_denoise.py:404\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":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"4250dc19b71e872f84e053815541f2d95f1957b7025084f836df18f1aaf9b298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/encoders.py:187-206 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:190-209 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/encoders.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 11 separate duplicated blocks between them, totalling at least 429 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b75c7bb100834ee783c235944775fc2900f88944e52a0df8f07bc4c9b495284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/references.py:250-270 | src/diffusers/modular_pipelines/pika_h3_flex/references.py:255-275 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/references.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/references.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 5 separate duplicated blocks between them, totalling at least 106 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/references.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ddf084b817f33444bda9800876462d3dbffe57bdeef74c6538993690a5b32d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:601-620 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:637-656 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 1187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83defee44fbd785c51f9757284606925cfe2da70719de30a17760c1793eeeda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:832-851 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:858-877 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b9227ce15dfec4c655b5798a13f7eaf90c97a845380d843ceaa746b31207d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:773-791 | src/diffusers/pipelines/consisid/pipeline_consisid.py:864-883 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py\u0060 and \u0060src/diffusers/pipelines/consisid/pipeline_consisid.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 544 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:773\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b2ec505dfb99ab248d22ac8563754ac9525ae204b7596f370e9358caedfe40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1642-1661 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1659-1678 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 138 separate duplicated blocks between them, totalling at least 1858 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1642\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1681\u0060 calls \u0060set_attn_processor\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1663\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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"096ccfa1057664fe40f4e9f1bc1bc88bb2c88b25f2950deacd4556f3b7215d8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:840-859 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:491-508 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5af0c1283284488dcf093e928164757b3eb7d0946f347d0a7a28787b95c535b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py:50-83 | src/diffusers/pipelines/stable_diffusion/safety_checker.py:55-88 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/safety_checker.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb5b615edfcab87bf88e9514f2b1c3d08644e745ca59e4f2819e3cfa304afe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:367-386 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:827-846 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 638 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:367\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d67adf8b6e67039c737ea2ddd54c99e8c600978abe7b60c5354d34a60dae941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:194-213 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:147-166 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:194\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9be7ba40c7016da102897151739141ab48ebedf4f34e736a4e1208dcde85fc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:754-773 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1225-1244 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 684 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90ce0c818fb97fb87602983a85a5ae3a91b6f4ab1a600f5d44921d8cb49bfb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:362-381 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:615-634 \u2014 \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.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 12 separate duplicated blocks between them, totalling at least 246 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:614\u0060 calls \u0060update\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:360\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":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b2f5e1b1f6029f743ea94a26064ecf266f2403b15412378549b1b7ea6258fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:231-260 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:228-257 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c958b8688af106bd22822368a6de59ab5866b83d5ff3202a13769817bbf257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:95-120 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:169-194 \u2014 \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.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 13 separate duplicated blocks between them, totalling at least 239 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:91\u0060 calls \u0060_normalize_latents\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:163\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":"src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fb4dfd3c6d583d5b2f0b68ef3be9d511d37703f5bd78208cc2d33f7fc5e7e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd.py:878-897 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1078-1097 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 81 separate duplicated blocks between them, totalling at least 1170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd.py:878\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e83dc5f0140781f6e48a2fb3411229dd010c2896c3d3a707e98cb34fbcaf2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:857-876 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:828-847 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 77 separate duplicated blocks between them, totalling at least 1086 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:857\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:848\u0060 calls \u0060to\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:877\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47c5bef3d210764636867883282102b14e62f20a356597315557a24f102f748"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1129-1145 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1122-1141 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py\u0060 and \u0060src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 327 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d8faf49480a96b94909d035e40cd605913843cf0d1cb75c81ab16c30cc0d00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:760-779 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:739-758 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 700 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:760\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6557c337b48e1ceec9327575ea8524e64b722e73806ee0e794fb635540d2b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1089-1108 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1279-1298 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1090 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4345b6811d1b6f7751a38b2461371dbfbd19e886d7ef861ef5b7532a6a74f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): src/diffusers/schedulers/scheduling_ddim_inverse.py:213-232 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:275-293 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim_inverse.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim_inverse.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ebe51bdd9761997615be810b0d069bc1a2d21cbe4b50fd7279b8bc45daa7d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/schedulers/scheduling_deis_multistep.py:177-196 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:255-274 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_sde.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fc4b6120a3be438b9225c34b01650aff150d163ec8bfc035ce489beb4f21c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:304-323 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:240-259 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9ac61e03e23869cbb4a21e1f0d03881a70fcc5734ca7ff4eed2aea51d6d7bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:634-653 | src/diffusers/schedulers/scheduling_unipc_multistep.py:999-1018 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_helios.py\u0060 and \u0060src/diffusers/schedulers/scheduling_unipc_multistep.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_helios.py:634\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8cdad6c212a7cbc84466c798a2ffcf58087b60cd9319f99511d65c0b3c5996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:272-291 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:272-291 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bfa76d7836f4d2182d1cd11c61f4f601338d5ad32e4279277fadd98f36c034"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:642-661 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:621-640 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cbf8d4e554c4f0c85926f3694b0c7868e76ec9b530caf9324e45ee2e3e87d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/schedulers/scheduling_lcm.py:499-518 | src/diffusers/schedulers/scheduling_tcd.py:536-555 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_lcm.py\u0060 and \u0060src/diffusers/schedulers/scheduling_tcd.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 434 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_lcm.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"1509a6f581fd0891698b6ba45f40ecf39c3061307b914712197b77148c25ff3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 175): examples/community/matryoshka.py:171-189 | examples/community/mixture_tiling_sdxl.py:255-273 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:165-183 | examples/community/pipeline_flux_differential_img2img.py:144-162 | examples/community/pipeline_flux_kontext_multiple_images.py:161-179 | examples/community/pipeline_flux_rf_inversion.py:138-156 | examples/community/pipeline_flux_semantic_guidance.py:135-153 | examples/community/pipeline_flux_with_cfg.py:114-132 | examples/community/pipeline_hunyuandit_differential_img2img.py:212-230 | examples/community/pipeline_kolors_differential_img2img.py:114-132 | examples/community/pipeline_kolors_inpainting.py:286-304 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:115-133 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:149-167 | examples/community/pipeline_stg_cogvideox.py:173-191 | examples/community/pipeline_stg_hunyuan_video.py:177-195 | examples/community/pipeline_stg_ltx.py:168-186 | examples/community/pipeline_stg_ltx_image2video.py:173-191 | examples/community/pipeline_stg_mochi.py:172-190 | examples/community/pipeline_z_image_differential_img2img.py:128-146 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:159-177 | examples/community/regional_prompting_stable_diffusion.py:1639-1657 | examples/community/stable_diffusion_xl_controlnet_reference.py:122-140 | examples/community/stable_diffusion_xl_reference.py:111-129 | examples/research_projects/anytext/anytext.py:1159-1177 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:220-238 | src/diffusers/modular_pipelines/anima/before_denoise.py:36-54 | src/diffusers/modular_pipelines/flux/before_denoise.py:64-82 | src/diffusers/modular_pipelines/flux2/before_denoise.py:83-101 | src/diffusers/modular_pipelines/flux3/before_denoise.py:64-82 | src/diffusers/modular_pipelines/hunyuan_video1_5/before_denoise.py:66-84 | src/diffusers/modular_pipelines/ltx/before_denoise.py:77-95 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:85-103 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:74-92 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:78-96 | src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:76-94 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:78-96 | src/diffusers/modular_pipelines/wan/before_denoise.py:158-176 | src/diffusers/modular_pipelines/z_image/before_denoise.py:158-176 | src/diffusers/pipelines/allegro/pipeline_allegro.py:116-134 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:182-200 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:153-171 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:171-189 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:95-113 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:143-161 | src/diffusers/pipelines/chroma/pipeline_chroma.py:122-140 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:134-152 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:141-159 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:119-137 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:126-144 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:118-136 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:127-145 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:90-108 | src/diffusers/pipelines/consisid/pipeline_consisid.py:208-226 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:134-152 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:152-170 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:147-165 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:115-133 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:138-156 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:115-133 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:120-138 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:112-130 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:139-157 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:125-143 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:153-171 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:135-153 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:130-148 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:127-145 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:106-124 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:158-176 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:260-278 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:302-320 | src/diffusers/pipelines/flux/pipeline_flux.py:118-136 | src/diffusers/pipelines/flux/pipeline_flux_control.py:131-149 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:150-168 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:176-194 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:149-167 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:144-162 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:146-164 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:125-143 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:141-159 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:138-156 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:148-166 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:172-190 | src/diffusers/pipelines/flux2/pipeline_flux2.py:209-227 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:113-131 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:148-166 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:113-131 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:131-149 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:132-150 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:96-114 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:127-145 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:116-134 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:210-228 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:178-196 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:138-156 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:165-183 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:101-119 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_sr.py:97-115 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:136-154 | src/diffusers/pipelines/kolors/pipeline_kolors.py:95-113 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:114-132 | src/diffusers/pipelines/krea2/pipeline_krea2.py:106-124 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:100-118 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:105-123 | src/diffusers/pipelines/latte/pipeline_latte.py:112-130 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:177-195 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:176-194 | src/diffusers/pipelines/ltx/pipeline_ltx.py:115-133 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:183-201 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:120-138 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:154-172 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:211-229 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:188-206 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:206-224 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:174-192 | src/diffusers/pipelines/lumina/pipeline_lumina.py:107-125 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:108-126 | src/diffusers/pipelines/mochi/pipeline_mochi.py:110-128 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:120-138 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:129-147 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:104-122 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:91-109 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:101-119 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:140-158 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:157-175 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:100-118 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:116-134 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:119-137 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:129-147 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:108-126 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:124-142 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:124-142 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:156-174 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:144-162 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:163-181 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:176-194 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:213-231 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:157-175 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:104-122 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:164-182 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:137-155 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:113-131 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:114-132 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:116-134 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:106-124 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:109-127 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:121-139 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:106-124 | src/diffusers/pipelines/sana/pipeline_sana.py:161-179 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:168-186 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:112-130 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:118-136 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:158-176 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:134-152 | src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:78-96 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:147-165 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:126-144 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:154-172 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:100-118 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:120-138 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:140-158 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:139-157 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:142-160 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:160-178 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:187-205 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:105-123 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:163-181 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:185-203 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:132-150 | src/diffusers/pipelines/z_image/pipeline_z_image.py:109-127 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:160-178 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:160-178 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:121-139 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:137-155 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:110-128 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 175 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 175 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba66c21ba66c966c60d8cf211fa745027bbf27c86ea8e774c64bbb448cfca03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 60): examples/community/fresco_v2v.py:1513-1531 | examples/community/ip_adapter_face_id.py:580-598 | examples/community/latent_consistency_interpolate.py:377-395 | examples/community/llm_grounded_diffusion.py:1330-1348 | examples/community/pipeline_animatediff_controlnet.py:294-312 | examples/community/pipeline_animatediff_img2video.py:411-429 | examples/community/pipeline_animatediff_ipex.py:265-283 | examples/community/pipeline_prompt2prompt.py:348-366 | examples/community/pipeline_stable_diffusion_boxdiff.py:683-701 | examples/community/pipeline_stable_diffusion_pag.py:649-667 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:289-307 | examples/community/regional_prompting_stable_diffusion.py:627-645 | examples/community/stable_diffusion_reference.py:508-526 | examples/research_projects/anytext/anytext.py:1456-1474 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:418-436 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:250-268 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:295-313 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:304-322 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:352-370 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:383-401 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:394-412 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:372-390 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:378-396 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:423-441 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:451-469 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:328-346 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:239-257 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:312-330 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:392-410 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:518-536 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:316-334 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:347-365 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:408-426 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:379-397 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:307-325 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:384-402 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:355-373 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:288-306 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:285-303 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:503-521 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:255-273 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:290-308 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:912-930 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:460-478 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:337-355 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:322-340 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:371-389 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:347-365 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:400-418 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:261-279 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:395-413 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:430-448 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:428-446 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:300-318 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:454-472 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:408-426 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:313-331 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:393-411 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:355-373 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:407-425 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1513\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"be06fa4457abd5527145f1eb1083a03e07e8a60865cadab3dfc11b541b6f6f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 38): examples/community/fresco_v2v.py:1396-1414 | examples/community/ip_adapter_face_id.py:464-482 | examples/community/llm_grounded_diffusion.py:1211-1229 | examples/community/pipeline_prompt2prompt.py:229-247 | examples/community/pipeline_stable_diffusion_boxdiff.py:567-585 | examples/community/pipeline_stable_diffusion_pag.py:534-552 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:172-190 | examples/community/stable_diffusion_reference.py:391-409 | examples/research_projects/anytext/anytext.py:1339-1357 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:301-319 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:277-295 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:255-273 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:261-279 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:307-325 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:335-353 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:211-229 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:275-293 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:401-419 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:199-217 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:291-309 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:262-280 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:190-208 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:267-285 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:238-256 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:171-189 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:168-186 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:386-404 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:138-156 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:173-191 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:343-361 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:312-330 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:183-201 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:337-355 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:291-309 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:196-214 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:276-294 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:183-201 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:290-308 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf6dd4833a71767ee25c3873cf3e0d6e9d0352407681e13ee664b157ac8055d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201319 lines \u00D7 32): examples/community/pipeline_hunyuandit_differential_img2img.py:599-614 | examples/community/pipeline_stg_ltx.py:425-437 | examples/community/pipeline_stg_ltx_image2video.py:449-461 | examples/community/pipeline_stg_mochi.py:432-444 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:524-538 | src/diffusers/pipelines/allegro/pipeline_allegro.py:415-429 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:210-224 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:527-542 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:498-513 | src/diffusers/pipelines/ltx/pipeline_ltx.py:399-411 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:491-503 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:423-435 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:498-510 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:551-563 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:312-324 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:328-340 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:573-585 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:504-516 | src/diffusers/pipelines/lumina/pipeline_lumina.py:434-448 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:405-419 | src/diffusers/pipelines/mochi/pipeline_mochi.py:370-382 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:404-418 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:509-524 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:389-403 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:396-410 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:501-515 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:446-460 | src/diffusers/pipelines/sana/pipeline_sana.py:472-486 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:487-501 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:495-509 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:497-511 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:319-337 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 32 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 32 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:599\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"6723fa67c226df360c7cf019b6bb9b3f90f28c0a337ec595bbd072d714cbe16e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 29): examples/community/composable_stable_diffusion.py:148-165 | examples/community/instaflow_one_step.py:168-185 | examples/community/ip_adapter_face_id.py:250-267 | examples/community/llm_grounded_diffusion.py:395-412 | examples/community/lpw_stable_diffusion.py:555-571 | examples/community/pipeline_fabric.py:166-184 | examples/community/pipeline_prompt2prompt.py:190-207 | examples/community/pipeline_stable_diffusion_boxdiff.py:476-493 | examples/community/pipeline_stable_diffusion_pag.py:443-460 | examples/community/pipeline_zero1to3.py:167-184 | examples/community/stable_diffusion_ipex.py:164-181 | examples/community/stable_diffusion_mega.py:73-88 | examples/community/stable_diffusion_tensorrt_img2img.py:769-786 | examples/community/stable_diffusion_tensorrt_inpaint.py:773-790 | examples/community/stable_diffusion_tensorrt_txt2img.py:685-702 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:269-286 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:297-314 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:362-379 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:142-159 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:229-246 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:200-217 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:384-401 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:275-292 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:270-287 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:302-319 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:274-291 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:146-163 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:120-137 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:298-315 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 297 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/composable_stable_diffusion.py:148\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: \u0060FrozenDict\u0060 names \u0060....configuration_utils\u0060 in one and \u0060...configuration_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2918f2c02d6594c4a91b51bda80d18655e29e306fc4548c81ff709a5a4a50914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 19): examples/community/adaptive_mask_inpainting.py:1000-1017 | examples/community/pipeline_demofusion_sdxl.py:836-854 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:598-614 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1113-1131 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1451-1469 | examples/community/stable_diffusion_controlnet_img2img.py:730-747 | examples/community/stable_diffusion_controlnet_inpaint.py:863-880 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:857-874 | examples/community/stable_diffusion_controlnet_reference.py:243-260 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:927-945 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:980-997 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:461-478 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:541-558 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:865-882 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:655-672 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:844-861 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:821-839 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:765-783 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:584-601 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 19 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 19 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:1000\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/adaptive_mask_inpainting.py:1021\u0060 calls \u0060get\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py:877\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6721c025a8d042d6e32d208be5d2cfa379d20b7605086fdd3fe9e11bf8b7ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 17): examples/community/pipeline_flux_kontext_multiple_images.py:284-302 | examples/community/pipeline_flux_rf_inversion.py:239-257 | examples/community/pipeline_flux_semantic_guidance.py:243-261 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:272-290 | src/diffusers/pipelines/flux/pipeline_flux.py:225-243 | src/diffusers/pipelines/flux/pipeline_flux_control.py:237-255 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:248-266 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:287-305 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:249-267 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:260-278 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:252-270 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:246-264 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:250-268 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:271-289 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:304-322 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:210-228 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:203-221 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aabb813b779aad20110d2f1082bd08eef9f89b39e4445d9a8dbcde1286f7caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 16): examples/community/fresco_v2v.py:1853-1871 | examples/community/pipeline_controlnet_xl_kolors.py:607-625 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:682-700 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:733-751 | examples/research_projects/anytext/anytext.py:1765-1783 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:735-753 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:707-725 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:746-764 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:850-868 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:793-811 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:797-815 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:766-784 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:693-711 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:696-714 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:801-819 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:803-821 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 464 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1853}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41a4c1e223d7f357bef5a4e53b916818af6f2cc6b81923c15db0873ab59e501"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 16): examples/community/gluegen.py:700-718 | examples/community/ip_adapter_face_id.py:988-1006 | examples/community/pipeline_animatediff_ipex.py:700-717 | examples/community/pipeline_animatediff_ipex.py:881-898 | examples/community/pipeline_stable_diffusion_pag.py:1252-1270 | examples/community/regional_prompting_stable_diffusion.py:962-980 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:854-872 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:912-929 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:816-833 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:898-916 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:718-735 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:929-946 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1098-1116 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:951-969 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:785-802 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1011-1028 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:700\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":"examples/community/gluegen.py"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1354967f29298bd6c6998e16d030f655b0121fe0e742f925d7b42f1aab75836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 14): examples/community/masked_stable_diffusion_xl_img2img.py:221-238 | examples/community/pipeline_kolors_inpainting.py:1348-1366 | examples/community/pipeline_sdxl_style_aligned.py:1598-1616 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1902-1920 | examples/community/pipeline_stable_diffusion_xl_ipex.py:945-963 | examples/community/stable_diffusion_xl_reference.py:547-565 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1096-1114 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1466-1484 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1071-1089 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1238-1255 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1365-1383 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1068-1086 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1230-1247 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1372-1390 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:221\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4212b59df61d98ebbf56d1650724056bba530c52d9c957f3fd56b175d5b59a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 14): examples/community/pipeline_controlnet_xl_kolors.py:1212-1229 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1415-1433 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1735-1753 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1311-1328 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1728-1745 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:973-990 | examples/community/pipeline_stable_diffusion_xl_instantid.py:962-979 | examples/community/stable_diffusion_xl_controlnet_reference.py:1214-1231 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1748-1765 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1469-1486 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1528-1545 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1762-1779 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1486-1503 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1578-1595 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64de95bf3de14f1b9799ee2a19c0346cc1f0c9e4510e2b557c434555d547303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 13): examples/community/masked_stable_diffusion_xl_img2img.py:227-244 | examples/community/pipeline_sdxl_style_aligned.py:1604-1622 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1908-1926 | examples/community/pipeline_stable_diffusion_xl_ipex.py:951-969 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1102-1120 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1481-1499 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1472-1490 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1077-1095 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1244-1261 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1371-1389 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1074-1092 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1236-1253 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1378-1396 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 348 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:227\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1477\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py:224\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":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ece84c10b147d3ef2be299add6ad0b733db747f8c76d0f8fc49a763d9106cd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 11): examples/community/fresco_v2v.py:1963-1981 | examples/community/rerender_a_video.py:540-558 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:815-833 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:664-682 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:159-177 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:130-148 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:258-276 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:512-530 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:661-679 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:497-515 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:737-755 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/rerender_a_video.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a6e8e1aaf74182a897be6a832806f110fd6dfca741dfcbc4a06e86fa447698"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 11): examples/community/lpw_stable_diffusion_xl.py:1595-1613 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1983-2001 | examples/community/pipeline_kolors_differential_img2img.py:973-991 | examples/community/pipeline_stable_diffusion_xl_ipex.py:912-930 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1216-1234 | examples/community/stable_diffusion_xl_reference.py:502-520 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1120-1138 | src/diffusers/pipelines/kolors/pipeline_kolors.py:821-839 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:972-990 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:847-865 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1032-1050 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 832 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1120\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"972848487963b926cb235781ddb757a024144fa0d93257d0651deb44b6e9ea29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 11): examples/community/pipeline_flux_kontext_multiple_images.py:1115-1133 | examples/community/pipeline_flux_semantic_guidance.py:1100-1118 | src/diffusers/pipelines/chroma/pipeline_chroma.py:822-840 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:907-925 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1075-1093 | src/diffusers/pipelines/flux/pipeline_flux.py:865-883 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1059-1077 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:963-981 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1119-1137 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1003-1021 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1312-1330 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1138\u0060 calls \u0060set_begin_index\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1080\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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5328858870908fed2c9d8f1fc3322f49d95047debc874cb7ab142a34894f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 11): examples/community/regional_prompting_stable_diffusion.py:1001-1019 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:892-910 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:943-961 | src/diffusers/pipelines/kolors/pipeline_kolors.py:882-900 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:910-928 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:959-977 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1107-1125 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:993-1011 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1105-1123 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:855-873 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1139-1157 \u2014 before extracting anything, compare \u0060examples/community/regional_prompting_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py\u0060 as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 933 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/regional_prompting_stable_diffusion.py"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc74edb141d54a75029604d7411d24a49680894f580d5fd80750552e79e1ef82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 10): examples/community/hd_painter.py:490-508 | examples/community/ip_adapter_face_id.py:945-963 | examples/community/latent_consistency_interpolate.py:757-775 | examples/community/pipeline_stable_diffusion_pag.py:1203-1221 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1837-1855 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:678-696 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:812-830 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:866-884 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:918-936 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:743-761 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccf0b9d10eb7fbe5c899941f0ecb147ac47412350bb6e5bec284cee206a6dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 10): examples/community/pipeline_hunyuandit_differential_img2img.py:910-928 | examples/community/pipeline_kolors_differential_img2img.py:1001-1018 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:810-826 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:796-814 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:718-736 | src/diffusers/pipelines/kolors/pipeline_kolors.py:847-864 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1000-1017 | src/diffusers/pipelines/mochi/pipeline_mochi.py:568-584 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:760-777 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1118-1134 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:910\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":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"47965d52fb04c6d7a597ecef40139d38d0b8cb90b473b07bcf139c0d989664e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 10): examples/community/pipeline_kolors_inpainting.py:736-753 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1012-1029 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:643-661 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:731-749 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:722-740 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:593-611 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:673-690 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:726-743 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:650-667 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:729-746 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_kolors_inpainting.py:736\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb049a8150b5bb16b49c7189ddd132810506ed5a218eb8855a48d02a711b0a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 10): examples/community/pipeline_prompt2prompt.py:701-718 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1155-1173 | examples/community/stable_diffusion_ipex.py:687-704 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:504-521 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:902-919 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:661-678 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:762-779 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:678-694 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1176-1194 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:370-387 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:899\u0060 calls \u0060cat\u0060 and \u0060examples/community/pipeline_prompt2prompt.py:698\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":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"466f00d9e7787b98f908745ded218d5e186f1bc7956530c2282dd7794aad19f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 9): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1270-1288 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1154-1171 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1163-1181 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1183-1200 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1384-1401 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1216-1233 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1023-1040 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:951-968 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1330-1347 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 667 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4d34bb5ea6c7b4d509e3fda2911f3be8e536b3ae6e2ae41405fa5981c9a6a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 9): examples/community/stable_diffusion_controlnet_img2img.py:151-169 | examples/community/stable_diffusion_controlnet_inpaint.py:249-267 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:204-222 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:225-243 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:203-221 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:206-224 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:233-251 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:207-225 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:242-260 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 931 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e864547850980dcd6faf83e5b2185513727a3822d7ea5c446ef224997753d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 9): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1166-1183 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:971-989 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:931-949 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:752-769 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:960-978 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1244-1262 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1172-1190 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1360-1377 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1574-1591 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_kolors.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 456 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:750\u0060 calls \u0060repeat_interleave\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd.py:929\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b14abab43884a1268419b31d1ac0b7d9201ff18e2b574644d9272e6241165f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 8): examples/community/masked_stable_diffusion_xl_img2img.py:307-322 | examples/community/pipeline_kolors_inpainting.py:1483-1501 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2038-2056 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1221-1238 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1303-1320 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1515-1533 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1295-1312 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1514-1532 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1221\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"2649e27f2548eae83309800aee8c9fa7d1cf88f6d00d728142449ff8a6b29b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 8): examples/community/matryoshka.py:505-523 | examples/community/scheduling_ufogen.py:315-333 | src/diffusers/schedulers/scheduling_ddim.py:358-376 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:302-320 | src/diffusers/schedulers/scheduling_ddim_parallel.py:362-380 | src/diffusers/schedulers/scheduling_ddpm.py:322-340 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:337-355 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:305-323 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060examples/community/scheduling_ufogen.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ac7831c5a42d29b23a77fb6589895e165be4b2af1b5764528d880d9c6a014a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 8): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:553-571 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:680-698 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:667-685 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:848-866 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:708-726 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:646-664 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:790-808 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:712-730 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:553\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff47ad00e514e92d801fd15fdb03396cdb7f7affe18f76d5bfdbcfd5f510bd3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 7): examples/community/fresco_v2v.py:2377-2395 | examples/community/pipeline_animatediff_controlnet.py:1019-1037 | examples/research_projects/anytext/anytext.py:2222-2240 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1000-1018 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1221-1236 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1199-1217 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1367-1385 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2377\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2377}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe90125f7e7482317ed019344b2ecc5122bd9885065183ce03990badb17ff36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 7): examples/community/llm_grounded_diffusion.py:931-948 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:500-518 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:899-916 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:689-706 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:876-893 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:759-776 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:965-983 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 188 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"424c73f80c3f4e915c294537e1960f5afc6c3c12dc2fa1bdb573fc787257d073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): examples/community/adaptive_mask_inpainting.py:771-789 | examples/community/stable_diffusion_tensorrt_inpaint.py:898-916 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:886-904 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:837-855 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:755-773 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:731-749 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a30d54b2d4becfba406d9900842f77acf0f62df74513c88e2ad1d2a32b9f973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): examples/community/ip_adapter_face_id.py:968-986 | examples/community/matryoshka.py:4392-4410 | examples/community/regional_prompting_stable_diffusion.py:942-960 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:890-908 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:942-960 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:931-949 \u2014 before extracting anything, compare \u0060examples/community/ip_adapter_face_id.py\u0060 and \u0060examples/community/matryoshka.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 564 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/ip_adapter_face_id.py:968\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea74ff9b73cc672fd1d106deccf0d3d273f7692d4516a80597b35fb1b5478c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 6): examples/community/scheduling_ufogen.py:412-429 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:394-412 | src/diffusers/schedulers/scheduling_ddpm.py:508-522 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:523-537 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:632-646 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:474-492 \u2014 before extracting anything, compare \u0060examples/community/scheduling_ufogen.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/scheduling_ufogen.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fece7b2a028941e394c29cc680aa281f2a450549c957c1fd7b76c04d19f2fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): examples/community/stable_diffusion_xl_controlnet_reference.py:720-738 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1195-1213 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1352-1370 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1348-1366 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1137-1155 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1337-1355 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 659 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:720\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e136e6d92844325cbd8b53abe3d84b88fabfec01dd478980fa9b2b81a24241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:576-594 | scripts/convert_gligen_to_diffusers.py:340-358 | scripts/convert_original_audioldm_to_diffusers.py:456-474 | scripts/convert_original_musicldm_to_diffusers.py:452-470 | scripts/convert_zero123_to_diffusers.py:424-442 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:574-592 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:576\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe60c56383891184020d05bc5ff052950433c69bd1ab1daf5a96a995214cc16b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201333 lines \u00D7 6): src/diffusers/models/transformers/transformer_chronoedit.py:230-262 | src/diffusers/models/transformers/transformer_helios.py:222-254 | src/diffusers/models/transformers/transformer_skyreels_v2.py:231-259 | src/diffusers/models/transformers/transformer_wan.py:225-257 | src/diffusers/models/transformers/transformer_wan_animate.py:699-731 | src/diffusers/models/transformers/transformer_wan_animate_2.py:380-412 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py:231\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/models/transformers/transformer_chronoedit.py:230\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":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2fea3ab7257b27678b348f656923cc6e1f6b008a1b10cb558ed47d47c04cc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): examples/community/fresco_v2v.py:1829-1847 | examples/community/rerender_a_video.py:463-481 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:683-701 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:722-740 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:672-690 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/rerender_a_video.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b10a9b32c6d6058fd74c220de37d007711aed4ec728764a03edf7f313961d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): examples/community/fresco_v2v.py:2425-2443 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1270-1288 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1245-1263 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1413-1431 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1248-1266 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 as WHOLE FILES: this scan already matched 87 separate duplicated blocks between them, totalling at least 1166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1436\u0060 calls \u0060cat\u0060 and \u0060examples/community/fresco_v2v.py:2447\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2425}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c01e6476de22c8bd562de861c4ca6f871f4fe7c93af0ed5d0bc0d91ff1181d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 5): examples/community/pipeline_flux_differential_img2img.py:575-592 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:610-628 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:633-650 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:600-617 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:669-686 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 789 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:575\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fd7b8d87ea0d390fa2727344f60c44fb1ccc9c8f57702789bb87a066d41976"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 5): scripts/convert_flux_to_diffusers.py:122-138 | scripts/convert_flux_xlabs_ipadapter_to_diffusers.py:56-70 | scripts/convert_ovis_image_to_diffusers.py:74-90 | src/diffusers/loaders/single_file_utils.py:2350-2366 | src/diffusers/loaders/single_file_utils.py:3595-3613 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_flux_xlabs_ipadapter_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/single_file_utils.py:3595\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/convert_flux_to_diffusers.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"13579dedc6d76dbec08505050083fee32e6155c4ba1f29080ea67edacb2289e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 5): src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1032-1048 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1272-1287 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1394-1412 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1264-1279 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1401-1419 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 755 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1394\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4a5fd8717b07f518a338eba30e7f4c97e07042da02e7b929bef62a016817bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1170-1188 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1596-1614 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1177-1195 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1983-2001 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1235-1253 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1170\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"808068e678c18780b3838e499a403bce39321d6fa8deda10ca7e7f7f197826a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:884-902 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:795-813 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:743-761 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:981-999 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1097-1115 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2dbde541be52982339028c65cc96da3306c02c25e830024fc9004ab4648a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1309-1327 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1447-1465 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1476-1494 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1435-1453 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1466 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1447\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":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8a9ecadeadbcb3c161e538ed2cf0c0afe746500ba18078f483b3efbd1d5f00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): examples/community/pipeline_kolors_differential_img2img.py:1082-1100 | src/diffusers/pipelines/kolors/pipeline_kolors.py:903-921 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1077-1095 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:931-949 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a95a1eebf0abfc9979e8f7bc52ff3e6df288b4e7f8c7707ee17cdd69535d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): src/diffusers/models/controlnets/controlnet.py:321-339 | src/diffusers/models/controlnets/controlnet_union.py:272-290 | src/diffusers/models/unets/unet_2d_condition.py:667-685 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:583-601 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_union.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc8dcabc838db27a47cf7cc8211c21682bf289cf8627cfbfd51e0202c229966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): src/diffusers/models/unets/unet_3d_blocks.py:437-455 | src/diffusers/models/unets/unet_3d_blocks.py:568-586 | src/diffusers/models/unets/unet_3d_blocks.py:671-689 | src/diffusers/models/unets/unet_3d_blocks.py:817-835 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_blocks.py:437\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47f1d92c136eddee9fe01ab9d8792cf2472866615af2f340c7476404527cc19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1225-1243 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1673-1691 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2057-2075 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1291-1309 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1225\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"66caa6847ff1c2d37ea3367fc557bb41cf04a6667df93c0685afc9f020feeea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1250-1268 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1149-1167 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:832-850 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1361-1379 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4beb89ab47e7aefdade8b4fb12b0e29fdaefc650087295428ca12559686a0fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:502-520 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:679-697 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:860-878 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:720-738 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9ce25ddceae0dad834527eccbc691fde8ccaad495defc53796a21a04b4f6ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:763-781 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:801-819 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:805-823 | src/diffusers/pipelines/sana/pipeline_sana.py:872-890 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 471 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:763\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3300ed7313276e5886694c95191cbd62a1bdef617c712bb3489361014f4be06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/community/matryoshka.py:1778-1796 | src/diffusers/models/unets/unet_2d_blocks.py:394-412 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:795-813 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_blocks.py:394\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e7ecbaf1054f017370d7334a08f5440a5aba309754228127fb30001c9a59db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/community/pipeline_flux_differential_img2img.py:811-829 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:958-976 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:868-886 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 789 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b5488350d85ac3208dea32931ca45b592d8bee37ad9ae4009e3afbc0b328a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1429-1447 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1515-1533 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1471-1489 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1088 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1429\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_differential_img2img.py"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c2214e577129d7e1ce20c5fba56d5b94858163043524ede9f21f15eb052fea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/community/pipeline_stg_ltx.py:513-531 | src/diffusers/pipelines/ltx/pipeline_ltx.py:487-505 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:793-811 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 759 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1daf287038f2f8c94468850a173542d91c99167ca517d79bcd1d0d424c1250b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/community/pipeline_stg_wan.py:554-572 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:649-667 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:529-547 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 418 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:529\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0f6ff72651cd412db0821d54438558b2bca65eefa127869116de8e6c57e8ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): src/diffusers/loaders/single_file_utils.py:3990-4008 | src/diffusers/loaders/single_file_utils.py:4197-4215 | src/diffusers/loaders/single_file_utils.py:4259-4276 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/loaders/single_file_utils.py:3987\u0060 calls \u0060update_state_dict\u0060, \u0060pop\u0060 and \u0060src/diffusers/loaders/single_file_utils.py:4195\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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":3990}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cc12e107e5ae4b7b61843efbbb255c6fc3db745727276130310b6e74421f3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:940-958 | src/diffusers/models/unets/unet_2d_blocks.py:3143-3161 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2363-2381 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/unets/unet_2d_blocks.py:615\u0060 calls \u0060Tensor\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py:2963\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"8066df850f5251c91a63d0d2b882b20b76dbcbe11efb4a3820e47a13bf659592"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:1052-1069 | src/diffusers/models/unets/unet_2d_blocks.py:2223-2240 | src/diffusers/models/unets/unet_2d_blocks.py:2697-2715 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca46cda4ee27f4c8c5c9566017df9b99d6c4bcfcca3b620d048dc605cacba2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/diffusers/models/unets/unet_dreamlite.py:466-484 | src/diffusers/models/unets/unet_dreamlite.py:612-630 | src/diffusers/models/unets/unet_dreamlite.py:997-1015 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:466\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4243ee5690aba3da9f65c427a270d9778a744f1e0700799d62e7953c7cd8c5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/diffusers/models/unets/unet_dreamlite.py:968-986 | src/diffusers/models/unets/unet_dreamlite.py:1126-1144 | src/diffusers/models/unets/unet_dreamlite.py:1266-1284 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"2daef25b18fbbeb255198ea3e6a5d88a5038db67bbf6c426d2496a1167cd4e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/diffusers/modular_pipelines/flux/inputs.py:146-164 | src/diffusers/modular_pipelines/wan/before_denoise.py:320-338 | src/diffusers/modular_pipelines/z_image/before_denoise.py:332-350 \u2014 before extracting anything, compare \u0060src/diffusers/modular_pipelines/flux/inputs.py\u0060 and \u0060src/diffusers/modular_pipelines/wan/before_denoise.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fc81a7f70194db5428b867ca1231f72e68e2f11d0e603f10582c7aa6e14114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/diffusers/modular_pipelines/modular_pipeline.py:923-941 | src/diffusers/modular_pipelines/modular_pipeline.py:1334-1352 | src/diffusers/modular_pipelines/modular_pipeline.py:1631-1649 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf2235c714da42fb6f641f4617ba2b64d2ecc5174017a357c0f584c26ea4cd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 3): src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:574-592 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:756-772 | src/diffusers/pipelines/latte/pipeline_latte.py:755-772 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:574\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c86757f0ca6e29fd90b896c89c3108330aa9bb8f0405d8f0d902ae3477fe1de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:665-683 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:718-736 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:763-781 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 867 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:665\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ec1c97d16841b1830cc9ca4fa373f6255453ee194595907570f3fe1d6cb6e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:951-969 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:991-1009 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1055-1073 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1082 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bbfec7ee61b274bcd8a9a879efe45b7e7dcf4cd408f9c2d675a8636c34ec2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/diffusers/pipelines/flux/pipeline_flux_control.py:797-815 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:880-898 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1034-1052 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 906 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py:797\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":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db6bd0c2098540cb655a8badaf5beb2f9b04e662cc2ca51c2b973afa3121e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:393-410 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:620-637 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:304-322 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 340 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcf62771c3110e9a85e1eaf844b463821e3d8c4099e3dd69161059eab1fc8e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:550-567 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:798-815 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:585-603 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.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 7 separate duplicated blocks between them, totalling at least 115 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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"af86accaa4a4cd0ab59dc75ed09fec5212a0a0e751e1aa00b6b79a24a7e9c36d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:331-349 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:289-307 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:324-342 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.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 25 separate duplicated blocks between them, totalling at least 336 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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8170af15bc7c8637d51256e590c9177fa7377254bc30486f6077435b917c7c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:768-786 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:871-889 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:810-828 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f781f30b0869bce7a6e4de37c3c55d18424e42164940635948b32f8b5b8af73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 3): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:961-979 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:727-743 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:896-912 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"955b2dd1ded7739a69ba17b09fa56a450ba27f0545c87a0d1c781fe2b3fc80d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/community/hd_painter.py:555-573 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:923-941 \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 \u0060examples/community/hd_painter.py:555\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b407083e249a94f22a2037cf13e0a90c60f352054ce6239c80255f6a533c2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201319 lines \u00D7 3): examples/community/ip_adapter_face_id.py:362-380 | examples/community/ip_adapter_face_id.py:402-420 | src/diffusers/loaders/transformer_flux.py:133-134 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f09e1e7deb845d77208dea66052fc0fd2ce30dd20d64cc2381e3ca5ef2ca427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201319 lines \u00D7 8): examples/community/pipeline_animatediff_controlnet.py:443-461 | examples/community/pipeline_animatediff_img2video.py:560-578 | examples/community/pipeline_animatediff_ipex.py:430-433 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:640-643 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:463-466 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:425-428 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:342-345 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:378-381 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 594 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a96bc8e31676ea01d054cc8600637163e2b8c1a5c2825cb3d2718710ee974cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/community/pipeline_animatediff_ipex.py:906-924 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:578-596 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 493 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc1c5b7e2276f9ef752070e2ca4dad5f717a180d45a71dd81c9de69cfc8eeb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1652-1670 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1552-1570 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1652\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02ac07f5bc01ce511124a3afb1cc344260efd8c7450aa9dd185f856ad318f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): scripts/convert_kandinsky3_unet.py:37-72 | src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py:37-72 \u2014 before extracting anything, compare \u0060scripts/convert_kandinsky3_unet.py\u0060 and \u0060src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py\u0060 as WHOLE FILES: 94% 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 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"scripts/convert_kandinsky3_unet.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4a77ec8bb24bafee02bfa537a165c330d2da20a407baf17a3bbcdc3939a148"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/loaders/lora_base.py:426-444 | src/diffusers/loaders/peft.py:374-392 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"c292f68a61064792c1d573af3bbbcfa1d7a1f0949c1859a1437a59f5e3f6c7a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:501-515 | src/diffusers/models/autoencoders/vae.py:162-180 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ecec3072261c66cbf2510befdf5509e8058c8cefdb6fe600d461679247158f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:902-920 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:891-909 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87774ecb36be10164d44ff687cdc3d259632af1352ddf9cb3a272b653eceea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_flux.py:229-247 | src/diffusers/models/transformers/transformer_flux.py:729-747 \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":"src/diffusers/models/controlnets/controlnet_flux.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f4b1ef2f3b0d221d892afbaf500870f6c500262e2a619bcee3ded22440819c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201319 lines \u00D7 2): src/diffusers/models/embeddings.py:1893-1911 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:250-262 \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":"src/diffusers/models/embeddings.py"},"region":{"startLine":1893}}}],"partialFingerprints":{"codehealthFindingId/v1":"154090338635e47a3912224400d2ab7d23244c14e2dce10bf12e6cee51e7f48c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/diffusers/models/transformers/stable_audio_transformer.py:346-364 | src/diffusers/models/transformers/transformer_ltx.py:559-576 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/stable_audio_transformer.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e59473b5996f92ec4325f392ff9aba2a8cdd3bdce991503653fae864c7e0c89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201319 lines \u00D7 3): src/diffusers/models/transformers/transformer_anyflow.py:91-109 | src/diffusers/models/transformers/transformer_anyflow_far.py:132-135 | src/diffusers/models/transformers/transformer_anyflow_far.py:259-277 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36aeaeb3a87ce3198dffacf387b2cc74062e2ff8bbe03afbc186185cfe1c964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/models/transformers/transformer_bria.py:650-668 | src/diffusers/models/transformers/transformer_ovis_image.py:534-552 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_ovis_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_bria.py:650\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"882f106c3439495f4ceda047b07999d0ba8b472634c6499f618738f4cde5d9b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/models/transformers/transformer_bria_fibo.py:593-611 | src/diffusers/models/transformers/transformer_ovis_image.py:541-559 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 and \u0060src/diffusers/models/transformers/transformer_ovis_image.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 307 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria_fibo.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"17aa34b257cf56e5e35f604ded4b6459fef419a18dd521f9742ab768365108b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/models/transformers/transformer_helios.py:825-843 | src/diffusers/models/transformers/transformer_skyreels_v2.py:732-750 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_helios.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f07aff01878cadbed6c895b7cc29cbd02c4bcb0189b35f97738dffcbf94cd2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3.py:358-376 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:344-362 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1510e66b96115e5f09da5f1b8167f3b440a375288f8afca4149bc25090866af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/models/transformers/transformer_motif_video.py:543-561 | src/diffusers/models/transformers/transformer_motif_video.py:649-667 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_motif_video.py:543\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_motif_video.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe00bcdf9581065edf8792b571b2291754caeccda0a4f9405f85cd8239d23be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:2013-2031 | src/diffusers/models/unets/unet_2d_blocks.py:2089-2107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"96cda8574def5811a76e0bb2a4ce6f43c95ca7865369fc69e6ceab1ae350adb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:3019-3037 | src/diffusers/models/unets/unet_dreamlite.py:1272-1287 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:1272\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":3019}}}],"partialFingerprints":{"codehealthFindingId/v1":"6980b209ff181745ac10c33c3f00c245513101bd30f100489ec80e4355ffe3f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/diffusers/models/unets/unet_3d_condition.py:159-177 | src/diffusers/models/unets/unet_motion_model.py:1301-1318 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_condition.py\u0060 and \u0060src/diffusers/models/unets/unet_motion_model.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 377 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_condition.py:159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"25264e495a3b258d9483d8efbd8e87c375bc7f65861c49260d010cf92ba95293"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/diffusers/models/unets/unet_3d_condition.py:577-595 | src/diffusers/models/unets/unet_i2vgen_xl.py:576-593 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_condition.py\u0060 and \u0060src/diffusers/models/unets/unet_i2vgen_xl.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_condition.py:577\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"065648c3ceefef7af188d6427394e96b38a2dbbb12ec0a28f0840997682216f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/models/unets/unet_i2vgen_xl.py:488-506 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:324-342 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_i2vgen_xl.py\u0060 and \u0060src/diffusers/models/unets/unet_spatio_temporal_condition.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_i2vgen_xl.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db1023c872217ae858f9dc68eca8c2568b899c19119f5306eb145d7499b83c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/modular_pipelines/ltx2/before_denoise.py:695-713 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:1680-1698 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4a47fd0be6b44388ad327fd4fa0b54bd2698b16b7d07d2ed24a9f55f729a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:1109-1127 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:1117-1135 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.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 22 separate duplicated blocks between them, totalling at least 634 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. 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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f3275f7e887ee5470e3ec9053c2d39ecbe0c676cea9f3196f4df16ff82a3a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:803-821 | src/diffusers/modular_pipelines/modular_pipeline.py:1237-1255 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"9baa9208c2e8317da1cb881c888fd9f88ddedd251b0eb34d093c8b819b92f943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:2819-2836 | src/diffusers/pipelines/pipeline_utils.py:580-598 \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 \u0060src/diffusers/pipelines/pipeline_utils.py:580\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2819}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebaf2d4989e0eb8296df20fa1125a6d45cd79370595b75374678abdd83168a35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:202-220 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:323-341 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/qwenimage/before_denoise.py:202\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"238e840b8b79ff705eddc8cd9c5ac4910be5683411f21ef6307287d0bdacebc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:1307-1324 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1590-1608 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060QwenImageModularPipeline\u0060 in one and \u0060StableDiffusionXLModularPipeline\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":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8df91f6be3c7d3c1fb36c12c760fad5523babcbfc1d1ac083db033ae16292d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1558-1576 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1789-1807 \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":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"2880b09abd6a1d2f8836e206718c2321535efe472f6d5d6f38b4d94ba2407634"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/allegro/pipeline_allegro.py:785-803 | src/diffusers/pipelines/latte/pipeline_latte.py:725-743 \u2014 \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 and \u0060src/diffusers/pipelines/latte/pipeline_latte.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 38 separate duplicated blocks between them, totalling at least 495 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:785\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8ccc21e82b066280a505c09d46a002addcb3d4d6d328c1c78e77caaa49217b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:608-626 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:761-779 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea8993fa3763a062087f4056f3eb55e9ea0154876db531ac528a69f5f79e74b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:563-581 | src/diffusers/pipelines/latte/pipeline_latte.py:765-783 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py\u0060 and \u0060src/diffusers/pipelines/latte/pipeline_latte.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 356 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:563\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a694340df64c806dbf96577467f85ea4b75e872c1b1ae3b63cf88a35eb57b6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:185-219 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:188-222 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"3857214973f4da4532c8b20d646931264d9e819d4138344ea7d50be099208e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:591-609 | src/diffusers/pipelines/flux/pipeline_flux_control.py:726-744 \u2014 \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control.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 11 separate duplicated blocks between them, totalling at least 124 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:591\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6dd90bc1d13dfc27141fc9da71bf0f33d864eee6a13f37cc4530822bd3b9cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1303-1321 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1429-1447 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1422 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1303\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"571e842b30a013c42a0a9856e71321266b466808dc7bf1f251193ab70f875753"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:944-962 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:823-841 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 and \u0060src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py\u0060 as WHOLE FILES: this scan already matched 69 separate duplicated blocks between them, totalling at least 1126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:944\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a7a9d524d8ad3e21c9910504ed5f0e52819e2fb01f422d2412466a60226848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:387-405 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:359-377 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:387\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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a3dc472f2972875f508f505298ee87fa5fb6dac43b21df194a7b5bab11dc8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:177-195 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:219-237 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 549 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bdcd907b15717c4bbb4bf1ae9ecf373dac619974db171cf74ad4b033e05aa47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:921-939 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:980-998 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1097 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:921\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8adb75d7d6dcf875a3b32eaf940830d238ca3d776bb46b95cd3d7d27a51563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py:89-107 | src/diffusers/pipelines/stable_diffusion/safety_checker.py:107-125 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/safety_checker.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"85322fbcfe835aa2513621d182e6edbc3d51a28cde92fcf675f67e4268f5189f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:459-477 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:487-505 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2902de03cc813b114314a1fb15e2ff467ab0fa97bf958c179318df6db65785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:753-771 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:853-871 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:851\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:751\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"4edef4e087fc134be07842837a8fb9bfaae7a255d055032e33961c476d657436"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:728-746 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:753-771 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"231eae22cddce1d70592281c7eef280dfce5b14c13d7de45b1af4afea01057b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1037-1054 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1541-1559 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"130695370e586abc5643972f6e4e52a41b63abe390663f6c90369026181093dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:523-541 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:818-836 \u2014 \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.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 40 separate duplicated blocks between them, totalling at least 478 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:523\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":"src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"162b61f25119ec5f17176fb5bfff8b5f368d7958477333c1538d2aed992342b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1343-1361 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2217-2235 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 903 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2d2ffc84f71771531dc7040cc6576c1b578d55d522d4dfea9d850dfb55b68a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/motif_video/pipeline_motif_video.py:195-213 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:205-223 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py\u0060 and \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 712 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py:195\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b9f43ba9c22708f0d873201bc5bd09b5489ec8ba88fb6df6bc5ee31ccb60fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/motif_video/pipeline_motif_video.py:456-474 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:584-602 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py\u0060 and \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 712 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"559deb12a99189e1e7425b63f41def48c8fa9667b22c44055b36adf7a49f7297"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1411-1427 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1546-1564 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 925 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1411\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"669dfd7a87917e0467431c6d31be64eba68cbbf87aab59350e98b0ce0d021552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:702-719 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:740-758 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 471 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:702\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2d494880d3b286c955c852237e261d0dc51278dc3ac0b7d2dd365ceab5face"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:660-678 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:676-694 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py\u0060 as WHOLE FILES: this scan already matched 76 separate duplicated blocks between them, totalling at least 1190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:660\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"b242ee26b563d1039f5fb7fb3005c75077f75176683074cfed66ce000cca4f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:929-947 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:858-876 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 986 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4b2e4d77a9eaa783207700767743472731f6e186604206faa3d400299a478a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201319 lines \u00D7 3): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:713-729 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:754-772 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:520-521 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 77 separate duplicated blocks between them, totalling at least 1086 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:713\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3c3c0885bb0851b114a250b711d55b0bb9ec222a05539e08a0e0558feafe78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201319 lines \u00D7 3): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:730-748 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:774-790 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:522-524 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 77 separate duplicated blocks between them, totalling at least 1086 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:730\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"282b2de0661b0061f87b05def4110d6b874cbc0b57f1aae5bc237cfed9eb84e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:797-815 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:775-793 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 77 separate duplicated blocks between them, totalling at least 1086 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:797\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7354ff1c609525ef89acc41a7f8f3508faba6a898d5dac4db2ec8cc2901820b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:232-250 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:243-261 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 786 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:232\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cba56d3a850dd39dcc39accc614b3cdc3d5d3cce8210391d4214c2eda7c93b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1066-1083 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:994-1012 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1063 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1066\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b448e88ecbc51e0a3f0ec348e93a9169a4fb22b63d8bcd4e1b8fe05e87720f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:660-678 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:658-675 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_video2video.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 488 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:660\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca5b28359a455c5805c457b1605f432d2e1d4836c15960199a3707b5bff534e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:673-689 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1102-1120 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_animate.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:673\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":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31eae4b63831780e533b489f2810cedd11183ee05fafd3f0a3d6b950c93ef21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/diffusers/pipelines/wan/pipeline_wan_vace.py:525-543 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:588-605 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_vace.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"5931b0e11eea3033da9f13793d0527c77c2fd8f53a4013ba49d6ce17abdfd81f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:101-117 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:129-147 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 484 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca530361fceff99ad003b295e4b3e9bf5427d669f0e83e959ad3afc14780194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:800-816 | src/diffusers/schedulers/scheduling_unipc_multistep.py:1202-1220 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_helios.py\u0060 and \u0060src/diffusers/schedulers/scheduling_unipc_multistep.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_helios.py:800\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73af29c26c8216f1226c923abb0e73cbe3b1d890b72f9f93093368131a1bd9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 64): examples/community/adaptive_mask_inpainting.py:538-555 | examples/community/fresco_v2v.py:1472-1489 | examples/community/instaflow_one_step.py:271-288 | examples/community/ip_adapter_face_id.py:539-556 | examples/community/latent_consistency_interpolate.py:336-353 | examples/community/llm_grounded_diffusion.py:1287-1304 | examples/community/pipeline_animatediff_controlnet.py:253-270 | examples/community/pipeline_animatediff_img2video.py:370-387 | examples/community/pipeline_animatediff_ipex.py:224-241 | examples/community/pipeline_fabric.py:235-252 | examples/community/pipeline_prompt2prompt.py:305-322 | examples/community/pipeline_stable_diffusion_boxdiff.py:642-659 | examples/community/pipeline_stable_diffusion_pag.py:608-625 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:248-265 | examples/community/regional_prompting_stable_diffusion.py:586-603 | examples/community/stable_diffusion_ipex.py:348-365 | examples/community/stable_diffusion_reference.py:467-484 | examples/community/stable_diffusion_repaint.py:321-338 | examples/research_projects/anytext/anytext.py:1415-1432 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:377-394 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:209-226 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:254-271 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:263-280 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:311-328 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:342-359 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:353-370 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:331-348 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:337-354 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:382-399 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:410-427 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:287-304 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:271-288 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:351-368 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:477-494 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:275-292 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:306-323 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:367-384 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:338-355 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:266-283 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:343-360 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:314-331 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:247-264 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:244-261 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:462-479 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:214-231 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:249-266 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:871-888 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:296-313 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:281-298 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:330-347 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:306-323 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:359-376 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:220-237 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:354-371 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:389-406 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:387-404 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:259-276 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:413-430 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:367-384 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:533-550 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:272-289 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:352-369 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:314-331 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:366-383 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 64 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 64 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0004361d143c546eb425763c34ea51d65075811ba164899984eec2c4fb1e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 33): examples/community/adaptive_mask_inpainting.py:426-442 | examples/community/composable_stable_diffusion.py:142-158 | examples/community/instaflow_one_step.py:162-178 | examples/community/ip_adapter_face_id.py:244-260 | examples/community/llm_grounded_diffusion.py:389-405 | examples/community/lpw_stable_diffusion.py:549-565 | examples/community/matryoshka.py:3731-3747 | examples/community/pipeline_fabric.py:160-177 | examples/community/pipeline_prompt2prompt.py:184-200 | examples/community/pipeline_stable_diffusion_boxdiff.py:470-486 | examples/community/pipeline_stable_diffusion_pag.py:437-453 | examples/community/pipeline_zero1to3.py:161-177 | examples/community/stable_diffusion_ipex.py:158-174 | examples/community/stable_diffusion_reference.py:191-207 | examples/community/stable_diffusion_repaint.py:246-262 | examples/community/stable_diffusion_tensorrt_img2img.py:763-779 | examples/community/stable_diffusion_tensorrt_inpaint.py:767-783 | examples/community/stable_diffusion_tensorrt_txt2img.py:679-695 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:263-279 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:291-307 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:356-372 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:136-152 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:223-239 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:194-210 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:378-394 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:269-285 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:264-280 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:296-312 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:267-284 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:140-156 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:114-130 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:292-308 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:239-255 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:426\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: \u0060FrozenDict\u0060 names \u0060....configuration_utils\u0060 in one and \u0060...configuration_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/adaptive_mask_inpainting.py:446\u0060 calls \u0060info\u0060 and \u0060examples/community/composable_stable_diffusion.py:160\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"090ad3ac626ba639fd3acc3ebe344b19705740eb4f3fe2fca27ae079ac38385b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 31): examples/community/lpw_stable_diffusion_xl.py:801-818 | examples/community/mixture_tiling_sdxl.py:484-501 | examples/community/mod_controlnet_tile_sr_sdxl.py:491-508 | examples/community/pipeline_demofusion_sdxl.py:265-282 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1363-1380 | examples/community/pipeline_sdxl_style_aligned.py:604-621 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:790-807 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:337-354 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:484-501 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:364-381 | examples/community/pipeline_stable_diffusion_xl_ipex.py:364-381 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:398-415 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:423-440 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:387-404 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:395-412 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:387-404 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:376-393 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:387-404 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:406-423 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:319-336 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:681-698 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:402-419 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:392-409 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:389-406 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:407-424 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:497-514 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:379-396 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:397-414 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:501-518 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:303-320 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:407-424 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:801\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/mixture_tiling_sdxl.py:481\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/lpw_stable_diffusion_xl.py:799\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed78196f1edee463018c0611338970fae31df053c5cf953208cd70ae2d7302e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 29): examples/community/mixture_tiling_sdxl.py:604-620 | examples/community/mod_controlnet_tile_sr_sdxl.py:611-627 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1479-1495 | examples/community/pipeline_sdxl_style_aligned.py:723-739 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:906-922 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:456-472 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:603-619 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:483-499 | examples/community/pipeline_stable_diffusion_xl_ipex.py:483-499 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:516-532 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:545-561 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:509-525 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:517-533 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:509-525 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:498-514 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:509-525 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:528-544 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:441-457 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:803-819 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:590-607 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:524-540 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:514-530 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:511-527 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:529-545 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:619-635 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:501-517 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:519-535 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:623-639 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:529-545 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"783bf489f5f4fab997cd0f0f4667eb70a82ccf9b220b833e8e3c9836c120ab76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 21): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:648-665 | src/diffusers/pipelines/allegro/pipeline_allegro.py:498-515 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:468-485 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:512-529 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:265-282 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:552-569 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:267-284 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:223-240 | src/diffusers/pipelines/latte/pipeline_latte.py:485-502 | src/diffusers/pipelines/lumina/pipeline_lumina.py:517-534 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:472-489 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:479-496 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:584-601 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:529-546 | src/diffusers/pipelines/prx/pipeline_prx.py:134-149 | src/diffusers/pipelines/sana/pipeline_sana.py:555-572 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:570-587 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:446-463 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:470-487 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:578-595 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:580-597 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"24df54096672ea54c81fbc160b318792551565a3b5055a8a9e69b8be40a8adb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 20): examples/community/adaptive_mask_inpainting.py:996-1013 | examples/community/pipeline_demofusion_sdxl.py:832-849 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:594-610 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1109-1126 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1447-1464 | examples/community/stable_diffusion_controlnet_img2img.py:726-743 | examples/community/stable_diffusion_controlnet_inpaint.py:859-876 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:853-870 | examples/community/stable_diffusion_controlnet_reference.py:239-256 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:923-940 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:976-993 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:457-474 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:537-554 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:861-878 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:651-668 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:840-857 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:817-834 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:761-778 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:525-542 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:580-597 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 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 20 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:996\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, \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:456\u0060 calls \u0060check_inputs\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py:808\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"0798b41ddd818431c2474179e3253092366490310e06bc0b51f039d699d2a1dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 20): examples/community/fresco_v2v.py:1822-1839 | examples/community/mod_controlnet_tile_sr_sdxl.py:750-767 | examples/community/pipeline_animatediff_controlnet.py:582-599 | examples/community/pipeline_controlnet_xl_kolors.py:570-587 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:645-662 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:696-713 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:692-709 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:839-856 | examples/community/rerender_a_video.py:456-473 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:688-705 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:583-600 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:710-727 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:676-693 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:715-732 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:813-830 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:756-773 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:760-777 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:665-682 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:764-781 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:766-783 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a9b249df32d93a9398dfa40892da8f62de46d05ba809fe5b459dc1a6010d1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 18): examples/community/pipeline_controlnet_xl_kolors.py:1146-1163 | examples/community/pipeline_kolors_differential_img2img.py:1085-1101 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1244-1260 | examples/community/pipeline_stable_diffusion_xl_instantid.py:912-929 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1002-1018 | examples/community/stable_diffusion_xl_controlnet_reference.py:1146-1163 | examples/community/stable_diffusion_xl_reference.py:996-1012 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1156-1172 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1402-1419 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1397-1414 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:998-1015 | src/diffusers/pipelines/kolors/pipeline_kolors.py:906-922 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1080-1096 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1387-1404 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:934-950 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1134-1150 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1132-1148 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1189-1205 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 415 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"88343741d29744697c62940f8be2c007644831b99ebd008ce87d0177468c24d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 17): examples/community/pipeline_stg_wan.py:195-212 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:145-162 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:162-179 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:194-211 | src/diffusers/pipelines/helios/pipeline_helios.py:163-180 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:181-198 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:205-222 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:163-180 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:184-201 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:189-206 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:245-262 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:193-210 | src/diffusers/pipelines/wan/pipeline_wan.py:166-183 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:243-260 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:207-224 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:212-229 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:230-247 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 323 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py:164\u0060 calls \u0060get_module_execution_device\u0060 and \u0060examples/community/pipeline_stg_wan.py:214\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":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cb09f50ff8860d02dabbf7afaa3c5569846bcc75aeebc10114265231cb7986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 16): src/diffusers/models/autoencoders/autoencoder_kl.py:174-192 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:810-829 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1157-1175 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:186-204 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:781-799 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:503-520 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:707-725 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:745-763 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:606-624 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:325-344 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1237-1254 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:841-859 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:859-877 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:818-835 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1281-1298 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1168-1185 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 16 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25028dd5c5b9033bae17e7b73dfe2a753a0d966b7fdd9a4747f09be253bc3a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 15): examples/community/masked_stable_diffusion_xl_img2img.py:219-235 | examples/community/matryoshka.py:4411-4428 | examples/community/pipeline_kolors_inpainting.py:1346-1363 | examples/community/pipeline_sdxl_style_aligned.py:1596-1613 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1900-1917 | examples/community/pipeline_stable_diffusion_xl_ipex.py:943-960 | examples/community/stable_diffusion_xl_reference.py:545-562 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1094-1111 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1464-1481 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1069-1086 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1236-1252 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1363-1380 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1066-1083 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1228-1244 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1370-1387 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 15 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 15 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:219\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33d3bfaf9a44578e2398417c518ea6cf51b0529210dfccffd9c71151dacb76f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 15): examples/community/matryoshka.py:2697-2714 | src/diffusers/models/autoencoders/autoencoder_kl.py:451-467 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:463-479 | src/diffusers/models/controlnets/controlnet_sd3.py:209-225 | src/diffusers/models/controlnets/controlnet_xs.py:918-934 | src/diffusers/models/transformers/auraflow_transformer_2d.py:370-386 | src/diffusers/models/transformers/cogvideox_transformer_3d.py:336-352 | src/diffusers/models/transformers/hunyuan_transformer_2d.py:321-337 | src/diffusers/models/transformers/pixart_transformer_2d.py:197-213 | src/diffusers/models/transformers/transformer_sd3.py:218-234 | src/diffusers/models/unets/unet_2d_condition.py:823-839 | src/diffusers/models/unets/unet_3d_condition.py:447-463 | src/diffusers/models/unets/unet_i2vgen_xl.py:410-426 | src/diffusers/models/unets/unet_motion_model.py:1852-1868 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:999-1015 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 15 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 15 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_kl.py:469\u0060 calls \u0060set_attn_processor\u0060, \u0060FusedAttnProcessor2_0\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1017\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":"examples/community/matryoshka.py"},"region":{"startLine":2697}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf70f56d466ec05c053ba2f781640e25fb32f336d63c46b70e7a7701d3e2f62c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 14): examples/community/adaptive_mask_inpainting.py:1006-1022 | examples/community/instaflow_one_step.py:597-613 | examples/community/masked_stable_diffusion_img2img.py:118-133 | examples/community/pipeline_animatediff_img2video.py:863-880 | examples/community/pipeline_demofusion_sdxl.py:842-859 | examples/community/pipeline_prompt2prompt.py:672-688 | examples/community/stable_diffusion_reference.py:950-966 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:777-793 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:911-927 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:667-683 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:727-743 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:546-562 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:608-624 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:662-678 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:659\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:1003\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9dcb73fb26abe54bbf81956dc52cb8bd590697cc2f20ef3b05e553b1e9a75e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 12): examples/community/lpw_stable_diffusion_xl.py:1237-1254 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1036-1053 | examples/community/pipeline_kolors_inpainting.py:841-858 | examples/community/pipeline_sdxl_style_aligned.py:1113-1130 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1112-1129 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:695-712 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:634-651 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:757-774 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:976-993 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:954-971 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:833-850 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:834-851 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1237}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3d292372fb749486407dc775a62f4f74f8f86f58373a3e461b6931cfb4d879"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 9): examples/community/pipeline_controlnet_xl_kolors.py:1103-1120 | examples/community/pipeline_stable_diffusion_xl_instantid.py:867-884 | examples/community/stable_diffusion_xl_controlnet_reference.py:725-742 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1190-1207 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1200-1217 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1357-1374 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1353-1370 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1142-1159 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1342-1359 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py:867\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9082a6f6ca13343f5c0da5d7f7277054d8bfc218e7d738b5b4a0975ea042b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 9): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:237-272 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:283-318 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:271-306 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:293-328 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:241-276 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:257-292 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:252-287 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:276-311 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:282-317 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 772 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py:237\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":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"e161d3749f12cb466145166d23e5421714b4314aac4c7783e72d506d882045b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 9): examples/community/stable_diffusion_xl_controlnet_reference.py:651-668 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1498-1514 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1290-1307 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1381-1398 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1489-1505 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1276-1293 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1399-1416 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1275-1292 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1369-1386 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:651\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcfb3f5f006c4153ac8abd73dab794b3d5ff034ef091cd447c4aaa13caddf2f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 8): examples/community/fresco_v2v.py:2303-2320 | examples/community/pipeline_controlnet_xl_kolors.py:1075-1092 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1265-1282 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1477-1494 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:849-866 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1162-1179 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1417-1434 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1423-1440 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 464 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2303}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d5f23805f77c51bc56a1b0cde3cfb557e26d54e5ee3dd2840d2f0675f3da2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 8): examples/community/gluegen.py:385-402 | examples/community/pipeline_zero1to3.py:284-301 | examples/community/stable_diffusion_controlnet_img2img.py:276-293 | examples/community/stable_diffusion_controlnet_inpaint.py:375-392 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:360-377 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:201-218 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:275-292 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:219-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"114368781b110a0fec7ec3632aec96337f4b92ab232c0ce54de2f5b51bb8e0ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 8): examples/community/latent_consistency_img2img.py:567-584 | examples/community/latent_consistency_txt2img.py:479-496 | examples/community/matryoshka.py:399-416 | examples/community/scheduling_ufogen.py:220-236 | src/diffusers/schedulers/scheduling_ddim.py:222-239 | src/diffusers/schedulers/scheduling_ddim_parallel.py:228-245 | src/diffusers/schedulers/scheduling_lcm.py:234-251 | src/diffusers/schedulers/scheduling_tcd.py:235-252 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_ddim.py:222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/scheduling_ufogen.py:181\u0060 calls \u0060ceil\u0060 and \u0060examples/community/latent_consistency_img2img.py:532\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":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"7221cb9f0bcde2a04d825dd440caa2b31eb785e9f41e00063ee2ff04518852d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 8): examples/community/pipeline_flux_differential_img2img.py:645-662 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:683-699 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:707-723 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:672-688 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:743-759 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:846-862 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:598-615 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:553-570 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 789 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"769a7c72d54ac4bf932eab8692d08879ec1ab514ef9f87e5d70f8654487254ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 8): examples/community/pipeline_flux_rf_inversion.py:614-631 | examples/community/pipeline_flux_semantic_guidance.py:745-762 | src/diffusers/pipelines/bria/pipeline_bria.py:392-409 | src/diffusers/pipelines/chroma/pipeline_chroma.py:526-543 | src/diffusers/pipelines/flux/pipeline_flux.py:561-578 | src/diffusers/pipelines/flux/pipeline_flux_control.py:513-530 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:607-624 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:418-435 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 667 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_rf_inversion.py:614\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":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"3466ee825d4dfc3e76f5c04041d7b52c584e46a9f63d5d512e764010ba9597a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 8): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:196-213 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:104-121 | scripts/convert_original_audioldm_to_diffusers.py:174-191 | scripts/convert_original_musicldm_to_diffusers.py:174-191 | scripts/convert_unidiffuser_to_diffusers.py:140-157 | scripts/convert_versatile_diffusion_to_diffusers.py:221-238 | scripts/convert_zero123_to_diffusers.py:168-185 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:194-211 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_ldm_original_checkpoint_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01958ebd14f7b08507812beea33e2807af7ac5239541532a2e915148b2c1e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 8): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:574-591 | scripts/convert_gligen_to_diffusers.py:338-355 | scripts/convert_i2vgen_to_diffusers.py:403-420 | scripts/convert_ms_text_to_video_to_diffusers.py:359-376 | scripts/convert_original_audioldm_to_diffusers.py:454-471 | scripts/convert_original_musicldm_to_diffusers.py:450-467 | scripts/convert_zero123_to_diffusers.py:422-439 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:572-589 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:574\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba19f8bb5685273c9e78b5136b04e8b0e8ae9909de9289c7d97b9cf18197da2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 8): src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1073-1089 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:919-935 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1170-1186 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:998-1014 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1168-1185 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1594-1611 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1981-1998 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1233-1250 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1073\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d084b74e0bf96546f4ef49876cdf1cbf0c73375c630e384ec6379882ec3a4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7): examples/community/gluegen.py:682-699 | examples/community/ip_adapter_face_id.py:970-987 | examples/community/matryoshka.py:4394-4411 | examples/community/regional_prompting_stable_diffusion.py:944-961 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:892-909 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:944-961 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:933-950 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:682\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c3ee3e723a0d8defb998a7fb7ec111d17820583d47126d8912e28de5563ad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 7): examples/community/pipeline_animatediff_ipex.py:682-699 | examples/community/pipeline_animatediff_ipex.py:863-880 | examples/community/pipeline_stable_diffusion_xl_instantid.py:757-774 | examples/research_projects/anytext/anytext.py:2118-2135 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1073-1090 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:798-815 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:765-781 \u2014 there are 7 copies across 6 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 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:682\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c95cd1631a767b3e0efdad37b832b98fd55cb65aa244a2c3e30ac22f0d26758"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7): examples/community/pipeline_animatediff_ipex.py:738-755 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:778-795 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:986-1003 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:916-933 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:667-684 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:582-599 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:776-793 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 631 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5300ef94056322e029aa325ad4da15b35a54e6730d7dfe67727ff8a8acb7a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 7): examples/community/pipeline_flux_kontext_multiple_images.py:991-1007 | src/diffusers/pipelines/chroma/pipeline_chroma.py:719-735 | src/diffusers/pipelines/flux/pipeline_flux.py:745-761 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:869-885 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:553-570 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:599-616 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:559-575 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 535 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:991\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"1966370f195431156e9c7f0cf2087c71d3b0e031033ce83f6934f030cb309f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7): examples/community/pipeline_z_image_differential_img2img.py:271-288 | src/diffusers/pipelines/z_image/pipeline_z_image.py:229-246 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:284-301 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:291-308 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:260-277 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:282-299 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:245-262 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060ZImageTransformer2DModel\u0060 names \u0060...models.transformers\u0060 in one and \u0060diffusers.models.transformers\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"5803de056d83c9d2e457efae5308025895c1377da105d226cecd9e9a91286eca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 7): src/diffusers/models/transformers/transformer_bria_fibo.py:592-609 | src/diffusers/models/transformers/transformer_flux.py:758-775 | src/diffusers/models/transformers/transformer_flux.py:790-807 | src/diffusers/models/transformers/transformer_hidream_image.py:882-898 | src/diffusers/models/transformers/transformer_mochi.py:468-484 | src/diffusers/models/transformers/transformer_ovis_image.py:540-557 | src/diffusers/models/transformers/transformer_ovis_image.py:560-577 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 and \u0060src/diffusers/models/transformers/transformer_flux.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 308 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria_fibo.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe9fa2303823051d337f5b1aaa87ce0a3c5e344a422fe3a7cfa44fe26f868f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): examples/community/lpw_stable_diffusion.py:1051-1068 | examples/community/stable_diffusion_controlnet_img2img.py:881-898 | examples/community/stable_diffusion_controlnet_inpaint.py:1034-1051 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:1011-1028 | examples/community/stable_diffusion_ipex.py:732-749 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:935-952 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 191 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/lpw_stable_diffusion.py:1048\u0060 calls \u0060is_cancelled_callback\u0060 and \u0060examples/community/stable_diffusion_ipex.py:730\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b6eec5233177992cf9743432895fe693a4a824fcada1cf0ed2075516bfdf8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 6): examples/community/matryoshka.py:2329-2346 | src/diffusers/models/unets/unet_2d_condition.py:527-544 | src/diffusers/models/unets/unet_motion_model.py:1270-1287 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:109-124 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:196-211 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:464-481 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_spatio_temporal_condition.py:109\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"e351c8320f63db561ee539cd48faeb6b8a51906d877ada68789aa26ea890034f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): examples/community/pipeline_prompt2prompt.py:698-715 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1152-1170 | examples/community/stable_diffusion_controlnet_reference.py:335-352 | examples/community/stable_diffusion_ipex.py:684-701 | examples/community/stable_diffusion_reference.py:987-1004 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1173-1191 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_prompt2prompt.py:698\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d100e2e954ca02f75969958c128a05d6b74fbe38c78fb7f4474299f8af0bd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:915-932 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:906-923 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:615-632 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:921-938 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:713-730 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:700-717 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 1887 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9cfdd3960f89c52fdeb9f3c2f018504a4720823111db2a15fdb32e6a04df59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:814-831 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:963-980 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1025-1042 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:882-899 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:907-924 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1040-1057 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py\u0060 as WHOLE FILES: this scan already matched 88 separate duplicated blocks between them, totalling at least 1179 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:814\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a8fe3eec2ba8c741a54f56225193dc864e561388059c99cb31a813ae313731"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:564-581 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:691-708 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:741-758 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:657-674 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:801-818 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:723-740 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"5790c53c2814e3b134e5c841e5760f9fc0a24a6f0a290a348f8811749eeb1396"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 5): examples/community/pipeline_stg_cogvideox.py:761-778 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:700-717 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:764-778 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:781-798 | src/diffusers/pipelines/consisid/pipeline_consisid.py:873-890 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:700\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, \u0060src/diffusers/pipelines/consisid/pipeline_consisid.py:891\u0060 calls \u0060cpu\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:718\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":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"635cc2e712368c9dd5b99ca45acbbc2924e43fbe32ca66f7de4660bdfd91df51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:845-865 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:745-764 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:781-800 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:356-375 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:917-934 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4cb5b49f17a1193f73510dbe349d4a946677ab94b8b5051da0d2c58aec822d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 5): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:627-644 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:680-697 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:526-543 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:563-580 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:824-840 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 867 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:627\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"5010ba65f2dedd91135cc549e0b41624af8966ddd0c5c08186db78942aba0f94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 5): src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:685-701 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:758-775 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:972-989 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:802-819 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:801-818 \u2014 \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.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 26 separate duplicated blocks between them, totalling at least 283 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:685\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:757\u0060 calls \u0060set_begin_index\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:969\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba352c9b37d09af522591ec5f282dfee2d15570a89c149856376625c006bfff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): src/diffusers/pipelines/pag/pipeline_pag_sana.py:773-790 | src/diffusers/pipelines/sana/pipeline_sana.py:851-868 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:914-931 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:888-905 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:920-937 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 791 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:773\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"510b92c63c898049fe9318df4e37517bcf8773e53243e30a2a1a152100ad23a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): examples/community/masked_stable_diffusion_img2img.py:175-192 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:728-745 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:604-621 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:659-676 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_img2img.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_img2img.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0265090de39a53c98f39c604c6d671d986e99f12e24012a4f9e4ece961fd6e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): examples/community/unclip_image_interpolation.py:317-334 | examples/community/unclip_text_interpolation.py:395-412 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:366-383 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:290-307 \u2014 before extracting anything, compare \u0060examples/community/unclip_image_interpolation.py\u0060 and \u0060examples/community/unclip_text_interpolation.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 179 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/unclip_text_interpolation.py:395\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"283f35d1a2418071b42d55d1852fcdc67d1ca9b18dd6eff69c8934b064b3231d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201346 lines \u00D7 4): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:605-639 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:654-699 | scripts/convert_zero123_to_diffusers.py:453-487 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:603-637 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_zero123_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 877 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9182c98797c76472bfd5983162a35f84ce5e75c18379fab01672f19e547073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201318 lines \u00D7 4): scripts/convert_hunyuan_video1_5_to_diffusers.py:189-206 | scripts/convert_hunyuan_video1_5_to_diffusers.py:275-288 | scripts/convert_mochi_to_diffusers.py:60-69 | src/diffusers/loaders/single_file_utils.py:2720-2729 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_hunyuan_video1_5_to_diffusers.py:189\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_hunyuan_video1_5_to_diffusers.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4800e1926a6b48eaa26ba18e9660316b17652d938920dc514b919aa874e739"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): src/diffusers/models/attention_processor.py:3174-3191 | src/diffusers/models/attention_processor.py:3277-3294 | src/diffusers/models/attention_processor.py:3382-3399 | src/diffusers/models/attention_processor.py:3506-3523 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3174}}}],"partialFingerprints":{"codehealthFindingId/v1":"1590a71cac140987766d01858e96a50303ef8211a17c473b5b10df4660cd8bc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 4): src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:161-178 | src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:277-294 | src/diffusers/pipelines/ace_step/modeling_ace_step.py:185-201 | src/diffusers/pipelines/ace_step/modeling_ace_step.py:279-295 \u2014 before extracting anything, compare \u0060src/diffusers/models/condition_embedders/condition_embedder_ace_step.py\u0060 and \u0060src/diffusers/pipelines/ace_step/modeling_ace_step.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060ModelMixin\u0060 names \u0060...models.modeling_utils\u0060 in one and \u0060..modeling_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/condition_embedders/condition_embedder_ace_step.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"facdd8e9a94658ceebc50f21cf9c5ab533cf61dd4b9f625051b93c7c094e6384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 4): src/diffusers/models/transformers/transformer_bria.py:655-671 | src/diffusers/models/transformers/transformer_flux.py:757-773 | src/diffusers/models/transformers/transformer_mochi.py:465-482 | src/diffusers/models/transformers/transformer_ovis_image.py:539-555 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_flux.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 340 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_bria.py:655\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de5e6875848e9d37fdd3891dfa92b94a66af7351e3a17a3533defcf853ece77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 4): src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1033-1047 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1006-1023 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1070-1087 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1239-1256 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1033\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"afceae47fa9f1c27103cd29c927b03317ec33d8b2065e347cf4c808289dbe01d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:730-747 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1066-1083 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:693-710 | src/diffusers/pipelines/krea2/pipeline_krea2.py:564-581 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 515 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63b8f4b5bbad2dccdf81ee302a622f52ff090045f99f5b8ea66a659d9237542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 4): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:452-468 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:515-531 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:486-502 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1082-1099 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 553 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:452\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5cccb47a6ad4cda18e7e1b3eb35aee9deccf2e7f1e1aad8f7ff1b5e0a8783b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:624-641 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:845-862 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:746-763 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:790-807 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:767\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:643\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b420c03cd499bff512ac8e74304e017577f5a2aad9ff7f32174a22c80dafc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:410-427 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:426-443 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:435-452 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:433-450 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py\u0060 as WHOLE FILES: this scan already matched 77 separate duplicated blocks between them, totalling at least 987 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:410\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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"4beab67d4a938c41342c62be2dc65fdbb679ac7ec0be21e63a3e8f2a08567242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 3): examples/community/bit_diffusion.py:108-121 | src/diffusers/schedulers/scheduling_ddim.py:476-493 | src/diffusers/schedulers/scheduling_ddim_parallel.py:475-492 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim_parallel.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_ddim.py:476\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/bit_diffusion.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c678afe63d1030595ea076c636637983177f38cc3f873694cd685174eecb2163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/community/hd_painter.py:551-568 | examples/community/pipeline_animatediff_controlnet.py:946-963 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1109-1126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3269d420b1450d808883f5cb79144e0049693c8f6007688e76e6d6ad474a6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/community/ip_adapter_face_id.py:1000-1017 | examples/community/pipeline_stable_diffusion_boxdiff.py:1499-1516 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:866-883 \u2014 before extracting anything, compare \u0060examples/community/ip_adapter_face_id.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 as WHOLE FILES: this scan already matched 81 separate duplicated blocks between them, totalling at least 1134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/ip_adapter_face_id.py:1000\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd38e2c19cc741bcde64aae34439815f7be246cab9ffeb6a72e6826f333f4df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): examples/community/latent_consistency_img2img.py:187-204 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:778-793 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:732-747 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4a7b0461d5836120ab253259b7419c106210b3294b7d974e2c7e5e49c5cce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/community/masked_stable_diffusion_xl_img2img.py:504-521 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1435-1452 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1477-1494 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 586 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060StableDiffusionXLPipelineOutput\u0060 names \u0060.pipeline_output\u0060 in one and \u0060diffusers.pipelines.stable_diffusion_xl.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c157b6e8f524079a23e9b33d20a77a64f7ffe4f229e9cc1b8301ccf98461166"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): examples/community/matryoshka.py:2280-2296 | src/diffusers/models/unets/unet_2d_condition.py:480-496 | src/diffusers/models/unets/unet_dreamlite.py:1890-1907 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:1890\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2280}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4a4903d843591d51ba9ba7f7b9f6cdd728aab9c10d11455e7f010b71d5cfa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201318 lines \u00D7 4): examples/community/fresco_v2v.py:474-477 | examples/community/matryoshka.py:2804-2821 | src/diffusers/models/unets/unet_2d_condition.py:921-938 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1221-1238 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060added_cond_kwargs\u0060 to \u0060Dict[str, Any]\u0060 in one and \u0060dict[str, Any]\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 before the matched lines, \u0060examples/community/matryoshka.py:2804\u0060 calls \u0060to\u0060 and \u0060examples/community/fresco_v2v.py:474\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"94558e2e4a82d0687154ff0afeb717f5fc5b91743231f19e481dee39f84364c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/community/pipeline_stg_hunyuan_video.py:113-130 | src/diffusers/models/transformers/transformer_hunyuan_video.py:634-651 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:478-495 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cbc103468b642798195d24af425732ee9203d7381263498dd13badf7cdf84e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201318 lines \u00D7 3): examples/community/stable_diffusion_repaint.py:749-764 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:656-673 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:752-763 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_repaint.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 308 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:656\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/stable_diffusion_repaint.py:747\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:656\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":"examples/community/stable_diffusion_repaint.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cf3a0c1f46f6a641d25ebd779184c1c7cfe449ea55c0d170251d70c499d9a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:240-257 | src/diffusers/models/controlnets/controlnet.py:659-676 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:588-605 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py:585\u0060 calls \u0060zeros_like\u0060 and \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:237\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":"examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adf53cda37c234983df1cd34e26353dd817335515b34666a7988497d1c26919"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201318 lines \u00D7 4): scripts/convert_flux_to_diffusers.py:217-234 | scripts/convert_ovis_image_to_diffusers.py:185-202 | src/diffusers/loaders/single_file_utils.py:2437-2454 | src/diffusers/loaders/single_file_utils.py:3708-3710 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_ovis_image_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.py:217\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_flux_to_diffusers.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"7088b40f9608e75b861377186da0cd08ed9c1dbf9b9c0709e6a4e5c8c5e45884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201318 lines \u00D7 3): src/diffusers/image_processor.py:130-147 | src/diffusers/image_processor.py:1003-1020 | src/diffusers/utils/pil_utils.py:36-45 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b9caec5865df48dd51276dd3e93a7b28d41f46c878716c773950999e777f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): src/diffusers/models/transformers/transformer_anyflow_far.py:1344-1361 | src/diffusers/models/transformers/transformer_anyflow_far.py:1470-1486 | src/diffusers/models/transformers/transformer_anyflow_far.py:1575-1591 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow_far.py:1344\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow_far.py"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95f70a326d4f6751d07b2d846d8ec3d9f10a2782c6c1d33168ae86f0c9ee29e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): src/diffusers/models/transformers/transformer_chroma.py:522-538 | src/diffusers/models/transformers/transformer_flux.py:733-750 | src/diffusers/models/transformers/transformer_ovis_image.py:521-537 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chroma.py\u0060 and \u0060src/diffusers/models/transformers/transformer_flux.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_flux.py:733\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chroma.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"674d25fd76b3fb4cdadb61f0109f62e11856f280f032c4b92fe1aac4741e0657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/diffusers/models/transformers/transformer_chronoedit.py:618-635 | src/diffusers/models/transformers/transformer_wan.py:602-619 | src/diffusers/models/transformers/transformer_wan_vace.py:223-240 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_wan.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 632 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a45623c4bd3dcdb61f1070d233626878d76ad31997ba415db1a00d25657d7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video.py:552-569 | src/diffusers/models/transformers/transformer_hunyuanimage.py:502-519 | src/diffusers/models/transformers/transformer_motif_video.py:577-594 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:552\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a3ebfba3f99b21daa38ee01192bfb1e187f867f92e076ae8d57a7a359fe3cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:428-445 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:352-369 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:433-450 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:428\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bab2b5da4fc0d57f439e8fb4d0a9333cf9c5131fc7e5387cd7e56d24714d59b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/diffusers/pipelines/chroma/pipeline_chroma.py:757-774 | src/diffusers/pipelines/flux/pipeline_flux.py:803-820 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:590-607 \u2014 \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux.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 49 separate duplicated blocks between them, totalling at least 627 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:757\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, \u0060src/diffusers/pipelines/flux/pipeline_flux.py:824\u0060 calls \u0060hasattr\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:778\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cfee46ccb029cc82d52fab7ca437cfe18542d9ce8206ee35a4551e3a3e3097d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:761-778 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:831-846 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:837-853 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_fill.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 993 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:761\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf490b03ee9298b8f81dd9f4a3218e4eb6cefac464512dcb46226c01acdf1697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1030-1047 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:820-835 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:798-813 \u2014 \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.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 28 separate duplicated blocks between them, totalling at least 437 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:840\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:817\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet.py"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e5aab567e4c1151cc1b653bb685284e634b3e51c2dad2821848bb3b66f5a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:580-597 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:587-603 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:552-569 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 409 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:580\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, \u0060src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:570\u0060 calls \u0060normalize_normals\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:598\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf62a51f6155327fb002edaf3fed38a8d22e0fcf4a0aeff9ec1e629b4021b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1270-1287 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1461-1478 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1524-1541 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8ac43e3917296d0af736e834f54c7793eef7ba14b1d53673b8fb0e3d4c4a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1045-1061 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1049-1065 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1305-1322 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_kolors.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 446 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_kolors.py"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a27394b94f3f6d82d501803a77451476a6d87e96b0d4924763808b928cd254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:241-258 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:252-269 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:254-271 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 786 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"78baf9b045e837fce800e1c10e5b75e1b60fa2ec2060783c932a750514e2e24a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:444-461 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:236-253 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:247-264 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:444\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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f5c994eff132ba18e7abb2dbda4db60d49d1ddb83b088013a6946b1d6851a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/diffusers/pipelines/sana/pipeline_sana.py:924-941 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:1020-1037 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:957-974 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_controlnet.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/sana/pipeline_sana.py:924\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, \u0060src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:1019\u0060 calls \u0060tuple\u0060, \u0060to\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana.py:923\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"9870dbfb171779ce4094a2cec56d820591a78474e8772e05671edd00e9c9138b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:378-395 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:394-411 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:468-484 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 770 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"683c3225b4c8d7e8293a7f0613f135e6e43d925fc43d6475f7f1538e2636562b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/community/matryoshka.py:978-995 | src/diffusers/models/unets/unet_2d_blocks.py:832-849 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/unets/unet_2d_blocks.py:615\u0060 calls \u0060Tensor\u0060 and \u0060examples/community/matryoshka.py:863\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":"examples/community/matryoshka.py"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be696460714cc186c686ee3bce283f6901b6a452a2b99ee2d8b57f02a16367e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/community/matryoshka.py:2180-2197 | src/diffusers/models/unets/unet_2d_condition.py:385-402 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_condition.py:385\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2180}}}],"partialFingerprints":{"codehealthFindingId/v1":"3222acdb8e142ecd4eeed756b2ccce89c55728a9965aaab498bea365faa82c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/community/pipeline_stable_diffusion_pag.py:80-97 | src/diffusers/models/attention_processor.py:5055-5072 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9a4d6b5a205315b46d0a4f6bc2a35505498a64e284d57aac00a2c39e6c0b31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/community/pipeline_stable_diffusion_pag.py:1016-1033 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:912-929 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_pag.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 650 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"da609dbef3193a7c911b5f88a323ffd80d7c17d568419c7eb6ca49328f89da17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): scripts/convert_sd3_to_diffusers.py:135-152 | src/diffusers/loaders/single_file_utils.py:2107-2123 \u2014 before extracting anything, compare \u0060scripts/convert_sd3_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 249 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_sd3_to_diffusers.py:135\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/convert_sd3_to_diffusers.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"baca76800e727bbb95cca193c9c8dba21eaeb2a7a0a2d00de42f84cca4ffdce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/image_processor.py:411-428 | src/diffusers/pipelines/wan/image_processor.py:115-132 \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":"src/diffusers/image_processor.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d4d0f67c87c97063b775112f73d252dab2693b2d3998edba29065870893c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/attention.py:128-145 | src/diffusers/models/attention_processor.py:536-553 \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 \u0060processor\u0060 to \u0060AttentionProcessor\u0060 in one and \u0060\u0022AttnProcessor\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5d4600ee8b528409ca7aa3dcfb3c052d36a593a2b8ff6cc619aa7d9338a955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/attention_processor.py:1488-1505 | src/diffusers/models/attention_processor.py:1973-1990 \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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba8fc767957e666e3ecdf0c52a697446e8e97b52c7baae9324c3aa5c9877cec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/attention_processor.py:2304-2321 | src/diffusers/models/attention_processor.py:2375-2392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43ff7b471b4a7f8e9aa3fa832419dd0c9a1c19047ad5f6eb27e573c45b295a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/attention_processor.py:5416-5433 | src/diffusers/models/attention_processor.py:5473-5490 \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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":5416}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d498ff57666ef502598636d5beec6c08a2e07a361ef50911fece56c4464fff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:238-255 | src/diffusers/models/unets/unet_3d_blocks.py:559-574 \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 \u0060src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:238\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b3d29402fa31056a546d0468f64db7d252ac3ecdb26511249bba2c5a914a70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:578-595 | src/diffusers/models/autoencoders/vae.py:449-466 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:578\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"4564a10b6b5d53258c370851513e6014e94658edd721912858bcc7824de9d63f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1279-1296 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1360-1375 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1279\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77b4023e058af6ea0afcdf7aa82f37671716e2c42b7dd999dc79d91cbccab2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:573-590 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:614-631 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"556af6a92b54e1055ec65fe61ccf8538964615ec8d800f5abfbbb4fbff93d457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): src/diffusers/models/condition_embedders/condition_embedder_ltx2.py:44-61 | src/diffusers/pipelines/sana_wm/refiner.py:459-472 \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":"src/diffusers/models/condition_embedders/condition_embedder_ltx2.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d35f5c4f5e66252507fa2439d026a40d6325fa2b811a5d39140128690fd7918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/models/embeddings.py:337-357 | src/diffusers/models/transformers/transformer_omnigen.py:82-102 \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":"src/diffusers/models/embeddings.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c484ca628c04a3d5f0cfb23b72ea4ff671eac59a403f9fdc11ad2d3b6d9c01e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/transformers/cogvideox_transformer_3d.py:299-316 | src/diffusers/models/transformers/consisid_transformer_3d.py:544-561 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/cogvideox_transformer_3d.py\u0060 and \u0060src/diffusers/models/transformers/consisid_transformer_3d.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/cogvideox_transformer_3d.py:299\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/cogvideox_transformer_3d.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3f9025539660e2f99a90cf992662b483c0810c72c36d0d2dc0954266345974"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/transformers/latte_transformer_3d.py:106-126 | src/diffusers/models/transformers/transformer_temporal.py:102-119 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/latte_transformer_3d.py:106\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/latte_transformer_3d.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"8edf350d062b263435fa9a3ebd542f9e6b2841932ae5f3f7183d9da189ed7654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/transformers/transformer_chroma.py:565-582 | src/diffusers/models/transformers/transformer_flux.py:770-787 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chroma.py\u0060 and \u0060src/diffusers/models/transformers/transformer_flux.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_chroma.py:565\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chroma.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb7ccb509793c2464988bf3b0212d1468c1ba581707dfd995b2556e8d3e7344"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video.py:600-617 | src/diffusers/models/transformers/transformer_hunyuan_video.py:759-776 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf31c449a4ea95ba59c0419897fdc5244920cc9901b2d8639a951f333b72ff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): src/diffusers/models/transformers/transformer_joyimage.py:156-173 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:127-142 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_joyimage.py\u0060 and \u0060src/diffusers/models/transformers/transformer_joyimage_edit_plus.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_joyimage.py:156\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":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44fe6915cf7101f0ef9472e2ba14eea625426952b83c327fc5d260c22a43a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky6.py:331-349 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:307-325 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_kandinsky6.py\u0060 and \u0060src/diffusers/models/transformers/transformer_kandinsky6_sr.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"360c64df22ad64908507c24965cc2206362d2128cb93865a97544c97e935936c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3.py:680-697 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:609-625 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_minimax_h3.py:679\u0060 calls \u0060index_copy\u0060, \u0060to\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py:608\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8af685aff0971548d3509fe27dfca86415448aa1c0b5951dc387a2d1fdc900c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/transformers/transformer_temporal.py:99-116 | src/diffusers/models/unets/unet_motion_model.py:118-135 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_temporal.py\u0060 and \u0060src/diffusers/models/unets/unet_motion_model.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_temporal.py:99\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_temporal.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d7db587e557aa732f99baf147337d7bb4302d432c46b775e6b111b65b132b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:154-171 | src/diffusers/models/unets/unet_2d_blocks.py:426-443 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_blocks.py:154\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"7719cc4a0e58f397338694bd7537c053cbcae52e759729d4d738eb253582de74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1316-1333 | src/diffusers/models/unets/unet_2d_blocks.py:2613-2630 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2402f84337b5c910fcee838c04d86d338bbf6018428ad251a9ac4a8ff4ad0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1468-1484 | src/diffusers/models/unets/unet_2d_blocks.py:2666-2683 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d73ddf7b0059beabe5b3d4d61bf5e692bb7380438e44920faed0ab404ab51d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/models/unets/unet_2d_condition.py:398-415 | src/diffusers/models/unets/unet_dreamlite.py:1813-1830 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"060dd2f98bd0e11a94a5147609cd92d99fdab47d5b2188337c2018d4acdf4b31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/diffusers/models/unets/unet_i2vgen_xl.py:627-644 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:424-440 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_i2vgen_xl.py\u0060 and \u0060src/diffusers/models/unets/unet_spatio_temporal_condition.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_i2vgen_xl.py:627\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_i2vgen_xl.py"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17cbfc8469d7b3f74a065ebda0a2e94c1d323491bd98eef551e0639e723457d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/modular_pipelines/flux2/encoders.py:363-380 | src/diffusers/modular_pipelines/flux2/encoders.py:507-524 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/encoders.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"0296e8ea1bde6ff8158e8aec6fe7455088906ec34e2e87616a59a1799c33125d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/modular_pipelines/ideogram4/before_denoise.py:95-112 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:121-138 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ideogram4/before_denoise.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6214f2a2469a6076516d2edd3d14c4a11e552a740c34635ff9b3cc9d0bdc7573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:1779-1796 | src/diffusers/modular_pipelines/modular_pipeline.py:1978-1995 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1779}}}],"partialFingerprints":{"codehealthFindingId/v1":"549d91846beff6ca5d16e24061dc9692ae9b44a068a533a41799d010843c7f00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:2731-2748 | src/diffusers/pipelines/pipeline_utils.py:477-494 \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":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2731}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a6800d8da8d28f834938e76e082c2fd5d77ecadad5dda301f0a5d320ba6eed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201318 lines \u00D7 3): src/diffusers/modular_pipelines/qwenimage/encoders.py:82-83 | src/diffusers/modular_pipelines/qwenimage/encoders.py:112-129 | src/diffusers/modular_pipelines/qwenimage/encoders.py:169-185 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"f908b60f1087e6db34b6b039e66fd5505bbd51bfb32d44d5873b708f5da6a903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py:521-538 | src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py:620-637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py:617\u0060 calls \u0060check_inputs\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py:519\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a58b4d2c7d1a75f5db2eb8e5895453fbb120db91beac017e18a28f6bbcda26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/ace_step/modeling_ace_step.py:211-228 | src/diffusers/pipelines/ace_step/modeling_ace_step.py:306-323 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ace_step/modeling_ace_step.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0d7ec01232b8285c64049c25a7e02b42e9dbc9862c4203a7f60e09abd62937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:223-239 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:503-520 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 541 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f508511a3e713d613811ffb4d6be1e8d10fa9205e35acce59ab31f954afdd6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:390-407 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:794-811 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 541 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:390\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa3644ea62fe3a18da6fb5ea9d88341ce66d7bd9a3010926aacf42eeeb94245"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1435-1451 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1793-1810 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1330 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1815\u0060 calls \u0060rescale_noise_cfg\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1455\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"1014d1090dc591d03237b885573e199eb884c8050a9e7c839c50c9d6bd9774f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:649-666 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:672-689 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 526 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:649\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c24b86c2292a9131e02ed22d60600e177776de5aa216a1830e101dcba72322"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): src/diffusers/pipelines/ddim/pipeline_ddim.py:165-182 | src/diffusers/pipelines/ddpm/pipeline_ddpm.py:130-145 \u2014 \u0060src/diffusers/pipelines/ddim/pipeline_ddim.py\u0060 and \u0060src/diffusers/pipelines/ddpm/pipeline_ddpm.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 3 separate duplicated blocks between them, totalling at least 92 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ddim/pipeline_ddim.py:165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ddim/pipeline_ddim.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c00a45f27c0915d1a3f71b59c80e77edd0a084dafe4ddbe91b114e1b1df31ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:826-843 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:966-983 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py\u0060 and \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 398 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"749aa4f9b592cc3866ff7adfd5907e8f2cf999c352e579a95205ce03db5dfff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1032-1048 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:862-879 \u2014 \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.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 52 separate duplicated blocks between them, totalling at least 643 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. 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":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d43963505b18904b60dc6cbbd405fa8d7fd06dae476692bee269b9b5c0f8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1158-1175 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:650-667 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1158\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c29fd64edc4c9e84a6b123b428b5fdfd8b083988ea7adc8380a077159eefdf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:249-268 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:267-286 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 638 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d62c002b96f250341069c90a818e2b162bc7d47a33f142a224113a60650c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1768-1785 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1885-1902 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py"},"region":{"startLine":1768}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b05fce503bb503b984cef9882fec413305a1c27a50f83a642c1be5a8fdbe59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:861-878 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:931-948 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_img2img.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 890 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea711ec6712edf554bc7b142a427602643852ac749422e050595aacbfef235d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:956-973 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:976-993 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"409cb183de11fa5819a1097ac6cf9de992aa58f5ef015e8119bcca88b8939265"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:703-720 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:536-552 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:703\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef276a99269a987d3a5a20b34c11eba910735ff1ee14c439ab9176a9cc54ed9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:302-319 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:312-329 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.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 7 separate duplicated blocks between them, totalling at least 115 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:302\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c725d43c3cfeff09772c8f8b2c3d3864369233680c552a92dc2d1ce303e27ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:484-500 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:353-370 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89395ab7f2724e533e79b0215b997714c876cb8cae3975c873389d1a1f03dc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:529-546 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:437-454 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a3b28a6d9e5279137cd23395c907f64615077ef8dbd3c4bd72a8ff28b837ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:501-518 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:570-586 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 553 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:501\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"e425bbad776db7175f61b9c3557c7f041203e1fd072bd490597d10a958735532"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx.py:770-787 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:843-860 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 953 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcceb7bf5bfbfa9038c2020a59161276ac77e3bf93c51917b7516309bd30d164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1563-1580 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1604-1621 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1563\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"7feda12aef1468cc1763390e0f0cbdc542abdf90f4434a11d5e710effd0da689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:382-399 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:405-422 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_video2video.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"118397a7adc8c36d0cf6ac92137bb43e6fefc88ead1ae71f3b7bc044eaa5e9c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/lumina/pipeline_lumina.py:234-251 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:215-232 \u2014 \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py\u0060 and \u0060src/diffusers/pipelines/lumina2/pipeline_lumina2.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 28 separate duplicated blocks between them, totalling at least 362 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py:234\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d204581b08d0e5aeac261c55ae7dd29bad42a97bd9a5c1559fc2ad874b1372"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): src/diffusers/pipelines/motif_video/pipeline_motif_video.py:641-658 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:794-807 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py\u0060 and \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 712 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py:641\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"8814539f21c6322741f3d80e07b3dd61a5a70ab6c802208a6e6f3b2422e245c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1599-1616 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1330-1347 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 83 separate duplicated blocks between them, totalling at least 1133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1599\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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb6bee164f3e6d24a830eab9724b3e2fa3102ffff9e3f73b58e0e45f9edd039"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/sana/pipeline_sana.py:888-905 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:922-939 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 963 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/sana/pipeline_sana.py:888\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f778e1704f71ea39739b2894cba3708bc4bfc15b98675b75436694ec712d3bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:569-586 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:756-773 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 607 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"c854872f2aa82d0f79faf1f6ffbaaefa2598b33954b2cf475b457721b8358f2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): utils/check_inits.py:99-116 | utils/check_inits.py:158-175 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_inits.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a342adb350341709a219b589e6b2bc7ce279f3bf37a348a2a55667b9d239c097"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 63): examples/community/adaptive_mask_inpainting.py:629-645 | examples/community/fresco_v2v.py:1574-1590 | examples/community/instaflow_one_step.py:362-378 | examples/community/ip_adapter_face_id.py:641-657 | examples/community/latent_consistency_interpolate.py:438-454 | examples/community/llm_grounded_diffusion.py:1391-1407 | examples/community/pipeline_animatediff_controlnet.py:355-371 | examples/community/pipeline_animatediff_img2video.py:472-488 | examples/community/pipeline_animatediff_ipex.py:326-342 | examples/community/pipeline_fabric.py:326-342 | examples/community/pipeline_prompt2prompt.py:409-425 | examples/community/pipeline_stable_diffusion_boxdiff.py:744-760 | examples/community/pipeline_stable_diffusion_pag.py:710-726 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:350-366 | examples/community/regional_prompting_stable_diffusion.py:688-704 | examples/community/stable_diffusion_reference.py:569-585 | examples/research_projects/anytext/anytext.py:1517-1533 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:479-495 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:311-327 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:356-372 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:365-381 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:413-429 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:444-460 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:455-471 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:433-449 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:439-455 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:484-500 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:512-528 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:389-405 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:373-389 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:453-469 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:579-595 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:377-393 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:408-424 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:469-485 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:440-456 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:368-384 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:445-461 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:416-432 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:349-365 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:346-362 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:564-580 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:316-332 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:351-367 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:973-989 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:521-537 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:398-414 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:383-399 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:432-448 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:408-424 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:461-477 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:322-338 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:456-472 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:491-507 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:489-505 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:361-377 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:515-531 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:469-485 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:619-635 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:374-390 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:454-470 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:416-432 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:468-484 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 63 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 63 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:629\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, \u0060examples/community/ip_adapter_face_id.py:659\u0060 calls \u0060isinstance\u0060, \u0060unscale_lora_layers\u0060 and \u0060examples/community/instaflow_one_step.py:380\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b74b21ecd32d08935998aa8e858b1e406b2d979cc5476f810139479a5244ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 53): examples/community/fresco_v2v.py:1862-1875 | examples/community/matryoshka.py:4130-4145 | examples/community/pipeline_animatediff_ipex.py:506-521 | examples/community/pipeline_controlnet_xl_kolors.py:616-629 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:691-704 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:742-755 | examples/community/pipeline_kolors_differential_img2img.py:547-563 | examples/community/pipeline_kolors_inpainting.py:759-772 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1035-1048 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:596-611 | examples/community/regional_prompting_stable_diffusion.py:766-781 | examples/research_projects/anytext/anytext.py:1774-1787 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:495-510 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:540-555 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:611-624 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:647-660 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:744-757 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:716-729 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:755-768 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:859-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:802-815 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:806-819 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:834-847 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:817-830 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:797-810 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:775-788 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:500-515 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:651-666 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:660-675 | src/diffusers/pipelines/kolors/pipeline_kolors.py:517-533 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:541-557 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:674-687 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:605-618 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:702-715 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:705-718 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:810-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:812-825 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:535-551 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:643-658 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:502-517 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:629-644 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:696-709 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:701-717 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:643-658 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:749-762 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:677-692 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:707-722 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:673-686 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:822-837 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:690-706 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:632-647 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:752-765 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:719-735 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 53 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 53 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:4130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_kolors_inpainting.py:757\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/matryoshka.py:4130\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3db90bdce88b9279480379f807f1d5beb1ca6966519f29f3028a40d4b6b5d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 47): examples/community/matryoshka.py:4029-4045 | examples/community/pipeline_controlnet_xl_kolors.py:414-430 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:468-484 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:519-535 | examples/community/pipeline_kolors_differential_img2img.py:428-444 | examples/research_projects/anytext/anytext.py:1581-1597 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:375-391 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:420-436 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:606-622 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:429-445 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:477-493 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:508-524 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:519-535 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:497-513 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:503-519 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:570-586 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:578-594 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:570-586 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:559-575 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:570-586 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:589-605 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:531-547 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:533-549 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:504-520 | src/diffusers/pipelines/kolors/pipeline_kolors.py:402-418 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:422-438 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:462-478 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:447-463 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:496-512 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:472-488 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:585-601 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:575-591 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:419-435 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:525-541 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:386-402 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:520-536 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:555-571 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:572-588 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:826-842 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:368-384 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:551-567 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:579-595 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:533-549 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:562-578 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:813-829 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:372-388 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:590-606 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 47 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 47 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:4029\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":4029}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb2fa52ebfdcacce1aceb7537a187fc4eee29e8ea4c29e96b3001100d1a70da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 46): examples/community/matryoshka.py:4019-4035 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:458-474 | examples/community/pipeline_kolors_differential_img2img.py:418-434 | examples/research_projects/anytext/anytext.py:1571-1587 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:148-164 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:365-381 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:410-426 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:596-612 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:419-435 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:467-483 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:498-514 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:509-525 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:487-503 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:493-509 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:560-576 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:568-584 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:560-576 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:549-565 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:560-576 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:579-595 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:521-537 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:523-539 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:494-510 | src/diffusers/pipelines/kolors/pipeline_kolors.py:392-408 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:412-428 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:452-468 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:437-453 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:486-502 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:462-478 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:575-591 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:565-581 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:409-425 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:515-531 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:376-392 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:510-526 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:545-561 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:562-578 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:816-832 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:358-374 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:541-557 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:569-585 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:523-539 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:552-568 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:803-819 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:362-378 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:580-596 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 46 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 46 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:4019\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":4019}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ac64a0baed8bea4d8317db04b6ff38d45231b028d0cfa4fba6bb035794cb54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 28): examples/community/mixture_tiling_sdxl.py:455-471 | examples/community/mod_controlnet_tile_sr_sdxl.py:462-478 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1334-1350 | examples/community/pipeline_sdxl_style_aligned.py:575-591 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:761-777 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:308-324 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:455-471 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:335-351 | examples/community/pipeline_stable_diffusion_xl_ipex.py:335-351 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:363-379 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:394-410 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:358-374 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:366-382 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:358-374 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:347-363 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:358-374 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:377-393 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:290-306 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:652-668 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:373-389 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:363-379 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:360-376 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:378-394 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:468-484 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:350-366 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:368-384 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:472-488 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:378-394 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2c3a8fc78ab9562e27ffa259d412b0b53e6ed4641e88aa8bf5a1dab1814103"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 20): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:759-775 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:792-808 | scripts/convert_gligen_to_diffusers.py:135-151 | scripts/convert_gligen_to_diffusers.py:168-184 | scripts/convert_original_audioldm2_to_diffusers.py:554-570 | scripts/convert_original_audioldm2_to_diffusers.py:587-603 | scripts/convert_original_audioldm_to_diffusers.py:538-554 | scripts/convert_original_audioldm_to_diffusers.py:571-587 | scripts/convert_original_musicldm_to_diffusers.py:534-550 | scripts/convert_original_musicldm_to_diffusers.py:567-583 | scripts/convert_svd_to_diffusers.py:679-695 | scripts/convert_svd_to_diffusers.py:713-729 | scripts/convert_vae_pt_to_diffusers.py:76-92 | scripts/convert_vae_pt_to_diffusers.py:116-132 | scripts/convert_versatile_diffusion_to_diffusers.py:626-642 | scripts/convert_versatile_diffusion_to_diffusers.py:659-675 | scripts/convert_zero123_to_diffusers.py:571-587 | scripts/convert_zero123_to_diffusers.py:604-620 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:697-713 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:730-746 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_vae_pt_to_diffusers.py:73\u0060 calls \u0060assign_to_checkpoint\u0060, \u0060renew_vae_attention_paths\u0060 and \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:758\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e5816cc3301385b55aaf5ba6cad7aab7be8f04b2afe0e0a2f0014773547577"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 19): examples/community/pipeline_hunyuandit_differential_img2img.py:913-929 | examples/community/pipeline_kolors_differential_img2img.py:1004-1019 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:813-827 | examples/community/pipeline_stg_ltx.py:694-709 | examples/community/pipeline_stg_ltx_image2video.py:756-771 | examples/community/pipeline_stg_mochi.py:697-711 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:799-815 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:721-737 | src/diffusers/pipelines/kolors/pipeline_kolors.py:850-865 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1003-1018 | src/diffusers/pipelines/ltx/pipeline_ltx.py:676-691 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:740-755 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:598-613 | src/diffusers/pipelines/mochi/pipeline_mochi.py:571-585 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:745-760 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:878-893 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:763-778 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1121-1135 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1094-1109 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:913\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":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a8d1b8f3d5a26b076d720b012046dc9ee8139b3e31a56c588e4138b105a2ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 15): examples/community/masked_stable_diffusion_xl_img2img.py:230-246 | examples/community/pipeline_sdxl_style_aligned.py:1608-1624 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1912-1928 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1166-1182 | examples/community/pipeline_stable_diffusion_xl_ipex.py:955-971 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1106-1122 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1485-1501 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1476-1492 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1081-1097 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1247-1263 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1375-1391 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1078-1094 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1239-1255 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1382-1398 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1104-1120 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 348 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:230\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":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e4160737cad6076ef2eafdf3cf3293c07c8b8b5f6bc86893c428aa55dc683f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 14): examples/community/hd_painter.py:553-569 | examples/community/pipeline_animatediff_controlnet.py:948-964 | examples/community/pipeline_animatediff_ipex.py:709-725 | examples/community/pipeline_animatediff_ipex.py:890-906 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1110-1126 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:878-894 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1120-1136 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1118-1134 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1240-1256 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:921-937 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:825-841 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:794-810 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1020-1036 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1111-1127 \u2014 there are 14 copies across 13 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 14 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/hd_painter.py:553\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, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:896\u0060 calls \u0060repeat_interleave\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py:727\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":"examples/community/hd_painter.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a18640966e38393e88fed31773b84e4b6f9f09fce5b9cbe834e824faa6f5d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 13): examples/community/pipeline_flux_semantic_guidance.py:625-640 | examples/community/pipeline_flux_with_cfg.py:449-464 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:571-587 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:646-662 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:630-646 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:702-718 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:532-547 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:554-569 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:607-623 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:627-643 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:615-631 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:645-661 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:652-668 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060examples/community/pipeline_flux_with_cfg.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 603 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_semantic_guidance.py:625\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"56258933c39a4dc4375b1a0eb4ac83c0960d78bcb088bdb277133a464dd06d43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201317 lines \u00D7 11): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:781-792 | scripts/convert_gligen_to_diffusers.py:157-168 | scripts/convert_original_audioldm2_to_diffusers.py:576-587 | scripts/convert_original_audioldm_to_diffusers.py:560-571 | scripts/convert_original_musicldm_to_diffusers.py:556-567 | scripts/convert_svd_to_diffusers.py:702-713 | scripts/convert_unidiffuser_to_diffusers.py:440-456 | scripts/convert_vae_pt_to_diffusers.py:103-112 | scripts/convert_versatile_diffusion_to_diffusers.py:648-659 | scripts/convert_zero123_to_diffusers.py:593-604 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:719-730 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:781\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9408911c0831895ecceee9151d803202511631c53da6cac97702bc14286c9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 11): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:702-717 | src/diffusers/pipelines/flux2/pipeline_flux2.py:847-863 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:717-733 | src/diffusers/pipelines/krea2/pipeline_krea2.py:551-567 | src/diffusers/pipelines/mochi/pipeline_mochi.py:558-574 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:531-547 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:658-674 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:718-734 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:639-655 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:806-822 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:661-677 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 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 11 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:702\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc297c9b798707cc5234c9a069c4859ac6375c5508be7beedad2d54b5c60717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 10): examples/community/pipeline_stg_ltx.py:704-720 | examples/community/pipeline_stg_ltx_image2video.py:766-782 | src/diffusers/pipelines/ltx/pipeline_ltx.py:686-702 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1057-1073 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:750-766 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1227-1243 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1675-1691 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1221-1237 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2059-2075 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1293-1309 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae9cfc845ea40ea48163e5496143b6ee72f0a8916800f3a77e778727b9d8509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 9): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:604-620 | examples/community/pipeline_stg_cogvideox.py:707-724 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:642-659 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:695-712 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:715-732 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:872-888 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:662-678 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:851-867 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:596-612 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:604\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"217800b9d82562ee6bf73f89c750f67af74119b739946e01a2af9a789deb771e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 8): examples/community/matryoshka.py:2229-2245 | src/diffusers/models/unets/unet_2d_condition.py:432-448 | src/diffusers/models/unets/unet_3d_condition.py:238-253 | src/diffusers/models/unets/unet_dreamlite.py:1846-1860 | src/diffusers/models/unets/unet_i2vgen_xl.py:275-290 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:203-218 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:356-371 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:751-767 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_condition.py:432\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2229}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b793326a3f64d8090ed1fc4770c995db2979834af751bc2092dafda8b3af2da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 8): examples/community/pipeline_flux_differential_img2img.py:613-627 | examples/community/pipeline_z_image_differential_img2img.py:393-407 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:651-665 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:673-689 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:640-654 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:709-725 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:812-828 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:775-790 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:775\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a89ef3f042c784d07b3dfc24244700bc8f97662493ad09bc8092979b600d038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 8): examples/community/stable_diffusion_tensorrt_inpaint.py:880-896 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:868-884 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:934-950 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:911-927 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:819-835 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:737-753 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:713-729 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:707-723 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_tensorrt_inpaint.py:880\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: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_inpaint.py"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8272f764a0c067058f87118bb29d40306d865446d0bb0ef18f6a17087b38e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 8): src/diffusers/models/unets/unet_2d_blocks.py:1210-1226 | src/diffusers/models/unets/unet_2d_blocks.py:2381-2397 | src/diffusers/models/unets/unet_dreamlite.py:618-635 | src/diffusers/models/unets/unet_dreamlite.py:768-785 | src/diffusers/models/unets/unet_dreamlite.py:1003-1020 | src/diffusers/models/unets/unet_dreamlite.py:1163-1180 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1666-1682 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1916-1932 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:618\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: \u0060DualTransformer2DModel\u0060 names \u0060....models.transformers.dual_transformer_2d\u0060 in one and \u0060..transformers.dual_transformer_2d\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"beba2e6079261c7d1f9ad4401588858110c7e0f360ad73305400f431c10d1da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 8): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:169-184 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:204-219 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:357-372 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:315-330 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:350-365 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:189-205 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:199-214 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:218-233 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:169\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ef4a17d7915e976fe368058c2df1cf7ecc1d6bac7a2e6453b096e6ce982461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 7): examples/community/adaptive_mask_inpainting.py:247-263 | examples/community/pipeline_kolors_inpainting.py:169-185 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:365-381 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:215-231 | examples/community/stable_diffusion_repaint.py:72-88 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:172-188 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:170-186 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2792d7e1b6cb4f6808d3b721d9eb58fa703c210a2c7b8b409fd308c1284851"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 7): examples/community/fresco_v2v.py:2242-2258 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1103-1119 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:871-887 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1113-1129 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1111-1127 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1233-1249 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1060-1076 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1254 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2242\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6dc57952b287db7a3d83f17dc904792605c8c67454bd7e0329b9a0ad8dba31a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 7): examples/community/kohya_hires_fix.py:326-342 | examples/community/matryoshka.py:3126-3142 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:848-864 | src/diffusers/models/unets/unet_2d_condition.py:1207-1223 | src/diffusers/models/unets/unet_3d_condition.py:640-656 | src/diffusers/models/unets/unet_motion_model.py:2079-2095 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1380-1396 \u2014 before extracting anything, compare \u0060examples/community/kohya_hires_fix.py\u0060 and \u0060examples/community/matryoshka.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/kohya_hires_fix.py:326\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/kohya_hires_fix.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"36331c92cdf32dc0f10e2dfad2f3161bca8c88d10447b45e878817f97a4ddd2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 7): examples/community/pipeline_flux_differential_img2img.py:855-871 | examples/community/pipeline_flux_rf_inversion.py:809-825 | src/diffusers/pipelines/flux/pipeline_flux_control.py:715-731 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:787-803 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:913-929 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:776-792 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:855-871 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 629 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ce15d640eedc79f00bad0107ed2424d0e64e44ac33e6426473afd415c15fe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 7): examples/community/pipeline_z_image_differential_img2img.py:221-237 | src/diffusers/pipelines/z_image/pipeline_z_image.py:180-196 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:235-251 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:242-258 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:210-226 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:232-248 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:189-205 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_z_image_differential_img2img.py:221\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: \u0060ZImageTransformer2DModel\u0060 names \u0060...models.transformers\u0060 in one and \u0060diffusers.models.transformers\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"13eb5feb222118d81d1949526533010a8cccd3eca5f55fbfa3ec9080bcb20faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 7): examples/community/pipeline_z_image_differential_img2img.py:828-844 | src/diffusers/pipelines/z_image/pipeline_z_image.py:588-604 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:725-741 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:752-768 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:700-716 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:923-939 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:734-750 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060ZImagePipelineOutput\u0060 names \u0060.pipeline_output\u0060 in one and \u0060diffusers.pipelines.z_image.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf570fd1dc8c5fe54ace1f2453b025f9a94fe7cf23764998714da5ec42417676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 7): examples/community/stable_diffusion_xl_controlnet_reference.py:719-735 | examples/research_projects/anytext/anytext.py:2206-2222 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1194-1210 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1351-1367 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1347-1363 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1136-1152 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1336-1352 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060examples/research_projects/anytext/anytext.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 528 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c27b570f1766ffe8ff3a2da7ecff5b101c9f3a276ef9b7dba432efabc0f92d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 7): src/diffusers/models/transformers/transformer_bria.py:275-291 | src/diffusers/models/transformers/transformer_bria.py:342-358 | src/diffusers/models/transformers/transformer_bria_fibo.py:220-236 | src/diffusers/models/transformers/transformer_flux.py:508-524 | src/diffusers/models/transformers/transformer_krea2.py:318-334 | src/diffusers/models/transformers/transformer_longcat_image.py:360-376 | src/diffusers/models/transformers/transformer_ovis_image.py:363-379 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e5edcb14d70f01a55de7517c3971d1d9bea0a1559e1472a0fd6cb8daf89254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 7): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:216-232 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:240-256 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:393-409 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:244-260 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:395-411 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:351-367 | src/diffusers/pipelines/latte/pipeline_latte.py:250-264 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:216\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"8576816e4fec992e17c6bf75dcbb3205a7fa0ac2070bfab69203a56f44938c46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): examples/community/hd_painter.py:52-68 | examples/community/hd_painter.py:152-168 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:200-216 | examples/community/pipeline_stable_diffusion_xl_instantid.py:200-216 | src/diffusers/models/attention_processor.py:1135-1151 | src/diffusers/models/attention_processor.py:4273-4289 \u2014 there are 6 copies across 4 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/hd_painter.py:52\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed1d8b37633da2d7ceb61a5d24237ad0bd508bede66fbb14ec99ae6f40c55a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 6): examples/community/matryoshka.py:809-824 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:244-260 | src/diffusers/models/unets/unet_2d_blocks.py:1048-1063 | src/diffusers/models/unets/unet_3d_blocks.py:433-448 | src/diffusers/models/unets/unet_3d_blocks.py:564-579 | src/diffusers/models/unets/unet_motion_model.py:257-272 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:244\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060ResnetBlock2D\u0060 names \u0060..resnet\u0060 in one and \u0060diffusers.models.resnet\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"83602b4e9ab3ba6bca89dcc02a005dac598376e24839758c087d537a36044721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 6): examples/community/pipeline_flux_semantic_guidance.py:1039-1054 | src/diffusers/pipelines/chroma/pipeline_chroma.py:766-781 | src/diffusers/pipelines/flux/pipeline_flux_control.py:760-775 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1006-1021 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:591-606 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:629-645 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:766\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f5e24f803ba11492dae4747f5da7b8173d03e25c864662cffeab9a1bf2c54c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): examples/community/pipeline_stable_diffusion_xl_ipex.py:990-1006 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1144-1160 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1191-1207 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1122-1138 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1120-1136 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:833-849 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_ipex.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py\u0060 as WHOLE FILES: this scan already matched 69 separate duplicated blocks between them, totalling at least 989 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1144\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d8c854781bbfb22d668eaa0f6a0ca27cd08d9ca0423e2146567e00b1128902"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): examples/community/pipeline_stg_ltx.py:272-288 | examples/community/pipeline_stg_ltx_image2video.py:295-311 | src/diffusers/pipelines/ltx/pipeline_ltx.py:246-262 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:332-348 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:515-531 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:269-285 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbae1be90a1467db87f53035dc8dddf93c13403c956e28482654636e593bd12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 6): scripts/convert_sd3_to_diffusers.py:126-142 | scripts/convert_sd3_to_diffusers.py:174-190 | scripts/convert_sd3_to_diffusers.py:206-220 | src/diffusers/loaders/single_file_utils.py:2098-2114 | src/diffusers/loaders/single_file_utils.py:2145-2161 | src/diffusers/loaders/single_file_utils.py:2177-2191 \u2014 before extracting anything, compare \u0060scripts/convert_sd3_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 249 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_sd3_to_diffusers.py:126\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/convert_sd3_to_diffusers.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3cf78c2af840e0e5b051108c56d4f5f8ae7eb4e908c0b1f3a948ffcf6650f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 6): src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:576-592 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:659-675 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:712-728 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:758-773 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:732-748 | src/diffusers/pipelines/latte/pipeline_latte.py:758-773 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 200 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:576\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:750\u0060 calls \u0060get_timesteps\u0060, \u0060repeat\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:677\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96ea5f78035d363ea6f27cf9fa29caff4936269dfde0c84e4e3051aa877483e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 6): src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1330-1345 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1304-1320 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1490-1506 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:894-910 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1308-1324 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1514-1530 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 111 separate duplicated blocks between them, totalling at least 1729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1328\u0060 calls \u0060callback\u0060 and \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:892\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"595d2f230952766606ff373af388d16d123b9569f4c16afbc1b2b3adbc389a01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): examples/community/matryoshka.py:2151-2167 | src/diffusers/models/unets/unet_2d_condition.py:359-375 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:162-178 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:296-312 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:649-665 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_condition.py:359\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":"examples/community/matryoshka.py"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b7fa67d809f409fdc450b1631f08b6cc4c27dbbbb8a0da143d9ed271745917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): examples/community/pipeline_kolors_inpainting.py:1477-1493 | examples/community/pipeline_sdxl_style_aligned.py:1725-1741 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2032-2048 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1509-1525 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1508-1524 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 748 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1509\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1477}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c719cec8cbea4a92df070059f3cd707f03b8f284a684a8240ab720ab281b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 5): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:375-407 | src/diffusers/pipelines/allegro/pipeline_allegro.py:265-297 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:240-272 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:353-385 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:297-329 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e569eee240e2b2c2bd75d4643e0847288cdf894da1926c75fc1027e511543c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): src/diffusers/models/transformers/transformer_chronoedit.py:105-121 | src/diffusers/models/transformers/transformer_sana_video.py:132-148 | src/diffusers/models/transformers/transformer_skyreels_v2.py:108-124 | src/diffusers/models/transformers/transformer_wan.py:102-118 | src/diffusers/models/transformers/transformer_wan_animate.py:585-601 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_sana_video.py:129\u0060 calls \u0060relu\u0060 and \u0060src/diffusers/models/transformers/transformer_chronoedit.py:103\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":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3404e9e61b8f91c590b35bc5914d04227eaab2cdeccb49de121b9b400b5c4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): src/diffusers/models/transformers/transformer_chronoedit.py:381-397 | src/diffusers/models/transformers/transformer_sana_video.py:198-214 | src/diffusers/models/transformers/transformer_skyreels_v2.py:396-412 | src/diffusers/models/transformers/transformer_wan.py:377-393 | src/diffusers/models/transformers/transformer_wan_animate.py:856-872 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_sana_video.py:196\u0060 calls \u0060is_available\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py:394\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":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"362a67a8ea18802c95e595273db14f5fa33af54f999421512103064d7a8314f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): src/diffusers/modular_pipelines/ltx2/encoders.py:1055-1071 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:908-924 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:769-785 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:710-726 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:931-947 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/ltx2/encoders.py:1055\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ca9c040887963240c3b0a146f0197bad6fc4b17b7d9137372a2eef12d344b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 5): src/diffusers/modular_pipelines/ltx2/encoders.py:1077-1090 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:934-950 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:795-811 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:736-752 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:957-973 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"740cf47b51672a4afeccd9a39bbae6b18981b65b8963e015394d1aa1e794e478"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1356-1372 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1785-1801 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1318-1334 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2189-2205 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1435-1451 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1356\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, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1375\u0060 calls \u0060set_begin_index\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1805\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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd067435a6e06f7077bb9860348ab54b7f1f1804f9cc8a777ed923c5db32ec25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:194-210 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:258-274 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:240-256 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:201-217 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:211-227 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc5ffa3c2680dd6ff822c1c51c2888b8d348e776183feca9e550ad8aadda76f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1240-1255 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1137-1153 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1392-1407 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1380-1395 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 62 separate duplicated blocks between them, totalling at least 992 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1137\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1134\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1388\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc780edb793a4e13d8756027e5e9848cab31df6858165cda9a6eba658972cfec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): examples/community/pipeline_kolors_inpainting.py:1578-1593 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2169-2185 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1644-1659 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1612-1627 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1644\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":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a37610e40cbca41cabb8a38de3c53b5eecdfcd04f7f5cba527e1458d07fa9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): examples/community/pipeline_sdxl_style_aligned.py:1583-1598 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1141-1157 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1214-1230 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1356-1372 \u2014 before extracting anything, compare \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1025 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":1583}}}],"partialFingerprints":{"codehealthFindingId/v1":"daba18d01e7c611b5a32e071d7255035bde9d8b20b463198a1d3e303dc8c2258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): examples/research_projects/anytext/anytext_controlnet.py:396-412 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:325-341 | src/diffusers/models/controlnets/controlnet.py:740-756 | src/diffusers/models/controlnets/controlnet_union.py:721-737 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext_controlnet.py\u0060 and \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/anytext/anytext_controlnet.py:413\u0060 calls \u0060hasattr\u0060 and \u0060src/diffusers/models/controlnets/controlnet_union.py:738\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":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc91bbc9a5f8fd5de980123df195359df722f35b4a667a7811a37a2987bb77a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 4): scripts/convert_cogview3_to_diffusers.py:118-134 | scripts/convert_cogview4_to_diffusers.py:126-142 | scripts/convert_mochi_to_diffusers.py:93-105 | src/diffusers/loaders/single_file_utils.py:2753-2765 \u2014 before extracting anything, compare \u0060scripts/convert_cogview3_to_diffusers.py\u0060 and \u0060scripts/convert_cogview4_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_cogview3_to_diffusers.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"953ed09723cc552fa8216d9bd7c883f8727448c4ab7b50f4b676351a85b7c7ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 4): src/diffusers/loaders/ip_adapter.py:138-152 | src/diffusers/loaders/ip_adapter.py:431-447 | src/diffusers/loaders/ip_adapter.py:685-699 | src/diffusers/loaders/ip_adapter.py:964-978 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/ip_adapter.py:431\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8106d1f898a497f88042bd4cfefa3892336be954d59e1ce2855b71390685ca01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): src/diffusers/models/controlnets/controlnet_z_image.py:132-148 | src/diffusers/models/transformers/transformer_bria_fibo2.py:237-253 | src/diffusers/models/transformers/transformer_ernie_image.py:135-151 | src/diffusers/models/transformers/transformer_z_image.py:131-147 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/controlnets/controlnet_z_image.py:129\u0060 calls \u0060to\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py:234\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":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"05315ce4c774f3fddd320284d62461aa3875be674ec4f8bf711de2b18287001b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 4): src/diffusers/models/embeddings.py:984-1006 | src/diffusers/models/transformers/transformer_nucleusmoe_image.py:64-85 | src/diffusers/models/transformers/transformer_qwenimage.py:120-141 | src/diffusers/models/transformers/transformer_qwenimage21.py:112-133 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. 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":"src/diffusers/models/embeddings.py"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"9470c6f26f2d4a14d9914e25227827a6fe146d47ad3a03141abc23593f63974d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:711-727 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:879-894 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:884-899 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1087-1102 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py:711\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd9acda00a5e42bc1257254c29fddfabf90913bf06d4fdbcc96ef21e4125dda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:857-873 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1106-1122 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1056-1072 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1344-1360 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py:855\u0060 calls \u0060callback\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1104\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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5862d55bf7f7aca0fa68bf26560894bdfbcfcc12b8609669422f2d92a42f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 4): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:218-251 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:237-270 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:204-237 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:247-280 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 518 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd639f068cd3d47180150f817493878b3ca7d6f9f65e5a47f0b25fef961e34a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:319-335 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:338-354 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:304-320 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:348-364 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 518 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:319\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":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"c940e2671a8c8bcc04935659dce2d6fde7d161fa8c8c390f876e65d41572fcfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:889-904 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1302-1318 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1508-1524 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1623-1639 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 as WHOLE FILES: this scan already matched 56 separate duplicated blocks between them, totalling at least 702 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5937f064a19e094d27a7208e90a4af4e6c5e5c742604fdc0a216db40178223"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:552-569 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:800-817 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:322-338 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:588-604 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.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 7 separate duplicated blocks between them, totalling at least 115 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:800\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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0fdff2637e2aee6619565aacdc38a50632ffe5289307389b93dc9cc4bc3a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 4): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1083-1099 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1127-1140 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1229-1245 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1269-1282 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cb60e3c43b2e4137e962efcd1d9720703a9256b80afdf61b26c8ecf4696add"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:574-590 | src/diffusers/pipelines/wan/pipeline_wan.py:517-533 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:660-676 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:847-863 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 500 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ecf20ca2779b68a9e22eef7f99b0229d7353ef5c6c285c6a111d63e1edef97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): examples/community/cogvideox_ddim_inversion.py:151-167 | src/diffusers/models/attention_processor.py:2317-2331 | src/diffusers/models/attention_processor.py:2388-2402 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/cogvideox_ddim_inversion.py:151\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":"examples/community/cogvideox_ddim_inversion.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"08733dc43a5f0b147c6bce8319d9f7a1e815c337ce8719859d68fce6b5a422d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/community/composable_stable_diffusion.py:209-225 | examples/community/sd_text2img_k_diffusion.py:160-176 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:234-250 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/sd_text2img_k_diffusion.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53d7590c58d64f21a573524ad5d95569b70a1207c19f5fed5c0742bf9780f08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/community/hd_painter.py:929-945 | examples/community/pipeline_stable_diffusion_boxdiff.py:102-118 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1087-1103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"2425f2b106b600a13150b0a3aaa3ee0d7ef07c60fa588af1d763f32d96a5f95f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/community/hd_painter.py:983-999 | src/diffusers/models/attention.py:432-448 | src/diffusers/models/attention_processor.py:681-697 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/hd_painter.py:983\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 \u0060attention_mask\u0060 to \u0060torch.Tensor = None\u0060 in one and \u0060torch.Tensor | None = None\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"195bcb1392dbb370068f43d4d535e6b31d78c420f5ab548386dc76dd398b1054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): examples/community/llm_grounded_diffusion.py:1040-1055 | examples/community/pipeline_animatediff_img2video.py:942-957 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:786-802 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 465 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd1e53f526f8291df32e364d604f29154df3b77917b77d2e45f97d0c675c7eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/community/pipeline_flux_kontext_multiple_images.py:548-564 | src/diffusers/pipelines/flux/pipeline_flux.py:486-502 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:537-553 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 990 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:548\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"496d96d81af22f285461eb33362607f1931ce9c4ad2c8d7b467f1c20a7f1b6a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/community/pipeline_z_image_differential_img2img.py:660-676 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:573-589 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:760-776 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 642 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a33838297fc9295b0bab1b1d845064976b0a355a81375cf09aaf6314821b86d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1250-1266 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:965-980 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1143-1159 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1048 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1250\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, \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1246\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1140\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c094b05cdba0401d9c04afd2764b43864bc067755a9452735ab76b4dac1952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:184-195 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:191-202 | src/diffusers/modular_pipelines/flux3/encoders.py:266-282 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py:184\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":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7808b1654666ea9e6059727ec979624716903c8ed74914ce5a3b80d5de485d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/loaders/ip_adapter.py:155-171 | src/diffusers/loaders/ip_adapter.py:451-467 | src/diffusers/loaders/ip_adapter.py:702-718 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bce5ffbea64ff695850b2085da77bf97e259a0ac10f73f2bf4cff3577e343f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/models/controlnets/controlnet.py:357-373 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:278-294 | src/diffusers/models/controlnets/controlnet_union.py:317-333 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 317 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py:275\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/models/controlnets/controlnet.py:355\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1ef2a390eb48f5a062f70fefa5fd3e1456646bf364d2d872a3ec4395340952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:101-116 | src/diffusers/models/transformers/transformer_ernie_image.py:100-116 | src/diffusers/models/transformers/transformer_z_image.py:100-115 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa60891bc66a57c515a0ee02b554067cb4aa67f743ad5b47bfe14fc36e92c069"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:268-284 | src/diffusers/models/controlnets/controlnet_z_image.py:407-423 | src/diffusers/models/transformers/transformer_z_image.py:264-280 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 289 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"71caa022dc013c571f38ae4ee78f60cdc0d6fbc8530dbb6c40d5064562fcc6fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:317-333 | src/diffusers/models/transformers/transformer_bria_fibo2.py:161-177 | src/diffusers/models/transformers/transformer_z_image.py:342-358 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ddf550f550e3974d75d913bc0e0835eeb0ddcf82c99dfaffad32296a580571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/models/transformers/stable_audio_transformer.py:347-364 | src/diffusers/models/transformers/transformer_ltx.py:560-576 | src/diffusers/models/transformers/transformer_nucleusmoe_image.py:898-914 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/stable_audio_transformer.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"84dab4963ded75997b3e42eb681681e4807f6f388ad02ed700f5f42bae45c2c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/models/transformers/transformer_bria.py:680-696 | src/diffusers/models/transformers/transformer_flux.py:789-805 | src/diffusers/models/transformers/transformer_ovis_image.py:559-575 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_flux.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 340 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_bria.py:680\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"648546293795fa420c71821aad6582d4d2ae03d315f6faca1b31fad3edb9f586"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:196-211 | src/diffusers/models/transformers/transformer_qwenimage.py:261-277 | src/diffusers/models/transformers/transformer_qwenimage.py:384-400 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"4259213b21bf5524783174abdac708e73f08df40de61b5484e858bc53d6b3b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/models/unets/unet_2d_condition.py:372-388 | src/diffusers/models/unets/unet_dreamlite.py:1787-1803 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:662-678 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb46f1d3bf6fbe093d1e098a593979627341e316de940ded0673fe06f0ce3c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/models/unets/unet_dreamlite.py:585-601 | src/diffusers/models/unets/unet_dreamlite.py:733-749 | src/diffusers/models/unets/unet_dreamlite.py:864-880 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a09dba7ee5376bedb847c4781f55b9addcc2d088037e4c5972dbad01f31745d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/modular_pipelines/flux/inputs.py:231-247 | src/diffusers/modular_pipelines/flux/inputs.py:290-306 | src/diffusers/modular_pipelines/z_image/before_denoise.py:388-404 \u2014 before extracting anything, compare \u0060src/diffusers/modular_pipelines/flux/inputs.py\u0060 and \u0060src/diffusers/modular_pipelines/z_image/before_denoise.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060FluxModularPipeline\u0060 in one and \u0060ZImageModularPipeline\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":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4eb2ee22d05520dcdb0ea73e78d6dcaa314fd29484cc534a5dd2277d053929"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:516-532 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:584-600 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:620-636 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:516\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"291c1872d1e903474ca917080f657b94e85ff2c74274fd718243b6628f527079"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:953-969 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1113-1129 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1271-1287 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"27743cf5a0a4a69a9494eaa48ee79268a5edb5aaea4b9781077327f97827e89c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): src/diffusers/pipelines/bria/pipeline_bria.py:657-671 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:644-660 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:886-902 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/bria/pipeline_bria.py\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/bria/pipeline_bria.py:657\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:907\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:663\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e7945cc28e07f0e265d92fc50fd79b6e1c2de0affba7edb2c2b6df94eaf81f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:727-743 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:793-809 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:808-824 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 867 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:727\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef32bb18106908d75debc0ad53fdeaf82c4468d5c3de9cdbf8e00779b0dae02a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1612-1628 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1659-1675 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1629-1645 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 1887 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1610\u0060 calls \u0060callback\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1627\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3ac234597893c07727136a16c554065ffdcc7946dbf6b9868f745970b7770a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:244-260 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:259-275 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:277-293 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c8a8720caa51aca9ea3c9666e6c6701b2de8ddbded5cb51c71330737370498"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1726-1742 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1447-1463 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1541-1557 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"073a5f7753a0782b26e5dea5f2ddf851979e32ba7423b7a4cfbf8620341efb39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:326-342 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:347-363 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py:378-394 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py\u0060 and \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:326\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e718c2871a0ff2c17d432eb0d01743ac8c225342d6e89aa56e50ea520f27d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:907-923 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:847-863 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:779-795 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py\u0060 and \u0060src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 657 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:867\u0060 calls \u0060get\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:926\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7068bf1fe6b03ba9a14520fefedba7fbf19af2f4d980b1ba8cc982eac40f175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:681-697 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:639-655 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:549-565 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:681\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fde238980add3eb83190bfef9f23dd5e2461dbcb7a97c681c2aa56d8508dd6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:597-613 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:603-619 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:571-586 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 409 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:597\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:570\u0060 calls \u0060normalize_normals\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:597\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"da820ab244bcbb3f27b9f9005cbd5259605e7f1b7fe8de46cf12f3cb3569459e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:629-645 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:635-651 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:603-619 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 409 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f25499a5e1f3f36b52313e0d012d8a523505b7dc2d053307898e8d87219f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/sana/pipeline_sana.py:964-980 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:846-862 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:936-952 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 604 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/sana/pipeline_sana.py:964\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb97b3c2642b916e9c28fb3eb697ca7244b9a35a5531f7972a5218c6806a2720"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:369-385 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:367-383 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:370-386 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 254 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"a436363b3bbbf62a0603e2f753772ab71a0eeb7564de811ed0b6418ad843f562"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/community/llm_grounded_diffusion.py:529-545 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:471-487 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 644 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/llm_grounded_diffusion.py:529\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a1e51240b13e09fe6c62b979856fefb2678a77bd12280bf1f8b4a3fddf5d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/community/matryoshka.py:1074-1090 | src/diffusers/models/unets/unet_2d_blocks.py:2344-2360 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9f2dcf5002646b4acf21a873d45f91295be846e7e2109effc3b9cd62b58b1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): examples/community/pipeline_animatediff_controlnet.py:900-916 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:836-851 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 808 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_controlnet.py:900\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":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa08f5930bb551903e7a5a605d5b5348084a1d4663957be3d8ccee4a24a4c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1144-1160 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:783-798 \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 \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:783\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"53078818eaeb45027604a245703e9292f18700e05cc55c2683c729ad950d708c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/community/pipeline_stg_mochi.py:517-533 | src/diffusers/pipelines/mochi/pipeline_mochi.py:402-418 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_mochi.py\u0060 and \u0060src/diffusers/pipelines/mochi/pipeline_mochi.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 799 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"6471cedbae9cb720b67cfdf6d91c67166bd47c5a7829d982399e489bd9e72552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): examples/community/unclip_text_interpolation.py:331-347 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:784-799 \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 \u0060examples/community/unclip_text_interpolation.py:331\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_text_interpolation.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"74de9eb76b51487e045c80818849a171f64a506b488746be658f2901a16933c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): scripts/convert_flux2_to_diffusers.py:350-366 | src/diffusers/loaders/single_file_utils.py:3898-3914 \u2014 before extracting anything, compare \u0060scripts/convert_flux2_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_flux2_to_diffusers.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"0987fb806712119acbbdfabba7f73e3483b3ec7eb34abd8ba7fcea43b4ebe40b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): scripts/convert_sd3_to_diffusers.py:222-238 | src/diffusers/loaders/single_file_utils.py:2193-2209 \u2014 before extracting anything, compare \u0060scripts/convert_sd3_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 249 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_sd3_to_diffusers.py:222\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":"scripts/convert_sd3_to_diffusers.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b2afe47d1b3882af204c058c3ce5b6dd81379473e8d2fb133fc3288689ea26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:2074-2090 | src/diffusers/models/attention_dispatch.py:4075-4091 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"83646b43b957cd01fbb63c4239859f6ba77c4c1778498b6d99eb0f6e7b51f6d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): src/diffusers/models/attention_processor.py:3034-3045 | src/diffusers/models/unets/unet_dreamlite.py:328-344 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/unets/unet_dreamlite.py:326\u0060 calls \u0060group_norm\u0060, \u0060transpose\u0060 and \u0060src/diffusers/models/attention_processor.py:3032\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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3034}}}],"partialFingerprints":{"codehealthFindingId/v1":"25596bf563897fe447d37818e5c5e81a02b6fefb946568ee519adc12f87de3db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): src/diffusers/models/attention_processor.py:4355-4371 | src/diffusers/models/attention_processor.py:4818-4831 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4355}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a9acf4f5b6a9fa27c527b58c54f4547367a99c3f7540246972caabbb7b908f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1498-1514 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1516-1532 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdab8d74ad7fcff53b66008591d04333f32b307a8c2e6b96e18d5c4cff28e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:286-302 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:340-356 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_magvit.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e15cafe9413690f44f820f85c49781ac1a480e78e754fa22eaa948aec44f04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:852-867 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:840-856 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb269d3e764d320ae13b14eeb9064603dc144e95f36255fefcd577086837db2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_union.py:727-743 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:642-658 \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 \u0060src/diffusers/models/controlnets/controlnet_union.py:727\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_union.py"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0791315be8aa78a10e3897707c6be242a209189b693a6e1b16fb739169f3b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py:128-144 | src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py:227-243 \u2014 before extracting anything, compare \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py\u0060 and \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py:225\u0060 calls \u0060SpatialRationalResampler\u0060 and \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py:127\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"194cf06d3a9a81cc7299efca8f99258c5bd317abcbe83e54b7b923a93a0d524a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/transformers/sana_transformer.py:225-241 | src/diffusers/models/transformers/transformer_sana_video.py:388-404 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/sana_transformer.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_video.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/sana_transformer.py:225\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1c06a1a1bd4c70e65631c7965714a3a304dd88d4996e3b4bd4b13da8610138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/transformers/transformer_flux2.py:980-996 | src/diffusers/models/transformers/transformer_flux3.py:305-321 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c30ac2259c38461b032de2aacf52b3d5e5c3204701cfbc24fb442744b28406"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video.py:519-535 | src/diffusers/models/transformers/transformer_hunyuan_video.py:674-690 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e2b7a3e7c4d941bb5b816a1a66dcda852844f193090e6533a9d5d2608f2f10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:1267-1283 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1286-1302 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.py:1267\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"476e209064dcfea36eec24d52d5cc639650af715013f9acb5de165cfece1647c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm.py:1316-1332 | src/diffusers/models/transformers/transformer_sana_wm.py:2547-2559 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa71e906702d1efc26361e62ebe8112b26855c3be8b799e0309287739fdaa9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1580-1596 | src/diffusers/models/unets/unet_2d_blocks.py:1685-1701 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b86891e57c3d096d3efbca0c4d1a771692a59417ecfd8d578a0e8862f585181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1968-1984 | src/diffusers/models/unets/unet_2d_blocks.py:3223-3239 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1968}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fca8765e9aec33183ec96da20ea90d1fdfdc4acbf0891641164d91cf66777a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:2503-2519 | src/diffusers/models/unets/unet_2d_blocks.py:2617-2633 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2503}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c39a623d8cd210df18c548e357624e49b9166d25c587b39b08a8d021af15e72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:3015-3031 | src/diffusers/models/unets/unet_2d_blocks.py:3125-3141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":3015}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a137aa812726c31747cd48785391494188744a850689baffe1e85b926c8b3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/diffusers/models/unets/unet_3d_blocks.py:1230-1246 | src/diffusers/models/unets/unet_3d_blocks.py:1398-1413 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74258576172e6397287742a6b46f9f9aefdc8f78b9d04e750e198dd5151d26a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/unets/unet_3d_condition.py:553-569 | src/diffusers/models/unets/unet_motion_model.py:1957-1973 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_condition.py\u0060 and \u0060src/diffusers/models/unets/unet_motion_model.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 377 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_condition.py:553\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15f693c8d3f07ee756c8f398f1902cc0374cb9bfe1ad3608c0742586a969f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/unets/unet_dreamlite.py:1395-1411 | src/diffusers/models/unets/unet_dreamlite.py:1530-1546 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:1395\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"93871a1ade81ef1d6aa723b352008de2faa1cf5be4ff6143b7d5cdd78559c3b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): src/diffusers/modular_pipelines/ideogram4/before_denoise.py:494-526 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:259-291 \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":"src/diffusers/modular_pipelines/ideogram4/before_denoise.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"3253c6145433a336e81d65ef813e5b4d2b1ccfc69e30118933210d6080ce66c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/diffusers/modular_pipelines/ltx/decoders.py:164-180 | src/diffusers/modular_pipelines/ltx2/decoders.py:293-308 \u2014 \u0060src/diffusers/modular_pipelines/ltx/decoders.py\u0060 and \u0060src/diffusers/modular_pipelines/ltx2/decoders.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 3 separate duplicated blocks between them, totalling at least 33 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":"src/diffusers/modular_pipelines/ltx/decoders.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"47db3509e5889fe4f58b6fb2ea8fb338c5a55f864c623b6f00f940585ea21267"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): src/diffusers/modular_pipelines/ltx2/decoders.py:182-196 | src/diffusers/modular_pipelines/ltx2/decoders.py:277-293 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/ltx2/decoders.py:182\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/decoders.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8250649ca03bae053d6d46cb8cb301c4279606d01c7e65bee5f450e8ef37a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:2090-2102 | src/diffusers/pipelines/pipeline_utils.py:317-333 \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":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2090}}}],"partialFingerprints":{"codehealthFindingId/v1":"8feb60a3de2e5d7dbe9fee5700601b5d158e5913a6b33522303cd4b130959e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:2804-2819 | src/diffusers/pipelines/pipeline_utils.py:557-573 \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 \u0060src/diffusers/modular_pipelines/modular_pipeline.py:2804\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2804}}}],"partialFingerprints":{"codehealthFindingId/v1":"f341e7c0d68dbc48a3e17546a06c7ea68e4cac48f716910fe98b9050670b49ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:825-841 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:917-933 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/deprecated/pia/pipeline_pia.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 717 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4158407bda004731d707870e05f6dad5f72b647ce00613b121836e65cc69a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:1010-1026 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:945-961 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py\u0060 and \u0060src/diffusers/pipelines/deprecated/pia/pipeline_pia.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 976 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9163620ed69b95880a8bf491d89cf24851f4ee2bd0ecfb0e6b485ae94db177"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:843-859 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1159-1175 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa026c79552bc1b01e73103183f8333f01b3e833172af6d436a5766fcddae89a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:923-938 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1087-1103 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 786 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1087\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"a990133047e64114033a0425ce3f8d718c797e29b18668e369adc575417f52d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201317 lines \u00D7 3): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:919-935 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1029-1045 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:789-792 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 984 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a2b257f16a48ae88e1fc7129b4eefe0e5eec2568cc26344d737e8869ef6352"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:152-168 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:139-155 \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":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0c410d26216b9b48b7b51af99e556f71c9dbeed15ede578b1ce7ada6aa3680"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux_kontext.py:628-643 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:704-720 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py\u0060 as WHOLE FILES: this scan already matched 87 separate duplicated blocks between them, totalling at least 1246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py:628\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext.py"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abc0b276bfcb31f8708b1ae46ba059c66620deba9b947863f846f666a38788e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:723-739 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:837-853 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:723\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"1984fc4ad52481939ed1895120d27654e788ce7a6b20d31dd5ad2f53ccd28b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:353-368 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:443-459 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 396 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:353\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f2ebb07cf1846abf9324711a7fa73cfa6e8a770f7b9d51bb91df7ca1e2f596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:166-181 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:166-182 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 533 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"33141a4f0aa6c241f08e6aeb218a0ae07017359b2b97ec699b277bf157bb7571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1378-1394 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1381-1397 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14ca0b9f945b91655ae6c793744f67db6459ef0eea20cff475368da0b199699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:76-106 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:73-103 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py\u0060 and \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"525114a170e2e69762b25aea170911312b15c3dd25421b7b341e7a31ecfb28de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1486-1502 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1526-1542 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1486\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0749d67a0bb484e91a325179dc84235157e2b6a1dc91a77d1b9598b1218ddd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1557-1573 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2492-2508 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 903 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"1118ff67fedb61d9e99b70766d72231ece047c5b48bf3a0ce93d356881b8bf3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:872-885 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:915-931 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:872\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":"src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b57140e6a25ca10810aa3e5fc0276efd966a2e9d46d04a2fde4d94645460b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:475-491 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:590-606 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 507 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:475\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec6bb7bced61499cdf9d5c69bb0e1d060ce304bb730f8539116e456277130fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:837-853 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:928-942 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:837\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fa88dbd475c224070f513b3a78d5598f6c7ccfd7bc4a710759df0a4d7a4f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/pipelines/wan/pipeline_wan_i2v.py:625-641 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:828-844 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/wan/pipeline_wan_i2v.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_vace.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/wan/pipeline_wan_i2v.py:625\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_i2v.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"6054e7a4a87edfd9b6651a76ee7747bcd6c9f942bc608f1cd7cdacb4fad4c8d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201317 lines \u00D7 2): src/diffusers/schedulers/scheduling_ddim_parallel.py:271-280 | src/diffusers/schedulers/scheduling_repaint.py:246-262 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim_parallel.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfff76cf7b0f846eebc5b99d2a491836fa049ddbc9a289cc3649795f3139d97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 59): examples/community/fresco_v2v.py:1461-1476 | examples/community/gluegen.py:294-309 | examples/community/ip_adapter_face_id.py:528-543 | examples/community/latent_consistency_interpolate.py:325-340 | examples/community/llm_grounded_diffusion.py:1276-1291 | examples/community/matryoshka.py:3837-3852 | examples/community/pipeline_animatediff_controlnet.py:242-257 | examples/community/pipeline_animatediff_img2video.py:359-374 | examples/community/pipeline_animatediff_ipex.py:213-228 | examples/community/pipeline_prompt2prompt.py:294-309 | examples/community/pipeline_stable_diffusion_boxdiff.py:631-646 | examples/community/pipeline_stable_diffusion_pag.py:597-612 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:237-252 | examples/community/regional_prompting_stable_diffusion.py:575-590 | examples/community/stable_diffusion_reference.py:456-471 | examples/research_projects/anytext/anytext.py:1404-1419 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:366-381 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:198-213 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:243-258 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:252-267 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:342-357 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:320-335 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:326-341 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:371-386 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:399-414 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:276-291 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:260-275 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:340-355 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:466-481 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:264-279 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:295-310 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:356-371 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:327-342 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:255-270 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:332-347 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:303-318 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:236-251 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:233-248 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:451-466 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:203-218 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:238-253 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:860-875 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:408-423 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:285-300 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:270-285 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:319-334 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:295-310 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:348-363 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:209-224 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:343-358 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:378-393 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:376-391 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:248-263 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:402-417 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:356-371 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:261-276 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:341-356 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:303-318 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:355-370 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/gluegen.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/fresco_v2v.py:1478\u0060 calls \u0060isinstance\u0060, \u0060maybe_convert_prompt\u0060 and \u0060examples/community/gluegen.py:310\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6229da6d9fd6a35aff3597e14070a7db36daacb4469d255bec641903897805"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 44): examples/community/lpw_stable_diffusion_xl.py:1027-1042 | examples/community/pipeline_controlnet_xl_kolors.py:533-548 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:579-594 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:630-645 | examples/community/pipeline_demofusion_sdxl.py:457-472 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1602-1617 | examples/community/pipeline_flux_semantic_guidance.py:623-637 | examples/community/pipeline_flux_with_cfg.py:447-461 | examples/community/pipeline_kolors_differential_img2img.py:533-548 | examples/community/pipeline_sdxl_style_aligned.py:850-865 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:569-584 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:644-659 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:597-612 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:744-759 | examples/community/pipeline_stable_diffusion_xl_ipex.py:599-614 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:724-739 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:525-538 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:691-706 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:695-710 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:715-730 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:715-730 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:628-643 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:700-715 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:535-550 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:567-582 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:530-544 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:552-566 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:560-574 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:600-614 | src/diffusers/pipelines/kolors/pipeline_kolors.py:503-518 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:527-542 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:699-714 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:701-716 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:521-536 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:605-620 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:625-640 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:687-702 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:314-329 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:327-342 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:613-628 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:643-658 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:650-665 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:676-691 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:705-720 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 264 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc6bebd19ee7d4cecd0f3bb1d102e774c41a0b5afbefcd9877a86900caae4e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 43): examples/community/fresco_v2v.py:1929-1944 | examples/community/mod_controlnet_tile_sr_sdxl.py:840-855 | examples/community/pipeline_animatediff_controlnet.py:706-721 | examples/community/pipeline_controlnet_xl_kolors.py:683-698 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:758-773 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:809-824 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:841-856 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1178-1193 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:719-734 | examples/community/rerender_a_video.py:510-525 | examples/community/stable_diffusion_reference.py:725-740 | examples/community/stable_diffusion_xl_controlnet_reference.py:271-285 | examples/community/stable_diffusion_xl_reference.py:217-231 | examples/research_projects/anytext/anytext.py:1839-1854 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:786-801 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:678-692 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:866-880 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:809-824 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:783-798 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:825-840 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:891-906 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:869-884 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:873-888 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:867-882 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:846-861 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:864-879 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:592-607 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:697-712 | src/diffusers/pipelines/flux/pipeline_flux_control.py:550-565 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:603-618 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:642-657 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:644-659 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:604-619 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:708-723 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:769-784 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:776-791 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:877-892 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:879-894 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:474-489 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:456-471 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:666-681 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:350-365 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:357-372 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 43 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 43 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:685\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/anytext/anytext.py:1858\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"1adc4a8cc4b2ee4c985c5082e6df84b1356d7bbeffd46f9fdd7469fd2b8d1e9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 21): examples/community/lpw_stable_diffusion_xl.py:1816-1830 | examples/community/masked_stable_diffusion_xl_img2img.py:377-391 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1675-1689 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2097-2112 | examples/community/pipeline_kolors_differential_img2img.py:1146-1160 | examples/community/pipeline_kolors_inpainting.py:1552-1566 | examples/community/pipeline_sdxl_style_aligned.py:1776-1791 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2135-2149 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1044-1059 | examples/community/stable_diffusion_xl_reference.py:1041-1056 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1200-1215 | src/diffusers/pipelines/kolors/pipeline_kolors.py:951-966 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1132-1146 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1079-1094 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1003-1018 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1204-1219 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1398-1412 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1611-1625 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1177-1192 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1367-1381 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1586-1600 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:377\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1f1a61edbcbafa2e302699c9f80302eb56d8858fb9410956aa80e9cd7a398f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201316 lines \u00D7 17): examples/community/fresco_v2v.py:1772-1786 | examples/community/pipeline_animatediff_controlnet.py:537-551 | examples/community/pipeline_controlnet_xl_kolors.py:547-561 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:593-608 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:644-659 | examples/community/rerender_a_video.py:434-447 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:624-638 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:538-552 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:660-670 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:626-640 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:669-679 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:762-777 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:705-720 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:709-724 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:619-629 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:713-728 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:715-730 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1772\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, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:665\u0060 calls \u0060ValueError\u0060, \u0060isinstance\u0060 and \u0060examples/community/fresco_v2v.py:1772\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"648d91cd9a3c092f7ed44644b90f093e7a8d647c4cf0a19fc3570ba6e09fc387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 17): examples/community/pipeline_controlnet_xl_kolors.py:987-1003 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1173-1189 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1385-1401 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:747-762 | examples/community/pipeline_stable_diffusion_xl_instantid.py:743-758 | examples/community/rerender_a_video.py:720-735 | examples/community/stable_diffusion_xl_controlnet_reference.py:574-589 | examples/research_projects/anytext/anytext.py:2106-2122 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1062-1077 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1070-1085 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1068-1083 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1177-1192 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1431-1446 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1222-1237 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1312-1327 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1017-1032 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1142-1157 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:747\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f6564af07ea53f18841979bb541bb58b72a77d6b130eb17e3d3d864a66a029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 16): examples/community/latent_consistency_img2img.py:463-478 | examples/community/latent_consistency_txt2img.py:378-393 | examples/community/matryoshka.py:294-309 | examples/community/scheduling_ufogen.py:110-125 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:595-607 | src/diffusers/schedulers/scheduling_ddim.py:118-133 | src/diffusers/schedulers/scheduling_ddim_inverse.py:117-132 | src/diffusers/schedulers/scheduling_ddim_parallel.py:119-134 | src/diffusers/schedulers/scheduling_ddpm.py:116-131 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:118-133 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:102-117 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:119-134 | src/diffusers/schedulers/scheduling_euler_discrete.py:122-137 | src/diffusers/schedulers/scheduling_lcm.py:121-136 | src/diffusers/schedulers/scheduling_tcd.py:120-135 | src/diffusers/schedulers/scheduling_unipc_multistep.py:102-117 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c52f0fc9910fdcfcf66fcb1a44f65d4b8fd28c90acc751afe1e51fa8d7d7641"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 16): examples/community/pipline_flux_fill_controlnet_Inpaint.py:715-729 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:588-602 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:693-707 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:836-851 | src/diffusers/pipelines/flux/pipeline_flux_control.py:546-560 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:599-613 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:638-652 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:640-654 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:600-614 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:704-718 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:470-484 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:452-466 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:487-500 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:662-676 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:346-360 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:353-367 \u2014 there are 16 copies across 15 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 16 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f546951c34a68f5620150b0e620c3b38ae61792ba811d5f7a5553d41d53d44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 15): examples/community/fresco_v2v.py:1810-1825 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:633-648 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:684-699 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:680-695 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:827-842 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:683-698 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:664-679 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:703-718 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:801-816 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:744-759 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:748-763 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:641-656 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:653-668 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:752-767 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:754-769 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1810\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1810}}}],"partialFingerprints":{"codehealthFindingId/v1":"f870300df919ee1b7c372b1417679bf50d908225a2025e4daca2a12b2e441fcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 15): examples/community/pipeline_stg_cogvideox.py:264-278 | examples/community/pipeline_stg_ltx.py:268-282 | examples/community/pipeline_stg_ltx_image2video.py:291-305 | examples/community/pipeline_stg_mochi.py:267-282 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:210-224 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:218-232 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:228-242 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:234-248 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:176-190 | src/diffusers/pipelines/consisid/pipeline_consisid.py:320-334 | src/diffusers/pipelines/ltx/pipeline_ltx.py:242-256 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:328-342 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:511-525 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:265-279 | src/diffusers/pipelines/mochi/pipeline_mochi.py:205-220 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060examples/community/pipeline_stg_ltx.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stg_ltx.py:284\u0060 calls \u0060to\u0060 and \u0060examples/community/pipeline_stg_cogvideox.py:279\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":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a5a2941eb5a91af6fbd91186e874b8a7f814ab77fb80a03e05fec8f5b7fae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 14): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:678-693 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:390-405 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:304-316 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:308-320 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:663-678 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:805-820 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:606-618 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:246-261 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:563-576 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:640-655 | src/diffusers/pipelines/sana/pipeline_sana.py:638-651 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:687-700 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:530-543 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:647-662 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa7190da9807a0fd9ae1c0cb1950c16032b1db9caec95ab396c16869e0d4020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 14): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:603-617 | examples/community/pipeline_stg_cogvideox.py:706-721 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:641-656 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:694-709 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:739-754 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:714-729 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:537-552 | src/diffusers/pipelines/consisid/pipeline_consisid.py:815-830 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:648-663 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:871-885 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:661-675 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:850-864 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:595-609 | src/diffusers/pipelines/latte/pipeline_latte.py:738-753 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 14 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 14 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc552fda2a34e2ed93793d00b12914900caf173333e35e228416a90f7068162"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 13): examples/community/mod_controlnet_tile_sr_sdxl.py:1717-1732 | examples/community/pipeline_controlnet_xl_kolors.py:1237-1250 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1441-1454 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1761-1774 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:998-1009 | examples/community/pipeline_stable_diffusion_xl_instantid.py:987-998 | examples/community/stable_diffusion_xl_controlnet_reference.py:1239-1250 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1777-1788 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1494-1505 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1552-1563 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1793-1804 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1513-1524 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1604-1615 \u2014 before extracting anything, compare \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:1717\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"7426d2031ff5cd8a8d6cc6cc36cc6d3fc4c3dce7ea4bf337d3fb32cad11518c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 13): examples/community/pipeline_stg_wan.py:531-545 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:527-541 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:598-612 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:618-633 | src/diffusers/pipelines/helios/pipeline_helios.py:634-648 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:710-724 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:506-520 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:762-776 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:821-835 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:857-871 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:621-636 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:954-968 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:620-634 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 323 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:523\u0060 calls \u0060set_timesteps\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py:545\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":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1fc823e0516c1e06263110aa2216a2929a0b659977132fcf81100a85f3f144"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 12): examples/community/lpw_stable_diffusion_xl.py:1293-1308 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1092-1107 | examples/community/pipeline_kolors_inpainting.py:897-912 | examples/community/pipeline_sdxl_style_aligned.py:1093-1108 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1169-1184 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1031-1046 | examples/community/stable_diffusion_controlnet_inpaint.py:701-715 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:688-702 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1026-1041 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1005-1020 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:890-905 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:890-905 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_inpaint.py:701\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c537e73e1825c83cd231da1f48237a8293c2b1cbdf9a1489492aa94b0074c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 12): examples/community/matryoshka.py:1144-1159 | src/diffusers/models/unets/unet_2d_blocks.py:2429-2444 | src/diffusers/models/unets/unet_2d_blocks.py:2546-2561 | src/diffusers/models/unets/unet_3d_blocks.py:749-764 | src/diffusers/models/unets/unet_3d_blocks.py:864-879 | src/diffusers/models/unets/unet_dreamlite.py:1047-1061 | src/diffusers/models/unets/unet_dreamlite.py:1207-1221 | src/diffusers/models/unets/unet_dreamlite.py:1311-1325 | src/diffusers/models/unets/unet_motion_model.py:679-694 | src/diffusers/models/unets/unet_motion_model.py:823-838 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1819-1834 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1964-1979 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb3432ff6863bf2cd151393f95980640324d1d87cf67a4233d8227703f152bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 12): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:823-838 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1057-1072 | src/diffusers/pipelines/chroma/pipeline_chroma.py:745-760 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:819-834 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:970-985 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1031-1046 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1203-1218 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:859-874 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:923-938 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:971-986 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1019-1034 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1131-1146 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 772 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:745\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee74e62270d04c598a47a5b13a253f264c5a77caebb9c42674ecf34f1237a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 12): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1118-1132 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:819-833 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:968-982 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1030-1044 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:887-901 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:912-926 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1045-1059 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1233-1246 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1104-1118 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:890-905 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:686-699 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:830-844 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4535423024793d6c9be5159b1820082e450a2f67ae2d9b707eac08bc18b878f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 12): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:174-188 | scripts/convert_i2vgen_to_diffusers.py:31-45 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:81-96 | scripts/convert_ms_text_to_video_to_diffusers.py:27-41 | scripts/convert_original_audioldm2_to_diffusers.py:159-173 | scripts/convert_original_audioldm_to_diffusers.py:152-166 | scripts/convert_original_musicldm_to_diffusers.py:152-166 | scripts/convert_svd_to_diffusers.py:126-140 | scripts/convert_unidiffuser_to_diffusers.py:118-132 | scripts/convert_versatile_diffusion_to_diffusers.py:198-213 | scripts/convert_zero123_to_diffusers.py:146-160 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:172-186 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 322 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d069980b0222b1b5836b01936c5581f47e2c37d102b79a350072465bf728eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 11): examples/community/hd_painter.py:825-839 | examples/community/lpw_stable_diffusion_xl.py:1871-1886 | examples/community/pipeline_kolors_inpainting.py:1615-1629 | examples/community/pipeline_sdxl_style_aligned.py:1834-1849 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2208-2222 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1458-1472 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1821-1835 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1833-1847 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1486-1500 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1295-1309 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1649-1663 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9dba0ced3fab4765865d57049b83afb9fe1e058032fec45e74f2ed6375c8db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 11): examples/community/matryoshka.py:1080-1095 | src/diffusers/models/unets/unet_2d_blocks.py:2216-2231 | src/diffusers/models/unets/unet_2d_blocks.py:2350-2365 | src/diffusers/models/unets/unet_2d_blocks.py:2495-2510 | src/diffusers/models/unets/unet_2d_blocks.py:3013-3028 | src/diffusers/models/unets/unet_2d_blocks.py:3123-3138 | src/diffusers/models/unets/unet_3d_blocks.py:664-679 | src/diffusers/models/unets/unet_3d_blocks.py:810-825 | src/diffusers/models/unets/unet_motion_model.py:581-596 | src/diffusers/models/unets/unet_motion_model.py:753-768 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1175-1190 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_blocks.py:664\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":"examples/community/matryoshka.py"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"3461c5c9ad8adad429a78346d34bd8173269b32cb7def1994fb9fe7a61ff3b82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 10): examples/community/composable_stable_diffusion.py:235-250 | examples/community/img2img_inpainting.py:283-298 | examples/community/sd_text2img_k_diffusion.py:186-201 | examples/community/seed_resize_stable_diffusion.py:205-220 | examples/community/speech_to_image_diffusion.py:151-166 | examples/community/wildcard_stable_diffusion.py:305-320 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:469-484 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:260-275 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:176-191 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:255-270 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/img2img_inpainting.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/composable_stable_diffusion.py:235\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":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"76063add1c977e66a94bd039e868f36d452a767f86c0551ab7ee630cbb9f9f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201316 lines \u00D7 10): examples/community/imagic_stable_diffusion.py:433-441 | examples/community/img2img_inpainting.py:395-403 | examples/community/interpolate_stable_diffusion.py:333-341 | examples/community/multilingual_stable_diffusion.py:368-376 | examples/community/seed_resize_stable_diffusion.py:300-308 | examples/community/speech_to_image_diffusion.py:223-231 | examples/community/stable_diffusion_repaint.py:843-858 | examples/community/wildcard_stable_diffusion.py:377-385 | examples/research_projects/rdm/pipeline_rdm.py:311-319 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:395-403 \u2014 before extracting anything, compare \u0060examples/community/imagic_stable_diffusion.py\u0060 and \u0060examples/community/img2img_inpainting.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_repaint.py:843\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/img2img_inpainting.py:393\u0060 calls \u0060cat\u0060 and \u0060examples/community/imagic_stable_diffusion.py:432\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":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"23734817794240b33f74cfa79fedf1f47aa209c14fb90ec3283ebb5082fdb896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 10): examples/community/pipeline_animatediff_ipex.py:686-701 | examples/community/pipeline_animatediff_ipex.py:867-882 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:769-784 | examples/community/pipeline_stable_diffusion_xl_instantid.py:761-776 | examples/research_projects/anytext/anytext.py:2122-2137 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1077-1092 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:898-913 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:802-817 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:837-851 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:769-783 \u2014 there are 10 copies across 9 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 10 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:686\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"533796e995a5616ff80dd97fbafa5025205eaadc36cd6ca9586df1c12338dde2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 10): examples/community/pipeline_prompt2prompt.py:708-723 | examples/community/stable_diffusion_controlnet_inpaint.py:965-979 | examples/community/stable_diffusion_ipex.py:694-709 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1024-1038 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:499-513 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:674-689 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:579-593 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:769-784 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:589-604 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:377-392 \u2014 before extracting anything, compare \u0060examples/community/pipeline_prompt2prompt.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 272 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_prompt2prompt.py:708\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"f401e7f9d68991875a6320138b9f0fafa9a972f7eac425ca953e2382a8bffd93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 9): examples/community/fresco_v2v.py:2303-2318 | examples/community/pipeline_controlnet_xl_kolors.py:1075-1090 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1265-1280 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1477-1492 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:849-864 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1162-1177 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1417-1432 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1423-1438 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1447-1462 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 464 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2303}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2c823da6e149802a5bdedc777425e089d8b501ee7793afa4863ebfffcc6e11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 9): examples/community/lpw_stable_diffusion_xl.py:1219-1234 | examples/community/pipeline_kolors_inpainting.py:823-838 | examples/community/pipeline_sdxl_style_aligned.py:1042-1057 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1094-1109 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:950-965 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:958-973 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:935-950 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:814-829 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:816-831 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 595 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1219\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c1fda49b0ad3bcf189dc5f53395f93a5a1753d40f67b760e1801488a64c755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 9): examples/community/masked_stable_diffusion_xl_img2img.py:328-343 | examples/community/pipeline_kolors_inpainting.py:1504-1519 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2062-2077 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1244-1259 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:927-942 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1488-1503 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1517-1532 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1318-1333 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1538-1553 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a049448f05ff1fa69fa989a97d2ef4af0fddf067423427e9f90752f21a57101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 9): examples/community/matryoshka.py:2230-2245 | src/diffusers/models/unets/unet_2d_condition.py:433-448 | src/diffusers/models/unets/unet_3d_condition.py:238-253 | src/diffusers/models/unets/unet_dreamlite.py:1847-1860 | src/diffusers/models/unets/unet_i2vgen_xl.py:275-290 | src/diffusers/models/unets/unet_motion_model.py:1461-1476 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:203-218 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:356-371 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:752-767 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/unets/unet_motion_model.py:1458\u0060 calls \u0060list\u0060, \u0060reversed\u0060 and \u0060src/diffusers/models/unets/unet_spatio_temporal_condition.py:202\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2923b248357e3f8a755f61d0fcc0b8fe7595dc38a4fac01be731400fe20b72a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 9): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:573-588 | scripts/convert_gligen_to_diffusers.py:337-352 | scripts/convert_i2vgen_to_diffusers.py:402-417 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:273-288 | scripts/convert_ms_text_to_video_to_diffusers.py:358-373 | scripts/convert_original_audioldm_to_diffusers.py:453-468 | scripts/convert_original_musicldm_to_diffusers.py:449-464 | scripts/convert_zero123_to_diffusers.py:421-436 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:571-586 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:573\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"027929fc50b75deca4cb847bb4c2e52409417ceb61d7d77344152fd8a085e096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 9): src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1074-1089 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:920-935 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1171-1186 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:999-1014 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1169-1185 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1595-1611 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1176-1192 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1982-1998 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1234-1250 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1074\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f01252409eadc1bc998872571b4de115a8aeffa76b25343cabe73984661f890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): examples/community/adaptive_mask_inpainting.py:1002-1017 | examples/community/pipeline_animatediff_img2video.py:860-875 | examples/community/pipeline_demofusion_sdxl.py:838-854 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:859-874 | examples/community/stable_diffusion_controlnet_reference.py:245-260 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:463-478 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:543-558 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:586-601 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 362 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:1002\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/adaptive_mask_inpainting.py:1021\u0060 calls \u0060get\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py:877\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3d1289ecd7ce6b13272b36943c30085ba44a3ece252085dad36a201fe5971c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): examples/community/mixture_tiling_sdxl.py:1204-1219 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2248-2263 | examples/community/pipeline_sdxl_style_aligned.py:1888-1903 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1062-1077 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1144-1159 | examples/community/stable_diffusion_xl_reference.py:1187-1202 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1102-1117 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1296-1311 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060StableDiffusionXLPipelineOutput\u0060 names \u0060...stable_diffusion_xl.pipeline_output\u0060 in one and \u0060.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41d93b18d66d5c72f6b56ee8c8b92dcc47962687047c94d3785d1243198f626"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): examples/community/pipeline_animatediff_ipex.py:737-752 | examples/community/pipeline_animatediff_ipex.py:909-924 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:777-792 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:985-1000 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:915-930 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:666-681 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:581-596 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:775-790 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 631 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c77d3e205c69e55a962048f9f2346d24c3285328cb4111d16b3f0e79e727613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): src/diffusers/schedulers/scheduling_ddim_inverse.py:209-224 | src/diffusers/schedulers/scheduling_ddpm.py:214-229 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:227-242 | src/diffusers/schedulers/scheduling_deis_multistep.py:194-209 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:271-286 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:216-231 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:272-287 | src/diffusers/schedulers/scheduling_sasolver.py:197-212 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim_inverse.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddpm.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:271\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim_inverse.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"d868797577721a2ff9945698dc7993ebd5b780f4a1975e276fb028a1c93d8a99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): examples/community/ip_adapter_face_id.py:1065-1080 | examples/community/pipeline_stable_diffusion_boxdiff.py:1663-1678 | examples/community/regional_prompting_stable_diffusion.py:1046-1061 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:930-945 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:989-1004 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1039-1054 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1100-1115 \u2014 before extracting anything, compare \u0060examples/community/ip_adapter_face_id.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 as WHOLE FILES: this scan already matched 81 separate duplicated blocks between them, totalling at least 1134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/ip_adapter_face_id.py:1085\u0060 calls \u0060rescale_noise_cfg\u0060 and \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:1008\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"30af2d82a7dcedf16e49f1f44e72f2ad54a6a8318f69c6dcbecd27cb3a62acd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): examples/community/lpw_stable_diffusion_xl.py:1693-1708 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1506-1521 | examples/community/pipeline_kolors_inpainting.py:1383-1398 | examples/community/pipeline_sdxl_style_aligned.py:1655-1670 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1938-1953 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1407-1422 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1414-1429 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e67467185d6102b635c8d0b63b8d11a82ca51b90967423ac57b7ff75ae0cdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 7): examples/community/pipeline_flux_differential_img2img.py:904-919 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1137-1152 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1022-1036 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1049-1064 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1066-1080 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:909-924 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:849-864 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 789 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"e575e03ec4f813a7cfea1bcac12cd8841f2708e4fd07c4417f8081a4eb283a37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): examples/community/pipeline_flux_semantic_guidance.py:958-973 | examples/community/pipeline_flux_with_cfg.py:716-731 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:969-984 | src/diffusers/pipelines/flux/pipeline_flux_control.py:695-710 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:856-871 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:756-771 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:879-894 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060examples/community/pipeline_flux_with_cfg.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 603 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:969\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a9145c28f8da1f619d0d8dd9f609731cab3a1b5c401e35510b384dac68be19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:957-972 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1234-1249 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:971-986 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:978-993 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1046-1061 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1132-1147 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1153-1168 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:996\u0060 calls \u0060set_attn_processor\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1251\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":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c9ddbc6ac960fbde118b8e36178fa79f1a9841f1e423ece5e11d1888b109c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 7): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1150-1164 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1034-1049 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1062-1076 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1078-1093 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:922-937 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:862-877 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1234-1249 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 667 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1150\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":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ec50c2e67c4b89b1192402137822906758463b4f994e1bfe915143037ce297"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:747-763 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:924-940 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:879-894 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:962-978 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1166-1182 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:826-841 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:795-810 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cd35e31a36383f3c66d4f794fd2c56a880300a4a8b7436b00011ed4e05f1ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1101-1116 | src/diffusers/schedulers/scheduling_helios.py:485-500 | src/diffusers/schedulers/scheduling_helios.py:631-646 | src/diffusers/schedulers/scheduling_sasolver.py:983-998 | src/diffusers/schedulers/scheduling_sasolver.py:1122-1137 | src/diffusers/schedulers/scheduling_unipc_multistep.py:859-874 | src/diffusers/schedulers/scheduling_unipc_multistep.py:996-1011 \u2014 there are 7 copies across 4 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 7 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1099\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/schedulers/scheduling_helios.py:482\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":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee09d0a38728125d48bf8b398e8c83c36399c6ce57fb8d5968cf899da6062efe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 6): examples/community/pipeline_animatediff_ipex.py:755-769 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:795-809 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:933-947 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:993-1007 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1247-1261 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:889-904 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 631 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1010\u0060 calls \u0060get_timesteps\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py:771\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":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8f318e3532c9a102a8da5c8ff2d8bf6be5768cf57c1c6ca3ebc902b80e349a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): examples/community/pipeline_stable_diffusion_pag.py:149-164 | examples/community/pipeline_stable_diffusion_pag.py:261-276 | src/diffusers/models/attention_processor.py:3418-3433 | src/diffusers/models/attention_processor.py:3542-3557 | src/diffusers/models/attention_processor.py:5112-5127 | src/diffusers/models/attention_processor.py:5215-5230 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7610d831edba25148eef3432b0957379996952c089b3d9fecfd49f7809a14e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): examples/community/stable_diffusion_controlnet_img2img.py:114-129 | examples/community/stable_diffusion_controlnet_inpaint.py:212-227 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:739-754 | src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:221-236 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:578-593 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:627-642 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 931 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a27e1c0707f4c7729ede1a4f870325be1a6eba4971be08be925eb978411692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 6): examples/research_projects/anytext/anytext.py:1275-1290 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:257-270 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:269-282 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:260-273 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:275-288 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:263-276 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/anytext/anytext.py:1275\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext.py"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ef4950591fc55ca607fa1df5611f5309b44b1bfdae55cd6a261a366f02eef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): src/diffusers/models/transformers/transformer_bria.py:160-175 | src/diffusers/models/transformers/transformer_bria_fibo.py:106-121 | src/diffusers/models/transformers/transformer_flux.py:117-132 | src/diffusers/models/transformers/transformer_flux2.py:368-383 | src/diffusers/models/transformers/transformer_longcat_image.py:107-122 | src/diffusers/models/transformers/transformer_ovis_image.py:107-122 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a639cbfb02b85539d3edc9185a7dc8200d2c3055063a20c24c301faaa0897536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 6): src/diffusers/models/transformers/transformer_flux.py:226-239 | src/diffusers/models/transformers/transformer_hunyuan_video.py:132-146 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:109-124 | src/diffusers/models/transformers/transformer_hunyuanimage.py:127-141 | src/diffusers/models/transformers/transformer_ltx2.py:289-302 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:274-287 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_flux.py:223\u0060 calls \u0060apply_rotary_emb\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:129\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bed1762987fa716d26ac0fdb526c0c6fc743056eebc18d4ab14cfae74e7a13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:666-681 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:740-755 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:517-532 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:599-614 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:505-520 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:627-642 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:533\u0060 calls \u0060to\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:684\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"233158967d8bcac7267851d8f8772d53d701d14ac58998780ac0e56b2f144cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:885-902 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:675-692 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:864-879 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:715-732 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:609-626 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:951-968 \u2014 \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.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 69 separate duplicated blocks between them, totalling at least 920 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":"src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aba17533db03ca9f2ca3e15ae32a80b99d3082e1c4c8ac1ac68680d2d7ffffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): src/diffusers/pipelines/z_image/pipeline_z_image.py:475-490 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:603-618 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:630-645 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:565-580 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:752-767 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:606-621 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 514 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"22965eff7123a7b468e3f2c803576394b6238f38db3a961be47c727691617c72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/community/hd_painter.py:870-885 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1505-1520 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1529-1544 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1378-1393 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1343-1358 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/hd_painter.py:870\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, \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1547\u0060 calls \u0060set_attn_processor\u0060 and \u0060examples/community/hd_painter.py:887\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":"examples/community/hd_painter.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19c2f8ee49885416d0a967df710a5bf56d6114d19bc7b189470b9b30cbdd296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/community/ip_adapter_face_id.py:999-1015 | examples/community/pipeline_stable_diffusion_boxdiff.py:1499-1514 | examples/community/regional_prompting_stable_diffusion.py:973-989 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:865-881 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:962-978 \u2014 before extracting anything, compare \u0060examples/community/ip_adapter_face_id.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 as WHOLE FILES: this scan already matched 81 separate duplicated blocks between them, totalling at least 1134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_boxdiff.py:1499\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12e45c1b76b15cf2c2b8c4937c7380a110a6deefa283d4f59dfae2b93365854"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/community/matryoshka.py:1171-1186 | src/diffusers/models/unets/unet_2d_blocks.py:2456-2471 | src/diffusers/models/unets/unet_dreamlite.py:1065-1080 | src/diffusers/models/unets/unet_dreamlite.py:1225-1240 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1991-2006 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:1065\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":"examples/community/matryoshka.py"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f5dfcc1deeced932c0faa8c34d39b9c8207b68fcca5e505f95d762fb7fbf03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/community/pipeline_animatediff_ipex.py:719-734 | examples/community/regional_prompting_stable_diffusion.py:982-998 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1128-1143 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:971-987 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1030-1045 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060examples/community/regional_prompting_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 542 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:719\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d79d5b174b4da585cb05ae45970e1408fd486e35529c050c68fe5b21f381e48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/community/pipeline_controlnet_xl_kolors.py:1083-1098 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1273-1288 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:857-872 | examples/community/pipeline_stable_diffusion_xl_instantid.py:847-862 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1425-1440 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:857\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf4bd81d451a5b954019cfd21bbbc33bc68cdaac723469f906befe630c910e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 5): examples/community/pipeline_flux_kontext_multiple_images.py:552-567 | src/diffusers/pipelines/chroma/pipeline_chroma.py:455-469 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:487-501 | src/diffusers/pipelines/flux/pipeline_flux.py:490-505 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:541-556 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 535 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a3e7d0f377251a1ed37b64d59dff739ef8881f0a1eb4039af37212467a7c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/community/pipeline_hunyuandit_differential_img2img.py:606-621 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:534-549 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:604-619 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:505-520 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:516-531 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:606\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"20eaf10cb4aa7b96a4c5f3ca180460faaec840ef741c3171bf90fea10c04fff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/community/pipeline_kolors_inpainting.py:1681-1696 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2271-2286 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1748-1763 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1710-1725 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:954-969 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1748\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060StableDiffusionXLPipelineOutput\u0060 names \u0060..stable_diffusion_xl.pipeline_output\u0060 in one and \u0060.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1728\u0060 calls \u0060apply_overlay\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:972\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":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"231349390458017fc05c64f20f9e0497954590028d104edcd741ac0cefdde397"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:664-679 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:394-409 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:599-614 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:721-736 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:818-833 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 341 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:664\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"703f0fa7001e74c3cbdb198fad90ee244d61dc62cea77c3eca601c6df6f5a3be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 5): examples/community/pipeline_stable_diffusion_xl_instantid.py:825-837 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1147-1161 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1145-1160 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1307-1322 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1090-1102 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 and \u0060examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 591 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1147\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instantid.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f6cda92a3a57a6ae28f84d6eca21f61c3d4d51cc5c4845c865d6b0174f6d40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/community/pipeline_stg_hunyuan_video.py:127-142 | src/diffusers/models/transformers/transformer_hunyuan_video.py:648-663 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:492-507 | src/diffusers/models/transformers/transformer_hunyuanimage.py:599-614 | src/diffusers/models/transformers/transformer_motif_video.py:712-727 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9845e5f110318f730eeb26966adc5dbddda1e2bfb7358cb6f026248ce99d872"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 5): examples/research_projects/anytext/anytext_controlnet.py:425-437 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:355-367 | src/diffusers/models/controlnets/controlnet.py:770-782 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:684-695 | src/diffusers/models/controlnets/controlnet_union.py:744-759 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext_controlnet.py\u0060 and \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_union.py:744\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, \u0060examples/research_projects/anytext/anytext_controlnet.py:422\u0060 calls \u0060mid_block\u0060 and \u0060src/diffusers/models/controlnets/controlnet_union.py:744\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":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5c41c70f70f7a19383b4e09e8d72b41af2ae14a39e59eee9993862a440183b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 5): src/diffusers/models/transformers/transformer_bria.py:211-236 | src/diffusers/models/transformers/transformer_bria_fibo.py:156-181 | src/diffusers/models/transformers/transformer_flux.py:302-327 | src/diffusers/models/transformers/transformer_longcat_image.py:158-183 | src/diffusers/models/transformers/transformer_ovis_image.py:158-183 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c257c9b5b4c80e63ca0712e631b653bc2f3d138012c9dca28c0a4764b20458f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 5): src/diffusers/models/transformers/transformer_hunyuan_video.py:128-142 | src/diffusers/models/transformers/transformer_hunyuanimage.py:123-137 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:119-133 | src/diffusers/models/transformers/transformer_pan2.py:111-123 | src/diffusers/models/transformers/transformer_qwenimage.py:557-572 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"004b30278191b1e6de90e0bb64fa3380f762ddd23aa158ff11536761b97e3ae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/diffusers/models/unets/unet_2d_blocks.py:135-150 | src/diffusers/models/unets/unet_2d_blocks.py:277-292 | src/diffusers/models/unets/unet_2d_blocks.py:405-420 | src/diffusers/models/unets/unet_3d_blocks.py:129-144 | src/diffusers/models/unets/unet_3d_blocks.py:220-235 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_3d_blocks.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 194 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_blocks.py:135\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8f1aa5ec26169de31606dbef74367d7e99f9ab81a50410bd4a163b7b6eeb00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:408-423 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:454-469 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:519-534 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:551-566 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:420-435 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d4df64b36e89f08f347dc76b051bb212021e2c38f2e698b366d29910b2d3b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:373-388 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:303-318 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:322-337 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:288-303 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:332-347 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 242 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:373\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f8cc50bf56be97e49e7d5bd1d9b1c1740a9f276646cfc2ce9ef57b965bc46c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:955-970 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1065-1080 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:809-824 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:911-926 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:816-831 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 984 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"768d0e32d1417d854098a6c87dbaaa59e299c3e75fa73605d8c85acc6400a98a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1496-1511 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1932-1947 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1461-1476 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2363-2378 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1574-1589 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1496\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e891a0e8dba1ccaa650a39d6df4f7e0454d471758ff6b65b4461a967addbdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1536-1551 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1974-1989 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1499-1514 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2412-2427 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1615-1630 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1536\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"570b32a6f458779ca61868f266afab07405f9fdc3779feb1fcf82fdf260c3591"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:557-572 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:588-603 | src/diffusers/pipelines/wan/pipeline_wan.py:484-499 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:627-642 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:830-845 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:557\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01052aa0409dbf825ba8c23ac0110d3cbbf9458499c586dae94dd3df80a5016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/community/clip_guided_stable_diffusion_img2img.py:188-203 | examples/community/stable_diffusion_controlnet_img2img.py:534-549 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:607-622 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:558-573 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_stable_diffusion_img2img.py:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a41a8ba7746bd352e03ecee8dea67e9a8395a27fc9435bd246857affb86c632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 4): examples/community/hd_painter.py:563-577 | examples/community/pipeline_stable_diffusion_boxdiff.py:1507-1522 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:874-889 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:931-945 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/hd_painter.py:563\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, \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:948\u0060 calls \u0060preprocess\u0060 and \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:892\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":"examples/community/hd_painter.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"058cea679435f71decf349edc0dffaf162cf66e4a8a2eb381affcd0f42f61d81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 4): examples/community/pipeline_animatediff_img2video.py:854-868 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:588-603 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:756-770 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:735-749 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_img2video.py:854\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7e7709deec681dc66b0d5160045f76422678ace916006e84138299b0980a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/community/pipeline_kolors_inpainting.py:1310-1325 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1322-1337 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1067-1082 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1331-1346 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py\u0060 as WHOLE FILES: this scan already matched 77 separate duplicated blocks between them, totalling at least 1126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1322\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":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4db3b4688a6eb528c0dec521b7451d4da5bdbc073e5423c1cdedd1d7338b19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/community/pipeline_sdxl_style_aligned.py:1570-1585 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:866-881 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:871-886 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:964-979 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae7fc83fd4c09bfe6ceaa81ad43dfaf2ae6cad2596ea764e28ab7065d45006d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/community/pipeline_stable_diffusion_xl_instantid.py:1051-1066 | examples/community/stable_diffusion_xl_controlnet_reference.py:1353-1368 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1587-1602 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1597-1612 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 and \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060StableDiffusionXLPipelineOutput\u0060 names \u0060..stable_diffusion_xl.pipeline_output\u0060 in one and \u0060diffusers.pipelines.stable_diffusion_xl\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instantid.py"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72cc539fe2920e2c94ea78afcf14da27be1bb0d81a3303e33679d7f32bc425d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 4): examples/community/pipeline_stg_hunyuan_video.py:334-363 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:301-330 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:273-302 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:378-407 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 451 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"3426ff70b528c1ba5fec9d40eb54c200e813bb14011d5b2dc5656185a63ef787"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/community/sd_text2img_k_diffusion.py:142-157 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:216-231 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:179-194 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:132-147 \u2014 before extracting anything, compare \u0060examples/community/sd_text2img_k_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/sd_text2img_k_diffusion.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb34a5418eb64f64fb89d609a41e1a9c1df0688b44726d249b8f191e94963d0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:241-256 | src/diffusers/models/unets/unet_2d_blocks.py:1312-1326 | src/diffusers/models/unets/unet_2d_blocks.py:1774-1788 | src/diffusers/models/unets/unet_3d_blocks.py:561-575 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:241\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"06948ba728d321e0012c68183274fa819e1811a67455b3529707bc1b5a26229b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:876-891 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1339-1354 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1354-1369 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:955-970 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b0a27356ed9683dd42d64502478ed8474800174aafa3a591b0b9d9a6ba3d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): src/diffusers/models/unets/unet_2d_blocks.py:1054-1069 | src/diffusers/models/unets/unet_2d_blocks.py:1500-1515 | src/diffusers/models/unets/unet_2d_blocks.py:2225-2240 | src/diffusers/models/unets/unet_2d_blocks.py:2699-2715 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59286700b34957483edae558db9646449b814fe4268f9c48bc4f4e4e48586ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): src/diffusers/modular_pipelines/cosmos/encoders.py:179-194 | src/diffusers/modular_pipelines/cosmos/encoders.py:289-304 | src/diffusers/modular_pipelines/cosmos/encoders.py:433-448 | src/diffusers/modular_pipelines/cosmos/encoders.py:602-617 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e37bdb4a0fd2d9d274453fc7241e22292ab5916ce99c968ecb07af1a6c7294"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): src/diffusers/modular_pipelines/helios/before_denoise.py:259-274 | src/diffusers/modular_pipelines/qwenimage/inputs.py:334-349 | src/diffusers/modular_pipelines/qwenimage/inputs.py:550-565 | src/diffusers/modular_pipelines/qwenimage/inputs.py:781-796 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/helios/before_denoise.py:259\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":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d54d5d366f5eb3a47540ff00cfdd3fd4171ec96f1c4b399bc67c92792a1efe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:867-882 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:872-887 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1075-1090 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1172-1187 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:867\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12aec80def5bb3fd125dab4f5cb79a6cd6b23c24b696a649dce30acde139b4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1285-1300 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1573-1588 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1550-1565 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1576-1591 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1330 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b07ba9a956819e4280ec4f1148646b82cc3248feb8029fc63d33ed27c76f6eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201328 lines \u00D7 4): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:538-558 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:779-806 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:573-593 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:840-867 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.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 7 separate duplicated blocks between them, totalling at least 115 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:779\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:778\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:572\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb05994c77b2388aaab4b74a5ce8e1b66b445062cd2bac598f0220254fac8118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1628-1670 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:2082-2124 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2515-2557 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1732-1774 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"214b321c3a4d07815f5675e6277cf1d4ea3adc0d4550c5c74d80d17cc9fd1215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/community/fresco_v2v.py:427-442 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:604-619 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1174-1189 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e4391355090f87fd01c5c5274a8510a1c1e34369c26175c5da601fc2d3527a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/community/matryoshka.py:2962-2977 | examples/community/matryoshka.py:3411-3426 | src/diffusers/models/unets/unet_2d_condition.py:1074-1089 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2962}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a300a53781a36af4db5c77b508524587cb1fdcab1e35eec922c5ad0ced4047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): examples/community/pipeline_sdxl_style_aligned.py:1804-1819 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1238-1252 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1431-1445 \u2014 before extracting anything, compare \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1002 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"260165d66ca8c810de26c0276c9bef0cffdfb225841662e896dd7f7f2c35b3cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1644-1659 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1681-1696 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1675-1690 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 87 separate duplicated blocks between them, totalling at least 1274 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ac60f3165585a796aa8680d39a9832a7dfbfd28f7d05eef2937659c3e803b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/community/pipeline_stg_cogvideox.py:99-114 | src/diffusers/models/transformers/cogvideox_transformer_3d.py:140-155 | src/diffusers/models/transformers/consisid_transformer_3d.py:331-346 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/cogvideox_transformer_3d.py\u0060 and \u0060src/diffusers/models/transformers/consisid_transformer_3d.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_cogvideox.py:99\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f64f5ad4e07326c54189966c4f5bcb0c5f3db257ebacf5794cb6fa1e27077a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): scripts/convert_animatediff_motion_lora_to_diffusers.py:10-25 | scripts/convert_animatediff_motion_module_to_diffusers.py:10-25 | src/diffusers/loaders/single_file_utils.py:2276-2291 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_animatediff_motion_lora_to_diffusers.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e4f6bfedfb93ec4ffe039e7b964e5a670747d38ab74dce13a39c279d1ef957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201326 lines \u00D7 3): src/diffusers/callbacks.py:113-134 | src/diffusers/callbacks.py:156-181 | src/diffusers/callbacks.py:223-243 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/callbacks.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccc15a349353df5f2c8223e1d737c9ce1f2b5159c0f8bb495475db59e586805"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:680-697 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:662-679 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:629-646 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"23037c9119b8dace52cca75fe89aaee28cecf422eb6112ae1b033141dbd254e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): src/diffusers/models/transformers/transformer_cosmos.py:193-208 | src/diffusers/models/transformers/transformer_cosmos.py:259-273 | src/diffusers/models/transformers/transformer_cosmos.py:290-304 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_cosmos.py:193\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cosmos.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20e8a2dd59f95867d74d082afc8d3f3219b6792adccc732ed47e06ae3a08480"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video.py:561-576 | src/diffusers/models/transformers/transformer_hunyuan_video.py:716-731 | src/diffusers/models/transformers/transformer_hunyuanimage.py:511-526 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ad47a1541fb0196eedb82bf6f1c84f4f50de67da2517b799afb6e8026e345b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video.py:595-610 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:439-454 | src/diffusers/models/transformers/transformer_hunyuanimage.py:546-561 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:595\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f12fcd26fc83879170df8929bc1a43c11100bcc42ec10c49af1867f67b3da5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201316 lines \u00D7 3): src/diffusers/modular_pipelines/flux/before_denoise.py:494-506 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:448-463 | src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:459-465 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/qwenimage/before_denoise.py:448\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060FluxModularPipeline\u0060 in one and \u0060QwenImageModularPipeline\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 before the matched lines, \u0060src/diffusers/modular_pipelines/flux/before_denoise.py:491\u0060 calls \u0060check_inputs\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:458\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/before_denoise.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"692656ec277f21c457a4625f8b742392a86f76f8f83949faa9bd3dc2aedd84fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/modular_pipelines/helios/denoise.py:416-431 | src/diffusers/modular_pipelines/helios/denoise.py:535-550 | src/diffusers/modular_pipelines/helios/denoise.py:882-897 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff06a3615a301f5712300a2902843cc0934511778fc93b401bb2537cd14720b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1561-1576 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1308-1323 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1434-1449 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1308\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97e4e861e06804104966a000467f5ca4956f9e5df4cd8b7bbd426f3bcca671a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): src/diffusers/pipelines/flux/pipeline_flux_control.py:778-792 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1024-1039 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:648-662 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 748 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py:778\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a51251e7106704375f3e86ad66e4ac6aba886f1854413879fa297020fa30e6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1382-1397 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1452-1467 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1490-1505 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"5176ea6cb9410d8226781e0fb5d6e6bbcee7f0fecdb29dfc0d2f9a2f04902d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2265-2280 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2354-2369 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2403-2418 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py"},"region":{"startLine":2265}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f7b4a7502e1bda3a8d4801181fb609b67050f44a3252773abe4a1b5bf9d8cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:211-226 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:225-240 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:198-213 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 409 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:227\u0060 calls \u0060is_scipy_available\u0060, \u0060ImportError\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:241\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":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ee60c5583feb446f60386a25bb04c94cf6ef9f38e2e9f0198a09c88ce276ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:311-326 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:323-338 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:296-311 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 409 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc95f009f9be44f5aa19d2383c9f30b516cb5ce7a92208addac3a87a957100e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:330-345 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:342-357 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:315-330 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 409 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4b7bbe723f53bdc3849498bc162bb61ef5a68a6d2b58674c1d3da81b12c2cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1468-1483 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1531-1546 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1592-1607 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 899 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1468\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8011f337bc42a20378faa9bc5b0a38e4bf4a972948c50517e8f8dede602da85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 3): src/diffusers/pipelines/sana/pipeline_sana.py:895-910 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:929-944 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:978-990 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 963 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/sana/pipeline_sana.py:895\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"3392cbca46d7abff62c49db508e76a569f2bb9ef2089049a7b0dc9cfe31fbde7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 3): src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:841-852 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:420-435 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:582-595 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 541 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:841\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b61ecd6f6a69f446af12dcc64b7b576973d380400c7304347694618d1b1bdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 3): src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1024-1039 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1058-1070 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1166-1179 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py\u0060 as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 1069 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1024\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f8c09897d9f8d63135b23fd572c0c3dcd1edc82ea75439e72b676eba39567a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/schedulers/scheduling_heun_discrete.py:331-346 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:291-306 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:291-306 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_heun_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_heun_discrete.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0379b8c5c456bd4e828af693de6e0fe33f177544b6868c2006b933a113b7a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/matryoshka.py:1702-1717 | src/diffusers/models/unets/unet_2d_blocks.py:274-289 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_blocks.py:274\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":"examples/community/matryoshka.py"},"region":{"startLine":1702}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1ce9fef56102cae525f6d05fefd53ca0197c6cbdaa42a5674dec8065220c8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/mod_controlnet_tile_sr_sdxl.py:772-787 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:770-785 \u2014 before extracting anything, compare \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 62 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"1850ba2a6175d10dbddddbd619631dc382efd809af4b26030a050e0b3042573f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): examples/community/pipeline_flux_with_cfg.py:748-763 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:570-583 \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 \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:570\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ab6c6ae6baf105c29e771c346b5a22692303b9e49960eec32c31d27ef6ad32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/pipeline_sdxl_style_aligned.py:1571-1586 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1000-1015 \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 \u0060src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1000\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":1571}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3caa074a6b5b369bd420f15be7273a748f14584800e29994204106437b3a37f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/pipeline_stable_diffusion_pag.py:197-212 | src/diffusers/models/attention_processor.py:5157-5172 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92a200bd5d8c3c1946c4324737a2a44b34b3b2b0c7ab5eed6b36c8cf91750d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/pipeline_stg_wan.py:582-597 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:681-696 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_video2video.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 512 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"491f43c127cfd3e02a8a2d8f1d9f47d0e0d4bdc3230c5c8c7e5af3e7a7205aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1175-1190 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1071-1086 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1175\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba3a48713698de5ffdb4d46ada3e7b3723bdb31a5f315db83a470771ac7afb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/research_projects/anytext/anytext.py:2294-2309 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1292-1307 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 as WHOLE FILES: this scan already matched 100 separate duplicated blocks between them, totalling at least 1558 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext.py"},"region":{"startLine":2294}}}],"partialFingerprints":{"codehealthFindingId/v1":"843013df8a91601205e56a87833c040e4bd08c4aaeaee718e880a39d3535d440"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201316 lines \u00D7 3): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1057-1072 | scripts/convert_gligen_to_diffusers.py:63-66 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:995-1010 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b300fd573d921a18dd3cfc5d9121867f6b841777135061128571d52512b925"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): scripts/convert_flux2_to_diffusers.py:304-335 | src/diffusers/loaders/single_file_utils.py:3944-3975 \u2014 before extracting anything, compare \u0060scripts/convert_flux2_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060state_dict\u0060 to \u0060Dict[str, Any]\u0060 in one and \u0060dict[str, object]\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":"scripts/convert_flux2_to_diffusers.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7060ef89b8fed0acfefa9344cc7624d64ed7e96789e7e246a5155ca0bdb566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/loaders/lora_pipeline.py:512-527 | src/diffusers/loaders/lora_pipeline.py:1862-1877 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ea67d5ef5630f03373806113d0b9115c5b7583f1dfb37a32a559e13ee53256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/loaders/single_file_utils.py:1322-1337 | src/diffusers/loaders/single_file_utils.py:1467-1482 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb1cfb03b880a7d823fe764b812457eed4c9e66fe7b4aca6fdc2d8284aa3b41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/attention.py:42-57 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:830-845 \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":"src/diffusers/models/attention.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8824893b49e8406e7dd298d32cdbdcbd217f6a89bef10f584d236279e57da2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:330-345 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:380-395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0dbba8e464be20d69f4fa50ec2de4ddb051bb0e1fe864f7b722a26240c2b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:450-465 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:387-402 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:450\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2a2e6179482e91c73dce95201e7bfc001bd3de4acf212e59bb92352e6d82b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:347-362 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:510-523 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb276e38eb206cc27e4d11d7a2135b8af50a3a0c17be365667e058caed46045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:106-121 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:130-144 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:106\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":"src/diffusers/models/autoencoders/autoencoder_kl_magvit.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed0cbd83c8cb68f448090e387cc11504c01d66852ecc23bd79b7de9b2c6128d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/autoencoders/vae.py:244-259 | src/diffusers/models/autoencoders/vae.py:457-472 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/vae.py:244\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/vae.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f5fe80e9eb61a6cb749a3cf54d5403d92394b2c203ee7a35bcfad11b0c2d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_hunyuan.py:74-91 | src/diffusers/models/transformers/hunyuan_transformer_2d.py:283-298 \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 \u0060src/diffusers/models/controlnets/controlnet_hunyuan.py:74\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, \u0060src/diffusers/models/controlnets/controlnet_hunyuan.py:94\u0060 calls \u0060ModuleList\u0060 and \u0060src/diffusers/models/transformers/hunyuan_transformer_2d.py:301\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_hunyuan.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad2a59de0722cf884ac275da213daa057b969abc22ab85e64ff586935da952a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_hunyuan.py:195-210 | src/diffusers/models/modeling_utils.py:1922-1938 \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 \u0060src/diffusers/models/controlnets/controlnet_hunyuan.py:195\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_hunyuan.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90155e20a15564928b3450f29c1aea7bd146ee85437f3956a62e92c323f3353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_hunyuan.py:273-288 | src/diffusers/models/transformers/hunyuan_transformer_2d.py:409-424 \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, \u0060src/diffusers/models/controlnets/controlnet_hunyuan.py:271\u0060 calls \u0060input_block\u0060, \u0060pos_embed\u0060 and \u0060src/diffusers/models/transformers/hunyuan_transformer_2d.py:407\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_hunyuan.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"62907b93fa9cec4a5b70876396d80c40ccb8af43f0f63c19e22d1a3911ef9650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/embeddings.py:63-78 | src/diffusers/models/transformers/transformer_qwenimage.py:78-93 \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":"src/diffusers/models/embeddings.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de13b019cbe3d118174697002853ee319a80b3b3d583426bcfe3222b79a7339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/lora.py:332-347 | src/diffusers/models/lora.py:416-431 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/lora.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"248208d94d0dde753a57b346e9dbaa3438575a7e09dcc4a2c87bef66d0dea8b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/diffusers/models/transformers/cogvideox_transformer_3d.py:270-285 | src/diffusers/models/transformers/consisid_transformer_3d.py:524-538 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/cogvideox_transformer_3d.py\u0060 and \u0060src/diffusers/models/transformers/consisid_transformer_3d.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/cogvideox_transformer_3d.py:270\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/cogvideox_transformer_3d.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4dc231e141646a000bfe717a585965fce3d1d0846a7a5ce9497be0371eb3c18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/transformers/dit_transformer_2d.py:91-106 | src/diffusers/models/transformers/pixart_transformer_2d.py:109-124 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/dit_transformer_2d.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd15594e4eaedf361233d7fbc0b66fc77093c14ce9eba575da034dde87a8d1ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/transformers/transformer_bria_fibo2.py:115-130 | src/diffusers/models/transformers/transformer_z_image.py:297-312 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_z_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria_fibo2.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49c19de1434516351b37820ee71417c3e78405015bc7efa449b7d92daf181df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201330 lines \u00D7 2): src/diffusers/models/transformers/transformer_joyimage.py:110-139 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:91-115 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_joyimage.py\u0060 and \u0060src/diffusers/models/transformers/transformer_joyimage_edit_plus.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7debc89fb84714db0c578b8219051c29aca8d780bea1d63836b4392c83acd7f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201316 lines \u00D7 3): src/diffusers/models/transformers/transformer_hidream_image.py:221-224 | src/diffusers/models/transformers/transformer_longcat_audio_dit.py:195-210 | src/diffusers/models/transformers/transformer_longcat_audio_dit.py:298-313 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hidream_image.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"12738660c84ee08d7a76801c80804a8be599994fa30e9788327ff5d46b1ffc79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/transformers/transformer_longcat_audio_dit.py:211-227 | src/diffusers/models/transformers/transformer_longcat_audio_dit.py:315-331 \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":"src/diffusers/models/transformers/transformer_longcat_audio_dit.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d13911f35bf00eeadf2ab6e0d044a51f3a23f85a97be79a4c6a9ab3729d019"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:501-516 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:980-995 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.py:501\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a005f9dae455175ee48fc1875c09293e8ce7c3e51f061674b883e4bc691c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm.py:1991-2006 | src/diffusers/models/transformers/transformer_sana_wm.py:2418-2430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_sana_wm.py:1991\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1991}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce401a43480214ff1e47d264f16f3ffacea60511e1aee462b269f7a1a951bbc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:716-731 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1048-1063 \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":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"7900d608b5ee49a81058e9af2674b203ec3bec7fab2bcc86c02a37bf015134cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1777-1792 | src/diffusers/models/unets/unet_2d_blocks.py:1878-1893 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcf6cb20123018ea1b8d5296311df5cc31fd76e3b11432447d55768fbcdcdf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:2501-2516 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1774-1789 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1774\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2501}}}],"partialFingerprints":{"codehealthFindingId/v1":"377eeb5f6bb0d03ed6660bc4d0f6bc750d2222366174d3880bfd5382551f4b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/diffusers/models/unets/unet_3d_blocks.py:903-917 | src/diffusers/models/unets/unet_3d_blocks.py:963-978 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55ca531f532e4f1032238ffde8ec9d4e1d2bff67895f3f7ab05fcb8575434f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/diffusers/modular_pipelines/flux/before_denoise.py:203-218 | src/diffusers/modular_pipelines/flux/before_denoise.py:297-311 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/flux/before_denoise.py:312\u0060 calls \u0060get_timesteps\u0060 and \u0060src/diffusers/modular_pipelines/flux/before_denoise.py:219\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/before_denoise.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f24cd0722d056cbc155d5a0272077591d74d8e5ad2c09daa4ac62e762de8d97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/modular_pipelines/flux2/denoise.py:326-341 | src/diffusers/modular_pipelines/krea2/denoise.py:126-143 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060Flux2KleinModularPipeline\u0060 in one and \u0060Krea2ModularPipeline\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":"src/diffusers/modular_pipelines/flux2/denoise.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"6095e0774466accb1d4997493f9421dbc9b7cc86b93cec2b5423a992dd71cbd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/modular_pipelines/kandinsky_s2v/encoders.py:302-317 | src/diffusers/modular_pipelines/kandinsky_s2v/encoders.py:407-422 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/kandinsky_s2v/encoders.py:302\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/kandinsky_s2v/encoders.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"8753beccbb5983978e15d0492f38cc6a74383e6be70341b3e2655baa30f769d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): src/diffusers/modular_pipelines/krea2/encoders.py:156-169 | src/diffusers/pipelines/krea2/pipeline_krea2.py:241-256 \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":"src/diffusers/modular_pipelines/krea2/encoders.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c995b62d9705801505d43adac0a4dd47dcd66be0ae9409ae2843fa7106fab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:404-418 | src/diffusers/modular_pipelines/minimax_h3/before_encoder.py:433-448 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/before_encoder.py:433\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d30b7a8953bf2f07ca6580ea68d7abd118360fe6612db89ddcc6f13678f4ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/denoise.py:226-241 | src/diffusers/modular_pipelines/p_h3_image/denoise.py:221-236 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/denoise.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 3 separate duplicated blocks between them, totalling at least 43 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. 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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/denoise.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f56dd21e80129c4cb514a261a3489eaa0e6f2de9f9a71a25015ff70e6f86ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:2307-2322 | src/diffusers/pipelines/pipeline_utils.py:1110-1128 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2307}}}],"partialFingerprints":{"codehealthFindingId/v1":"059b00955c006edc5edba8b0cc87e3a9f9ae749a6acf84616533fba561673fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py:75-90 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:316-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py:75\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":"src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be382330760242fbc8b6f2083971e1b2458139e09f9b1d3b2211ca9f1543952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:780-795 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:365-378 \u2014 \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/stable_audio/pipeline_stable_audio.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 17 separate duplicated blocks between them, totalling at least 184 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:780\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"a907441b17f4312adfe504a94bbb28bf983188bbade4682191f0f31940677f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:787-802 | src/diffusers/pipelines/consisid/pipeline_consisid.py:856-871 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py\u0060 and \u0060src/diffusers/pipelines/consisid/pipeline_consisid.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:787\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c6a0cb560a2cb98fbc0427a2fcbb9e184a3d6230aa16dac0a1d76dbdffd0e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:697-711 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:967-982 \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 \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:697\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd6868fb1db55167b52e12319b55c12a5b22142398f4f986d0758e1a7b2c149"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1325-1340 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1451-1466 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1422 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1325\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a722f4c6d1209b72385dfb29d947648811555879ed9772ac2a59cc0d1125626"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:349-364 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:334-349 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 505 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3813d3acb0f48de8dd31c2c128190c27b2696593e7a8042532418c4660c0fb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:703-718 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:722-737 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"91adbe0dacf61579672dc904f32e444f2ecec0b53cf80fd8c2d8cb188408298a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:182-197 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:200-215 \u2014 \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py\u0060 and \u0060src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.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 47 separate duplicated blocks between them, totalling at least 713 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:182\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d26776539d6254c8139224c2d351b9afad36b1c4644e75daa21af20a6a5dab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:339-354 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:211-226 \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, \u0060src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:207\u0060 calls \u0060_resize_with_antialiasing\u0060 and \u0060src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:336\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52c89871325a3d9e010055e195f61a1e172b4835dd36cc6842a684fc0255932"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1171-1186 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1196-1211 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"011f867d796cada5c67777d6d1f978f4db25987c26c4c7fa53033035482695a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:720-735 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1250-1265 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 638 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:720\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d71681a21a9758dca180434a1d6048fe992639c8343ea2b6f11521c951f2285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:902-917 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1607-1622 \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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2e6e99ab28c99428bb49d4f1b1e1462dbaba93464b7505174fa28603aea064"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1549-1564 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1637-1652 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"256bd847e0465c12400481916121832cf73646fbfd6b7512c56fa11ea0c0aca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:285-300 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:144-159 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 229 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ae00625233fd87b71e5e0306d06497cb0d4f281445d8411d26da3b5853fc55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:494-509 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:491-506 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py\u0060 and \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:494\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"45edd457cccaee797c19c67fcb65194e882b500ef0ae53d49853a19154619728"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:740-755 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:692-707 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 730 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:691\u0060 calls \u0060cache_context\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:739\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d62eec2cd0fc92fa51f97df7cd29da433fb2eee75d9cfaf181c96edc9aefeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:221-237 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:260-276 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8fd6497dd7b52596c5ccb658d8cd35ed81397d384d729513ea2e5a1dec3fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:103-123 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:100-120 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"05285528dd16b2d5a7f4b4b54790919a2f228ec2c89c88290ad75a0d6dd8240e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:227-242 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:419-434 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c3558fb627199540a6e5d8e5a03c2d1239c27f3bf69dd823fca6d5982e6d85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:471-486 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:536-551 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 553 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb8688115e8a79d76e7b9dcf5c68aa5242cb1ae0be9461b40f2104a8699280a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:90-105 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:120-135 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0510eea9683500151d2106f71ba82d6b7e75af9e69a98deaff50c8ff984e5bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:610-625 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:662-677 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py\u0060 and \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:610\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"41bdaad8cd01a2321720c05d24a4bac25aadda160c77aaf02e5e737941516734"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:273-287 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:382-397 \u2014 \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.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 13 separate duplicated blocks between them, totalling at least 239 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"92243016a0af29d73acdf4600dc5048bcebba809a7de3632def37061e9646934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1841-1855 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1374-1389 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 823 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1841\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1841}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec85c44fadeeda53bb5c5032794be76f6cb99102abb9013c9ba6a2866c3c2a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/motif_video/pipeline_motif_video.py:612-627 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:761-776 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py\u0060 and \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 712 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb9c7d69d71674fe7f46d85a6528eef775fb6ea1f2f0c8926464a79604016d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1229-1244 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1486-1501 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 1105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1229\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec16719739b19dc2c3a37209103a9b3cdf51f42e7e8782d3d851f21bdc6a41e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:773-790 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:905-920 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:773\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bceddc4ae3b0d100cb50c74f868ea3ee598b8dbdf46a07c46f7e346533348c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1332-1347 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1684-1699 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 704 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"459df4aeed27cd6e114d01121835475199b57badf09be9c479240bd3d41105b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:401-416 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:486-501 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"b346b3145e7630d55e56a889d0dc1bbe8e94f6c22bcc2cb8536057cf1c8437be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:933-948 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:1012-1027 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 770 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:933\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"146c3e8b81cd95d035fb4b178f61c4bd35afbccc932116078dc1f675ef87b07a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201316 lines \u00D7 3): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:875-878 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:638-653 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:699-714 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 479 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"610d688de39253bfa9702fab2f13b5ebf0c82db9e7df7697c6d07039b0ec20c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:559-574 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:598-613 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a63f3f735bdeff0d24e35e7a999259e2dcc745e3ec6eb58cd1a9165579a3f65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/diffusers/quantizers/modelopt/modelopt_quantizer.py:43-58 | src/diffusers/quantizers/torchao/torchao_quantizer.py:182-196 \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":"src/diffusers/quantizers/modelopt/modelopt_quantizer.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7424ec168e6eacb75c8119c08c2552d21b930a08ce1c9e7909df9bcd41648f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:91-106 | src/diffusers/schedulers/scheduling_helios_dmd.py:70-85 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_helios.py\u0060 and \u0060src/diffusers/schedulers/scheduling_helios_dmd.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a28c296b2072aa91f0b44e4e1bcc1ed088fe651345d9c2c8e8bb1110ba0037"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 57): examples/community/gluegen.py:526-545 | examples/community/ip_adapter_face_id.py:783-802 | examples/community/latent_consistency_img2img.py:244-258 | examples/community/latent_consistency_interpolate.py:501-520 | examples/community/latent_consistency_txt2img.py:181-195 | examples/community/llm_grounded_diffusion.py:1509-1528 | examples/community/lpw_stable_diffusion_xl.py:1335-1354 | examples/community/matryoshka.py:4189-4208 | examples/community/mixture_tiling_sdxl.py:716-735 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1645-1664 | examples/community/pipeline_kolors_differential_img2img.py:719-738 | examples/community/pipeline_kolors_inpainting.py:1012-1031 | examples/community/pipeline_sdxl_style_aligned.py:1303-1322 | examples/community/pipeline_stable_diffusion_boxdiff.py:1002-1021 | examples/community/pipeline_stable_diffusion_pag.py:990-1007 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1284-1303 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:854-873 | examples/community/pipeline_stable_diffusion_xl_ipex.py:663-682 | examples/community/regional_prompting_stable_diffusion.py:1345-1364 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:328-347 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:306-325 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:398-417 | examples/research_projects/anytext/anytext.py:1883-1902 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:856-875 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1204-1223 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1384-1403 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:807-826 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:853-872 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:941-960 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:918-937 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:649-668 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:721-740 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:694-713 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:704-723 | src/diffusers/pipelines/kolors/pipeline_kolors.py:593-612 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:721-740 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:579-598 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:520-539 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:699-718 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:813-832 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:922-941 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:949-968 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:611-630 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:687-706 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:728-747 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:852-871 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:774-793 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:923-942 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1014-1033 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:720-739 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:804-823 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:826-845 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:761-780 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:909-928 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1014-1033 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:651-670 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:820-839 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fd1026f0b03f6f40b8131eadac76f8f509560e718159cf5fa7bbce7f282842"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 46): examples/community/lpw_stable_diffusion_xl.py:1023-1037 | examples/community/pipeline_controlnet_xl_kolors.py:529-543 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:575-589 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:626-640 | examples/community/pipeline_demofusion_sdxl.py:453-467 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1598-1612 | examples/community/pipeline_flux_semantic_guidance.py:619-633 | examples/community/pipeline_flux_with_cfg.py:443-457 | examples/community/pipeline_kolors_differential_img2img.py:529-543 | examples/community/pipeline_sdxl_style_aligned.py:846-860 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:565-579 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:640-654 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:593-607 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:740-754 | examples/community/pipeline_stable_diffusion_xl_ipex.py:595-609 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:720-734 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:521-533 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:687-701 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:691-705 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:711-725 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:711-725 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:624-638 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:696-710 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:531-545 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:563-577 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:526-540 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:548-562 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:556-570 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:596-610 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:290-301 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:355-367 | src/diffusers/pipelines/kolors/pipeline_kolors.py:499-513 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:523-537 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:695-709 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:697-711 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:517-531 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:601-615 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:621-635 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:683-697 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:310-324 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:323-337 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:609-623 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:639-653 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:646-660 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:672-686 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:701-715 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 264 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1023\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f75a3c223639490b8557c5e1a13d42412f4a257b4616fab948802b75962e241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 37): examples/community/lpw_stable_diffusion.py:1182-1196 | examples/community/lpw_stable_diffusion.py:1294-1308 | examples/community/lpw_stable_diffusion.py:1417-1431 | examples/community/matryoshka.py:1661-1675 | examples/community/matryoshka.py:1708-1722 | examples/community/matryoshka.py:1793-1807 | examples/community/matryoshka.py:3253-3267 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:523-537 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:708-722 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:727-741 | src/diffusers/models/model_loading_utils.py:499-513 | src/diffusers/models/modeling_utils.py:1922-1936 | src/diffusers/models/unets/unet_2d_blocks.py:135-149 | src/diffusers/models/unets/unet_2d_blocks.py:277-291 | src/diffusers/models/unets/unet_2d_blocks.py:405-419 | src/diffusers/models/unets/unet_3d_blocks.py:129-143 | src/diffusers/models/unets/unet_3d_blocks.py:220-234 | src/diffusers/models/unets/unet_dreamlite.py:1425-1439 | src/diffusers/models/unets/unet_dreamlite.py:1561-1575 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1073-1087 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:745-759 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:802-816 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:919-933 | src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:1570-1584 | src/diffusers/pipelines/deprecated/unidiffuser/modeling_text_decoder.py:112-126 | src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py:1011-1025 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:91-105 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:157-171 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py:404-418 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:587-601 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1168-1182 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1594-1608 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1981-1995 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1233-1247 | src/diffusers/pipelines/ltx2/vocoder.py:528-542 | src/diffusers/pipelines/ltx2/vocoder.py:545-559 | src/diffusers/pipelines/pipeline_utils.py:1033-1047 \u2014 there are 37 copies across 24 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 37 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion.py:1182\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: \u0060ModelMixin\u0060 names \u0060...models.modeling_utils\u0060 in one and \u0060..modeling_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/ltx2/vocoder.py:543\u0060 calls \u0060LTX2Vocoder\u0060 and \u0060examples/community/lpw_stable_diffusion.py:1180\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87a9a5dc4dfe6e289c83091330b510deba57e7cb3c590f63f96a0a739ac279e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 36): examples/community/adaptive_mask_inpainting.py:375-387 | examples/community/composable_stable_diffusion.py:92-104 | examples/community/img2img_inpainting.py:98-110 | examples/community/instaflow_one_step.py:112-124 | examples/community/interpolate_stable_diffusion.py:89-101 | examples/community/ip_adapter_face_id.py:194-206 | examples/community/llm_grounded_diffusion.py:339-351 | examples/community/lpw_stable_diffusion.py:499-511 | examples/community/matryoshka.py:3697-3709 | examples/community/multilingual_stable_diffusion.py:101-113 | examples/community/pipeline_prompt2prompt.py:134-146 | examples/community/pipeline_stable_diffusion_boxdiff.py:420-432 | examples/community/pipeline_stable_diffusion_pag.py:387-399 | examples/community/pipeline_zero1to3.py:111-123 | examples/community/stable_diffusion_ipex.py:108-120 | examples/community/stable_diffusion_mega.py:69-81 | examples/community/stable_diffusion_reference.py:135-147 | examples/community/stable_diffusion_repaint.py:190-202 | examples/community/stable_diffusion_tensorrt_img2img.py:713-725 | examples/community/stable_diffusion_tensorrt_inpaint.py:717-729 | examples/community/stable_diffusion_tensorrt_txt2img.py:629-641 | examples/community/text_inpainting.py:74-86 | examples/community/wildcard_stable_diffusion.py:123-135 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:213-225 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:241-253 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:305-317 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:84-98 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:187-199 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:144-156 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:326-340 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:219-231 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:214-226 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:246-258 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:214-226 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:242-254 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:188-200 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:84\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: \u0060FrozenDict\u0060 names \u0060....configuration_utils\u0060 in one and \u0060...configuration_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/adaptive_mask_inpainting.py:372\u0060 calls \u0060register_adaptive_mask_model\u0060, \u0060register_adaptive_mask_settings\u0060 and \u0060examples/community/composable_stable_diffusion.py:90\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa766abb12087f41cb5d6802b2359d140615c4189e4aa359267d4c4c9b03f61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 32): examples/community/lpw_stable_diffusion_xl.py:866-879 | examples/community/mixture_tiling_sdxl.py:554-567 | examples/community/mod_controlnet_tile_sr_sdxl.py:561-574 | examples/community/pipeline_demofusion_sdxl.py:330-343 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1431-1444 | examples/community/pipeline_sdxl_style_aligned.py:674-687 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:858-871 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:407-420 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:554-567 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:434-447 | examples/community/pipeline_stable_diffusion_xl_ipex.py:434-447 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:466-479 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:495-508 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:459-472 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:467-480 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:459-472 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:448-461 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:459-472 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:478-491 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:391-404 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:753-766 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:540-554 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:474-487 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:464-477 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:461-474 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:479-492 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:569-582 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:451-464 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:469-482 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:573-586 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:368-381 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:479-492 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:866\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/lpw_stable_diffusion_xl.py:882\u0060 calls \u0060text_encoder\u0060, \u0060to\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:555\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c85ae9ec092899d3e07c117c88d0bf57a528d5ac2812195cbcbdbc9b64891bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 31): examples/community/fresco_v2v.py:2496-2510 | examples/community/gluegen.py:800-814 | examples/community/instaflow_one_step.py:677-691 | examples/community/ip_adapter_face_id.py:1113-1127 | examples/community/pipeline_hunyuandit_differential_img2img.py:1128-1142 | examples/community/pipeline_stable_diffusion_boxdiff.py:1711-1725 | examples/community/regional_prompting_stable_diffusion.py:1097-1110 | examples/research_projects/anytext/anytext.py:2344-2358 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1323-1337 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1345-1359 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1320-1334 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1034-1048 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:978-992 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:1033-1047 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:910-924 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1532-1546 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:845-859 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:1037-1051 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1186-1199 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:939-951 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:773-787 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:816-830 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:782-796 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1093-1107 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:896-910 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:980-994 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:909-923 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1205-1219 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:424-437 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1147-1161 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:478-492 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/gluegen.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2496}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ecc6c7d75b906b3c30c67d90d30774e7d717c9cbc2183813ae456d7ae1e6da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 31): examples/community/lpw_stable_diffusion_xl.py:290-304 | examples/community/mixture_tiling_sdxl.py:450-464 | examples/community/mod_controlnet_tile_sr_sdxl.py:457-471 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1329-1343 | examples/community/pipeline_sdxl_style_aligned.py:570-584 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:756-770 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:303-317 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:450-464 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:330-344 | examples/community/pipeline_stable_diffusion_xl_ipex.py:330-344 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:358-372 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:389-403 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:353-367 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:361-375 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:353-367 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:342-356 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:353-367 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:372-386 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:285-299 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:647-661 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:459-473 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:368-382 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:358-372 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:355-369 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:373-387 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:463-477 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:345-359 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:363-377 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:467-481 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:271-285 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:373-387 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:264\u0060 calls \u0060lora_scale\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:453\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"66279478c5b6503f56ef1a117c44804a8afc4060019e011acb2a46f9a7fc295b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 31): src/diffusers/loaders/lora_pipeline.py:312-326 | src/diffusers/loaders/lora_pipeline.py:734-748 | src/diffusers/loaders/lora_pipeline.py:1005-1019 | src/diffusers/loaders/lora_pipeline.py:1289-1303 | src/diffusers/loaders/lora_pipeline.py:1483-1497 | src/diffusers/loaders/lora_pipeline.py:2390-2404 | src/diffusers/loaders/lora_pipeline.py:2575-2589 | src/diffusers/loaders/lora_pipeline.py:2763-2777 | src/diffusers/loaders/lora_pipeline.py:2956-2970 | src/diffusers/loaders/lora_pipeline.py:3172-3186 | src/diffusers/loaders/lora_pipeline.py:3360-3374 | src/diffusers/loaders/lora_pipeline.py:3550-3564 | src/diffusers/loaders/lora_pipeline.py:3742-3756 | src/diffusers/loaders/lora_pipeline.py:3936-3950 | src/diffusers/loaders/lora_pipeline.py:4124-4138 | src/diffusers/loaders/lora_pipeline.py:4388-4402 | src/diffusers/loaders/lora_pipeline.py:4654-4668 | src/diffusers/loaders/lora_pipeline.py:4842-4856 | src/diffusers/loaders/lora_pipeline.py:5034-5048 | src/diffusers/loaders/lora_pipeline.py:5229-5243 | src/diffusers/loaders/lora_pipeline.py:5423-5437 | src/diffusers/loaders/lora_pipeline.py:5622-5636 | src/diffusers/loaders/lora_pipeline.py:5809-5823 | src/diffusers/loaders/lora_pipeline.py:6011-6025 | src/diffusers/loaders/lora_pipeline.py:6203-6217 | src/diffusers/loaders/lora_pipeline.py:6391-6405 | src/diffusers/loaders/lora_pipeline.py:6587-6601 | src/diffusers/loaders/lora_pipeline.py:6789-6803 | src/diffusers/loaders/lora_pipeline.py:6975-6989 | src/diffusers/loaders/lora_pipeline.py:7569-7583 | src/diffusers/loaders/peft.py:189-202 \u2014 there are 31 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 31 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/lora_pipeline.py:312\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"355efb2bdeb1b5176083126a6b6a74061dce8b6f84e1b24dc99e656ffb350e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 28): examples/community/adaptive_mask_inpainting.py:706-720 | examples/community/instaflow_one_step.py:446-460 | examples/community/llm_grounded_diffusion.py:507-521 | examples/community/lpw_stable_diffusion.py:682-696 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:420-434 | examples/community/rerender_a_video.py:404-418 | examples/community/stable_diffusion_controlnet_img2img.py:414-428 | examples/community/stable_diffusion_controlnet_inpaint.py:511-525 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:460-474 | examples/community/stable_diffusion_ipex.py:507-521 | examples/community/stable_diffusion_repaint.py:484-498 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:496-510 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:363-377 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:390-404 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:544-558 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:395-409 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:547-561 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:502-516 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:305-319 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:342-356 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:539-553 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:665-679 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:451-465 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:361-375 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:473-487 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:418-432 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:441-455 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:554-568 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:706\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b28a2161539ec36a2afc042932c487ea42e874996f3e57b15239d0cde61c40a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 22): examples/community/pipeline_stg_cogvideox.py:363-377 | examples/community/pipeline_stg_wan.py:293-307 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:245-259 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:262-276 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:307-321 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:309-323 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:318-332 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:328-342 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:334-348 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:279-293 | src/diffusers/pipelines/consisid/pipeline_consisid.py:420-434 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:305-319 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:263-277 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:284-298 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:289-303 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:345-359 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:306-320 | src/diffusers/pipelines/wan/pipeline_wan.py:265-279 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:356-370 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:319-333 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:312-326 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:330-344 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060examples/community/pipeline_stg_wan.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b71131b1bd6c494057250e8bd33685f2c66dedac2ec469020e30738f15ae03c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 21): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:712-725 | src/diffusers/pipelines/allegro/pipeline_allegro.py:562-575 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:532-545 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:576-589 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:329-342 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:616-629 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:331-344 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:287-300 | src/diffusers/pipelines/latte/pipeline_latte.py:549-562 | src/diffusers/pipelines/lumina/pipeline_lumina.py:581-594 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:536-549 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:543-556 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:648-661 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:593-606 | src/diffusers/pipelines/prx/pipeline_prx.py:217-231 | src/diffusers/pipelines/sana/pipeline_sana.py:619-632 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:634-647 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:510-523 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:534-547 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:642-655 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:644-657 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:561\u0060 calls \u0060to\u0060 and \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py:597\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"718c80b54d25bd29948dea1ead24e89676cfd80d59fc71aea560e23847d7e64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 20): examples/community/pipeline_flux_differential_img2img.py:388-401 | examples/community/pipeline_flux_kontext_multiple_images.py:430-443 | examples/community/pipeline_flux_rf_inversion.py:385-398 | examples/community/pipeline_flux_semantic_guidance.py:389-402 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:418-431 | src/diffusers/modular_pipelines/flux/encoders.py:441-455 | src/diffusers/pipelines/flux/pipeline_flux.py:371-384 | src/diffusers/pipelines/flux/pipeline_flux_control.py:385-398 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:396-409 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:435-448 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:403-416 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:397-410 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:408-421 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:480-493 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:394-407 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:398-411 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:419-432 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:452-465 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:358-371 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:362-375 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:388\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, \u0060src/diffusers/modular_pipelines/flux/encoders.py:440\u0060 calls \u0060_get_t5_prompt_embeds\u0060 and \u0060examples/community/pipeline_flux_differential_img2img.py:388\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd6e8b3c14ef8c9edc9554d5bd9b3f18a2a3b0bff615a7a4122cc95c4bcaffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 19): examples/community/pipeline_flux_differential_img2img.py:485-499 | examples/community/pipeline_kolors_inpainting.py:745-757 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1021-1033 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:517-531 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:537-551 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:652-665 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:740-753 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:731-744 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:507-521 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:573-587 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:613-627 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:765-776 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:602-615 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:682-694 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:735-747 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:380-393 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:373-386 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:659-671 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:738-750 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:485\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc88daac205a307fb1e472ccaa2b41d60eedd271f190d8c316e93194569b6f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 18): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:523-537 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:708-722 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:727-741 | src/diffusers/models/model_loading_utils.py:499-513 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1073-1087 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:919-933 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1169-1184 | src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:1570-1584 | src/diffusers/pipelines/deprecated/unidiffuser/modeling_text_decoder.py:112-126 | src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py:1011-1025 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py:404-418 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:587-601 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1168-1182 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1594-1608 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1981-1995 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1233-1247 | src/diffusers/pipelines/ltx2/vocoder.py:528-542 | src/diffusers/pipelines/ltx2/vocoder.py:545-559 \u2014 there are 18 copies across 16 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 18 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py:523\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: \u0060ModelMixin\u0060 names \u0060...models.modeling_utils\u0060 in one and \u0060..modeling_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/ltx2/vocoder.py:543\u0060 calls \u0060LTX2Vocoder\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py:521\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"367a2551c9574dd0290f50e5a3c488c7f29f4c793d7b24813fb51d86e0f61b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 18): examples/community/pipeline_flux_kontext_multiple_images.py:290-303 | examples/community/pipeline_flux_rf_inversion.py:245-258 | examples/community/pipeline_flux_semantic_guidance.py:249-262 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:278-291 | src/diffusers/modular_pipelines/flux/encoders.py:344-358 | src/diffusers/pipelines/flux/pipeline_flux.py:231-244 | src/diffusers/pipelines/flux/pipeline_flux_control.py:243-256 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:254-267 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:293-306 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:255-268 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:266-279 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:258-271 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:252-265 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:256-269 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:277-290 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:310-323 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:216-229 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:209-222 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3da118eed6cba5289bb76d0a5048b9f93e47426792cc5c37d4e8da05bf3276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 16): examples/community/pipeline_stg_ltx.py:452-466 | examples/community/pipeline_stg_ltx_image2video.py:477-491 | src/diffusers/modular_pipelines/echo/before_denoise.py:28-42 | src/diffusers/modular_pipelines/ltx/modular_pipeline.py:42-56 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:117-131 | src/diffusers/pipelines/ltx/pipeline_ltx.py:426-440 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:578-592 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:643-657 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:451-465 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:657-671 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:712-726 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:581-595 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:522-536 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:580-594 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:734-748 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:665-679 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"8919bd67a49238ee0a31e14863d4147ab42a2254647951d0047fe8331c9a52e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 14): examples/community/pipeline_flux_differential_img2img.py:848-861 | examples/community/pipeline_flux_rf_inversion.py:802-815 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1046-1059 | src/diffusers/pipelines/chroma/pipeline_chroma.py:732-745 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:806-819 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:957-970 | src/diffusers/pipelines/flux/pipeline_flux_control.py:707-721 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:779-793 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:905-919 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:847-861 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:848-861 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:912-925 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:960-973 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1007-1021 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 629 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:732\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef7cc801ba16c4ebb63588fd0b41580f85a530e199800b96fce32f4efd9139c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 14): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:547-557 | scripts/convert_gligen_to_diffusers.py:311-321 | scripts/convert_i2vgen_to_diffusers.py:365-375 | scripts/convert_if.py:436-450 | scripts/convert_if.py:1034-1048 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:250-260 | scripts/convert_ms_text_to_video_to_diffusers.py:321-331 | scripts/convert_original_audioldm2_to_diffusers.py:439-449 | scripts/convert_original_audioldm_to_diffusers.py:427-437 | scripts/convert_original_musicldm_to_diffusers.py:423-433 | scripts/convert_svd_to_diffusers.py:441-455 | scripts/convert_versatile_diffusion_to_diffusers.py:496-506 | scripts/convert_zero123_to_diffusers.py:395-405 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:545-555 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_svd_to_diffusers.py:441\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d86c285d9c3bcd9274e3b7b047ce1a7fd9cc7aa2f52e9ec838a6ca9af96818"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 13): examples/community/mixture_tiling_sdxl.py:1203-1217 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2247-2261 | examples/community/pipeline_sdxl_style_aligned.py:1887-1901 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1061-1075 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1050-1064 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1143-1157 | examples/community/stable_diffusion_xl_controlnet_reference.py:1352-1366 | examples/community/stable_diffusion_xl_reference.py:1186-1200 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1586-1600 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1596-1610 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1101-1115 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1360-1374 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1295-1309 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1061\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":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"53bed8fb3ebcce92ebefa236c9da34acfb526c9071501122c562361e1fe1d81b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 13): examples/community/pipeline_prompt2prompt.py:698-715 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1152-1170 | examples/community/stable_diffusion_controlnet_reference.py:335-352 | examples/community/stable_diffusion_ipex.py:684-701 | examples/community/stable_diffusion_reference.py:987-1004 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:504-518 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:902-916 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:658-675 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:762-776 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:968-983 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:678-692 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1173-1191 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:370-384 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 13 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 13 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_prompt2prompt.py:698\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, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:899\u0060 calls \u0060cat\u0060, \u0060set_timesteps\u0060 and \u0060examples/community/pipeline_prompt2prompt.py:698\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":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"045ffc1a467ca32c5a388f67b3627566a8239dbc0c1c3b3265f2f0fa4d11960e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 13): examples/community/pipeline_stg_ltx.py:235-247 | examples/community/pipeline_stg_ltx_image2video.py:254-266 | src/diffusers/pipelines/ltx/pipeline_ltx.py:209-221 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:291-303 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:228-240 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:264-276 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:306-318 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:194-205 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:208-219 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:313-325 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:328-340 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:267-279 | src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:178-192 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_ltx.py:235\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91fc36695943a5497bc4c82271dcdc6e71615398b977040d8015a38b47e9a4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 12): examples/community/adaptive_mask_inpainting.py:1094-1108 | examples/community/hd_painter.py:677-691 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1589-1603 | examples/community/pipeline_kolors_inpainting.py:1465-1479 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2020-2034 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1557-1571 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1641-1655 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1329-1343 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1211-1225 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1497-1511 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1221-1235 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1496-1510 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:1094\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95b02e7b6205796f0b11bf1c5a83967d8c2cd02747a0d51473816e417e1cd2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 12): examples/community/matryoshka.py:808-821 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:243-257 | src/diffusers/models/unets/unet_2d_blocks.py:1047-1060 | src/diffusers/models/unets/unet_2d_blocks.py:1181-1194 | src/diffusers/models/unets/unet_2d_blocks.py:1314-1327 | src/diffusers/models/unets/unet_2d_blocks.py:1776-1789 | src/diffusers/models/unets/unet_2d_blocks.py:1877-1890 | src/diffusers/models/unets/unet_3d_blocks.py:432-445 | src/diffusers/models/unets/unet_3d_blocks.py:563-576 | src/diffusers/models/unets/unet_motion_model.py:256-269 | src/diffusers/models/unets/unet_motion_model.py:396-409 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:859-872 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:243\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060ResnetBlock2D\u0060 names \u0060..resnet\u0060 in one and \u0060diffusers.models.resnet\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53128ccc1b5f39d203da6d871d1cfcf5624d9731fe380a0c46ac9a4e58e2dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 12): examples/community/pipeline_controlnet_xl_kolors.py:1079-1093 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1269-1283 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1481-1495 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:853-867 | examples/community/pipeline_stable_diffusion_xl_instantid.py:843-857 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1167-1181 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1171-1185 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1328-1342 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1421-1435 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1301-1315 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1427-1441 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1113-1127 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:853\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"95aa6e3e22cf7d0bc642e7cb0bfb2d0b9c573080bfc0d417ed814169fcff5290"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 11): examples/community/pipeline_controlnet_xl_kolors.py:493-507 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:539-553 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:590-604 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:540-553 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:683-697 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:643-657 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:674-688 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:663-677 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:649-663 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:587-600 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:576-589 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_controlnet_xl_kolors.py:493\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py:538\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py:492\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"697f4605946f34ddef448d2944c13d87de74568f69263985b0e939d05572e199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 11): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:750-759 | scripts/convert_gligen_to_diffusers.py:126-135 | scripts/convert_original_audioldm2_to_diffusers.py:545-554 | scripts/convert_original_audioldm_to_diffusers.py:529-538 | scripts/convert_original_musicldm_to_diffusers.py:525-534 | scripts/convert_svd_to_diffusers.py:670-679 | scripts/convert_unidiffuser_to_diffusers.py:391-405 | scripts/convert_vae_pt_to_diffusers.py:63-72 | scripts/convert_versatile_diffusion_to_diffusers.py:617-626 | scripts/convert_zero123_to_diffusers.py:562-571 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:688-697 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_unidiffuser_to_diffusers.py:391\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"747ded1d68aeff029cfefafa12d7fafcf751612d9c8b3237703baf1ba9e231d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 10): examples/community/pipeline_animatediff_controlnet.py:670-683 | examples/community/pipeline_animatediff_ipex.py:527-540 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:745-758 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:628-641 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:651-665 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:783-797 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:488-501 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:567-580 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:426-439 | src/diffusers/pipelines/latte/pipeline_latte.py:568-581 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 639 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e731a32d412f750826c1dc4be10b45535aceed8e3fddcdb079edd0771b739e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 10): examples/community/pipeline_flux_differential_img2img.py:621-633 | examples/community/pipeline_z_image_differential_img2img.py:401-413 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:659-671 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:681-695 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:694-706 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:648-660 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:717-731 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:820-834 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:784-796 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:360-373 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:621\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ef8059f64492d67c3967c1f6a3727197d53724a03533c49b24f87766456912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 10): src/diffusers/guiders/adaptive_projected_guidance.py:146-160 | src/diffusers/guiders/adaptive_projected_guidance_mix.py:162-176 | src/diffusers/guiders/auto_guidance.py:184-198 | src/diffusers/guiders/classifier_free_guidance.py:142-156 | src/diffusers/guiders/classifier_free_zero_star_guidance.py:139-153 | src/diffusers/guiders/magnitude_aware_guidance.py:124-138 | src/diffusers/guiders/perturbed_attention_guidance.py:260-274 | src/diffusers/guiders/skip_layer_guidance.py:252-266 | src/diffusers/guiders/smoothed_energy_guidance.py:241-255 | src/diffusers/guiders/tangential_classifier_free_guidance.py:115-129 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/adaptive_projected_guidance.py\u0060 and \u0060src/diffusers/guiders/adaptive_projected_guidance_mix.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/adaptive_projected_guidance.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a773091c1c8224a81cac11d557401bddd1b1e51b89ef085b5e58f9811c5cbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 10): src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:504-518 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:566-580 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:693-707 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:743-757 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:681-695 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:862-876 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:722-736 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:659-673 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:803-817 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:725-739 \u2014 \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.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 32 separate duplicated blocks between them, totalling at least 343 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:504\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"29034c61f5c1b724552d77fe4e911a38cfb4f41f06f57816a7e43033215f9fcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 9): examples/community/adaptive_mask_inpainting.py:755-768 | examples/community/stable_diffusion_tensorrt_inpaint.py:876-890 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:864-878 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:930-944 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:907-921 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:815-829 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:733-747 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:709-723 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:703-717 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_tensorrt_inpaint.py:876\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: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd501e486a721d0c6f231fd279f461205fbc6803cc542a71ed4abde6accede74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 9): examples/community/matryoshka.py:1636-1650 | examples/community/matryoshka.py:1767-1781 | src/diffusers/models/unets/unet_2d_blocks.py:114-128 | src/diffusers/models/unets/unet_2d_blocks.py:138-152 | src/diffusers/models/unets/unet_2d_blocks.py:408-422 | src/diffusers/models/unets/unet_3d_blocks.py:110-124 | src/diffusers/models/unets/unet_3d_blocks.py:200-214 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:73-87 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:139-153 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_blocks.py:114\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a051e308572520e29f4690ca275fafbd15ae663fe7b2669c0dd0d291f0f996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 9): examples/community/matryoshka.py:3119-3133 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:845-855 | src/diffusers/models/unets/unet_2d_condition.py:1200-1214 | src/diffusers/models/unets/unet_3d_condition.py:633-647 | src/diffusers/models/unets/unet_i2vgen_xl.py:614-628 | src/diffusers/models/unets/unet_motion_model.py:2072-2086 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:412-426 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:669-683 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1373-1387 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:3119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/unets/unet_spatio_temporal_condition.py:429\u0060 calls \u0060upsample_block\u0060 and \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:684\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":3119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a60224c00fdef506cef2484c18ac8717c8776b16e106f1baf0b814a45fa3315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 9): examples/community/pipeline_flux_differential_img2img.py:645-660 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:683-698 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:707-721 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:718-732 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:672-686 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:743-757 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:846-860 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:598-613 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:553-568 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 789 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:733\u0060 calls \u0060cat\u0060 and \u0060examples/community/pipeline_flux_differential_img2img.py:662\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6c047d910e2188e916adb2992202ac81aefca31fcea4b2b5cea401a167a9a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201315 lines \u00D7 9): src/diffusers/modular_pipelines/helios/denoise.py:439-446 | src/diffusers/modular_pipelines/helios/denoise.py:631-638 | src/diffusers/modular_pipelines/helios/denoise.py:972-979 | src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:151-160 | src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:365-373 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:762-776 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:885-899 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:724-734 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:848-858 \u2014 there are 9 copies across 6 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 9 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acc01461f67bd39396557f7540fd5c3971ea44c57e7169b8622006039161bf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 8): examples/community/fresco_v2v.py:2435-2449 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1000-1014 | examples/community/pipeline_stable_diffusion_xl_instantid.py:989-1003 | examples/research_projects/anytext/anytext.py:2282-2296 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1262-1276 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1280-1294 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1255-1269 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1258-1272 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2435\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2435}}}],"partialFingerprints":{"codehealthFindingId/v1":"334180628ddc3b5cbbb6355f90e569489ae7258f77f5d0a1f169cebc8fd4088b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 8): examples/community/gluegen.py:303-317 | examples/community/pipeline_zero1to3.py:227-241 | examples/community/stable_diffusion_controlnet_img2img.py:219-233 | examples/community/stable_diffusion_controlnet_inpaint.py:318-332 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:303-317 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:143-157 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:200-214 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:164-178 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51df872f7ce5b96acfd7b35071142eb228f7dd58a6a1140d2321ec85161e3e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 8): examples/community/lpw_stable_diffusion_xl.py:1192-1206 | examples/community/pipeline_kolors_inpainting.py:796-810 | examples/community/pipeline_sdxl_style_aligned.py:1015-1029 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1068-1081 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:923-937 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:744-758 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:787-801 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:789-803 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 595 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1192\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: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/lpw_stable_diffusion_xl.py:1207\u0060 calls \u0060repeat\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:938\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01a6196c74ea81b69aaef1cce18f60edfc47afae48eccd849479f5e5104aab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 8): examples/community/masked_stable_diffusion_xl_img2img.py:346-359 | examples/community/pipeline_kolors_inpainting.py:1522-1535 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2087-2101 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1262-1275 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1354-1367 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1568-1581 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1336-1349 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1556-1569 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/masked_stable_diffusion_xl_img2img.py:345\u0060 calls \u0060repeat\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1567\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":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc611a4628ee3ba7e96288639f8da4ece97da86061b21f8b1b4ac045db2c0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 8): examples/community/pipeline_controlnet_xl_kolors.py:285-299 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:307-321 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:358-372 | examples/community/pipeline_kolors_differential_img2img.py:273-286 | examples/community/pipeline_kolors_inpainting.py:545-559 | src/diffusers/pipelines/kolors/pipeline_kolors.py:247-260 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:267-280 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:264-277 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_controlnet_xl_kolors.py:300\u0060 calls \u0060isinstance\u0060, \u0060maybe_convert_prompt\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py:287\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"432e6e8cf7407163764e79f6464dbc72f66b25d80e2a4d0c25d0bcf9a1ad8123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 8): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:255-269 | scripts/convert_gligen_to_diffusers.py:397-411 | scripts/convert_original_audioldm2_to_diffusers.py:219-233 | scripts/convert_original_audioldm_to_diffusers.py:220-234 | scripts/convert_original_musicldm_to_diffusers.py:217-231 | scripts/convert_zero123_to_diffusers.py:55-69 | src/diffusers/loaders/single_file_utils.py:927-941 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:253-267 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3717bb67d5ff60d0fbd139e743a1223372683d3c2cc2e02dbe9aec3c2fb3d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 8): src/diffusers/modular_pipelines/ltx2/before_denoise.py:148-158 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:731-745 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:778-792 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:652-666 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:593-607 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:660-674 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:814-828 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:730-744 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54e834e174a6412e06b6ba4bca0a83c37289ce3db5fcf5e35a2f9c683750374"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 8): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:271-284 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:295-308 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:448-461 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:299-312 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:450-463 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:406-419 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:183-197 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:198-212 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:181\u0060 calls \u0060repeat\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:268\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0b6159c7a731e969ee012d40906ea30c986b580a6d1913ad1da814f15062b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 8): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:373-386 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:464-477 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:600-613 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:277-290 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:284-297 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:332-346 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:336-349 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:494-507 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 396 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:373\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45e1a053e2ab3ef8fde4456f1f415df14faccf537b8505356f4a82ddc0d74e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): examples/community/fresco_v2v.py:2447-2461 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1267-1281 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1438-1452 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1797-1811 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1569-1583 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1810-1824 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1621-1635 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 123 separate duplicated blocks between them, totalling at least 1589 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1436\u0060 calls \u0060cat\u0060 and \u0060examples/community/fresco_v2v.py:2444\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":"examples/community/fresco_v2v.py"},"region":{"startLine":2447}}}],"partialFingerprints":{"codehealthFindingId/v1":"414fddd3c15ad002d194e0c5dd9d7d78392d9b161396231d7531f328fc0717dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:235-249 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:209-223 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:177-191 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:150-164 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:204-218 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:224-238 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:223-237 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f5da95c1b7750c1537e3a13b5d952dc836fd9b8c18c04bf7c58c028dca4485"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 7): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:430-443 | scripts/convert_original_audioldm2_to_diffusers.py:321-335 | scripts/convert_original_audioldm_to_diffusers.py:331-344 | scripts/convert_original_musicldm_to_diffusers.py:327-340 | scripts/convert_svd_to_diffusers.py:277-290 | scripts/convert_versatile_diffusion_to_diffusers.py:392-405 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:428-441 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:430\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/convert_original_audioldm2_to_diffusers.py:319\u0060 calls \u0060sum\u0060, \u0060startswith\u0060 and \u0060scripts/convert_versatile_diffusion_to_diffusers.py:390\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a618cb63092a86bca778635d2716b26a3b9a6b9f902926d0247843f069a8cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): examples/community/matryoshka.py:984-998 | src/diffusers/models/unets/unet_2d_blocks.py:720-734 | src/diffusers/models/unets/unet_2d_blocks.py:838-852 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1052-1066 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2141-2155 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2260-2274 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1052\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, \u0060src/diffusers/models/unets/unet_2d_blocks.py:615\u0060 calls \u0060Tensor\u0060 and \u0060examples/community/matryoshka.py:863\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":"examples/community/matryoshka.py"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"151f58c588626c248113aed2edf797907ac2d171b83819f0f1e09d30f4dd7045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): examples/community/matryoshka.py:1070-1084 | src/diffusers/models/unets/unet_2d_blocks.py:2340-2354 | src/diffusers/models/unets/unet_3d_blocks.py:1339-1353 | src/diffusers/models/unets/unet_dreamlite.py:958-972 | src/diffusers/models/unets/unet_dreamlite.py:1116-1130 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1875-1889 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_blocks.py:1339\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":"examples/community/matryoshka.py"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"a638659ddd44e465fef652fde18cf78717ca721184b87b550585834ec98dd436"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 6): examples/community/pipeline_animatediff_controlnet.py:899-913 | examples/community/pipeline_animatediff_img2video.py:845-859 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:860-874 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:835-848 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:865-879 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1064-1078 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 594 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_controlnet.py:899\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:832\u0060 calls \u0060is_compiled_module\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py:842\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":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b709ffb7a441d6681f10ba3fa4eba545a1402f9d61c134db133b0a77e6193b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 6): examples/community/pipeline_animatediff_ipex.py:762-776 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:802-816 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1021-1033 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:940-954 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:896-910 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:807-821 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 631 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:762\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04368b425cba2d6f3b715886330f7939e84d2b9ca138d7fe3daec69ec4b8322"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 6): examples/community/pipeline_flux_with_cfg.py:750-764 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:955-968 | src/diffusers/pipelines/allegro/pipeline_allegro.py:820-833 | src/diffusers/pipelines/lumina/pipeline_lumina.py:784-797 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:849-862 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:793-806 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:820\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, \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:835\u0060 calls \u0060unsqueeze\u0060 and \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py:800\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":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"422397738a799e3aae0aba97c2002bbd9ccb35cdf8940d7fa65a848f1f15f56e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:588-602 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:242-256 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:283-297 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:299-313 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:275-289 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:305-319 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"86858420672017a3321d39d59dba94d5fae8ba372d2bd91537cec2e046557dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201315 lines \u00D7 6): scripts/convert_flux_to_diffusers.py:253-263 | scripts/convert_hunyuan_image_to_diffusers.py:260-274 | scripts/convert_hunyuan_image_to_diffusers.py:480-492 | scripts/convert_ovis_image_to_diffusers.py:221-231 | src/diffusers/loaders/single_file_utils.py:2473-2479 | src/diffusers/loaders/single_file_utils.py:3727-3733 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuan_image_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.py:253\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_flux_to_diffusers.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24365d3f69d23a7812f0873ef8517bd05a5ba4b3f4c02c10cfde59610baf5f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 6): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:952-965 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:1012-1025 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1432-1445 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1503-1517 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1314-1327 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1384-1398 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1503\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92c0a41fe2d1241da23a862c1832c3ca5cb0a12112f226327b046767fbfae25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 6): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:739-751 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:629-641 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:850-862 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:821-833 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:751-765 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:795-809 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 424 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"228b05feb180238cba7575a5919b99b238b627631087afda5a5ec4503fb0adf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:309-323 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:548-562 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:796-810 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:319-333 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:583-597 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:857-871 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.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 7 separate duplicated blocks between them, totalling at least 115 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:309\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cde9c98df7b5c7711cc219990e9aac2173266250f1890f6d619f4c1b750726"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 6): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1437-1450 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1522-1535 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:952-965 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1152-1166 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1341-1354 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1554-1568 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 117 separate duplicated blocks between them, totalling at least 1765 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09beacbf0cd548b48a57b7c1aee29e476e8f0103fa81cf673ef95b91d6efecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/community/adaptive_mask_inpainting.py:240-254 | examples/community/stable_diffusion_repaint.py:65-79 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:86-100 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:165-179 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:163-177 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/stable_diffusion_repaint.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a782682e1b1a09f4cec3a6956ba54169ba8e131d873d8bc264f33c980b262fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/community/ip_adapter_face_id.py:286-300 | src/diffusers/loaders/ip_adapter.py:160-174 | src/diffusers/loaders/ip_adapter.py:456-470 | src/diffusers/loaders/ip_adapter.py:707-721 | src/diffusers/loaders/ip_adapter.py:983-997 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ec173c1ebe03d6b87622ea760b32c7f87a9915646008f8fe5e751642a870eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 5): examples/community/kohya_hires_fix.py:161-171 | examples/community/matryoshka.py:2956-2970 | examples/community/matryoshka.py:3405-3419 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:704-713 | src/diffusers/models/unets/unet_2d_condition.py:1072-1082 \u2014 before extracting anything, compare \u0060examples/community/kohya_hires_fix.py\u0060 and \u0060examples/community/matryoshka.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/unets/unet_2d_condition.py:1068\u0060 calls \u0060to\u0060, \u0060unsqueeze\u0060 and \u0060examples/community/matryoshka.py:2946\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/kohya_hires_fix.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1613b714072dd30d5f460e440aeb97b1c542d02ef1fcaf4c2900c0891b73052c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/community/lpw_stable_diffusion.py:1012-1026 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:998-1012 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1496-1510 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:786-800 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:438-452 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"721868d5e3de705147ab435af1b67834854744ffff632cd49e5d4a290b8b6043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/community/pipeline_controlnet_xl_kolors.py:1324-1338 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1526-1540 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1840-1854 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1383-1397 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1291-1305 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060StableDiffusionXLPipelineOutput\u0060 names \u0060..stable_diffusion_xl.pipeline_output\u0060 in one and \u0060diffusers.pipelines.stable_diffusion_xl.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4318362dcb20bba8e20e4f9377273bef68263aed7a42d6ee872406230d7753"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 5): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1246-1259 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:833-843 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1143-1157 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1398-1411 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1386-1399 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:833\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":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ecb2d1b726c5eeb6b62b06054131bede5a5c55797f31e623db465c2daf081a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 5): examples/community/pipeline_stable_diffusion_pag.py:1468-1482 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1324-1337 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:949-962 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1063-1076 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1093-1106 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_pag.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 668 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"9259300030ab3a5993fe40fe51d65d4c1b96a4397e7af71136eb2e49a3dd48bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1203-1217 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1608-1622 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1281-1295 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1569-1583 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1243-1257 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1281\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e00e45f32650039426fa9ed01c2da71d41699fb35f4e8d7366ae3f301203f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/community/stable_diffusion_xl_controlnet_reference.py:1281-1295 | examples/research_projects/anytext/anytext.py:2294-2308 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1292-1306 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1511-1525 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1530-1544 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060examples/research_projects/anytext/anytext.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 528 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6ba8e8bbd5ae31a54681ef2d59e6d70b093d00100bb1edfa5b4fdf98a0a2d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): src/diffusers/modular_pipelines/flux2/before_denoise.py:34-48 | src/diffusers/pipelines/flux2/pipeline_flux2.py:160-174 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:64-78 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:99-113 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:64-78 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9af3a1b6301eb2271ed2221b2962fe2403021d0d46276cd688a6faaaf5c26b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 5): src/diffusers/pipelines/auto_pipeline.py:638-649 | src/diffusers/pipelines/auto_pipeline.py:952-963 | src/diffusers/pipelines/auto_pipeline.py:1260-1271 | src/diffusers/pipelines/auto_pipeline.py:1522-1531 | src/diffusers/pipelines/pipeline_utils.py:2161-2175 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/auto_pipeline.py:638\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/auto_pipeline.py"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"49575f47d93dd5462dc244613201ee848228c38aba9abf92209857fd8b82cb8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 5): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:389-402 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:480-493 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:616-629 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:300-314 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:349-363 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 396 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"20221f2e47bae3428c3995c8a935b604e412ff465897d2621cb8758f854f42f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 5): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1398-1412 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1825-1838 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1355-1368 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2229-2242 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1473-1486 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1839\u0060 calls \u0060unsqueeze\u0060, \u0060squeeze\u0060, \u0060expand\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1414\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bffce0fe49207142f83dc51f91795e8b16545b4f74555e1c56da9403c82396c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 5): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1424-1448 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1856-1880 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1391-1413 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2274-2297 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1500-1524 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1424\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"3574a09c2549d6fb1befa71631b9739e53258723a94186a0ae5e9f2f48b98958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): src/diffusers/pipelines/pag/pipeline_pag_sana.py:235-249 | src/diffusers/pipelines/sana/pipeline_sana.py:342-356 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:357-371 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:365-379 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:363-377 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 791 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2561b69cedd00219f9d783fc13e2135a59303b6fa71fba8810b43a467ae28d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 4): examples/community/pipeline_demofusion_sdxl.py:921-935 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1267-1281 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:861-873 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1212-1225 \u2014 before extracting anything, compare \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 509 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b5c7d2c833bb7d9048bd6d599117ddc5bafae92bc070da58f5ea3d91281a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1443-1457 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:870-884 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:478-492 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:517-531 \u2014 before extracting anything, compare \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1443\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea29223729fcf59da5b443681523f9674ff3bf17dd3fbb4d66c74a4b94b381c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 4): examples/community/pipeline_flux_kontext_multiple_images.py:670-680 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:935-945 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1109-1122 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1151-1165 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03c26872c3cb48a9afed61e05096d987036b54f3d49023e27fb8413b1bff42d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): examples/community/pipeline_hunyuandit_differential_img2img.py:1021-1036 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:933-949 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:812-828 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:853-869 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4ee293d2bd98497c4cdd2dcb6f43d88c685b3349b12ee9548a0d18f59fa2a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): examples/community/pipeline_stable_diffusion_boxdiff.py:1536-1550 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:905-919 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:964-978 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:956-970 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 and \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_boxdiff.py:1536\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"780efab5c8242fcd773a41d19d2109e20796b11a0bc6436be95f10c74e30f4da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): examples/community/pipeline_stg_wan.py:560-574 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:535-549 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:666-680 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:663-677 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:535\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:553\u0060 calls \u0060cache_context\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_video2video.py:681\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"d957e3ed365de9485528ee6420ee6c009a32ed09127a2249fc2c7d582227a12e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): examples/community/stable_diffusion_controlnet_inpaint.py:153-167 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:152-166 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:675-688 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:753-766 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py\u0060 as WHOLE FILES: this scan already matched 68 separate duplicated blocks between them, totalling at least 1028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be296aa3373cc3dde4cd0c9f52ab9b37a7b7a39fdb9bc79997c80f73a92385f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl.py:278-292 | src/diffusers/models/autoencoders/autoencoder_kl.py:335-349 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:290-304 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:347-361 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 342 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"9361bc4a0fb1f603f4e785fb4b17528d7c2e8bc88834b791edbd9155937dbcdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 4): src/diffusers/modular_pipelines/flux2/before_denoise.py:543-554 | src/diffusers/pipelines/flux2/pipeline_flux2.py:668-682 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:528-542 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:536-550 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py:683\u0060 calls \u0060to\u0060 and \u0060src/diffusers/modular_pipelines/flux2/before_denoise.py:555\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc910414a35510968d2021226ffe75d1fb758373c81c77fe723f59cc3a1b97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:769-783 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:363-376 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:587-600 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:775-789 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:769\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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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 before the matched lines, \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:360\u0060 calls \u0060build_packed_sequence\u0060 and \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:766\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aea3c5f46d526e95ebffb1ab8511bae7c19a9a870fa66aab627883272f3cc50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:414-428 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:439-453 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:419-433 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:443-457 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad4efb12e90f46945ed6161f0b5467a88a447b62412f75a3a38fb189b6f2d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 4): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:710-724 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:771-785 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:819-830 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:791-805 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 867 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:710\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:816\u0060 calls \u0060new_full\u0060, \u0060max\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:771\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c997cb5c51c7156fc570562344482bc81b3de27fc5d97af049a3984d4bb8832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1184-1198 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1440-1454 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1469-1483 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1428-1442 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1184\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b6074f5bbe1bf8ff464d794111b9e34388db29b6a74db86fd841ad4dcfae30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py:281-295 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:551-565 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:799-813 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:998-1012 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py:281\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"482b66c7718d4815df857ff181a6ec4eebecdafab287301c6155fefbc12e6b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:912-926 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:612-626 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:639-653 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:615-629 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. 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":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a5a6c82bfd582920ae17f81bdcfa1ff1d22dff4f5cc069882f9066636cca19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:399-413 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:534-547 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:489-503 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:575-589 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 505 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b54dcdeb2e7dd36e081f58350a7d05b3ea84238d3eaf81a8806e9759a4c657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:162-176 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:380-394 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:621-635 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py:97-111 \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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad52acd98f24ef7f3d4ecaa9c7cee1944f2231e785aa6125d894bfe79d66f330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:337-351 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:224-237 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:238-251 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:359-373 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:337\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce0d9a703d99f3e181c3af82e19ef6a5553562d94f1adc283116869ab0da7f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1205-1219 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1376-1390 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1406-1420 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1491-1505 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4c9719471c18a9f0c49d17068dbdddfa4aa3d3c63b8fef2c5578bee7f54708"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:474-488 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:589-603 | src/diffusers/pipelines/wan/pipeline_wan.py:485-499 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:628-642 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 507 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:474\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b13e3a75f789f14b5ae5ffe9a0290025ead165b280d0776624d701823034af2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/community/composable_stable_diffusion.py:462-479 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:658-675 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:370-384 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 500 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/composable_stable_diffusion.py:462\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/composable_stable_diffusion.py:482\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:387\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":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9281fd5921344f4f3603d016873fc757888a5bbad6f90af08efdb651a06bc74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): examples/community/hd_painter.py:539-553 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1153-1165 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1099-1111 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4b993961289911ba4fafb347fa7dca898659a208a32f3994e257289f40791e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): examples/community/latent_consistency_img2img.py:298-312 | examples/community/latent_consistency_txt2img.py:224-238 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:338-351 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/latent_consistency_img2img.py:298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f644338c4102e92b44e475e94ab116bcf28386655c5e935da0abe71a2272ffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/community/lpw_stable_diffusion.py:939-953 | examples/community/stable_diffusion_ipex.py:659-673 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:675-689 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion.py\u0060 and \u0060examples/community/stable_diffusion_ipex.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion.py:939\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, \u0060examples/community/lpw_stable_diffusion.py:954\u0060 calls \u0060get\u0060 and \u0060examples/community/stable_diffusion_ipex.py:676\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":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1f1a2fce53633995ea9f45af8029619396d8fb999fc7b8e9ab1f8707f520a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/community/pipeline_animatediff_controlnet.py:175-189 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:176-190 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:264-278 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 69 separate duplicated blocks between them, totalling at least 975 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_controlnet.py:175\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:175\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py:174\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"566799d1a8d49f1a1fae3e04dd2c240166faa5979119773eff508f4294fc394f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 3): examples/community/pipeline_flux_kontext_multiple_images.py:1139-1150 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1027-1038 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1330-1344 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1330\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a66dd97368e07d51e5f39c911b8494a41e6f5d5d423b47d63e0ba994d0ee244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/community/pipeline_kolors_differential_img2img.py:1192-1206 | src/diffusers/pipelines/kolors/pipeline_kolors.py:989-1003 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1169-1183 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:989\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"824441677844ef2e53683abffef0e5eef742ab403548b2c42ace56eaff0a3562"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:440-454 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:430-444 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:461-475 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 and \u0060src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:440\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, \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:455\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:445\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":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a2f761b42a0b7795891aac6b2e84bbb3a1f26230e74c681f0039b897d3f510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:1084-1098 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:970-984 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:896-910 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 948 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d00451398a9595ee5bb60767095c0d317f46168853b09fdc427bbe3777f4d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:58-72 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:46-60 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:46-60 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7e20aac7d300bb98ed0c851d7b55a4f5f43460be9a3ac4f8fc37059f7eae36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:63-77 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:254-267 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:296-309 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb124269ad3452e8129a88099e7f0040127185120bacb97a24e3f4c0916de815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:263-279 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:372-388 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:362-378 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f509aa8d8e5a86b02b7770a72247421e839c854f4402fbc6e1d9ec681868280e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:797-812 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1259-1274 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1147-1162 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:796\u0060 calls \u0060clear_cache\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1257\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52e74acd9c8c7d54db41988f5a3df3bec5988e1588cdf8be8e163195f6f9c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_hunyuan.py:194-208 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py:280-294 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py:402-416 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_hunyuan.py:194\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_hunyuan.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"611cb37c4b02879a4c3c6287a24b297ee892aa94b3590c5a1bbb3c8d5c94ce47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_sparsectrl.py:654-668 | src/diffusers/models/unets/unet_3d_condition.py:587-601 | src/diffusers/models/unets/unet_motion_model.py:2016-2030 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_sparsectrl.py"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"9916101fd0405ac6cee15062d11eef4c9fed18259639e538323d23ef5a14a715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): src/diffusers/models/resnet.py:157-171 | src/diffusers/models/resnet.py:327-340 | src/diffusers/models/unets/unet_dreamlite.py:235-248 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/resnet.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5f7c4854a7659ab8f9ba71aa9d4aeb637d59d71cf2557cc96271604cffa2e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): src/diffusers/models/transformers/transformer_anyflow.py:150-162 | src/diffusers/models/transformers/transformer_anyflow_far.py:319-331 | src/diffusers/models/transformers/transformer_sana_video.py:329-343 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"da81a79a8f49478e1f647270df7f403cb50a061dfc69503e834da524beaa3667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): src/diffusers/models/transformers/transformer_glm_image.py:327-341 | src/diffusers/models/transformers/transformer_ltx.py:91-104 | src/diffusers/models/transformers/transformer_nucleusmoe_image.py:327-341 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_glm_image.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fd6b1d369f317a1cae0afe1fda90213a510ac35c1575ceadba62d3ba6b0228"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video.py:341-355 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:225-239 | src/diffusers/models/transformers/transformer_hunyuanimage.py:276-290 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"c454132de2ad7d0d78e13ff07ee6c50fdeb95a0920adffb35819ea19efe54184"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video.py:365-379 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:249-263 | src/diffusers/models/transformers/transformer_hunyuanimage.py:300-314 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f7cd0978500b66c8e5144d3f274c0cb65a4cbf0c9b4d60ae45654cde3dccb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:2502-2516 | src/diffusers/models/unets/unet_2d_blocks.py:2616-2630 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1775-1789 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1775\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2502}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbe88aedc76829cee561e67043cb9ac9ab779a81ade7235f0d059c5fc611ea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:972-986 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:679-693 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:979-992 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:972\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8069a68a470be67cd07a2a0ef4ffea5e542771f651d7b6a6cdccce19ab9372"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:629-643 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:296-308 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:557-569 \u2014 \u0060src/diffusers/modular_pipelines/qwenimage/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/qwenimage21/before_denoise.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 7 separate duplicated blocks between them, totalling at least 109 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/qwenimage/before_denoise.py:629\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060QwenImageModularPipeline\u0060 in one and \u0060QwenImage21ModularPipeline\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":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"8547ff63adc3ea24376e310dd800478ef1d1f80a97b1e06b9f7ef67fab8438e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1265-1279 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1556-1567 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1227-1241 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1330 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1265\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d3bd65fd7bc97dee43e6dc26371c9c4ef22a0c1192499816cf884042d325bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:803-819 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:786-802 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:779-795 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d7117ff206f5231472b3de9ec468eb124bf8816a8f860892c3f7b84c8e1784"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1118-1132 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1289-1303 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:900-913 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"4271a7c6e341b254ec59654bf921cef79278ab970489f29e3dfe1ffc9ce6d640"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:221-235 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:180-194 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:199-213 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 242 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4aa9b92ad0b77cf5d2432fe812429e9be001fe06036cdf5d8c5d6163ecaf5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:788-802 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:663-677 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:831-845 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e60a98ba8f78da1f0592ac2f2fee9cb4369bee06f034555036246aadf60b25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:532-563 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:370-401 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:448-479 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 229 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:529\u0060 calls \u0060set_transformer_params\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:367\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbf5f8677057d0ad227d7e15297e1b2534c624e6dade0ccfad197888739720c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 3): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:418-432 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:303-313 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:550-563 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:418\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, \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:549\u0060 calls \u0060update\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:301\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":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb6eaf633ad6fba580e3e7c2b891d17f012b03c166d51c21cb0ec2978d60934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:663-677 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:819-833 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:959-973 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:663\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"425e00861db56f5f309d5c5bc9770cc47866032b757bc09e97480b693a29b795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/pipelines/flux/pipeline_flux.py:901-915 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:993-1007 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1149-1163 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_img2img.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a96765ede840dc3a0fb5c2149aa6a7be139111e14330cf192644e20b3377f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/pipelines/flux/pipeline_flux.py:918-932 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1008-1022 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1164-1178 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_img2img.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux.py:917\u0060 calls \u0060cache_context\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1007\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7271c8497eb9e71610490d782b25f8dc32ae8a6e9a2dc36d2c331bf037a448c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:668-682 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:621-635 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:853-867 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 730 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:668\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9dae8b3045a0d7e8c70444a4ccda457ffdbf5317b110736d1dfe2d988e8678d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:415-427 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:269-283 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:420-432 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:269\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"6426b4ba1aafde6724c83c9463d4ffc38047ffa052f76487d47b99d208052909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:513-527 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:502-516 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:528-542 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.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 25 separate duplicated blocks between them, totalling at least 336 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:513\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ff0f8729d84c8dca5c656910ba5e3306d78e4c4261179ca27f2506a75864d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:933-947 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:821-835 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:775-789 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:933\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4e9eb879a8d8466f5869b1798a47e67686b836e2083da5374f89c2c779f463"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 3): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1589-1602 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:2038-2052 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2476-2487 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"9212d2379b93e89d424285da1c872d1b2513a984720bc612538f1bfc23df7f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1848-1862 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1924-1938 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1966-1980 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"baefb0e5907df52cda577ad8446321f4afc0bec87f20582d4b2fb61f86caf7e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/pipelines/sana/pipeline_sana.py:888-902 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:971-985 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:921-936 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_controlnet.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/sana/pipeline_sana.py:888\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc2cd6441e8b13fef40b0611b5b5349fb6563ea0e8f46485daf7f974421ef48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): src/diffusers/pipelines/wan/pipeline_wan_animate.py:517-529 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:615-629 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:671-683 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_animate.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"4664ec203dd64792f120d69b629373449281007584278a90a42c0dace91bf212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/schedulers/scheduling_ddim.py:462-476 | src/diffusers/schedulers/scheduling_ddim_parallel.py:461-475 | src/diffusers/schedulers/scheduling_ddim_parallel.py:593-607 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim_parallel.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim.py"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86ddb1423d199cd06fb4fa5ace64741b94f24de4f5057b498742139c3fee77b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/community/masked_stable_diffusion_img2img.py:143-157 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:819-833 \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 \u0060examples/community/masked_stable_diffusion_img2img.py:143\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_img2img.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"998ee1ce05835d86d17a0865e5cf3221b0f8e56a94f5bbad90aacb9278c69041"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/community/pipeline_flux_semantic_guidance.py:1276-1290 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:656-670 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f21904f38dbae58d66bee8df0ce771dea91a333b9247d1d9678f4f71175e1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201315 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:139-153 | examples/community/pipeline_stable_diffusion_xl_instantid.py:139-153 | src/diffusers/models/embeddings.py:2300-2303 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4a913dfe2802e78f91cd4eb9800ef4729171f4339c63a2f569c0da4a0d5078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): examples/community/pipeline_stg_hunyuan_video.py:730-744 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:710-721 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 451 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e8ee3eb3b025e214c34ab60077cb38ac07c118729dfba943c0c539757bcf80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 2): examples/research_projects/anytext/anytext.py:624-633 | src/diffusers/pipelines/deprecated/blip_diffusion/modeling_ctx_clip.py:98-112 \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 \u0060examples/research_projects/anytext/anytext.py:624\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext.py"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7626e8c96770bba436597b195e33b9d50f6652ececabbf52a6ad3dab26ce9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/diffusers/loaders/lora_conversion_utils.py:1685-1699 | src/diffusers/loaders/single_file_utils.py:2871-2883 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/lora_conversion_utils.py:1685\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1685}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40d1136b398efb9acdd5fa558c06a61ff4ae97b20721fdd21e67340b7b3d9f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/diffusers/loaders/single_file_utils.py:1455-1469 | src/diffusers/utils/state_dict_utils.py:370-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3ed8eedf90d64a59c74429cd5b2a3a8bb9e9abbb8e49797ae1d744e91b9de9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/diffusers/loaders/transformer_flux.py:154-167 | src/diffusers/loaders/unet.py:697-711 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/transformer_flux.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afabb5704817c1f645f859fb203a7801f3051a8cb3fe76c542efb143f29a5fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/attention.py:875-889 | src/diffusers/models/attention.py:1466-1480 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"3013d62d3e103421a163dbb57e834f62293651bde9c5606ffd43d5f81110a637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/attention.py:1011-1025 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:302-316 \u2014 before extracting anything, compare \u0060src/diffusers/models/attention.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"b734147a2f1d531bdc914bc51638244d6f83cd3db1537aeac04c6053540cd2a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:1301-1315 | src/diffusers/models/attention_dispatch.py:1423-1437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93e5c0e6a8b690b75800d87d588a0d9672e98ab69194203a15b913106b84963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/auto_model.py:112-126 | src/diffusers/models/auto_model.py:319-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/auto_model.py:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/auto_model.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5e1d34e6b69e7cce1b1b32a6b6958fbf6b7bb0529895933cbe1197e8804d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:377-391 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:578-592 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:377\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"df98ae262639ace5c59cc58e975b640d36557d0f5a15c668659c4b61ee292dc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:421-435 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:623-637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f66ae2c348f205792c32594e566d4b3866ba5430e0441869438b87737969d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:892-902 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:941-955 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:941\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"c989f06e4ede95037a07a9ed64960a35bde3101649032cd9f1c71d67767b78c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:148-163 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:175-190 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f7ad2721f5e299f0f729899b6f6fde1441c1b14ae88ebee357bc1ce305cc68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:327-341 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:376-391 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fef1ded738d6496393e51086cb101d235d4f40acb17206157b19d2154d6760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:369-383 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:418-433 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9a1ed9b5b2ddb8c6a5ff7e57b38b71a56ce07cb145260053549465d604ff69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:180-194 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:222-236 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f90cefa90f16c6ad8502531ff114c95862b07bcbfce2e7832db91badf370fa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_oobleck.py:415-429 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:460-474 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_oobleck.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6481ecad30467be3f73088698f2041debf20684e9ef8ab5539379e1ae90b3ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:369-383 | src/diffusers/pipelines/ace_step/modeling_ace_step.py:322-335 \u2014 before extracting anything, compare \u0060src/diffusers/models/condition_embedders/condition_embedder_ace_step.py\u0060 and \u0060src/diffusers/pipelines/ace_step/modeling_ace_step.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/condition_embedders/condition_embedder_ace_step.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8443fd14c979df33c6f306e85c5160f1aa2e9014938997c26334f7c78110bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_hunyuan.py:293-307 | src/diffusers/models/controlnets/controlnet_qwenimage.py:210-223 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_hunyuan.py:293\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_hunyuan.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"70906451dc28e99e18a5f0e4f70b90f8a39810068a09dc2bf8b9a4a252b58fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/resnet.py:250-264 | src/diffusers/models/unets/unet_dreamlite.py:141-155 \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 \u0060src/diffusers/models/resnet.py:250\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/resnet.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c15bba6599f556db8f2e0b94db38a266e1df24393a340dac31707197e9769bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/transformers/consisid_transformer_3d.py:553-567 | src/diffusers/models/transformers/transformer_easyanimate.py:443-457 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/consisid_transformer_3d.py:553\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/consisid_transformer_3d.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af5cd6be3257adffc639e84bdf76862bf654d5e12b3ea7798a701535543ecad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/diffusers/models/transformers/hunyuan_transformer_2d.py:461-473 | src/diffusers/models/transformers/transformer_sd3.py:333-347 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/hunyuan_transformer_2d.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"3333c1068a406adeadefc82ffd598102e7b3443760a998b6cb131f03ce3b6511"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow.py:236-250 | src/diffusers/models/transformers/transformer_anyflow_far.py:415-429 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cec7e94d9fa14266dac167fecb65c267d4f6cf74f1e7f793e706c64782853de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow.py:367-381 | src/diffusers/models/transformers/transformer_anyflow_far.py:732-746 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61fdd78d4babf8e4e088e509689aedc7379f18f2a32d87cb3e18a7aeda3b856"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:786-798 | src/diffusers/models/transformers/transformer_glm_image.py:691-705 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_cogview4.py\u0060 and \u0060src/diffusers/models/transformers/transformer_glm_image.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_cogview4.py:786\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41a5a905bb6e462f050a27fd938cc8b1ecf3f42bc90625c63829c6f0b25751e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): src/diffusers/models/transformers/transformer_cosmos.py:165-188 | src/diffusers/models/transformers/transformer_cosmos.py:234-254 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cosmos.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"98356509bb6fc24186bd021b485c872843aace21ef42952a4e6af4dba3f1b263"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/transformers/transformer_flux2.py:381-395 | src/diffusers/models/transformers/transformer_flux2.py:480-494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The 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":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8939995ac138c530752bbe7ed0f5808cca90d63eef8c687e150bb382e24b744"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:470-484 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:949-963 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.py:470\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"420b16478eeed69fa94f38d06779c1a686d1a92ef52d4c524930c4bc10f406ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:518-532 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:997-1011 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.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":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"695ad99036143a5727d47e7d9d8609eaf33fe0b2e18fff358783c232430d1b43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm.py:1091-1105 | src/diffusers/models/transformers/transformer_sana_wm.py:1232-1243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aff1a2fb766106c68b669f95fecf3f567c9a38d447ab0943a2015aed2eb494c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/unets/unet_2d.py:174-188 | src/diffusers/models/unets/unet_3d_condition.py:198-212 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d.py:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6f6934e63f3cee48fad90084c135384857f2880c930147bf10a14ba54b0bcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:961-975 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2384-2398 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2384\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"272a064173bb40e88f299ecf44c796b48a61b76594f33083bd5583ad4e21bbde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:2864-2878 | src/diffusers/models/unets/unet_2d_blocks.py:2974-2988 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2864}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3641ee042fc309d566229c70ac91aad9a3e3775d5dd467a9a1f982b237fc3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/unets/unet_2d_condition.py:560-574 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:496-510 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 1027 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a0e0f0396a4c9571f6f0da91fe575fe3b09468235c2caba524dcdedc08e7e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/unets/unet_motion_model.py:496-510 | src/diffusers/models/unets/unet_motion_model.py:696-710 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d86eaf69de659985036bc72b4321c5898be46b60dac13b515358b106f4dd121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/diffusers/modular_pipelines/flux/inputs.py:195-209 | src/diffusers/modular_pipelines/stable_diffusion_3/inputs.py:290-302 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060FluxModularPipeline\u0060 in one and \u0060StableDiffusion3ModularPipeline\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":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"2047d2b5e1a27ebc6d6253f4125ce517f518a4e02019c5f9940a9f56ea5afd32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:312-326 | src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:423-437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:312\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":"src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1354693306dc0489cb3f6a92163617b1fb66f78275d2182b351a368b1b4a1cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:196-210 | src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:293-307 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:309\u0060 calls \u0060get_timesteps\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:212\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73dea240b8a170494f151c6ee5da05079246cab36fd44cfedc592514a367537"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): src/diffusers/modular_pipelines/wan/encoders.py:709-734 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:452-478 \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 \u0060src/diffusers/modular_pipelines/wan/encoders.py:709\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"963436b32cf11df30acbc202c65b804499ca84562f9d66aa96482d9a4bee3df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:419-433 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:583-597 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:419\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ed41169efa0d61937c2cf3ae68ebe58c35c32653fe43c472d4e93a7b97320b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1652-1666 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:963-977 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 354 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060StableDiffusionXLPipelineOutput\u0060 names \u0060..stable_diffusion_xl.pipeline_output\u0060 in one and \u0060.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f8e07ba932c394a229edb8ebf2f2acc33c74f135ea448c2d9e95ff417cd92c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:988-1002 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1154-1168 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:988\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede7a0739f4957ccc2a06e8faccfc1f9af00627bac44f09c9931fd7cf9cded59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:584-598 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:684-698 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 518 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce275463a8fd1567fd5117ba903cffdabece730a1e4a339c72f9af33b172e2bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:721-737 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:741-757 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb6fb42b442a1131ce0530c94bf7d4f8b7a3c044ff4f98803ab6d6d4565302a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:869-882 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1053-1067 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py\u0060 and \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 398 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:869\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"5243c9585a2749826ac94dae1ecc7fb318c4b1fee8973952a5db2d4de4d20e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:607-621 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:411-425 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 241 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"7275e21d6534ef9b29a9219ea220d7e601590845d0a5439b315a53d6783de9fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:827-841 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:781-795 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91471a1bbf4906957ed6916ad5c88653da2233eafeea61dda60166f0a0c9c4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1164-1177 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1409-1423 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1164\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, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1407\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1163\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68b46d60fce6ae62f731903f5df0f9f5458a5addf04d73e3760939a3e2b3026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:670-684 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:729-743 \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":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3c30ddf6a5d0f9a3ef97660137bbf8ae4490dd197c92bfda58d1ce1339ef60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:269-283 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:110-124 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 229 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:107\u0060 calls \u0060isinstance\u0060, \u0060list\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:267\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":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f97962d74c0e17cb93496e97ca638bb832b78479fd73c5697c176820c7af9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/flux2/pipeline_flux2.py:958-972 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:834-848 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:850\u0060 calls \u0060cache_context\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py:974\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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"188587d65bacec03bee06878f06ec17c1073155e81e2b9f32039fb610078325c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:995-1009 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1035-1049 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:995\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8293853f12fbcd3e848ee571c846b82730f82740b3709a0d75d4467101efd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/diffusers/pipelines/glm_image/pipeline_glm_image.py:999-1013 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:1017-1030 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/glm_image/pipeline_glm_image.py"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18f70c31e7a085709d371ae4a4e5f998f0750ff9b145eab118cfb455e6904ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:885-899 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:998-1012 \u2014 \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.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 33 separate duplicated blocks between them, totalling at least 418 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":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b59dc7efb0340705f79f536a877b30da9c20a2a5a9eb6f09f9faf9539d5206"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:84-98 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:97-111 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a3807792c6125cac198759135a3a166b443cdf5ee189e5646bc9489d47bc75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:340-354 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:245-259 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d1575497b0362c9955081158b9a1df2b73b9f4fc20cf79eb20dc55433c61d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:346-360 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:257-271 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:346\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf92d16e697e21c8a12b92f9811d01f4852a58ed992ffd91bcdfb810560cbfaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/diffusers/pipelines/krea2/pipeline_krea2.py:625-637 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:654-668 \u2014 \u0060src/diffusers/pipelines/krea2/pipeline_krea2.py\u0060 and \u0060src/diffusers/pipelines/lumina2/pipeline_lumina2.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 22 separate duplicated blocks between them, totalling at least 264 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":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"980b30748a6dc8d88d129c3bbdc9302ba54abe51af506654fb179dda335b8941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:110-129 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:108-127 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py\u0060 and \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffed741a57201d90a16b4f70f600eaa4fa665e746aed14e1aa42331bab16b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1380-1394 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1455-1469 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py\u0060 as WHOLE FILES: this scan already matched 83 separate duplicated blocks between them, totalling at least 1724 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1375\u0060 calls \u0060set_begin_index\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1451\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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65aa9713e17afd6286092deeb7c504bb205ce311524b9ca09b2779b359ced78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1493-1507 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1567-1581 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a26227a2577039f88b4fc3d6d0780461d75907077ba0285df1de550b0be62be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:626-639 | src/diffusers/pipelines/wan/pipeline_wan.py:565-579 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 500 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:626\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, \u0060src/diffusers/pipelines/wan/pipeline_wan.py:583\u0060 calls \u0060set_begin_index\u0060 and \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:641\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e98cbf16591a0f7890d0af1386f79bdd974a2ac865f3a0f19c949677205135"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1180-1194 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1361-1373 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e2f608ff2cdea05df9f5dc1117092d0ca372e954e843841af818cdf18301f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1280-1294 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1057-1071 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 871 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1280\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"607c37d78021dad6ae4ad98f8b0b49afc7b5a74768604364ba3b09d892a464f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sana.py:795-809 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:884-898 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:795\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"47628d81db9d61f014f1cfe0169e4c84d33293e16d2566f383a114aae8ad915b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1299-1313 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1271-1285 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py\u0060 as WHOLE FILES: this scan already matched 92 separate duplicated blocks between them, totalling at least 1303 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"27423d77d114fb2cb8e433b5b94c1796012492b0d0fbbdc601889be8184fcd40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:366-380 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:390-404 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 833 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint.py:366\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a634defae93fe5748d30342a1b0e6d670a59248597ff0daccad3d19f9eef5e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:488-502 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:604-618 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py\u0060 and \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 344 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:488\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dffe3de8414345a8a6652329cf6893e5e3b68800b378e8375c15449f9c9cd77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:847-861 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:758-772 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 700 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:847\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a743f980dd47169ebd17792c74afb8f223806968fb2c1c26697bc88aa86bd93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py:232-246 | src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py:432-446 \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":"src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab7252e1c1ff1b50c9fab7dc2fc92eb87c68501c4f4522a0b89742ff75f7795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201315 lines \u00D7 3): src/diffusers/schedulers/scheduling_block_refinement.py:176-179 | src/diffusers/schedulers/scheduling_discrete_ddim.py:108-122 | src/diffusers/schedulers/scheduling_entropy_bound.py:101-115 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/schedulers/scheduling_entropy_bound.py:115\u0060 calls \u0060gather\u0060 and \u0060src/diffusers/schedulers/scheduling_block_refinement.py:179\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_block_refinement.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cb5e4ace217ea7e743b4e272ef8c122f189a9efd4fb6ff68f8e22cac8500ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:290-304 | src/diffusers/schedulers/scheduling_unipc_multistep.py:252-266 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_unipc_multistep.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 456 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb65dad0eb26fcf48d13e6ed36c3fb056c4267eba8ad2b97d7bf8ddb2c44230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201315 lines \u00D7 5): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:544-546 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1027-1041 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:880-894 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:938-940 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:612-614 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:544\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53d6eb0f0120293f6c3b39053e285509d63d1a2f5da5b3a64bad64e519789a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:174-187 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:173-187 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc248891e9a4619501ca62c83f9c6e11fc59fa22d4b103c3546091b70d59a12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/diffusers/schedulers/scheduling_sasolver.py:1003-1017 | src/diffusers/schedulers/scheduling_sasolver.py:1143-1156 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_sasolver.py"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c29d194bcd8925a17b7be0b41de8aa5e8834cca495d3b51a4002ce95ac129e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 76): examples/community/lpw_stable_diffusion_xl.py:998-1011 | examples/community/pipeline_demofusion_sdxl.py:428-441 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1573-1586 | examples/community/pipeline_flux_differential_img2img.py:466-479 | examples/community/pipeline_flux_kontext_multiple_images.py:529-542 | examples/community/pipeline_flux_rf_inversion.py:456-469 | examples/community/pipeline_flux_semantic_guidance.py:594-607 | examples/community/pipeline_flux_with_cfg.py:418-431 | examples/community/pipeline_sdxl_style_aligned.py:821-834 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:533-546 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:608-621 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:987-1000 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:568-581 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:715-728 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:562-575 | examples/community/pipeline_stable_diffusion_xl_ipex.py:570-583 | examples/community/pipeline_stg_hunyuan_video.py:423-436 | examples/community/pipeline_stg_wan.py:331-344 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:498-511 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:695-708 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:288-301 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:307-320 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:359-372 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:706-719 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:662-675 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:666-679 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:697-710 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:686-699 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:686-699 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:592-605 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:664-677 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:506-519 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:538-551 | src/diffusers/pipelines/flux/pipeline_flux.py:467-480 | src/diffusers/pipelines/flux/pipeline_flux_control.py:430-443 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:472-485 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:511-524 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:501-514 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:473-486 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:488-501 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:559-572 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:523-536 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:531-544 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:518-531 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:571-584 | src/diffusers/pipelines/helios/pipeline_helios.py:301-314 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:320-333 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:392-405 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:362-375 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:482-495 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:520-533 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:345-358 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:670-683 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:672-685 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:569-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:589-602 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:658-671 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:609-622 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:701-714 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:301-314 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:325-338 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:343-356 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:388-401 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:357-370 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:577-590 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:607-620 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:614-627 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:647-660 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:598-611 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:704-717 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:676-689 | src/diffusers/pipelines/wan/pipeline_wan.py:304-317 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:430-443 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:371-384 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:365-378 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:370-383 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:998\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_demofusion_sdxl.py:427\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:681\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ac28a86b6f9d74f31ef67f0aa57c5865ce34c2acccaf0c40cbc4d2ddbc97ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 67): examples/community/adaptive_mask_inpainting.py:602-615 | examples/community/fresco_v2v.py:1547-1560 | examples/community/instaflow_one_step.py:335-348 | examples/community/ip_adapter_face_id.py:614-627 | examples/community/latent_consistency_interpolate.py:411-424 | examples/community/llm_grounded_diffusion.py:1364-1377 | examples/community/matryoshka.py:3896-3909 | examples/community/pipeline_animatediff_controlnet.py:328-341 | examples/community/pipeline_animatediff_img2video.py:445-458 | examples/community/pipeline_animatediff_ipex.py:299-312 | examples/community/pipeline_fabric.py:299-312 | examples/community/pipeline_prompt2prompt.py:382-395 | examples/community/pipeline_stable_diffusion_boxdiff.py:717-730 | examples/community/pipeline_stable_diffusion_pag.py:683-696 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:323-336 | examples/community/regional_prompting_stable_diffusion.py:661-674 | examples/community/regional_prompting_stable_diffusion.py:1189-1202 | examples/community/stable_diffusion_ipex.py:405-418 | examples/community/stable_diffusion_reference.py:542-555 | examples/community/stable_diffusion_repaint.py:378-391 | examples/research_projects/anytext/anytext.py:1490-1503 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:452-465 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:284-297 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:329-342 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:338-351 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:386-399 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:417-430 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:428-441 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:406-419 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:412-425 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:457-470 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:485-498 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:362-375 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:346-359 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:426-439 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:552-565 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:350-363 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:381-394 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:442-455 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:413-426 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:341-354 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:418-431 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:389-402 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:322-335 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:319-332 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:537-550 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:289-302 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:324-337 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:946-959 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:494-507 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:371-384 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:356-369 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:405-418 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:381-394 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:434-447 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:295-308 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:429-442 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:464-477 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:462-475 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:334-347 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:488-501 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:442-455 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:592-605 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:347-360 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:427-440 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:389-402 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:441-454 \u2014 there are 67 copies across 66 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 67 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:602\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d60f9564e4bbbab322a1a5e7084ae00a754ba1cc3d9041300d0e538d17895ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 43): examples/community/lpw_stable_diffusion_xl.py:1016-1029 | examples/community/pipeline_demofusion_sdxl.py:446-459 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1591-1604 | examples/community/pipeline_flux_semantic_guidance.py:612-625 | examples/community/pipeline_flux_with_cfg.py:436-449 | examples/community/pipeline_sdxl_style_aligned.py:839-852 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:558-571 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:633-646 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1005-1018 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:586-599 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:733-746 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:580-593 | examples/community/pipeline_stable_diffusion_xl_ipex.py:588-601 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:713-726 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:724-737 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:680-693 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:684-697 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:715-728 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:704-717 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:704-717 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:617-630 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:689-702 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:524-537 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:556-569 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:519-532 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:541-554 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:549-562 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:589-602 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:596-609 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:688-701 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:690-703 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:594-607 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:614-627 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:676-689 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:627-640 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:719-732 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:602-615 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:632-645 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:639-652 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:665-678 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:616-629 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:722-735 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:694-707 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1016\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py:558\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:701\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2ccb534e8f52935ce08478d05903c018fcc201380fe3568176b1bd377c9f49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 43): examples/community/pipeline_flux_differential_img2img.py:1002-1011 | examples/community/pipeline_flux_rf_inversion.py:933-942 | examples/community/pipeline_flux_semantic_guidance.py:1341-1350 | examples/community/pipeline_flux_with_cfg.py:853-862 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:953-965 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1244-1253 | examples/community/pipeline_stg_ltx.py:838-846 | examples/community/pipeline_stg_ltx_image2video.py:937-945 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1298-1307 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1103-1112 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:1009-1018 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1053-1062 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1341-1350 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:652-660 | src/diffusers/pipelines/bria/pipeline_bria.py:725-734 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:707-716 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:954-963 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1229-1242 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1388-1401 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:944-953 | src/diffusers/pipelines/flux/pipeline_flux_control.py:843-851 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:926-935 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1095-1104 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1181-1190 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:996-1004 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1191-1200 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:992-1002 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1040-1049 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1208-1217 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:970-979 | src/diffusers/pipelines/ltx/pipeline_ltx.py:808-816 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:906-914 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:885-893 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:973-986 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1041-1054 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:860-869 | src/diffusers/pipelines/sana/pipeline_sana.py:950-958 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:1046-1054 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:983-991 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:1036-1044 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1131-1140 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1148-1161 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:917-926 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 629 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1229\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, \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1308\u0060 calls \u0060_unpack_latents\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1243\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bca32b0e861f10710cfcceaaad8ce79f202f4905e2e10d65cad850a30000862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 36): examples/community/pipeline_stg_cogvideox.py:346-359 | examples/community/pipeline_stg_ltx.py:359-372 | examples/community/pipeline_stg_ltx_image2video.py:382-395 | examples/community/pipeline_stg_mochi.py:366-379 | examples/community/pipeline_stg_wan.py:276-289 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:228-241 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:245-258 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:290-303 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:292-305 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:301-314 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:311-324 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:317-330 | src/diffusers/pipelines/consisid/pipeline_consisid.py:403-416 | src/diffusers/pipelines/helios/pipeline_helios.py:244-257 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:262-275 | src/diffusers/pipelines/ltx/pipeline_ltx.py:333-346 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:419-432 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:602-615 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:356-369 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:419-432 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:471-484 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:481-494 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:493-506 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:424-437 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:288-301 | src/diffusers/pipelines/mochi/pipeline_mochi.py:304-317 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:246-259 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:267-280 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:272-285 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:328-341 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:289-302 | src/diffusers/pipelines/wan/pipeline_wan.py:248-261 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:339-352 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:302-315 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:295-308 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:313-326 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060examples/community/pipeline_stg_ltx.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_cogvideox.py:346\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb642149cf957bed87f74f5d543edba8c13acea4838b6ebc0ec32b377dc6c9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 31): examples/community/latent_consistency_img2img.py:435-448 | examples/community/latent_consistency_txt2img.py:350-363 | examples/community/matryoshka.py:262-275 | examples/community/scheduling_ufogen.py:78-91 | src/diffusers/schedulers/scheduling_consistency_decoder.py:50-63 | src/diffusers/schedulers/scheduling_ddim.py:87-100 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:87-100 | src/diffusers/schedulers/scheduling_ddim_inverse.py:85-98 | src/diffusers/schedulers/scheduling_ddim_parallel.py:87-100 | src/diffusers/schedulers/scheduling_ddpm.py:84-97 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:86-99 | src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py:73-86 | src/diffusers/schedulers/scheduling_deis_multistep.py:70-83 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:88-101 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:70-83 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:70-83 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:179-192 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:72-85 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:87-100 | src/diffusers/schedulers/scheduling_euler_discrete.py:90-103 | src/diffusers/schedulers/scheduling_heun_discrete.py:87-100 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:88-101 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:87-100 | src/diffusers/schedulers/scheduling_lcm.py:89-102 | src/diffusers/schedulers/scheduling_lms_discrete.py:88-101 | src/diffusers/schedulers/scheduling_pndm.py:64-77 | src/diffusers/schedulers/scheduling_repaint.py:83-96 | src/diffusers/schedulers/scheduling_sasolver.py:71-84 | src/diffusers/schedulers/scheduling_tcd.py:88-101 | src/diffusers/schedulers/scheduling_unclip.py:84-97 | src/diffusers/schedulers/scheduling_unipc_multistep.py:70-83 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/latent_consistency_img2img.py:435\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b9c3e7d9fb6f13e5c80ab57de4e4d408d3ad7f77b5de6f67fc27e3c1913929"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 21): examples/community/adaptive_mask_inpainting.py:821-834 | examples/community/pipeline_flux_differential_img2img.py:628-641 | examples/community/pipeline_z_image_differential_img2img.py:408-421 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:666-679 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:767-780 | examples/community/stable_diffusion_repaint.py:584-597 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:690-703 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:927-940 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:332-345 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:701-714 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:655-668 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:371-384 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:726-739 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:829-842 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:878-891 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:811-824 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:581-594 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:536-549 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:785-798 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:791-804 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:368-381 \u2014 there are 21 copies across 20 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 21 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:821\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_flux_differential_img2img.py:645\u0060 calls \u0060to\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:785\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc841ccf261d0d6edd896de44ed1dd832c2bdeb1eb2add6f2c37f045e12fcf2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 20): examples/community/hd_painter.py:759-772 | examples/community/ip_adapter_face_id.py:1068-1081 | examples/community/lpw_stable_diffusion_xl.py:1848-1861 | examples/community/pipeline_kolors_differential_img2img.py:1189-1202 | examples/community/pipeline_kolors_inpainting.py:1587-1600 | examples/community/pipeline_sdxl_style_aligned.py:1811-1824 | examples/community/pipeline_stable_diffusion_boxdiff.py:1666-1679 | examples/community/regional_prompting_stable_diffusion.py:1049-1062 | examples/community/stable_diffusion_xl_reference.py:1101-1114 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1243-1256 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:933-946 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:992-1005 | src/diffusers/pipelines/kolors/pipeline_kolors.py:986-999 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1166-1179 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1042-1055 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1103-1116 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1277-1290 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1214-1227 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1399-1412 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1621-1634 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 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 20 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/ip_adapter_face_id.py:1085\u0060 calls \u0060rescale_noise_cfg\u0060 and \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:1008\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":"examples/community/hd_painter.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fe48f96ed05a5867465dcfcf5763d82822bc09758b941d203865eca37e8952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 20): examples/community/pipeline_flux_differential_img2img.py:271-284 | examples/community/pipeline_flux_kontext_multiple_images.py:310-323 | examples/community/pipeline_flux_rf_inversion.py:265-278 | examples/community/pipeline_flux_semantic_guidance.py:269-282 | examples/community/pipeline_flux_with_cfg.py:232-245 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:298-311 | src/diffusers/pipelines/flux/pipeline_flux.py:254-265 | src/diffusers/pipelines/flux/pipeline_flux_control.py:266-277 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:277-288 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:316-327 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:286-297 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:278-289 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:289-300 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:281-292 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:275-286 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:279-290 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:300-311 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:333-344 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:239-250 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:232-243 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:271\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux.py:253\u0060 calls \u0060get_module_execution_device\u0060, \u0060text_encoder_2\u0060, \u0060to\u0060 and \u0060examples/community/pipeline_flux_differential_img2img.py:271\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"30faba1f9ebc71ae9e4ee94440a72f51362ff3cd4418213c1965eaf877fc0634"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 19): examples/community/mixture_tiling_sdxl.py:668-681 | examples/community/pipeline_controlnet_xl_kolors.py:742-755 | examples/community/pipeline_kolors_differential_img2img.py:696-709 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:781-794 | examples/community/pipeline_stable_diffusion_xl_ipex.py:642-655 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1365-1378 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:770-783 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:913-926 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:890-903 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:467-480 | src/diffusers/pipelines/kolors/pipeline_kolors.py:565-578 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:693-706 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:671-684 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:921-934 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:583-596 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:746-759 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:734-747 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:571-584 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:764-777 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 19 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 19 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_kolors_differential_img2img.py:711\u0060 calls \u0060upcast_vae\u0060, \u0060deprecate\u0060, \u0060to\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1381\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"c560192e7259b7c8675d9d4a871095d1fbddac37d63a20cd7a0f4d5852d40ad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 18): examples/community/fresco_v2v.py:1812-1825 | examples/community/pipeline_animatediff_controlnet.py:572-585 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:635-648 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:686-699 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:682-695 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:829-842 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:573-586 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:700-713 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:685-698 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:666-679 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:705-718 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:803-816 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:746-759 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:750-763 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:643-656 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:655-668 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:754-767 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:756-769 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1812\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"521fda97d2f20f61fe2889c90142086e65ae2a2c32cd2ead7ecd991f4ea11013"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 16): examples/community/fresco_v2v.py:2247-2260 | examples/community/pipeline_animatediff_ipex.py:707-720 | examples/community/pipeline_animatediff_ipex.py:888-901 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1108-1121 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:876-889 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1118-1131 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1116-1129 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1238-1251 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:919-932 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:823-836 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1065-1078 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1196-1209 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:725-738 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:936-949 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:792-805 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1018-1031 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/fresco_v2v.py:2261\u0060 calls \u0060repeat\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py:724\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":"examples/community/fresco_v2v.py"},"region":{"startLine":2247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e682d3ec4867fa3be9fa0dbcf51fb0d6eb3b3ac2d3521f5d02fd5113223f4bf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 14): examples/community/adaptive_mask_inpainting.py:1102-1115 | examples/community/hd_painter.py:685-698 | examples/community/lpw_stable_diffusion_xl.py:1761-1774 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1597-1610 | examples/community/pipeline_kolors_inpainting.py:1473-1485 | examples/community/pipeline_sdxl_style_aligned.py:1721-1734 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2028-2040 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1565-1578 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1649-1661 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1337-1350 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1219-1231 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1505-1517 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1229-1242 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1504-1516 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 14 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 14 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf34efec0c6a0f34187b451e6a2a377db2bbf48eb07aca7c0fc98d82ae26a318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 14): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2092-2105 | examples/community/pipeline_sdxl_style_aligned.py:1771-1784 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1039-1052 | examples/community/stable_diffusion_xl_controlnet_reference.py:1178-1191 | examples/community/stable_diffusion_xl_reference.py:1036-1049 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1195-1208 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1434-1447 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1429-1442 | src/diffusers/pipelines/kolors/pipeline_kolors.py:946-959 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1074-1087 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1464-1477 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:998-1011 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1199-1212 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1172-1185 \u2014 before extracting anything, compare \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 950 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:1195\u0060 calls \u0060is_torch_version\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1451\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":2092}}}],"partialFingerprints":{"codehealthFindingId/v1":"7562b07a0c18f4a1a8e49294c0d3d7531130b51cee4d7bc3632b7f00de9d973c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 14): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2245-2258 | examples/community/pipeline_sdxl_style_aligned.py:1885-1898 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1059-1072 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1048-1061 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1141-1154 | examples/community/stable_diffusion_xl_controlnet_reference.py:1350-1363 | examples/community/stable_diffusion_xl_reference.py:1184-1197 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1584-1597 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1594-1607 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1099-1112 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1358-1371 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1597-1610 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1328-1341 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1293-1306 \u2014 before extracting anything, compare \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 950 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1613\u0060 calls \u0060set_attn_processor\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1074\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":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a1f7e3fc736bceef89a5da2902bb2b2c86e09f154cdc72f0c936f57fa5d2da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 14): src/diffusers/pipelines/flux/pipeline_flux.py:294-307 | src/diffusers/pipelines/flux/pipeline_flux_control.py:307-320 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:318-331 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:357-370 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:326-339 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:319-332 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:330-343 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:322-335 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:316-329 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:320-333 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:341-354 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:374-387 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:280-293 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:273-286 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 659 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7149e7cf23869e623d9ec52affaccac3b2b2744e9ae83546ef066c5856d6ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 13): examples/community/fresco_v2v.py:2451-2464 | examples/community/pipeline_controlnet_xl_kolors.py:1261-1274 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1464-1477 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1784-1797 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1017-1030 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1006-1019 | examples/community/stable_diffusion_xl_controlnet_reference.py:1286-1299 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1271-1284 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1442-1455 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1516-1529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1573-1586 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1535-1548 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1625-1638 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 464 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2451\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fe61ec57a06f99f87f8e62fc1df0a8de346835639d198abd840c98bece22bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 12): examples/community/fresco_v2v.py:1330-1345 | examples/community/pipeline_animatediff_controlnet.py:177-190 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:214-227 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:360-373 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:220-235 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:178-191 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:266-279 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:241-256 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:219-234 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:222-237 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:249-264 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:223-238 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1330\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, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:175\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py:174\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b33cdde732984f9a0099a8787f759a8c56dc633749d77e539f361998d7415a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 12): examples/community/pipeline_animatediff_controlnet.py:919-931 | examples/community/pipeline_animatediff_ipex.py:689-702 | examples/community/pipeline_animatediff_ipex.py:870-883 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:772-785 | examples/community/pipeline_stable_diffusion_xl_instantid.py:764-777 | examples/research_projects/anytext/anytext.py:2125-2138 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1080-1093 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:852-864 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:901-914 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:805-818 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:840-852 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:772-784 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 639 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_controlnet.py:919\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, \u0060examples/community/pipeline_animatediff_controlnet.py:935\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:868\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29eb871c0f875b1b9ab07f0b86652b320435b492cab0b8cb6864a1e5fe23e69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 12): examples/community/pipeline_animatediff_controlnet.py:929-942 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:783-796 | examples/community/pipeline_stable_diffusion_xl_instantid.py:775-788 | examples/community/stable_diffusion_xl_controlnet_reference.py:619-632 | examples/research_projects/anytext/anytext.py:2136-2149 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1091-1104 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:890-903 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1101-1114 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1099-1112 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1258-1271 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1349-1362 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1048-1061 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/anytext/anytext.py:2152\u0060 calls \u0060modify_prompt\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:800\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":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"a632b3ad08e5e5d610e2e6a5cf29052b0e3b73b5bfaaed33356ab9b2a262ec92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 11): examples/community/mod_controlnet_tile_sr_sdxl.py:889-902 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:801-814 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:877-890 | examples/community/pipeline_kolors_differential_img2img.py:625-638 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:662-675 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:922-935 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:913-926 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:622-635 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:928-941 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:720-733 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:707-720 \u2014 before extracting anything, compare \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 337 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"f451abd1295d106277214147f7ef7dbd38b1065d5ef389ac9166ab322d8c6767"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 11): examples/community/pipeline_stg_ltx.py:373-386 | examples/community/pipeline_stg_ltx_image2video.py:396-409 | examples/community/pipeline_stg_mochi.py:380-393 | src/diffusers/pipelines/chroma/pipeline_chroma.py:336-349 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:363-376 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:365-378 | src/diffusers/pipelines/ltx/pipeline_ltx.py:347-360 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:433-446 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:616-629 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:370-383 | src/diffusers/pipelines/mochi/pipeline_mochi.py:318-331 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_ltx.py:373\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa2360f6e6d723e50ea957c1fc29fca9bbdb55331bf9d40c8a50430a76b0703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 10): examples/community/masked_stable_diffusion_xl_img2img.py:421-433 | examples/community/pipeline_kolors_differential_img2img.py:1184-1197 | examples/community/pipeline_kolors_inpainting.py:1584-1595 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2176-2187 | src/diffusers/pipelines/kolors/pipeline_kolors.py:981-994 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1161-1174 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1040-1053 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1650-1661 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1396-1407 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1618-1629 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 264 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1615\u0060 calls \u0060cat\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py:418\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ed3ee4b0d877e850a806b25104e0855a26da438897466843b262b1878bbd77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 10): examples/community/matryoshka.py:3115-3128 | examples/community/matryoshka.py:3563-3576 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:842-850 | src/diffusers/models/unets/unet_2d_condition.py:1196-1209 | src/diffusers/models/unets/unet_3d_condition.py:629-642 | src/diffusers/models/unets/unet_i2vgen_xl.py:610-623 | src/diffusers/models/unets/unet_motion_model.py:2068-2081 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:408-421 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:665-678 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1369-1382 \u2014 there are 10 copies across 9 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 10 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:3115\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":"examples/community/matryoshka.py"},"region":{"startLine":3115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e4b6ae25fd59bd69be42a0108683be0dceeae38d10548bdf548752c73eb548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10): examples/community/pipeline_controlnet_xl_kolors.py:203-216 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:224-237 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:273-286 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:212-225 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:358-371 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:255-268 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:267-280 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:258-271 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:273-286 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:261-274 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_controlnet_xl_kolors.py:203\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5c5783c0332bc29d4aefdef42ff143411b6f009535d9db3f84e0c201ae600d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 10): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1276-1289 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1160-1172 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1076-1088 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1169-1182 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1189-1201 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1390-1402 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1222-1234 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1029-1041 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:957-969 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1336-1348 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 667 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1276\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5632d64d438ecfbc3de7349a98a1e6243d14369a73c315f619ec471af83617f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10): src/diffusers/pipelines/flux/pipeline_flux_control.py:777-790 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:812-825 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:961-974 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1023-1036 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:880-893 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1023-1036 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:880-893 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:905-918 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1038-1051 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:647-660 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 906 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py:777\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"d805bddb52cc3bbd51d4f7828a59b128a8ea032be3b3e1f8be859882e3f6d5e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 9): examples/community/lpw_stable_diffusion_xl.py:679-691 | examples/community/mixture_tiling_sdxl.py:369-380 | examples/community/pipeline_demofusion_sdxl.py:171-182 | examples/community/pipeline_sdxl_style_aligned.py:493-506 | examples/community/pipeline_stable_diffusion_xl_ipex.py:255-266 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:423-434 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:383-396 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:277-288 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:270-281 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:679\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: \u0060StableDiffusionXLWatermarker\u0060 names \u0060...stable_diffusion_xl.watermark\u0060 in one and \u0060..stable_diffusion_xl.watermark\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/mixture_tiling_sdxl.py:382\u0060 calls \u0060SeedTilesMode\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py:184\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"1daef10eb36e6e61b08a3f79ca9d070f70029187a0574d546b8c62a32b8cc4e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 9): examples/community/masked_stable_diffusion_xl_img2img.py:423-437 | examples/community/pipeline_kolors_differential_img2img.py:1187-1201 | examples/community/pipeline_kolors_inpainting.py:1586-1599 | examples/community/pipeline_sdxl_style_aligned.py:1809-1823 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1241-1255 | src/diffusers/pipelines/kolors/pipeline_kolors.py:984-998 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1164-1178 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1398-1411 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1620-1633 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 264 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1638\u0060 calls \u0060rescale_noise_cfg\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:1002\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8460b08db825013919febb4ba4587347fc587dda97db22b721e8b4a0dc228a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 9): examples/community/pipeline_stg_cogvideox.py:464-477 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:410-423 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:450-463 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:500-513 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:474-487 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:370-383 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:389-402 | src/diffusers/pipelines/consisid/pipeline_consisid.py:602-615 | src/diffusers/pipelines/latte/pipeline_latte.py:406-419 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_cogvideox.py:464\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"517a955cdc3ac7aaab17b11c836a951ecc519d6e5a122f62d9e48afd8860bf8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 9): examples/community/regional_prompting_stable_diffusion.py:336-349 | src/diffusers/models/attention_processor.py:2038-2051 | src/diffusers/models/attention_processor.py:2624-2637 | src/diffusers/models/attention_processor.py:2730-2743 | src/diffusers/models/attention_processor.py:2827-2840 | src/diffusers/models/attention_processor.py:3156-3169 | src/diffusers/models/attention_processor.py:3364-3377 | src/diffusers/models/attention_processor.py:3488-3501 | src/diffusers/models/attention_processor.py:4489-4502 \u2014 there are 9 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 9 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/regional_prompting_stable_diffusion.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f83cd56b443fd2744897c05bb145a171e3245d42d163e71809d92601751bbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 9): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:515-526 | scripts/convert_gligen_to_diffusers.py:280-290 | scripts/convert_i2vgen_to_diffusers.py:298-311 | scripts/convert_ms_text_to_video_to_diffusers.py:254-267 | scripts/convert_original_audioldm_to_diffusers.py:396-406 | scripts/convert_original_musicldm_to_diffusers.py:392-402 | scripts/convert_versatile_diffusion_to_diffusers.py:465-475 | scripts/convert_zero123_to_diffusers.py:364-374 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:513-524 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_i2vgen_to_diffusers.py:298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a9dd5ba835a85a05592dfcf8d4814b2ee63ec53099125602c636896bd0e678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 9): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:213-226 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:237-250 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:390-403 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:241-254 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:392-405 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:348-361 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:140-152 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:155-167 | src/diffusers/pipelines/latte/pipeline_latte.py:247-258 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:227\u0060 calls \u0060_text_preprocessing\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:153\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fbd253b4781b92f9b4ce36e8a848263e486e2df546c7d1b41717786cb729a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8): examples/community/masked_stable_diffusion_xl_img2img.py:352-366 | examples/community/pipeline_kolors_inpainting.py:1528-1541 | examples/community/stable_diffusion_xl_reference.py:1023-1037 | src/diffusers/pipelines/kolors/pipeline_kolors.py:933-947 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1107-1121 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1159-1173 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1342-1356 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1562-1575 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:352\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:931\u0060 calls \u0060to\u0060, \u0060repeat\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py:350\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"698d201639e7c69d399baf790dd00288fd4dabc8b4cf16679e8d184592ebb5e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 8): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:526-538 | scripts/convert_gligen_to_diffusers.py:290-302 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:218-231 | scripts/convert_original_audioldm_to_diffusers.py:406-418 | scripts/convert_original_musicldm_to_diffusers.py:402-414 | scripts/convert_versatile_diffusion_to_diffusers.py:475-487 | scripts/convert_zero123_to_diffusers.py:374-386 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:524-536 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:526\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"511407e4dba4627deac13bb96e77e19426d84badea73cf6e6dcc45e8aad64f03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 8): src/diffusers/modular_pipelines/flux2/encoders.py:140-152 | src/diffusers/modular_pipelines/flux2/encoders.py:344-357 | src/diffusers/modular_pipelines/flux2/encoders.py:488-501 | src/diffusers/modular_pipelines/flux3/encoders.py:283-296 | src/diffusers/pipelines/flux2/pipeline_flux2.py:340-353 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:250-263 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:297-310 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:254-267 \u2014 there are 8 copies across 6 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 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/flux2/encoders.py:140\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":"src/diffusers/modular_pipelines/flux2/encoders.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c4d4b4fc1d0f1d7b3439f29aceb68109205dba321f5d32c5a50c22baeeb70a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 8): src/diffusers/modular_pipelines/ltx2/encoders.py:133-145 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:332-345 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:383-396 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:494-507 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:434-447 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:393-406 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:405-418 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:336-349 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d9c59ac50a2912a56a63d57bee07a5cd36964c04cb464c573e4bf67763420a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): examples/community/fresco_v2v.py:2423-2437 | examples/community/rerender_a_video.py:857-871 | examples/community/rerender_a_video.py:1035-1048 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1268-1282 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1243-1257 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1411-1425 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1246-1260 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/rerender_a_video.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2423\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2423}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc97a0c871d6b9318128404b0938d0c72d8a5d4943d22260230ecf639d689f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 7): examples/community/pipeline_animatediff_ipex.py:151-163 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:136-148 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:299-312 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:186-198 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:239-251 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:198-210 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:145-157 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 631 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:151\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":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c59e59e772bf19ee5a595afd6d12f95f8a51b949992dfccb7e841f721b95e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): examples/community/pipeline_kolors_differential_img2img.py:998-1011 | examples/community/pipeline_kolors_inpainting.py:1338-1351 | examples/community/pipeline_sdxl_style_aligned.py:1588-1601 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1147-1160 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:997-1010 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1220-1233 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1362-1375 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1164\u0060 calls \u0060get\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1013\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"f614e597163ab5d376e68f9cea22b07afeedeccf4698702b069b72afe0a629bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): examples/community/pipeline_stable_diffusion_xl_instantid.py:841-854 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1165-1178 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1169-1182 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1326-1339 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1299-1312 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1323-1336 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1111-1124 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 and \u0060examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 591 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1165\u0060 calls \u0060isinstance\u0060, \u0060list\u0060, \u0060zip\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py:839\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":"examples/community/pipeline_stable_diffusion_xl_instantid.py"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"999a1b24a3e638790660d9e02e5c253a62112a8ecac767b16a4e77b183c51746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 7): src/diffusers/models/autoencoders/autoencoder_dc.py:621-633 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:886-899 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1349-1362 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1364-1377 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:935-947 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:965-978 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:918-931 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 7 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_dc.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0091705e91a9edab47cfb5a2a57b453d2caa99c68be3e80ae47217139b0a72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): src/diffusers/models/autoencoders/autoencoder_dc.py:670-683 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:944-957 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1410-1423 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1426-1439 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:990-1003 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:1030-1043 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:991-1004 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 7 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_dc.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"292fa5b6b5495feae71e763661c1e1abd780a10bec06b1ba933760719cd2547e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201314 lines \u00D7 7): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:509-522 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:779-786 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:500-509 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:485-494 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:527-536 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:857-866 | src/diffusers/models/autoencoders/vae.py:160-173 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 7 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:525\u0060 calls \u0060permute\u0060, \u0060flatten\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:511\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"7037861e83900d76a6827236a2810981e8146614aa39c7e715825620567ec831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): src/diffusers/models/transformers/transformer_anyflow.py:147-160 | src/diffusers/models/transformers/transformer_anyflow_far.py:316-329 | src/diffusers/models/transformers/transformer_ltx.py:88-101 | src/diffusers/models/transformers/transformer_ltx2.py:197-210 | src/diffusers/models/transformers/transformer_ltx2.py:286-299 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:181-194 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:271-284 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60e6bf320f4f524ef4c75f1e0e21a176d2958bd5dbb13d0b2634f3d6691e48e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): src/diffusers/models/transformers/transformer_bria.py:160-173 | src/diffusers/models/transformers/transformer_bria_fibo.py:106-119 | src/diffusers/models/transformers/transformer_flux.py:117-130 | src/diffusers/models/transformers/transformer_flux2.py:368-381 | src/diffusers/models/transformers/transformer_flux2.py:608-621 | src/diffusers/models/transformers/transformer_longcat_image.py:107-120 | src/diffusers/models/transformers/transformer_ovis_image.py:107-120 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd78589c9bf1fa4cdee9dab34b32228cb219c443fd37c4c88cc1d21f445cd82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 7): src/diffusers/models/transformers/transformer_bria.py:164-176 | src/diffusers/models/transformers/transformer_bria_fibo.py:110-122 | src/diffusers/models/transformers/transformer_flux.py:121-133 | src/diffusers/models/transformers/transformer_flux2.py:372-384 | src/diffusers/models/transformers/transformer_flux2.py:470-483 | src/diffusers/models/transformers/transformer_longcat_image.py:111-123 | src/diffusers/models/transformers/transformer_ovis_image.py:111-123 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_bria.py:164\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_flux2.py:387\u0060 calls \u0060to_add_out\u0060 and \u0060src/diffusers/models/transformers/transformer_bria.py:179\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5634ac3507dd61f16e7efd865026468cd21182c1856bc6969f5e46c0f94160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 7): src/diffusers/pipelines/chroma/pipeline_chroma.py:452-464 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:484-496 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:428-441 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:317-330 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:446-459 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:531-544 | src/diffusers/pipelines/krea2/pipeline_krea2.py:337-350 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 792 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:452\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6383f8b8b84cafffe06fe837d2339a30ce437033e7fa90c9a41d342d54a2599b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 7): src/diffusers/pipelines/consisid/pipeline_consisid.py:809-820 | src/diffusers/pipelines/sana/pipeline_sana.py:832-845 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:895-908 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:705-717 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:785-797 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:869-882 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:901-914 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/consisid/pipeline_consisid.py:809\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/consisid/pipeline_consisid.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb69a1e3b705c56872313931d66d5b8204228a3e669e60ece422be82241889b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): src/diffusers/pipelines/pag/pipeline_pag_sana.py:250-263 | src/diffusers/pipelines/sana/pipeline_sana.py:251-264 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:265-278 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:203-216 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:210-223 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:274-287 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:271-284 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 791 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:250\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:247\u0060 calls \u0060list\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana.py:249\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a9a1e298669c2302bdc582530d0c851d9a5727cc0dcb5bc7e0a76d065d7645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): examples/community/fresco_v2v.py:2300-2313 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1202-1215 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1607-1620 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1159-1172 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1280-1293 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1568-1581 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2300\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2300}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56558fb9e99262806fe2846efb29e13b61fa0e1d458edbaa7605e1966730fe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): examples/community/lpw_stable_diffusion.py:1016-1029 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1002-1015 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1500-1513 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:816-829 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:790-803 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:442-455 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:813\u0060 calls \u0060cat\u0060 and \u0060examples/community/lpw_stable_diffusion.py:1013\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb7572d257ea3d95382f80467c7f44d7251a5173d58362a9eb449b2badd313d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): examples/community/pipeline_controlnet_xl_kolors.py:1072-1085 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1262-1275 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1474-1487 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:846-859 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1414-1427 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1402-1415 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:846\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab127b424d15c0f2cc6b29e42db499ae320301f652d65cfcbf55ca7359a35f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): examples/community/pipeline_flux_kontext_multiple_images.py:1166-1179 | examples/community/pipeline_flux_semantic_guidance.py:1168-1181 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1005-1018 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1161-1174 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1054-1067 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1362-1375 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a6b138543e2ab128ddfa310bc5fa35d2caa2b057c0722a487854f9c06150bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): examples/community/pipeline_stable_diffusion_xl_instantid.py:836-849 | examples/community/stable_diffusion_controlnet_reference.py:301-314 | examples/community/stable_diffusion_xl_controlnet_reference.py:682-695 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1160-1173 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1321-1334 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1306-1319 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py:836\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instantid.py"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a48103dde17b7ddc4ce0986888cd5e434203be583d2f8fd42bd11ca80d5513"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): examples/community/pipeline_stg_ltx.py:873-886 | examples/community/pipeline_stg_ltx_image2video.py:972-985 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1281-1294 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:941-954 | src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:306-319 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:412-425 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1281\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060LTXPipelineOutput\u0060 names \u0060..ltx.pipeline_output\u0060 in one and \u0060.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef98bf763ec3a90540e0eb9d3188bc0ad1837ea959286ecd4e920e662db3e074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:443-456 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:316-329 | src/diffusers/pipelines/sana/pipeline_sana.py:388-401 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:403-416 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:411-424 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:409-422 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 454 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/sana/pipeline_sana.py:404\u0060 calls \u0060isinstance\u0060, \u0060unscale_lora_layers\u0060 and \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:458\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b89b630123170d508f1907e0d7b0878b37f4e9fb2044df165aed78c5ef2ba95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:438-451 | scripts/convert_if.py:864-877 | scripts/convert_ms_text_to_video_to_diffusers.py:172-185 | scripts/convert_svd_to_diffusers.py:285-298 | scripts/convert_zero123_to_diffusers.py:292-305 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:436-449 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:435\u0060 calls \u0060startswith\u0060 and \u0060scripts/convert_ms_text_to_video_to_diffusers.py:169\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa61f896fca28fa4aea4161e91f7e60ac7758245fe3d7878c60183886503c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 6): scripts/convert_flux_to_diffusers.py:121-130 | scripts/convert_flux_xlabs_ipadapter_to_diffusers.py:55-63 | scripts/convert_ovis_image_to_diffusers.py:73-82 | src/diffusers/loaders/single_file_utils.py:2349-2358 | src/diffusers/loaders/single_file_utils.py:3594-3607 | src/diffusers/loaders/single_file_utils.py:3625-3634 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_flux_xlabs_ipadapter_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/convert_flux_to_diffusers.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f292314f9a5d32488cca473e37a096f0baa9082b61168be2b93c26083b9b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 6): src/diffusers/pipelines/allegro/pipeline_allegro.py:312-325 | src/diffusers/pipelines/latte/pipeline_latte.py:306-318 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:287-300 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:295-308 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:400-413 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:344-357 \u2014 \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 and \u0060src/diffusers/pipelines/latte/pipeline_latte.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 38 separate duplicated blocks between them, totalling at least 495 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea381b8a19350fdad2a13de8d991231c5b493c6351de42c6eace8dfc3f52a789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): examples/community/pipeline_flux_differential_img2img.py:957-970 | src/diffusers/pipelines/flux/pipeline_flux_control.py:812-825 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:895-908 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1049-1062 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:856-869 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b47b39a36fdfec5c2c496bff743990541280a9a8b5825521403ef33f3fed5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): examples/community/pipeline_flux_kontext_multiple_images.py:985-999 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:925-938 | src/diffusers/pipelines/flux/pipeline_flux.py:739-753 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:863-877 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1090-1103 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 476 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:985\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb86b39b67161f21b2928e5ea765c53dca04885d2ab81f19c88a98048d4e2a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): examples/community/pipeline_flux_semantic_guidance.py:1037-1050 | src/diffusers/pipelines/chroma/pipeline_chroma.py:764-777 | src/diffusers/pipelines/flux/pipeline_flux.py:810-823 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1004-1017 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:597-610 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux.py:824\u0060 calls \u0060hasattr\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:778\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":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"877c3418cd3bfc496d09f1fbca22be89b8b465b70dee3c816e963fffa265f7ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): examples/community/pipeline_kolors_differential_img2img.py:1109-1122 | examples/community/stable_diffusion_xl_reference.py:1020-1033 | src/diffusers/pipelines/kolors/pipeline_kolors.py:930-943 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1104-1117 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1156-1169 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060examples/community/stable_diffusion_xl_reference.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 355 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2072f0b8df704f22092e134190c4356fe9d4781cf74becfb58263e76a61c1b7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): examples/community/pipeline_stg_wan.py:648-661 | src/diffusers/pipelines/wan/pipeline_wan.py:671-684 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:831-844 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:1034-1047 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:730-743 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/wan/pipeline_wan.py:671\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060WanPipelineOutput\u0060 names \u0060.pipeline_output\u0060 in one and \u0060diffusers.pipelines.wan.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f894dc4d2adef1ac9f1eb73292528a4a7c6def21527f87224ba1be2ba13770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1249-1262 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1127-1140 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1145-1158 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:964-977 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1142-1155 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1246\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1140\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":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f523a7025847a90b91b8fa00216934cf333a17117087a7b391681e1f5cb410"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 5): src/diffusers/loaders/single_file_utils.py:2929-2939 | src/diffusers/loaders/single_file_utils.py:4001-4014 | src/diffusers/loaders/single_file_utils.py:4208-4221 | src/diffusers/loaders/single_file_utils.py:4269-4282 | src/diffusers/loaders/single_file_utils.py:4390-4401 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/loaders/single_file_utils.py:4388\u0060 calls \u0060startswith\u0060, \u0060replace\u0060 and \u0060src/diffusers/loaders/single_file_utils.py:2928\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":2929}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3753e0ae42a4ba8a8631a7eff5a0de77be1300f9019a016eb9f324830a021af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): src/diffusers/models/transformers/cogvideox_transformer_3d.py:434-447 | src/diffusers/models/transformers/transformer_bria.py:655-669 | src/diffusers/models/transformers/transformer_flux.py:757-771 | src/diffusers/models/transformers/transformer_mochi.py:467-480 | src/diffusers/models/transformers/transformer_ovis_image.py:539-553 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_flux.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 340 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/cogvideox_transformer_3d.py:434\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/cogvideox_transformer_3d.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96e74c633917d7f69913f3dba6dbb54fe2b07c96e28300b8871f4e8a2e1fa18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 5): src/diffusers/modular_pipelines/ltx2/before_denoise.py:221-230 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1056-1069 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:871-884 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:812-825 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1081-1094 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d173c4839a40917e987d9e99ace08d520ba00b4c4f745b0a0e51858d3f851d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 5): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:493-506 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:564-577 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:776-788 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:847-859 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:752-763 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py:493\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e7697fc95ea8293154e277479bee7dcfd9bfefd91a420ee84f5fa4dc471665"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:537-550 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:574-587 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:727-740 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:690-703 | src/diffusers/pipelines/krea2/pipeline_krea2.py:561-574 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py:537\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d76c55ae76a6b848aa154ca23e8da9bb560bf2b72c8050c39f97be9094e07f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 5): src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1327-1339 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1301-1314 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1487-1500 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1609-1622 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1656-1669 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 111 separate duplicated blocks between them, totalling at least 1729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18f7d5002c45b47e44597f8d659a5551abce6a7b2efaf51b4b5da8fa8553b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1283-1296 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1571-1584 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1548-1561 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1574-1587 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1245-1258 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1330 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1283\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9d57546a5c671bb8e383db444ffc19f45bc5a6d98922a5fd6fedde5cb4a893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:963-976 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1170-1183 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1416-1429 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:935-948 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1195-1208 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:963\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:919\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"95874c587f505f824af4a26d72e526647afb3b10df6450340aad514603dd2432"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 5): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:871-884 | src/diffusers/pipelines/sana/pipeline_sana.py:860-872 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:923-935 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:897-909 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:929-941 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:871\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"a103052af2623908736165ffde60dd15c4cb4ceecd698541aed82a6c756f789a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): src/diffusers/pipelines/pag/pipeline_pag_sana.py:891-904 | src/diffusers/pipelines/sana/pipeline_sana.py:956-969 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:1052-1065 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:838-851 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:928-941 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 791 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba07ea05eddee0d7398ebd1f56239b7394869e00c80ac4857a5619aaaa07612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:651-664 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:893-906 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:864-877 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:753-766 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:922-935 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:651\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"487de36a518c803763e85c7cc3d284638e303b8812e3c13df4c6cbfa3acdaedc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): examples/community/adaptive_mask_inpainting.py:1036-1048 | examples/community/hd_painter.py:581-593 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1128-1141 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1145-1158 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1128\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5255035399211ede6f1a9cd2374210cbeeccb639459a6bd2b575b7c825ceb27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/community/gluegen.py:761-774 | examples/community/ip_adapter_face_id.py:1060-1073 | examples/community/regional_prompting_stable_diffusion.py:1041-1054 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1095-1108 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:761\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":"examples/community/gluegen.py"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"377413ef4fd9a7fb6eb52ede9a2ac409d99263dee143b3f3c9b36a09e6579e27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/community/ip_adapter_face_id.py:1029-1042 | examples/community/pipeline_stable_diffusion_boxdiff.py:1528-1541 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:894-910 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:945-961 \u2014 before extracting anything, compare \u0060examples/community/ip_adapter_face_id.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 as WHOLE FILES: this scan already matched 81 separate duplicated blocks between them, totalling at least 1134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:894\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1f479bfed72c079c6ea17ef2caa76f7bbd8c2cff03203639b983081b9495f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 4): examples/community/matryoshka.py:2281-2294 | src/diffusers/models/unets/unet_2d_condition.py:481-494 | src/diffusers/models/unets/unet_dreamlite.py:1894-1905 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:397-410 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2281}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01570743594334f61970b9892d0a0e9d8ba82f6822d3173cf5ce97466aa02d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/community/pipeline_animatediff_controlnet.py:1087-1100 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1079-1092 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:985-998 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1317-1330 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 69 separate duplicated blocks between them, totalling at least 975 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_controlnet.py:1087\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62de341fa4d0a8dc53a0b097ec70cb943bb712661e67acf8acde1df488ce9c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1278-1291 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:862-875 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1430-1443 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1418-1431 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:862\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"598d81e8a11664cdb6084dc03c3f030bd37fd21f1c6ae7dd83868ad28483b5f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/community/pipeline_flux_differential_img2img.py:858-874 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:790-803 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:858-871 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1208-1221 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 698 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc5ed38a578b1574cc2a2d57f0bbc70dd53f10e7f89c6731d8a0865c75d0ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/community/pipeline_flux_kontext_multiple_images.py:547-560 | src/diffusers/pipelines/flux/pipeline_flux.py:485-498 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:536-549 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:645-658 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 990 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"be405e236179d5bc57756c7f2dc7f30819cbf76becf48c2a54e4f8afc43235d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/community/pipeline_hunyuandit_differential_img2img.py:130-143 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:119-132 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:103-116 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:106-119 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e1f2127ae543fe91a48da2db3950101087613e4e610977825bceb271409b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): examples/community/pipline_flux_fill_controlnet_Inpaint.py:949-962 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:837-850 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:742-754 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:859-872 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:949\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":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"605cb53d580270f11548094d98d6bba29cfdbbce736fc5fa10afdf6e9b13dea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/community/stable_unclip.py:99-112 | examples/community/unclip_text_interpolation.py:161-174 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:165-178 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:208-221 \u2014 before extracting anything, compare \u0060examples/community/stable_unclip.py\u0060 and \u0060examples/community/unclip_text_interpolation.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_unclip.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9832e7a7d43f66d7136b1c5d1a950c985a51b692c78f06762bdecdb204b833"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/models/transformers/transformer_hunyuan_video.py:559-572 | src/diffusers/models/transformers/transformer_hunyuan_video.py:714-727 | src/diffusers/models/transformers/transformer_hunyuanimage.py:509-522 | src/diffusers/models/transformers/transformer_motif_video.py:584-597 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5bcd93dd3575c5567be9197964faaf217a20c3d6ddef0564e7b92cc88ea27f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/models/unets/unet_2d_condition.py:369-382 | src/diffusers/models/unets/unet_dreamlite.py:1784-1797 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:306-319 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:659-672 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c04b4a1ca60efc1b49ca69cb98f087eaf1763ec84e9c21b04d8f080ebc9e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/models/unets/unet_3d_condition.py:146-159 | src/diffusers/models/unets/unet_i2vgen_xl.py:161-174 | src/diffusers/models/unets/unet_motion_model.py:1264-1277 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:103-116 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_condition.py\u0060 and \u0060src/diffusers/models/unets/unet_i2vgen_xl.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a23822b5e046088e0d04e20a7d69aea2907612152951219e93f4074e6b7cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): src/diffusers/modular_pipelines/flux2/denoise.py:385-397 | src/diffusers/modular_pipelines/flux3/denoise.py:239-251 | src/diffusers/modular_pipelines/qwenimage/denoise.py:382-395 | src/diffusers/modular_pipelines/qwenimage21/denoise.py:342-355 \u2014 \u0060src/diffusers/modular_pipelines/flux2/denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/flux3/denoise.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 5 separate duplicated blocks between them, totalling at least 47 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. 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 \u0060components\u0060 to \u0060Flux2ModularPipeline\u0060 in one and \u0060Flux3ModularPipeline\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":"src/diffusers/modular_pipelines/flux2/denoise.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e1fd6dfd5c0e1ce60c9e6b939d70e82b4431cf1e381575adecce8f93b06e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201314 lines \u00D7 5): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:624-637 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:805-818 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:291-304 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:552-565 | src/diffusers/modular_pipelines/z_image/before_denoise.py:544-546 \u2014 \u0060src/diffusers/modular_pipelines/qwenimage/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/qwenimage21/before_denoise.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 7 separate duplicated blocks between them, totalling at least 109 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060QwenImageModularPipeline\u0060 in one and \u0060QwenImage21ModularPipeline\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":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32af2da4e834e523f4fe44bc4599710a3e5f39223e4f86f81bd8feecf0edaee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:339-352 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:323-336 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:337-350 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:351-364 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:339\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7979111d06c39f4e959fce2be8e6cd9558ff5f530d5787912a51874b3cc973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:49-62 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:53-66 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:50-63 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:53-66 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 858 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"68996c3e64ea412ba38a0742287b70f2f78fb331c0c59997a9a9d07530bcb317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:644-657 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:727-740 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:734-747 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:813-826 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 858 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"77711a92a90ab3eb703812ceb93388108eceefa2ac744f76841ab051a94046b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/pipelines/flux/pipeline_flux_control.py:816-829 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:899-912 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:965-978 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:860-873 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 906 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py:816\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"597607d85c6f998d33f5e2692a96047b4fbe002c0bb20763f58686642842fbad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/pipelines/flux2/pipeline_flux2.py:697-710 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:558-571 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:736-749 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:565-578 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py:697\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfb769425bfe76d0ad96fe540000347c42b19aae763f93e4cc074a480829dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:652-665 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:605-618 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:776-789 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:835-848 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 730 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:652\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c743eeccef23175587e2359e387c6fee5c89fb590d659d90a19a4221085548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 4): src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:729-737 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:843-851 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:693-706 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:821-834 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f4bf7e102c9cb6d80d2565e1282751fcc2bdadfc0efdfcee5bbbac21dafa1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1275-1288 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1466-1479 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1529-1542 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1590-1603 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1275\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"475ef57cfda2e203b07af153098e00cd59464677e17cc8a51492362868d89fb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:607-620 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:729-742 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:773-786 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:771-784 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 633 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dca70bb94c37080886f521d2981537b4d84207e44f7426428e526305280dfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:780-793 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:994-1007 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:824-837 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:824-837 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 786 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:780\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ffbd159858429b82434ae3bf6efff35a19ce8b73eac8c67eff4640083a8b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:604-617 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:966-979 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:1048-1061 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:737-750 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:604\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"999ebc5adc4835859fa68c09ac8a7c50e3553d3ec2c5548e4671d7f112885359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/community/composable_stable_diffusion.py:255-268 | examples/community/sd_text2img_k_diffusion.py:206-219 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:280-293 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/sd_text2img_k_diffusion.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"138083599f1fb1fa870abda2eb7f3d6d2cfb7ac0c657e889352b240f504da429"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/community/latent_consistency_img2img.py:734-747 | examples/community/latent_consistency_txt2img.py:642-655 | src/diffusers/schedulers/scheduling_lcm.py:608-621 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83134b0df4e93661676abb1281f6a98c5de128d6b722ce04b2ff09858ac74d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/community/pipeline_kolors_differential_img2img.py:1069-1082 | examples/community/pipeline_sdxl_style_aligned.py:1731-1744 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1064-1077 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 446 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1064\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a351124ccfa5042dbc1ea226699e333e36ec73748523cde243ce7982ec176c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): examples/community/pipeline_stg_cogvideox.py:737-748 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:674-687 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:772-785 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bcbfd9a9a5bf28a8eb5765730f26737de0bc263389a1a90f020892d2aedb46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): examples/community/pipeline_stg_ltx.py:754-766 | examples/community/pipeline_stg_ltx_image2video.py:826-838 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:808-821 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:808\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a7be946ce5931cd9d60447a4772e8aabc2da850d209d133469acb35b807a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:1053-1066 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:937-950 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:866-879 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 948 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:937\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, \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:954\u0060 calls \u0060step\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:882\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd036841c1cfe879228a86540c07961dfb0e733cc66fc66d374e2bf1600c337"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): src/diffusers/models/attention_processor.py:1300-1312 | src/diffusers/models/attention_processor.py:2428-2440 | src/diffusers/models/attention_processor.py:4101-4114 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"0644f08eccb875e32b1251163270242742639ddf7a4a4d004014d7b53467b7de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): src/diffusers/models/attention_processor.py:1524-1537 | src/diffusers/models/attention_processor.py:1682-1695 | src/diffusers/models/attention_processor.py:1845-1856 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"69bf393609c24adc9480d2ecc09aa203927359cd205404bc7bc75987c1fea993"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:416-429 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:511-521 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:618-631 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:416\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"95efc5dd0030d3050d0a315e781a2cdb98a7913b327688f638b54fce456e353a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:466-482 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:475-491 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:470-485 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:466\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"2840e58cb5888b230bd139c12972349a7e50d6234ca7850dd48f6c952f48c155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_hunyuan.py:297-310 | src/diffusers/models/controlnets/controlnet_sana.py:227-239 | src/diffusers/models/controlnets/controlnet_sd3.py:361-372 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_hunyuan.py:297\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":"src/diffusers/models/controlnets/controlnet_hunyuan.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f9e7e2a1dc15bd71a15c2553a8f5db9ec1f0a7729e02036ed8c81e504d239d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_xs.py:1385-1398 | src/diffusers/models/controlnets/controlnet_xs.py:1402-1414 | src/diffusers/models/controlnets/controlnet_xs.py:1796-1809 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec97ce8b5a145be2a4db21f1a1809e9db5093d13167deced076b2be379df995a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:963-976 | src/diffusers/models/unets/unet_dreamlite.py:489-502 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2386-2399 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_dreamlite.py:489\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d58d9d1ae40a78352c8e6d6b8b68e38701868bae4dc6775972d7c5462e95a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/encoders.py:364-376 | src/diffusers/modular_pipelines/p_h3_image/encoders.py:314-324 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:368-381 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/encoders.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 3 separate duplicated blocks between them, totalling at least 107 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py:364\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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, \u0060src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:382\u0060 calls \u0060to\u0060 and \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py:377\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":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"007d7e8c55edffa96084450edf529c35f79050718540eb014d9dd2397f7b63f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/pipelines/chroma/pipeline_chroma.py:785-798 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:879-892 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1093-1106 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 792 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:785\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"b541c318c5f10cc3d7296ad1ae17b6951ad88420a41a97b7638ad1e5c5253dba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:695-708 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:697-710 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:788-801 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 562 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:697\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7374bfb17e2b70cf5900ae914fa780e6aaad8ecf350eacfa1512b2a45a688aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:698-711 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:801-816 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:749-764 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:698\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26bc523abefd24ccfabcbb8434716814162e022f9d78f77c7b85198f44faa1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:649-662 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:702-714 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:1032-1044 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py:663\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/glm_image/pipeline_glm_image.py:1046\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"54772268fd3e1b164b75047ea49c8803bd299c3d64e5d31170a65e1e3216ed34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:579-592 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:562-575 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:701-712 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 505 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:579\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d05a3f8208d8f654cd5962c71aa56fc47b1a2ff3d6115f6cc1e7f5425fcece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:401-414 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:490-503 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:499-512 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:415\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:504\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":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5e728575a6715e7775bc2d9f0017167d51a9578df191c065c38d6bd25033bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/pipelines/helios/pipeline_helios.py:936-949 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:1116-1129 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:1062-1075 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios.py\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18cdf05ba0d14bbd6aa6659382bf9e3a9c2889ac5296f28b8fd371e316f8b65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:350-362 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:440-453 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:261-273 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 396 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:350\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"430acfd085a43cc76c3397afbf589a0e784b69f09a1c2035b59ce8d070d45152"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1673-1686 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1336-1349 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1528-1541 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 62 separate duplicated blocks between them, totalling at least 846 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3468ba906a3c4fd1005838b7e2c8db82a14c12434d21be37a0e564f43ebf097"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:820-833 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:926-939 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:855-868 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:820\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a5df938f999f89adda773d13bc5193d172f2e64bef51b8a245d47e4431a27f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_sana.py:788-801 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:877-890 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:941-954 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:788\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, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:958\u0060 calls \u0060preprocess\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:805\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":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0f940fb8bb4e4b47e28b8a749561eebc8187ff516f9fba3791e0466004462c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/pipelines/sana/pipeline_sana.py:917-930 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:950-963 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:997-1010 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 963 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:1011\u0060 calls \u0060chunk\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana.py:933\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7117524992dd401446a1642645b7b59b852c8beb96c70cc6c38691f97a4ea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:619-632 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:583-596 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:643-656 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 254 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:616\u0060 calls \u0060mark_step\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:580\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":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"9527a458f45fc5217adc57fc213d18d966d2f8b90876abb76da667c13e594749"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/quantizers/bfl/utils.py:272-285 | src/diffusers/quantizers/bitsandbytes/utils.py:197-210 | src/diffusers/quantizers/gguf/utils.py:121-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/bfl/utils.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b1f533cc4cde840a8c164e7444196e4a6671824ae722337c1358f577c7eb41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): utils/check_doc_toc.py:91-104 | utils/check_doc_toc.py:140-153 | utils/check_doc_toc.py:189-202 \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":"utils/check_doc_toc.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbc7afe100d0dee81b20eb9e7eaf598f60524ea4eecbcd6a78f73ed78c227b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/community/fresco_v2v.py:615-628 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:685-698 \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 \u0060examples/community/fresco_v2v.py:615\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc3cbba842f430aab97dcf98a01a95ee424f7b76b45a0a439b01af71120d9be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/community/matryoshka.py:2756-2769 | src/diffusers/models/unets/unet_2d_condition.py:875-888 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060class_labels\u0060 to \u0060Optional[torch.Tensor]\u0060 in one and \u0060torch.Tensor | None\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2756}}}],"partialFingerprints":{"codehealthFindingId/v1":"69987bc6ce07bb0936bf59aef36dabbcdf63f60a2c93fea26b9e5d457bcc955f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1123-1136 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1012-1025 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py\u0060 as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1012\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c8fdc45df162a6ac73f1460bb2f2e1ced974348b41ffb611d3a81ad3aecfb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1345-1358 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:987-1000 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 249 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_differential_img2img.py"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"050b4b2f0d1dd36d78d78bdc348b1b3067cba561ded96de6a4e52504c7a8b5c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/community/pipeline_stg_mochi.py:124-137 | src/diffusers/pipelines/mochi/pipeline_mochi.py:62-75 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_mochi.py\u0060 and \u0060src/diffusers/pipelines/mochi/pipeline_mochi.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 799 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88a29716767c2db1ab8eaab9be8c537720725a1e4284d8ea58ba1534c4e4410"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): examples/cosmos3/cosmos_parallel.py:92-103 | src/diffusers/models/transformers/transformer_cosmos3.py:78-91 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_cosmos3.py:77\u0060 calls \u0060k_norm_und_for_gen\u0060 and \u0060examples/cosmos3/cosmos_parallel.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":"examples/cosmos3/cosmos_parallel.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b9714c2e97d0580602623332f0b4ee97c26241e7cfcf747ac67c77e89bd080"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:364-377 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:283-293 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 250 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:378\u0060 calls \u0060_text_preprocessing\u0060 and \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:294\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"e251acd358dcff31117b86115400ea3bdac5789494ee02095f384e5cee8847b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:251-264 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:574-587 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fd1b8547ea36e65ec13e6f76a2f6b454a79c20cbee6f770ce3bcc9d612c0f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): src/diffusers/guiders/auto_guidance.py:108-121 | src/diffusers/guiders/skip_layer_guidance.py:141-152 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/auto_guidance.py\u0060 and \u0060src/diffusers/guiders/skip_layer_guidance.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/guiders/auto_guidance.py:108\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/auto_guidance.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cee66abe112a16eea893df065348da7dbdff9e337a007fd48b886fa104a142e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/image_processor.py:663-676 | src/diffusers/video_processor.py:57-70 \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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ee4fdbe653a37c4770237fd840530e5b785b9c43dbafc6d12a48887de7abcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/loaders/single_file_utils.py:1722-1737 | src/diffusers/loaders/single_file_utils.py:1952-1965 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/single_file_utils.py:1722\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"795cb8b7a33daa389dd66488b716fb1f6a37707542b88fe99010e25504dcd8a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/attention.py:370-383 | src/diffusers/models/attention_processor.py:616-630 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention.py:370\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/diffusers/models/attention.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f1b60fcfcd984383e4b74e2d8dbb1a92a131492e10dac64e65159034d29a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/attention_processor.py:1263-1276 | src/diffusers/models/attention_processor.py:3858-3871 \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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4de666e7abd189aac96cc44429ec7d79e4b80b2a78a574876e28c1e84a3b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/attention_processor.py:3588-3601 | src/diffusers/models/transformers/transformer_lumina2.py:87-100 \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, \u0060src/diffusers/models/transformers/transformer_lumina2.py:102\u0060 calls \u0060view\u0060 and \u0060src/diffusers/models/attention_processor.py:3604\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3588}}}],"partialFingerprints":{"codehealthFindingId/v1":"537d9b0ed08facf80ce1e87f6dc281ff2b1a5acde1a7950ad9d6658416903353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:440-453 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:559-572 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:440\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5784427c3ede79c38b5789370bc2d6d36886a32c9477626201a91be51a60a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:579-592 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:528-541 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca19e41bd287a153e172ba0d5add98393b9f5c26f04609760a0c10a748fed972"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:996-1005 | src/diffusers/models/autoencoders/vae.py:291-304 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"1599b43a6cb16f0b390c57fc97ea2b2e94aebab5f19d7843d9d42eeb161de254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:384-397 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:569-582 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16b5ce8dcc66c5b0af24287db37912d0ee2a1f5cc5b74b81e69cb5823c63828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:934-953 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:922-941 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:934\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":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22f781edcb447ae75d22ccd1cb1802910f801186433c980e0ebf8d8f0995c73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:958-974 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:945-961 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50f0d0571983edf10fe1fb2e37ed78c2fbe91bcfa65bdf8a3f5e2f458009c91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/controlnets/controlnet.py:287-301 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:544-557 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet.py:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81527e2cb8a09f5bd3b347961f21df3cbc81965d6b6f6f6cc8caa79432c747e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/controlnets/controlnet.py:415-428 | src/diffusers/models/controlnets/controlnet_union.py:374-387 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_union.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"700b1d05a8e9b7f1b14b92e1479612bfd77d71dabc3d268d6653a0e35499c7aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_cosmos.py:242-254 | src/diffusers/models/transformers/transformer_cosmos.py:762-775 \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":"src/diffusers/models/controlnets/controlnet_cosmos.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0092649cd1b7b536a757c1b1816ce9e0c60bf3c0ecb750e5a46b0264df6d0d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py:57-73 | src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py:70-86 \u2014 before extracting anything, compare \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py\u0060 and \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74e9433c800f28b4a7308750d7d6852d48d0df9614252d32d33c7a71dcc7c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/sana_transformer.py:271-284 | src/diffusers/models/transformers/transformer_sana_video.py:436-449 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/sana_transformer.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_video.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc0788e9e8e9edcf8cabde62f1ca266fa08f5075fd8fb347d065c71fa4b3406"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): src/diffusers/models/transformers/sana_transformer.py:380-393 | src/diffusers/models/transformers/transformer_sana_video.py:539-549 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/sana_transformer.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_video.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/sana_transformer.py:380\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"77093de1aad2e5652865d3d24f0891b2c808e4bac386ed27cdf65701438d836b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/transformer_bria.py:693-706 | src/diffusers/models/transformers/transformer_chroma.py:599-612 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_bria.py:693\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90e25645d9ad7fec034eefa3e94069b183ae52dda59514e3b33b81efec5a2aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/transformer_chroma.py:278-291 | src/diffusers/models/transformers/transformer_flux.py:425-438 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chroma.py\u0060 and \u0060src/diffusers/models/transformers/transformer_flux.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 129 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chroma.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed37d1e88470d5e3d4a824bd58c58fafdc3878eae468453a762d2c271589c7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/transformer_hidream_image.py:440-453 | src/diffusers/models/transformers/transformer_hidream_image.py:510-523 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hidream_image.py:440\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, \u0060src/diffusers/models/transformers/transformer_hidream_image.py:524\u0060 calls \u0060LayerNorm\u0060, \u0060HiDreamImageFeedForwardSwiGLU\u0060 and \u0060src/diffusers/models/transformers/transformer_hidream_image.py:455\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":"src/diffusers/models/transformers/transformer_hidream_image.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9788d04d1eb471c3063659f5cc013ea3f34bd10fcaf2661e4127e5fd4ee9d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video.py:1106-1119 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:787-800 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:1106\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f28a706deb07e1822346609c9fbddbf87ecd16b8197e8a0f103ece26c5ef399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuanimage.py:585-598 | src/diffusers/models/transformers/transformer_motif_video.py:686-699 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuanimage.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"2751bab98d47ac0c6e627e0a600bf339328dbe76ca97986f1d80de05ee9c11f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/diffusers/models/transformers/transformer_joyimage.py:435-448 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:399-411 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_joyimage.py\u0060 and \u0060src/diffusers/models/transformers/transformer_joyimage_edit_plus.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_joyimage.py:435\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"3455c637689e5e68713d598934ed2149b7335ea6527baa5730cb8414822599df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky.py:77-90 | src/diffusers/models/transformers/transformer_kandinsky.py:103-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_kandinsky.py:77\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"777e3c8cc4ab8ee1ffa2d1a9704287bc120077b2f792a2907c48aaef36e0d502"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky6.py:142-157 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:355-370 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_kandinsky6.py\u0060 and \u0060src/diffusers/models/transformers/transformer_kandinsky6_sr.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb52b3575d4497aebebc20ced8c5697d2662f367c0c8b4d7b6f4b70b0bf5429"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:455-468 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:934-947 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.py:455\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b869b763e2ac7911497616bd0dc65cb6d25ec3287b13929b7fc9eda35087656"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:486-499 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:965-978 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.py:486\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d680f59d895a346d1b84390cf04b8cad8c52c154f945099ec33d61fb77c946f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm.py:1667-1680 | src/diffusers/models/transformers/transformer_sana_wm.py:2204-2217 \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":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88a639eea6fc5b87b781cf1e47f12d728ef6f10a5fa73fdc4d42b4a0ececf1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm.py:1781-1794 | src/diffusers/models/transformers/transformer_sana_wm.py:2299-2312 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_sana_wm.py:1781\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"313731e1ef913ab306d5d8be69ec66492cc0a56d6ed52c3020e600f7eed4b42e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/unets/unet_3d_blocks.py:516-529 | src/diffusers/models/unets/unet_3d_blocks.py:766-779 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39569356ba5ae6e08fb4e50092891495dfe7012671a560ce29073d329dec5e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/diffusers/models/unets/unet_motion_model.py:372-385 | src/diffusers/models/unets/unet_motion_model.py:557-569 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_motion_model.py:372\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/unets/unet_motion_model.py:569\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/models/unets/unet_motion_model.py:385\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66701bba1cf861684ba94312ccd939d07cb534ce65b88bb1274bf03615d1daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/diffusers/models/unets/unet_motion_model.py:1326-1339 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:145-157 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_motion_model.py\u0060 and \u0060src/diffusers/models/unets/unet_spatio_temporal_condition.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15484ef6543a5d2b73e9934ab73dab017c8251d829b565ce157f22a8d5f301b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/modular_pipelines/helios/denoise.py:570-583 | src/diffusers/modular_pipelines/helios/denoise.py:908-921 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/helios/denoise.py:570\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7ba6dae09ec581da0761646e8a2b15c08eba3ddbd961f8a6a23dd9355e7da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/modular_pipelines/ideogram4/before_denoise.py:51-72 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:79-100 \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":"src/diffusers/modular_pipelines/ideogram4/before_denoise.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"776e033cdee6ba9edc5649780ba23f42046b22a290fbabf0e74472df085000bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:2635-2648 | src/diffusers/pipelines/pipeline_utils.py:2214-2227 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2635}}}],"partialFingerprints":{"codehealthFindingId/v1":"b692ee2c43d750d46f7cca61eb257bd65bd66ff0fed9d481a9fb51be79d3f97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:817-830 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:979-992 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 793 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py:817\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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3257988929db7ef1efe32a35b3daab2ede7a2ef58b6b247a5ccd4074f65e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:643-656 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:806-819 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py:643\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4762b71cc3a9b5f127fd2a2903b8f243436f8a223a60715b8681d4a5e63d14d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:475-488 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:587-600 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a36477b94de637cd56a45cd2899707964d7f80ca0ab46b0d5aff070ede9e65b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:646-657 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:654-667 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 562 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:654\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c75d0afbbebc6b7b715af0c3773b77d031bb546688dcee44d90536bdfdbb3a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:357-370 | src/diffusers/pipelines/consisid/pipeline_consisid.py:450-463 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py\u0060 and \u0060src/diffusers/pipelines/consisid/pipeline_consisid.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"658349336295a7003186c3895dbc880098e62bddacca931daae22fc829ecfb3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:531-544 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:710-722 \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 \u0060src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:531\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f162bb18bc06933719e380de1303bf2c503b91021d72dd876de95d8cc41dda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:613-626 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:544-555 \u2014 \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.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 11 separate duplicated blocks between them, totalling at least 111 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py:613\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":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddd8b574e5183db0cbd5bd49c5ee0f3af05fe014f04645d52d995b1c9109e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py:113-126 | src/diffusers/pipelines/deprecated/blip_diffusion/blip_image_processing.py:300-313 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8af64460c3c156569c565b0dec0a87de912e0f402ffbc53d7588d8da791694"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:260-288 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:249-277 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 121 separate duplicated blocks between them, totalling at least 1970 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"2582ffeae79b32c3abc2553850b4b589d2b885ffdce88a9cadbe870e41298c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:868-881 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1309-1322 \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, \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:883\u0060 calls \u0060encode\u0060, \u0060sample\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1324\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d946ae77554685fe73ee823e762b03248ad07c22d2c2de6f75a413f2af6da6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:226-239 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:236-249 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd41865ee3f140a6996d397cf34ecac9423e9d565d073b6bb143b5c7ae85a578"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:195-208 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:214-227 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 518 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8bb0c7642c04446c84e059ba0dd6ebb086ac33582ef75a800d7a106f77c498"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:370-383 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:381-394 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 526 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6bcd33e8478b61259419e9968cc2e5621ab323d58f1457c2b6fc6122ec084c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201331 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:613-640 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:778-808 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 549 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:613\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cc2ad80f7dcd99de38e3af317d9c2caaf1b65e70e4a1909eda216a4d85e48e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:245-258 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:161-174 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 303 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea7e0e6c979559cc3f183900b935a2f3acdf1908bc5630919025a76417703d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:372-385 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:459-472 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f67e586ce38aa5f722a930e3c145b9358b52e7839868c527c13b4bac6c2aba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py:447-459 | src/diffusers/pipelines/llada2/pipeline_llada2.py:541-554 \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":"src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76bc4da4f300fdaf3edc2c34231c6dff1c6070b9038b405bdd7024966eed28d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:861-874 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:893-904 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:861\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe2e70665ae90969c8c09736658d261f6fa22e3015fbd46a01588a04608e731"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py:363-374 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:716-729 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0cb95f00ad4be2099903bba488cf8d5693012ea48c45e76e658df1bcfad243"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:790-803 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:854-866 \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":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc64683be18eb1bb4d5e068d51f82ad8fb7014453a4b908e1e18ea5183440903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:135-148 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:166-179 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15be74c92013f6a5af582c0fdad9a001c8e8580540fbd16546b4a761b055351"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:175-188 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:306-319 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 318 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01613ea35091216557f80a58e52306922b1f91f4575c37382f6dc27a8c35754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:878-891 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:977-990 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"1003e6c3e65b01bc61f90758c37563466387af8a4c8c83f4c69aa9a6da4dbd6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:448-461 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:501-514 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py\u0060 and \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"2957a1808edce9f9e67e187467c4898e4c9f333e0f5cf8252de43d22576d3b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:74-87 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:147-160 \u2014 \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.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 13 separate duplicated blocks between them, totalling at least 239 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060vae\u0060 to \u0060AutoencoderKLLTXVideo\u0060 in one and \u0060AutoencoderKLLTX2Video\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, \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:91\u0060 calls \u0060_normalize_latents\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:166\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4064cde2217d2355d386829acdcb06009be4623052bc261789438a255ad2d7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:251-264 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:267-280 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 1105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"595a551671074f8c4b93a1656c3029a4593607131455a4fbb9b3fd7aab55299a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1264-1277 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2108-2121 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 903 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1264\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"244470b240177c30ffd02dbcfd2fde803eea184134dccc05d97b625031d0549b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): src/diffusers/pipelines/lumina2/pipeline_lumina2.py:290-301 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:323-336 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina2/pipeline_lumina2.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa06e0fcfd724aeabdb2cb9e1c909022187e0b0bff865ca588c6d3632565a96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:617-630 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:871-883 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 215 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:617\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1edd650df37840e889eb427f5dc485982fb67ecd521e24bfcb041fe444302b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:792-804 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:827-840 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 1024 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:792\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d55c157d641ab412f6b77f8e74b2d90418f89cbe605da0112a5f066bafa1276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:520-533 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:476-489 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1063 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ddc558676ae9bcd065f4b93086c9435d927ed973f369f927b8b60b491b2221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:783-796 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:799-812 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee26acae9185f928cca185a24a0591be5efa4ba26477f80845cf4a5f44fef31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1117-1130 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1310-1323 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1090 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13999427539c715ae58553372664124a1f3a1728b5512e84622b74e2012e511"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:324-337 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:233-246 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 704 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c60ddc2fd86fb3458b1402cf45b1f35d8d0b3befa0760ccd98679da6e8e8b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:1087-1100 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:792-805 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 and \u0060src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 351 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5f78852a8dc58b2c9c31a5f397e00ed73028b0061de96003c22cb40ac312ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:747-760 | src/diffusers/schedulers/scheduling_sasolver.py:655-668 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_sasolver.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:746\u0060 calls \u0060_sigma_to_alpha_sigma_t\u0060 and \u0060src/diffusers/schedulers/scheduling_sasolver.py:654\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec41934265796bebb8e33b88832f9ccccb7b04f4cc732a81e2d0c36b0375d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:513-526 | src/diffusers/schedulers/scheduling_helios.py:657-670 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_helios.py:513\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa80268efe023c95c9828e31941fefbc2bfacbd6598e7c64c0f0db60cd5f438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/schedulers/scheduling_heun_discrete.py:594-607 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:609-622 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_heun_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 305 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_heun_discrete.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"698b6b200752eb44d246849af6637d8c10abd39e15383ddccc369b0c230d528c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/schedulers/scheduling_lcm.py:533-546 | src/diffusers/schedulers/scheduling_tcd.py:579-592 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_lcm.py\u0060 and \u0060src/diffusers/schedulers/scheduling_tcd.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 434 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_lcm.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"371f72f6a776d7148ccd086efdcce341d53604c8676fba1813766d84531cc04f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 94): examples/community/adaptive_mask_inpainting.py:722-733 | examples/community/fresco_v2v.py:1758-1769 | examples/community/gluegen.py:486-497 | examples/community/instaflow_one_step.py:462-473 | examples/community/ip_adapter_face_id.py:743-754 | examples/community/lpw_stable_diffusion.py:698-709 | examples/community/matryoshka.py:4116-4127 | examples/community/pipeline_animatediff_controlnet.py:523-534 | examples/community/pipeline_animatediff_img2video.py:635-646 | examples/community/pipeline_animatediff_ipex.py:492-503 | examples/community/pipeline_controlnet_xl_kolors.py:524-535 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:570-581 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:621-632 | examples/community/pipeline_kolors_differential_img2img.py:524-535 | examples/community/pipeline_kolors_inpainting.py:731-742 | examples/community/pipeline_prompt2prompt.py:505-516 | examples/community/pipeline_stable_diffusion_boxdiff.py:872-883 | examples/community/pipeline_stable_diffusion_pag.py:872-883 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:436-447 | examples/community/regional_prompting_stable_diffusion.py:752-763 | examples/community/rerender_a_video.py:420-431 | examples/community/stable_diffusion_controlnet_img2img.py:430-441 | examples/community/stable_diffusion_controlnet_inpaint.py:527-538 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:476-487 | examples/community/stable_diffusion_ipex.py:523-534 | examples/community/stable_diffusion_reference.py:340-351 | examples/community/stable_diffusion_repaint.py:500-511 | examples/research_projects/anytext/anytext.py:1696-1707 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:610-621 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:524-535 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:526-537 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:592-603 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:628-639 | src/diffusers/pipelines/bria/pipeline_bria.py:302-313 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:516-527 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:634-645 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:612-623 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:638-649 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:379-390 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:406-417 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:560-571 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:411-422 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:563-574 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:518-529 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:610-621 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:637-648 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:321-332 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:488-499 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:426-437 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:358-369 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:486-497 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:183-194 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:555-566 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:681-692 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:715-727 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:467-478 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:504-515 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:637-648 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:646-657 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:413-424 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:533-544 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:505-516 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:521-532 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:455-466 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:440-451 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:407-418 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:442-453 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:505-516 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:990-1001 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:284-295 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:255-266 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:285-296 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:350-361 | src/diffusers/pipelines/kolors/pipeline_kolors.py:494-505 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:518-529 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:592-603 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:588-599 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:512-523 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:629-640 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:488-499 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:615-626 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:668-679 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:359-370 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:268-279 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:305-316 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:663-674 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:466-477 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:693-704 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:645-656 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:808-819 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:318-329 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:457-468 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:471-482 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:570-581 \u2014 there are 94 copies across 93 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 94 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:722\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb24c5df23bb553f45f46793114b7b4ece17a28e726bb63bfc32d15d5c6fc7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 77): examples/community/adaptive_mask_inpainting.py:623-635 | examples/community/composable_stable_diffusion.py:250-262 | examples/community/fresco_v2v.py:1568-1580 | examples/community/gluegen.py:400-412 | examples/community/instaflow_one_step.py:356-368 | examples/community/ip_adapter_face_id.py:635-647 | examples/community/latent_consistency_interpolate.py:432-444 | examples/community/llm_grounded_diffusion.py:1385-1397 | examples/community/pipeline_animatediff_controlnet.py:349-361 | examples/community/pipeline_animatediff_img2video.py:466-478 | examples/community/pipeline_animatediff_ipex.py:320-332 | examples/community/pipeline_fabric.py:320-332 | examples/community/pipeline_prompt2prompt.py:403-415 | examples/community/pipeline_stable_diffusion_boxdiff.py:738-750 | examples/community/pipeline_stable_diffusion_pag.py:704-716 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:344-356 | examples/community/pipeline_zero1to3.py:299-311 | examples/community/regional_prompting_stable_diffusion.py:682-694 | examples/community/regional_prompting_stable_diffusion.py:1210-1222 | examples/community/sd_text2img_k_diffusion.py:201-213 | examples/community/stable_diffusion_controlnet_img2img.py:291-303 | examples/community/stable_diffusion_controlnet_inpaint.py:390-402 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:375-387 | examples/community/stable_diffusion_ipex.py:426-438 | examples/community/stable_diffusion_reference.py:563-575 | examples/community/stable_diffusion_repaint.py:399-411 | examples/research_projects/anytext/anytext.py:1511-1523 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:473-485 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:305-317 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:350-362 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:359-371 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:407-419 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:438-450 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:449-461 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:427-439 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:433-445 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:478-490 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:506-518 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:383-395 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:367-379 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:447-459 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:573-585 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:371-383 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:402-414 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:463-475 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:434-446 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:275-287 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:362-374 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:439-451 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:410-422 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:343-355 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:340-352 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:558-570 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:310-322 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:345-357 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:967-979 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:515-527 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:220-232 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:191-203 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:392-404 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:377-389 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:599-611 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:426-438 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:402-414 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:455-467 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:316-328 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:450-462 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:485-497 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:483-495 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:355-367 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:509-521 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:463-475 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:613-625 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:368-380 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:448-460 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:410-422 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:462-474 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:623\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, \u0060examples/community/gluegen.py:416\u0060 calls \u0060_adapt_language\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:638\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8c99e64a5a728578f7a4b5856b86abc2d22542bbf4abd1caf964fa8c582588"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 77): examples/community/lpw_stable_diffusion_xl.py:997-1009 | examples/community/pipeline_demofusion_sdxl.py:427-439 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1572-1584 | examples/community/pipeline_flux_differential_img2img.py:465-477 | examples/community/pipeline_flux_kontext_multiple_images.py:528-540 | examples/community/pipeline_flux_rf_inversion.py:455-467 | examples/community/pipeline_flux_semantic_guidance.py:593-605 | examples/community/pipeline_flux_with_cfg.py:417-429 | examples/community/pipeline_sdxl_style_aligned.py:820-832 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:532-544 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:607-619 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:986-998 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:567-579 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:714-726 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:561-573 | examples/community/pipeline_stable_diffusion_xl_ipex.py:569-581 | examples/community/pipeline_stg_hunyuan_video.py:422-434 | examples/community/pipeline_stg_wan.py:330-342 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:497-509 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:694-706 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:287-299 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:306-318 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:358-370 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:705-717 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:661-673 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:665-677 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:696-708 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:685-697 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:685-697 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:591-603 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:663-675 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:505-517 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:537-549 | src/diffusers/pipelines/flux/pipeline_flux.py:466-478 | src/diffusers/pipelines/flux/pipeline_flux_control.py:429-441 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:471-483 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:510-522 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:500-512 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:472-484 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:487-499 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:558-570 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:522-534 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:530-542 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:517-529 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:570-582 | src/diffusers/pipelines/helios/pipeline_helios.py:300-312 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:319-331 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:555-567 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:391-403 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:361-373 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:481-493 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:519-531 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:344-356 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:669-681 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:671-683 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:568-580 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:588-600 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:657-669 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:608-620 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:700-712 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:300-312 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:324-336 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:342-354 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:387-399 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:356-368 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:576-588 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:606-618 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:613-625 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:646-658 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:597-609 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:703-715 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:675-687 | src/diffusers/pipelines/wan/pipeline_wan.py:303-315 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:429-441 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:370-382 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:364-376 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:369-381 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/wan/pipeline_wan_vace.py:361\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/lpw_stable_diffusion_xl.py:994\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab080aaef73f75a3c2fb48a6d44259f00a40a3290be3e0da2f2cce73539323b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 66): examples/community/adaptive_mask_inpainting.py:579-591 | examples/community/fresco_v2v.py:1524-1536 | examples/community/gluegen.py:360-372 | examples/community/instaflow_one_step.py:312-324 | examples/community/ip_adapter_face_id.py:591-603 | examples/community/latent_consistency_img2img.py:136-148 | examples/community/latent_consistency_interpolate.py:388-400 | examples/community/latent_consistency_txt2img.py:134-146 | examples/community/llm_grounded_diffusion.py:1341-1353 | examples/community/pipeline_animatediff_controlnet.py:305-317 | examples/community/pipeline_animatediff_img2video.py:422-434 | examples/community/pipeline_animatediff_ipex.py:276-288 | examples/community/pipeline_fabric.py:276-288 | examples/community/pipeline_prompt2prompt.py:359-371 | examples/community/pipeline_stable_diffusion_boxdiff.py:694-706 | examples/community/pipeline_stable_diffusion_pag.py:660-672 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:300-312 | examples/community/regional_prompting_stable_diffusion.py:638-650 | examples/community/stable_diffusion_reference.py:519-531 | examples/research_projects/anytext/anytext.py:1467-1479 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:429-441 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:261-273 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:306-318 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:315-327 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:363-375 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:394-406 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:405-417 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:383-395 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:389-401 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:434-446 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:462-474 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:339-351 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:250-262 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:323-335 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:403-415 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:529-541 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:327-339 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:358-370 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:419-431 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:390-402 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:318-330 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:395-407 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:366-378 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:299-311 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:296-308 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:514-526 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:266-278 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:301-313 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:923-935 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:471-483 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:348-360 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:333-345 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:382-394 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:358-370 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:411-423 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:272-284 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:406-418 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:441-453 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:439-451 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:311-323 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:465-477 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:419-431 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:324-336 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:404-416 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:366-378 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:418-430 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 66 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 66 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/gluegen.py:358\u0060 calls \u0060_adapt_language\u0060 and \u0060examples/community/fresco_v2v.py:1522\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e34ed1cde546fdef4b265ab1411f03a74b5603e76b4e2f882b31b4fb84fbc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 65): examples/community/adaptive_mask_inpainting.py:536-548 | examples/community/fresco_v2v.py:1470-1482 | examples/community/instaflow_one_step.py:269-281 | examples/community/ip_adapter_face_id.py:537-549 | examples/community/latent_consistency_interpolate.py:334-346 | examples/community/llm_grounded_diffusion.py:1285-1297 | examples/community/matryoshka.py:3846-3858 | examples/community/pipeline_animatediff_controlnet.py:251-263 | examples/community/pipeline_animatediff_img2video.py:368-380 | examples/community/pipeline_animatediff_ipex.py:222-234 | examples/community/pipeline_fabric.py:233-245 | examples/community/pipeline_prompt2prompt.py:303-315 | examples/community/pipeline_stable_diffusion_boxdiff.py:640-652 | examples/community/pipeline_stable_diffusion_pag.py:606-618 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:246-258 | examples/community/regional_prompting_stable_diffusion.py:584-596 | examples/community/stable_diffusion_ipex.py:346-358 | examples/community/stable_diffusion_reference.py:465-477 | examples/community/stable_diffusion_repaint.py:319-331 | examples/research_projects/anytext/anytext.py:1413-1425 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:375-387 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:207-219 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:252-264 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:261-273 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:309-321 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:340-352 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:351-363 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:329-341 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:335-347 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:380-392 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:408-420 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:285-297 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:269-281 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:349-361 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:475-487 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:273-285 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:304-316 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:365-377 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:336-348 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:264-276 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:341-353 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:312-324 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:245-257 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:242-254 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:460-472 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:212-224 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:247-259 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:869-881 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:294-306 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:279-291 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:328-340 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:304-316 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:357-369 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:218-230 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:352-364 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:387-399 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:385-397 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:257-269 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:411-423 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:365-377 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:531-543 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:270-282 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:350-362 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:312-324 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:364-376 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 65 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 65 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:536\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/instaflow_one_step.py:266\u0060 calls \u0060adjust_lora_scale_text_encoder\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:533\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"523ffa19e50e6cdee2be3d8b7f55759402a6d45a25d9860e738fe33a0f0b1c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 60): examples/community/fresco_v2v.py:1500-1511 | examples/community/ip_adapter_face_id.py:567-578 | examples/community/latent_consistency_interpolate.py:364-375 | examples/community/llm_grounded_diffusion.py:1315-1327 | examples/community/pipeline_animatediff_controlnet.py:281-292 | examples/community/pipeline_animatediff_img2video.py:398-409 | examples/community/pipeline_animatediff_ipex.py:252-263 | examples/community/pipeline_prompt2prompt.py:333-345 | examples/community/pipeline_stable_diffusion_boxdiff.py:670-681 | examples/community/pipeline_stable_diffusion_pag.py:636-647 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:276-287 | examples/community/regional_prompting_stable_diffusion.py:614-625 | examples/community/stable_diffusion_reference.py:495-506 | examples/research_projects/anytext/anytext.py:1443-1454 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:405-416 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:237-248 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:282-293 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:291-302 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:339-350 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:370-381 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:381-392 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:359-370 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:365-376 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:410-421 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:438-449 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:315-326 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:226-237 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:299-310 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:379-390 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:505-516 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:303-314 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:334-345 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:395-406 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:366-377 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:294-305 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:371-382 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:342-353 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:275-286 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:272-283 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:490-501 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:242-253 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:277-288 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:899-910 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:447-458 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:324-335 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:309-320 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:358-369 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:334-345 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:387-398 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:248-259 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:382-393 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:417-428 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:415-426 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:287-298 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:441-452 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:395-406 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:300-311 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:380-391 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:342-353 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:394-405 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1500\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f088a9a04d1d2644c775933a9b5c94578f0f7aecc5fa337fc8ea8798688bc07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 46): examples/community/lpw_stable_diffusion_xl.py:1012-1024 | examples/community/pipeline_demofusion_sdxl.py:442-454 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1587-1599 | examples/community/pipeline_flux_kontext_multiple_images.py:543-555 | examples/community/pipeline_flux_semantic_guidance.py:608-620 | examples/community/pipeline_flux_with_cfg.py:432-444 | examples/community/pipeline_sdxl_style_aligned.py:835-847 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:549-561 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:624-636 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1001-1013 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:582-594 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:729-741 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:576-588 | examples/community/pipeline_stable_diffusion_xl_ipex.py:584-596 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:709-721 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:720-732 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:676-688 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:680-692 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:711-723 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:700-712 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:700-712 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:608-620 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:680-692 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:520-532 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:552-564 | src/diffusers/pipelines/flux/pipeline_flux.py:481-493 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:515-527 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:537-549 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:545-557 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:532-544 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:585-597 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:582-594 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:684-696 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:686-698 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:585-597 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:605-617 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:672-684 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:623-635 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:715-727 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:593-605 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:623-635 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:630-642 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:661-673 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:612-624 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:718-730 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:690-702 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1012\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py:563\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:717\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8e75caec6ad51951a5b1b8069268331ce6ef28b4da45a73d7e098e46120179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 29): examples/community/gluegen.py:694-707 | examples/community/hd_painter.py:536-551 | examples/community/ip_adapter_face_id.py:982-995 | examples/community/matryoshka.py:4406-4419 | examples/community/pipeline_flux_kontext_multiple_images.py:999-1011 | examples/community/pipeline_flux_with_cfg.py:723-735 | examples/community/pipeline_kolors_inpainting.py:1341-1354 | examples/community/pipeline_sdxl_style_aligned.py:1591-1604 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1041-1053 | examples/community/pipeline_stable_diffusion_boxdiff.py:1481-1494 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1150-1163 | examples/community/regional_prompting_stable_diffusion.py:956-969 | examples/community/stable_diffusion_xl_reference.py:540-553 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1089-1102 | src/diffusers/pipelines/chroma/pipeline_chroma.py:727-739 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1459-1472 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1241-1253 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1364-1376 | src/diffusers/pipelines/flux/pipeline_flux.py:753-765 | src/diffusers/pipelines/flux/pipeline_flux_control.py:702-715 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:877-889 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:945-958 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1005-1018 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1096-1109 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:955-967 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1002-1014 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1061-1074 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1223-1236 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1365-1378 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 29 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 29 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:694\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":"examples/community/gluegen.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d85283213b7e8fb19700a6ed26129b7f3091bdd83915658adeb4b8c8146ed5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 29): examples/community/lpw_stable_diffusion_xl.py:452-464 | examples/community/mixture_tiling_sdxl.py:612-624 | examples/community/mod_controlnet_tile_sr_sdxl.py:619-631 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1487-1499 | examples/community/pipeline_sdxl_style_aligned.py:731-743 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:914-926 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:464-476 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:611-623 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:491-503 | examples/community/pipeline_stable_diffusion_xl_ipex.py:491-503 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:524-536 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:553-565 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:517-529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:525-537 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:517-529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:506-518 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:517-529 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:536-548 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:449-461 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:811-823 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:532-544 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:522-534 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:519-531 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:537-549 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:627-639 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:509-521 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:527-539 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:631-643 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:537-549 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:452\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f85e522e5cc474048238e13330154c70005c8907115990ba319585cfd02c08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 28): examples/community/fresco_v2v.py:1901-1913 | examples/community/pipeline_animatediff_controlnet.py:652-664 | examples/community/pipeline_controlnet_xl_kolors.py:655-667 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:730-742 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:781-793 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:520-532 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:667-679 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:518-530 | examples/research_projects/anytext/anytext.py:1812-1824 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:573-585 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:758-770 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:610-622 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:782-794 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:755-767 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:794-806 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:643-655 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:841-853 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:845-857 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:633-645 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:644-656 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:836-848 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:604-616 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:552-564 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:601-613 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:741-753 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:744-756 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:849-861 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:851-863 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"d729620804a0bec3932b15b24ea65aa0dd02d1a76f7c5fa478ba23dd11b4a21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 27): examples/community/pipeline_stg_cogvideox.py:360-372 | examples/community/pipeline_stg_wan.py:290-302 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:242-254 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:259-271 | src/diffusers/pipelines/bria/pipeline_bria.py:215-227 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:304-316 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:306-318 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:315-327 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:325-337 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:331-343 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:276-288 | src/diffusers/pipelines/consisid/pipeline_consisid.py:417-429 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:317-327 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:336-346 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:302-312 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:346-356 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:302-314 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:260-272 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:281-293 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:286-298 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:342-354 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:303-315 | src/diffusers/pipelines/wan/pipeline_wan.py:262-274 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:353-365 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:316-328 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:309-321 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:327-339 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060examples/community/pipeline_stg_wan.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_cogvideox.py:360\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a37e7fa5ed0018c84321e0875afe1bac0a00b21524a61459d4d42edb97b43e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 25): examples/community/fresco_v2v.py:1179-1189 | examples/community/hd_painter.py:85-95 | examples/community/hd_painter.py:185-197 | examples/community/hd_painter.py:386-396 | examples/community/pipeline_sdxl_style_aligned.py:271-281 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:225-235 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:337-347 | examples/community/pipeline_stable_diffusion_xl_instantid.py:225-235 | examples/community/pipeline_stable_diffusion_xl_instantid.py:337-347 | examples/community/regional_prompting_stable_diffusion.py:371-381 | src/diffusers/models/attention_processor.py:1160-1170 | src/diffusers/models/attention_processor.py:2072-2082 | src/diffusers/models/attention_processor.py:2555-2565 | src/diffusers/models/attention_processor.py:2669-2679 | src/diffusers/models/attention_processor.py:2763-2773 | src/diffusers/models/attention_processor.py:2879-2889 | src/diffusers/models/attention_processor.py:3097-3107 | src/diffusers/models/attention_processor.py:3195-3205 | src/diffusers/models/attention_processor.py:3298-3308 | src/diffusers/models/attention_processor.py:3743-3753 | src/diffusers/models/attention_processor.py:4060-4070 | src/diffusers/models/attention_processor.py:4381-4391 | src/diffusers/models/attention_processor.py:4613-4623 | src/diffusers/models/attention_processor.py:4845-4855 | src/diffusers/models/unets/unet_dreamlite.py:376-386 \u2014 there are 25 copies across 8 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 25 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/hd_painter.py:181\u0060 calls \u0060bmm\u0060 and \u0060src/diffusers/models/attention_processor.py:2551\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3efb1cace9a13c8c8a56984480459e4386c73dc63621db576cc6eda863d19d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 25): examples/community/mixture_tiling_sdxl.py:572-584 | examples/community/mod_controlnet_tile_sr_sdxl.py:579-591 | examples/community/pipeline_sdxl_style_aligned.py:692-703 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:425-436 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:572-583 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:452-463 | examples/community/pipeline_stable_diffusion_xl_ipex.py:452-463 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:513-525 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:477-489 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:485-497 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:477-489 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:466-478 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:477-489 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:496-508 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:409-421 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:771-783 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:492-504 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:482-494 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:479-491 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:497-509 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:587-599 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:469-481 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:487-499 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:591-603 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:497-509 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mixture_tiling_sdxl.py:572\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabd6330341e6d2e67b2b247bc5d4f63bae00a8f6bf605b3a282929bcfe9bc21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 24): examples/community/pipeline_hunyuandit_differential_img2img.py:595-607 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:518-530 | src/diffusers/pipelines/allegro/pipeline_allegro.py:409-421 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:204-216 | src/diffusers/pipelines/chroma/pipeline_chroma.py:454-466 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:486-498 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:523-535 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:430-443 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:319-332 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:448-461 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:533-546 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:494-506 | src/diffusers/pipelines/krea2/pipeline_krea2.py:339-352 | src/diffusers/pipelines/lumina/pipeline_lumina.py:428-440 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:399-411 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:505-517 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:383-395 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:390-402 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:495-507 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:440-452 | src/diffusers/pipelines/sana/pipeline_sana.py:466-478 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:481-493 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:489-501 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:491-503 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 24 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 24 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47699d66f7691c6660d6b07a3c7d489ff533a4f5b80d12a84fe04b56cb1e6c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 23): examples/community/pipeline_stg_cogvideox.py:460-472 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:512-524 | src/diffusers/pipelines/allegro/pipeline_allegro.py:403-415 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:198-210 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:406-418 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:446-458 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:496-508 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:470-482 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:366-378 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:347-359 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:385-397 | src/diffusers/pipelines/consisid/pipeline_consisid.py:598-610 | src/diffusers/pipelines/latte/pipeline_latte.py:402-414 | src/diffusers/pipelines/lumina/pipeline_lumina.py:422-434 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:393-405 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:377-389 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:384-396 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:489-501 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:434-446 | src/diffusers/pipelines/sana/pipeline_sana.py:460-472 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:475-487 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:483-495 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:485-497 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 23 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 23 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"c914232a6c41e0030ed5e2182a3e736c02d165dff704c6a298600ea76affa30c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 21): examples/community/fresco_v2v.py:1816-1828 | examples/community/pipeline_animatediff_controlnet.py:576-588 | examples/community/pipeline_controlnet_xl_kolors.py:564-576 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:639-651 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:690-702 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:686-698 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:833-845 | examples/community/rerender_a_video.py:450-462 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:682-694 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:577-589 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:704-716 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:689-701 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:670-682 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:709-721 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:807-819 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:750-762 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:754-766 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:647-659 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:659-671 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:758-770 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:760-772 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b6d9e47ca0e7793f17f566414436d2bfc05ad7bf35385e914ac26195f7e52e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 21): examples/community/pipeline_flux_differential_img2img.py:254-266 | examples/community/pipeline_flux_kontext_multiple_images.py:293-305 | examples/community/pipeline_flux_rf_inversion.py:248-260 | examples/community/pipeline_flux_semantic_guidance.py:252-264 | examples/community/pipeline_flux_with_cfg.py:215-227 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:281-293 | src/diffusers/modular_pipelines/flux/encoders.py:347-359 | src/diffusers/pipelines/flux/pipeline_flux.py:234-246 | src/diffusers/pipelines/flux/pipeline_flux_control.py:246-258 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:257-269 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:296-308 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:266-278 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:258-270 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:269-281 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:261-273 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:255-267 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:259-271 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:280-292 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:313-325 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:219-231 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:212-224 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:290\u0060 calls \u0060isinstance\u0060, \u0060maybe_convert_prompt\u0060 and \u0060examples/community/pipeline_flux_differential_img2img.py:252\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e97e005089a23910291be28be60d4e4081d264bd1ffc12e7b3f3b537d888e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 21): examples/community/pipeline_flux_differential_img2img.py:846-857 | examples/community/pipeline_flux_kontext_multiple_images.py:1002-1013 | examples/community/pipeline_flux_rf_inversion.py:800-811 | examples/community/pipeline_flux_with_cfg.py:726-737 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1044-1055 | src/diffusers/pipelines/chroma/pipeline_chroma.py:730-741 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:804-814 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:955-965 | src/diffusers/pipelines/flux/pipeline_flux.py:756-767 | src/diffusers/pipelines/flux/pipeline_flux_control.py:705-717 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:777-789 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:903-915 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:845-857 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:852-863 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:985-996 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:880-891 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1177-1188 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:846-857 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:910-921 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:958-969 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1005-1016 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:773\u0060 calls \u0060preprocess\u0060, \u0060to\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py:702\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4ac7ba1a50d1aa9ed7172ed30a225423ac0c8a44d639204a621f3f970c1e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 20): examples/community/fresco_v2v.py:2490-2502 | examples/community/gluegen.py:794-806 | examples/community/ip_adapter_face_id.py:1107-1119 | examples/community/pipeline_stable_diffusion_boxdiff.py:1705-1717 | examples/community/pipeline_stable_diffusion_pag.py:1462-1474 | examples/community/regional_prompting_stable_diffusion.py:1091-1103 | examples/research_projects/anytext/anytext.py:2338-2350 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1317-1329 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1339-1351 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1314-1326 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1500-1512 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:972-984 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:1027-1039 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:904-916 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1318-1330 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1524-1536 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1057-1069 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1087-1099 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1084-1096 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1141-1153 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/gluegen.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1517\u0060 calls \u0060apply_overlay\u0060 and \u0060examples/community/fresco_v2v.py:2507\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2490}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e4dad1211806ac9f8f7f7445d8c5d26a76db0fe3a151044d0faaf842efb1d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 20): examples/community/pipeline_flux_differential_img2img.py:298-315 | examples/community/pipeline_flux_kontext_multiple_images.py:340-357 | examples/community/pipeline_flux_rf_inversion.py:295-312 | examples/community/pipeline_flux_semantic_guidance.py:299-316 | examples/community/pipeline_flux_with_cfg.py:258-275 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:328-345 | src/diffusers/pipelines/flux/pipeline_flux.py:281-298 | src/diffusers/pipelines/flux/pipeline_flux_control.py:294-311 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:305-322 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:344-361 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:313-330 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:306-323 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:317-334 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:309-326 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:303-320 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:307-324 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:328-345 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:361-378 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:267-284 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:260-277 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:337\u0060 calls \u0060isinstance\u0060, \u0060maybe_convert_prompt\u0060 and \u0060examples/community/pipeline_flux_differential_img2img.py:296\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1fba6ea7f22007d442085888e5e0947719a0f19e9b55d74c4a218a3e8ff1b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 19): examples/community/pipeline_controlnet_xl_kolors.py:986-998 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1172-1184 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1384-1396 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:746-757 | examples/community/pipeline_stable_diffusion_xl_instantid.py:742-753 | examples/community/rerender_a_video.py:719-730 | examples/community/stable_diffusion_xl_controlnet_reference.py:573-584 | examples/research_projects/anytext/anytext.py:2105-2117 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1061-1072 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1069-1080 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1067-1078 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1176-1187 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1430-1441 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1221-1232 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1311-1322 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1016-1027 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1141-1152 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1212-1223 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1305-1316 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:746\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"5328de69f78af3b945970cda60103bb70d47c83d63f6c249a99d77e6581a0f91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 19): examples/community/pipeline_flux_differential_img2img.py:366-378 | examples/community/pipeline_flux_kontext_multiple_images.py:408-420 | examples/community/pipeline_flux_rf_inversion.py:363-375 | examples/community/pipeline_flux_semantic_guidance.py:367-379 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:396-408 | src/diffusers/modular_pipelines/flux/encoders.py:420-432 | src/diffusers/pipelines/flux/pipeline_flux.py:349-361 | src/diffusers/pipelines/flux/pipeline_flux_control.py:363-375 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:374-386 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:413-425 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:381-393 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:375-387 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:386-398 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:458-470 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:372-384 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:376-388 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:397-409 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:430-442 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:336-348 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aace1e15a0ebff8f988086e16fd5daa603bb5ed7a10656d6edb50368f92c6f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 19): examples/community/pipeline_hunyuandit_differential_img2img.py:599-611 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:524-535 | src/diffusers/pipelines/allegro/pipeline_allegro.py:415-426 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:210-221 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:527-539 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:498-510 | src/diffusers/pipelines/lumina/pipeline_lumina.py:434-445 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:405-416 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:404-415 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:536-546 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:509-521 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:389-400 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:396-407 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:501-512 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:446-457 | src/diffusers/pipelines/sana/pipeline_sana.py:472-483 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:487-498 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:495-506 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:497-508 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 19 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 19 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:599\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, \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:546\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:612\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":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e0de03024ada1d90446dcf236cd526016ebf79f4c78d1fb931d7a738c6eaab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 19): examples/community/pipeline_stg_hunyuan_video.py:675-687 | examples/community/pipeline_stg_wan.py:516-528 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:603-615 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:634-646 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:587-599 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:788-800 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:657-669 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:761-773 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:579-591 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:491-503 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:747-759 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:806-818 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:842-854 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:606-618 | src/diffusers/pipelines/wan/pipeline_wan.py:522-534 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:927-939 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:665-677 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:852-864 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:605-617 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060examples/community/pipeline_stg_wan.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"3750423843bc50b63e70dcd49c805ce3e87be46e64cb775c9090a4be85c6da86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 18): examples/community/pipeline_animatediff_controlnet.py:927-938 | examples/community/pipeline_controlnet_xl_kolors.py:1018-1030 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1205-1217 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1419-1431 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:781-792 | examples/community/pipeline_stable_diffusion_xl_instantid.py:773-784 | examples/community/stable_diffusion_xl_controlnet_reference.py:617-628 | examples/research_projects/anytext/anytext.py:2134-2145 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1089-1100 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:888-899 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1099-1110 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1097-1108 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1469-1481 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1256-1267 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1347-1358 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1046-1057 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1248-1260 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1342-1354 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_controlnet.py:927\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":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"73625430f0005347ca4df474e6f085d24c94f5fb238543aa1476e72db329f2fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 17): examples/community/adaptive_mask_inpainting.py:562-574 | examples/community/composable_stable_diffusion.py:203-214 | examples/community/instaflow_one_step.py:295-307 | examples/community/latent_consistency_img2img.py:119-131 | examples/community/latent_consistency_txt2img.py:117-129 | examples/community/pipeline_fabric.py:259-271 | examples/community/pipeline_zero1to3.py:249-261 | examples/community/sd_text2img_k_diffusion.py:154-165 | examples/community/stable_diffusion_controlnet_img2img.py:241-253 | examples/community/stable_diffusion_controlnet_inpaint.py:340-352 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:325-337 | examples/community/stable_diffusion_ipex.py:372-384 | examples/community/stable_diffusion_repaint.py:345-357 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:228-239 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:191-202 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:144-155 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:557-566 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:562\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f26e62f1279cf4af5965364dfd1d03e2b2e947d74ac97f452bdbb98317ce0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 17): examples/community/matryoshka.py:2585-2597 | src/diffusers/models/autoencoders/autoencoder_kl.py:144-156 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:156-168 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:171-183 | src/diffusers/models/controlnets/controlnet.py:522-534 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:454-466 | src/diffusers/models/controlnets/controlnet_union.py:461-473 | src/diffusers/models/controlnets/controlnet_xs.py:868-880 | src/diffusers/models/transformers/prior_transformer.py:169-181 | src/diffusers/models/unets/unet_2d_condition.py:711-723 | src/diffusers/models/unets/unet_3d_condition.py:397-409 | src/diffusers/models/unets/unet_i2vgen_xl.py:360-372 | src/diffusers/models/unets/unet_motion_model.py:1802-1814 | src/diffusers/models/unets/uvit_2d.py:233-245 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:414-426 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:887-899 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_prior.py:65-77 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2585}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abfd6528afd89d712748aae53a9815c62893817c4b7ab28046cc574363c9da6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 15): examples/community/hd_painter.py:597-607 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1524-1534 | examples/community/pipeline_flux_differential_img2img.py:832-842 | examples/community/pipeline_kolors_inpainting.py:1401-1411 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1956-1966 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1005-1017 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:941-951 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:915-927 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:971-981 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1144-1154 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1425-1435 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:767-777 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1162-1172 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1194-1204 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1432-1442 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d305ccdba08302cae597573c4e51c0001ed6ec86c5928d5cf2cd8b1cda8c46a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 14): examples/community/gluegen.py:775-785 | examples/community/ip_adapter_face_id.py:1075-1085 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2161-2173 | examples/community/pipeline_kolors_inpainting.py:1594-1604 | examples/community/pipeline_sdxl_style_aligned.py:1818-1828 | examples/community/pipeline_stable_diffusion_boxdiff.py:1673-1683 | examples/community/regional_prompting_stable_diffusion.py:1056-1066 | examples/community/stable_diffusion_xl_reference.py:1108-1118 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1250-1262 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:940-950 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1049-1059 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1221-1231 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1406-1416 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1628-1638 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:775\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"55efd1c0f9026b6fe4d4adead76ce17b8b918bc113983ec48df81f5a6f4e3552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 14): examples/community/lpw_stable_diffusion_xl.py:1139-1151 | examples/community/masked_stable_diffusion_xl_img2img.py:589-601 | examples/community/mod_controlnet_tile_sr_sdxl.py:896-908 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:808-820 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:884-896 | examples/community/pipeline_kolors_differential_img2img.py:632-644 | examples/community/pipeline_sdxl_style_aligned.py:962-974 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:669-681 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:929-941 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:920-932 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:629-641 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:935-947 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:727-739 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:714-726 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf48b09796ac8cfa3d194904ceed1f914f3afcc0b90dc1efd9a706bed4fbe6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 14): examples/community/lpw_stable_diffusion_xl.py:1173-1184 | examples/community/masked_stable_diffusion_xl_img2img.py:625-637 | examples/community/mod_controlnet_tile_sr_sdxl.py:942-954 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:843-855 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:919-931 | examples/community/pipeline_kolors_differential_img2img.py:678-690 | examples/community/pipeline_sdxl_style_aligned.py:996-1007 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:703-715 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:975-987 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:966-978 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:675-687 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:981-993 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:773-785 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:760-772 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1173\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ab690af69f9da4fd5fd46e45bc3b2aef139ec36d3b28480c71b637e2e82672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 13): examples/community/clip_guided_images_mixing_stable_diffusion.py:402-411 | examples/community/clip_guided_stable_diffusion.py:293-302 | examples/community/clip_guided_stable_diffusion_img2img.py:446-455 | examples/community/imagic_stable_diffusion.py:432-441 | examples/community/interpolate_stable_diffusion.py:332-341 | examples/community/multilingual_stable_diffusion.py:367-376 | examples/community/pipeline_prompt2prompt.py:725-734 | examples/community/seed_resize_stable_diffusion.py:299-308 | examples/community/speech_to_image_diffusion.py:222-231 | examples/community/stable_diffusion_repaint.py:840-852 | examples/community/wildcard_stable_diffusion.py:376-385 | examples/research_projects/rdm/pipeline_rdm.py:310-319 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:394-403 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:410\u0060 calls \u0060update\u0060 and \u0060examples/community/interpolate_stable_diffusion.py:347\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"614a8807e787b1baa02ddf3f37be404709726cb0f88ab6487bc539218fd45457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 13): examples/community/latent_consistency_interpolate.py:779-789 | examples/community/pipeline_animatediff_controlnet.py:919-931 | examples/community/pipeline_animatediff_ipex.py:690-702 | examples/community/pipeline_animatediff_ipex.py:871-883 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:773-785 | examples/community/pipeline_stable_diffusion_xl_instantid.py:765-777 | examples/research_projects/anytext/anytext.py:2126-2138 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1081-1093 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:852-864 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:902-914 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:806-818 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:841-852 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:773-784 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_interpolate.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 518 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_controlnet.py:919\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, \u0060examples/community/pipeline_animatediff_controlnet.py:935\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:868\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f43770cc92e88b3ef8cbdba3b66cd22e08a3b0eb0cae1a892ea599d1571e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201313 lines \u00D7 13): examples/community/matryoshka.py:2324-2336 | examples/community/matryoshka.py:2339-2346 | src/diffusers/models/controlnets/controlnet.py:240-247 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:217-224 | src/diffusers/models/controlnets/controlnet_union.py:215-222 | src/diffusers/models/unets/unet_2d_condition.py:522-534 | src/diffusers/models/unets/unet_2d_condition.py:537-544 | src/diffusers/models/unets/unet_motion_model.py:1270-1277 | src/diffusers/models/unets/unet_motion_model.py:1280-1287 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:109-116 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:191-203 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:459-471 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:474-481 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2324}}}],"partialFingerprints":{"codehealthFindingId/v1":"809a6cd12116dded88c979e066ab618718ac84ee568a57fc1cb4d34deb9fe3b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 12): examples/community/gluegen.py:211-223 | examples/community/pipeline_flux_kontext_multiple_images.py:252-264 | examples/community/pipeline_flux_semantic_guidance.py:212-224 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:193-205 | src/diffusers/pipelines/flux/pipeline_flux.py:195-207 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:212-224 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:209-221 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:239-251 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:263-275 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:190-202 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:206-218 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:153-165 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:268\u0060 calls \u0060getattr\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py:228\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":"examples/community/gluegen.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"994d1b48efd8b0e2d9e60e2b26f03ed3f6af762a3aa01e6b9168fa78d6cfbb10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 12): examples/community/pipeline_stg_wan.py:647-659 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:642-654 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:805-817 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:723-735 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:603-615 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:965-977 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:1047-1059 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:736-748 | src/diffusers/pipelines/wan/pipeline_wan.py:670-682 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:830-842 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:1033-1045 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:729-741 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 323 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py:642\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":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"075dfa7847bd728d0990267b294ed300329117a9a4182233348bb420931a8363"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 12): src/diffusers/pipelines/allegro/pipeline_allegro.py:795-810 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:638-653 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:691-706 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:736-751 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:711-726 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:534-549 | src/diffusers/pipelines/consisid/pipeline_consisid.py:812-827 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:774-788 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:908-922 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:956-970 | src/diffusers/pipelines/latte/pipeline_latte.py:735-750 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:567-579 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 327 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:926\u0060 calls \u0060get\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:813\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"448b6782009978939f2bfb038fe2bd06408d620072278064c6d8703c1ad92906"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 12): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1174-1186 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1355-1367 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1423-1435 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1508-1520 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:980-992 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:940-952 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:761-772 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:969-981 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1253-1265 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1181-1193 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1368-1380 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1582-1594 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:984\u0060 calls \u0060preprocess\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd.py:955\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c54c8646a8adf79a7a911999d9adb216bb47456240ed2308f929c418ebd2f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): examples/community/fresco_v2v.py:2237-2249 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:790-802 | examples/community/pipeline_stable_diffusion_xl_instantid.py:782-794 | examples/community/stable_diffusion_xl_controlnet_reference.py:626-638 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1098-1110 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1108-1120 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1106-1118 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1228-1240 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1265-1277 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1356-1368 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1055-1067 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"78346cebb4316764cb39eae5f20f515588bdf074dc73dbbf8e13aef92a0d7f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 11): examples/community/ip_adapter_face_id.py:1083-1093 | examples/community/matryoshka.py:4536-4546 | examples/community/pipeline_stable_diffusion_boxdiff.py:1681-1691 | examples/community/pipeline_stable_diffusion_pag.py:1436-1448 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1097-1107 | examples/community/regional_prompting_stable_diffusion.py:1064-1074 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1258-1270 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:948-958 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:1002-1012 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1033-1043 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1057-1067 \u2014 before extracting anything, compare \u0060examples/community/ip_adapter_face_id.py\u0060 and \u0060examples/community/matryoshka.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 564 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_pag.py:1436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c50fb11f40ad8883ca51050ac4ad3a8a8333851d031498ffd6254b94d46b674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): examples/community/masked_stable_diffusion_xl_img2img.py:332-344 | examples/community/pipeline_kolors_inpainting.py:1508-1520 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2066-2078 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1248-1260 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:931-943 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1688-1700 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1492-1504 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1682-1694 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1521-1533 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1322-1334 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1542-1554 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:332\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1dca423c198575d33b18c7c0d2ecad6287abe3e01efaf533719baf6344a1cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 11): examples/community/pipeline_flux_differential_img2img.py:956-967 | examples/community/pipeline_flux_kontext_multiple_images.py:1151-1163 | examples/community/pipeline_flux_rf_inversion.py:889-901 | examples/community/pipeline_flux_with_cfg.py:816-828 | src/diffusers/pipelines/flux/pipeline_flux_control.py:810-822 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:893-905 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1047-1059 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:992-1003 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1148-1159 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1039-1051 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1347-1359 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1360\u0060 calls \u0060size\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1005\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c5874a42d724df6b215889437a7e82c322da15d97f8d38c6eb2931f7c693ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): examples/community/pipeline_prompt2prompt.py:710-723 | examples/community/pipeline_zero1to3.py:740-752 | examples/community/stable_diffusion_controlnet_inpaint.py:966-979 | examples/community/stable_diffusion_ipex.py:696-709 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1025-1038 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:500-513 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:676-689 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:580-593 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:771-784 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:591-604 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:379-392 \u2014 before extracting anything, compare \u0060examples/community/pipeline_prompt2prompt.py\u0060 and \u0060examples/community/pipeline_zero1to3.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 373 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_prompt2prompt.py:710\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, \u0060examples/community/pipeline_zero1to3.py:756\u0060 calls \u0060cat\u0060 and \u0060examples/community/pipeline_prompt2prompt.py:729\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"89272dd972818067b59d4ac76caa675ce903a88ec14b92afbf7478710e2c5df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): examples/community/pipeline_stable_diffusion_xl_instantid.py:906-918 | examples/community/pipeline_stable_diffusion_xl_ipex.py:996-1008 | examples/community/stable_diffusion_xl_controlnet_reference.py:1140-1152 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1150-1162 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1396-1408 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:992-1004 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1197-1209 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1381-1393 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1128-1140 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1126-1138 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:839-851 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 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 11 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:836\u0060 calls \u0060prepare_extra_step_kwargs\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_ipex.py:908\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":"examples/community/pipeline_stable_diffusion_xl_instantid.py"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b37103918de4587a2416da431e5251625d809723955a3100708ecfbed68c46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 11): examples/community/pipeline_stg_ltx.py:351-362 | examples/community/pipeline_stg_ltx_image2video.py:374-385 | examples/community/pipeline_stg_mochi.py:358-369 | src/diffusers/pipelines/chroma/pipeline_chroma.py:307-319 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:334-346 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:336-348 | src/diffusers/pipelines/ltx/pipeline_ltx.py:325-336 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:411-422 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:594-605 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:348-359 | src/diffusers/pipelines/mochi/pipeline_mochi.py:296-307 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_ltx.py:351\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":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfba2e4f7f5dc62eb5f0c45d22c2af2027e8a22fe7fedff4d4234a86a923ec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:168-180 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:203-215 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:185-197 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:218-230 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:349-361 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:356-368 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:314-326 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:349-361 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:188-201 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:198-210 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:217-229 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:168\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a0903825a78ed28ccae5020f0ba10198ced9dd88262efd6b520be16891f52a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 10): examples/community/fresco_v2v.py:2414-2426 | examples/community/rerender_a_video.py:848-860 | examples/community/rerender_a_video.py:1026-1038 | examples/research_projects/anytext/anytext.py:2261-2273 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1240-1252 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1043-1055 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1281-1293 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1259-1271 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1234-1246 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1402-1414 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/rerender_a_video.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2414}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf396e3bc3414512606ef4dad207d09a77da832fa32f4b1912ba82cc8e69c2a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 10): examples/community/hd_painter.py:58-70 | examples/community/hd_painter.py:158-170 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:206-218 | examples/community/pipeline_stable_diffusion_xl_instantid.py:206-218 | src/diffusers/models/attention_processor.py:1141-1153 | src/diffusers/models/attention_processor.py:4279-4291 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:83-95 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:248-260 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:207-219 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:238-250 \u2014 there are 10 copies across 8 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 10 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/hd_painter.py:56\u0060 calls \u0060group_norm\u0060, \u0060transpose\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:205\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":"examples/community/hd_painter.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6ef2473d97d3e94dc96df21ef7f1fa9ddf479f8f2dbc6538e5300720e79662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 10): examples/community/pipeline_controlnet_xl_kolors.py:1063-1075 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1253-1265 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1465-1477 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:837-849 | examples/community/pipeline_stable_diffusion_xl_instantid.py:827-839 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1151-1163 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1150-1162 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1312-1324 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1405-1417 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1092-1104 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:837\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, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1165\u0060 calls \u0060isinstance\u0060, \u0060list\u0060, \u0060zip\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py:841\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"90abbc1da0837c400feb05a5a2fef9375c4053227b369139b5c3ad08937204c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 10): examples/community/pipeline_stg_wan.py:362-374 | src/diffusers/modular_pipelines/wan/before_denoise.py:558-570 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:320-332 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:339-351 | src/diffusers/pipelines/helios/pipeline_helios.py:335-347 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:357-369 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:669-681 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:333-345 | src/diffusers/pipelines/wan/pipeline_wan.py:338-350 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:646-658 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_wan.py:362\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":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab671589bb60f82d0e1d07e06f190d6181e22fe9e711f7514baf35daf483ec77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 9): examples/community/img2img_inpainting.py:250-259 | examples/community/multilingual_stable_diffusion.py:247-256 | examples/community/seed_resize_stable_diffusion.py:170-179 | examples/community/speech_to_image_diffusion.py:118-127 | examples/community/wildcard_stable_diffusion.py:272-281 | examples/research_projects/rdm/pipeline_rdm.py:92-101 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:405-414 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:430-442 | src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py:108-117 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/multilingual_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 373 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/img2img_inpainting.py:250\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64a7c481f2c7f0b03cc36ebb7f2ddb1b6d37442207271b4e771cbc6cbc26147"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): examples/community/pipeline_animatediff_controlnet.py:1094-1106 | examples/community/pipeline_animatediff_ipex.py:793-805 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:835-847 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1086-1098 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:992-1004 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1036-1048 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1324-1336 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:927-939 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:843-855 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 639 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64ad5903323af7570acbd60228a503dddfa25270e7c88ad1f080e9e346eabb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): examples/community/pipeline_controlnet_xl_kolors.py:339-351 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:363-375 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:413-425 | examples/community/pipeline_kolors_differential_img2img.py:327-339 | examples/community/pipeline_kolors_inpainting.py:600-612 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:558-570 | src/diffusers/pipelines/kolors/pipeline_kolors.py:301-313 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:321-333 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:318-330 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_controlnet_xl_kolors.py:339\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6e84ad4e65d5c053668ecce1731df4d6ecad118e223f7b7df91d2ef9b74428"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 9): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2166-2178 | examples/community/pipeline_kolors_inpainting.py:1599-1607 | examples/community/stable_diffusion_xl_reference.py:1113-1121 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1261-1269 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1453-1461 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1669-1677 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1226-1234 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1411-1419 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1633-1641 \u2014 before extracting anything, compare \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":2166}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0c8dad0057acb52f2abc5106abc3d363c4a47efa27ba352956966fa6e052d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 9): examples/community/pipeline_flux_differential_img2img.py:890-901 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:825-836 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:974-985 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:918-929 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1051-1062 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1110-1121 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:896-908 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:692-702 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:836-847 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 698 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:825\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ce3cb16cb20d3a8143b84c6880e244a305096ef65180afc200aa18f3369e55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:583-595 | scripts/convert_gligen_to_diffusers.py:347-359 | scripts/convert_i2vgen_to_diffusers.py:422-434 | scripts/convert_ms_text_to_video_to_diffusers.py:378-390 | scripts/convert_original_audioldm_to_diffusers.py:463-475 | scripts/convert_original_musicldm_to_diffusers.py:459-471 | scripts/convert_versatile_diffusion_to_diffusers.py:554-566 | scripts/convert_zero123_to_diffusers.py:431-443 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:581-593 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"913cf61609d5c2ccac366e755a081a498f9082b6943246c45aad6420d069540d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): src/diffusers/pipelines/pag/pipeline_pag_sd.py:892-905 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:843-855 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:907-919 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:712-725 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:923-936 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1092-1105 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1064-1077 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1231-1244 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1358-1371 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 9 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd.py:892\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd.py"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"6121c2f4d04cbc1206d2b70379d75659d35bbfc953a00e5199308111a042b743"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 9): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:694-707 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:937-950 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:908-921 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:823-836 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1049-1062 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:867-880 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:796-809 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:977-990 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:831-844 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:694\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b164dfab055e8485066b76679b20e80c3b80c80e38eb0accb837dd01e56ff99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): examples/community/fresco_v2v.py:1987-1999 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:846-858 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:688-700 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:599-611 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:543-555 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:692-704 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:528-540 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:768-780 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 123 separate duplicated blocks between them, totalling at least 1589 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1987\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1987}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c7417b28d70ab62043fce43d18b653512bdae7e3877f1eb15857cfb221cf7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): examples/community/fresco_v2v.py:2302-2314 | examples/community/pipeline_controlnet_xl_kolors.py:1074-1086 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1264-1276 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1476-1488 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:848-860 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1161-1173 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1416-1428 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1404-1416 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 464 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2302\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2302}}}],"partialFingerprints":{"codehealthFindingId/v1":"de336cc028d326284871d61a20df9de4307a14d317761511f361e4669f29badf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201313 lines \u00D7 9): examples/community/fresco_v2v.py:471-474 | examples/community/matryoshka.py:2791-2802 | examples/research_projects/anytext/anytext_controlnet.py:370-381 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:298-309 | src/diffusers/models/controlnets/controlnet.py:714-725 | src/diffusers/models/controlnets/controlnet_union.py:659-670 | src/diffusers/models/unets/unet_2d_condition.py:908-919 | src/diffusers/models/unets/unet_motion_model.py:1977-1989 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1208-1219 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060added_cond_kwargs\u0060 to \u0060Dict[str, Any]\u0060 in one and \u0060dict[str, Any]\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, \u0060examples/community/matryoshka.py:2802\u0060 calls \u0060reshape\u0060 and \u0060examples/community/fresco_v2v.py:474\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7af849c27da8a02b26dc79d5671e67aea19e4bce798534550b219e980d146f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 8): examples/community/mixture_tiling_sdxl.py:354-365 | examples/community/pipeline_demofusion_sdxl.py:157-168 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1244-1256 | examples/community/pipeline_kolors_differential_img2img.py:199-210 | src/diffusers/pipelines/kolors/pipeline_kolors.py:178-189 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:197-208 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:192-203 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:185-196 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 249 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"8353f208a4f3c7379d1e3302c880ae69f7d1e537d9975d09b1f1424c14914f9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): examples/community/scheduling_ufogen.py:425-437 | src/diffusers/schedulers/scheduling_ddim.py:464-476 | src/diffusers/schedulers/scheduling_ddim_parallel.py:463-475 | src/diffusers/schedulers/scheduling_ddim_parallel.py:595-607 | src/diffusers/schedulers/scheduling_ddpm.py:518-530 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:533-545 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:642-654 | src/diffusers/schedulers/scheduling_lcm.py:630-642 \u2014 before extracting anything, compare \u0060examples/community/scheduling_ufogen.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_ddim.py:464\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/scheduling_ufogen.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68bc6a76550bb81277897785c67244b2ea0caac5a67b2a8657ed7fd0e07bc2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 8): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:518-530 | scripts/convert_gligen_to_diffusers.py:283-294 | scripts/convert_original_audioldm_to_diffusers.py:399-410 | scripts/convert_original_musicldm_to_diffusers.py:395-406 | scripts/convert_svd_to_diffusers.py:386-398 | scripts/convert_versatile_diffusion_to_diffusers.py:468-479 | scripts/convert_zero123_to_diffusers.py:367-378 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:516-528 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21c896866be7a23efb45ce12a9ba9d0cce7d4ce7b85ca48106e97d717d664e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:651-663 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:667-679 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:604-616 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:620-632 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:775-787 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:791-803 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:834-846 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:852-864 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 730 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:651\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"f120ed3a2b9e269b48d806f229d956558641879d95f3f996e953d33c89338926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1506-1518 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1546-1558 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1942-1954 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1984-1996 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2373-2385 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2422-2434 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1584-1596 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1625-1637 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1506\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bae9b2add98d908e3001cb8b6be35da5c83b284405ee06be8801d55e6f7b70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 7): examples/community/gluegen.py:760-772 | examples/community/ip_adapter_face_id.py:1059-1071 | examples/community/regional_prompting_stable_diffusion.py:1040-1052 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:816-828 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1017-1029 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:978-990 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1094-1106 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:760\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":"examples/community/gluegen.py"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"be42236a0ceeaa8e3b11d1d7c9300e49f9efa155f9efc087266b75f6bcf9a65e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 7): examples/community/instaflow_one_step.py:588-600 | examples/community/stable_diffusion_ipex.py:197-209 | examples/community/stable_diffusion_ipex.py:653-665 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:603-613 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:669-681 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:718-730 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:586-598 \u2014 before extracting anything, compare \u0060examples/community/instaflow_one_step.py\u0060 and \u0060examples/community/stable_diffusion_ipex.py\u0060 as WHOLE FILES: this scan already matched 45 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/instaflow_one_step.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d76dea8f7bb028f71d2030e82f436d27565eabd4f170152211058a8dc2d9ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 7): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:237-249 | examples/research_projects/anytext/anytext.py:1280-1292 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:211-223 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:152-164 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:206-218 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:226-238 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:225-237 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bf44c7147525eb1e36789c6aff179b8725015a18531dffa9434452db7fcdb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 7): examples/community/pipeline_stable_diffusion_pag.py:72-82 | examples/community/pipeline_stable_diffusion_pag.py:186-196 | src/diffusers/models/attention_processor.py:1118-1130 | src/diffusers/models/attention_processor.py:2501-2513 | src/diffusers/models/attention_processor.py:2592-2603 | src/diffusers/models/attention_processor.py:2703-2714 | src/diffusers/models/attention_processor.py:3681-3692 \u2014 there are 7 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 7 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"57543bf2ef3411df46120e73899a690deda4c2ed1a310e7a9fc8320f9ff186ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 7): examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:590-602 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:363-375 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:244-256 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:285-297 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:301-313 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:277-289 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:307-319 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 995 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:360\u0060 calls \u0060isinstance\u0060, \u0060MultiControlNetModel\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:588\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"084ce046b27bd6200a5d363468961f14743f7ce381a7feabf6d81333da481df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 7): examples/community/stable_diffusion_xl_controlnet_reference.py:611-623 | examples/community/stable_diffusion_xl_reference.py:538-550 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1087-1099 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1250-1262 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1239-1251 | src/diffusers/pipelines/kolors/pipeline_kolors.py:845-857 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1059-1071 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_xl_reference.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 1016 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:625\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1253\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":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a0bd0c775b1e12d563a405c266639be00861c0dfca465bbe27c4248c35281a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201313 lines \u00D7 7): examples/community/adaptive_mask_inpainting.py:276-287 | examples/community/pipeline_kolors_inpainting.py:198-209 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:394-405 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:254-257 | examples/community/stable_diffusion_repaint.py:101-113 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:201-213 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:199-211 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/adaptive_mask_inpainting.py:287\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:257\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ebb5bae6875ceb382fcf8569e57eca391c9a5af6417101b56f690cba4d672c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): examples/community/fresco_v2v.py:2431-2443 | examples/research_projects/anytext/anytext.py:2278-2290 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1276-1288 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1251-1263 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1419-1431 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1254-1266 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/research_projects/anytext/anytext.py\u0060 as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 920 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2431\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, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1436\u0060 calls \u0060cat\u0060 and \u0060examples/community/fresco_v2v.py:2447\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7373db597252458d24828b79996c62764108670fd1fd2c2ef077f0703f0b7a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): examples/community/lpw_stable_diffusion_xl.py:661-674 | examples/community/pipeline_sdxl_style_aligned.py:475-488 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:407-419 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:359-372 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:260-273 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:253-266 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 1530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"298dca1eceb0db957665e004a48bb797b48dd0104c4519967f08e900bc0ec6a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): examples/community/pipeline_animatediff_ipex.py:694-707 | examples/community/pipeline_animatediff_ipex.py:875-888 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:856-868 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:848-861 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:906-919 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:810-823 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 788 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:694\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":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"b300105ef841d96096352f4430768831b3edce0b3a05032e974f746954bb8f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): examples/community/pipeline_flux_differential_img2img.py:959-971 | src/diffusers/pipelines/flux/pipeline_flux_control.py:814-826 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:897-909 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1051-1063 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:963-975 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:858-870 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py:814\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b2f27071a48ffc25f260737dbe258c3345c51b0efc4ecfdfe729111d8504bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): examples/community/pipeline_hunyuandit_differential_img2img.py:1095-1107 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1001-1013 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:735-747 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:971-983 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:863-875 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:916-928 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27a2e62ab3bc6ea4ed2cd655a9ef2c812dd8e1bf0328844e34763202d461b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1153-1165 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1150-1162 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1309-1321 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1046-1058 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1088-1100 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1278-1290 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 914 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1103\u0060 calls \u0060max\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1165\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":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0313ec05f9a26ebd1f2267081ddb05bdfc5c699ce1c3a977fca86052c59d31b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 6): scripts/convert_joyimage_edit_to_diffusers.py:122-132 | scripts/convert_skyreelsv2_to_diffusers.py:470-482 | scripts/convert_wan_to_diffusers.py:748-760 | scripts/convert_wan_to_diffusers.py:1070-1082 | scripts/convert_wan_to_diffusers.py:1111-1123 | src/diffusers/loaders/single_file_utils.py:3463-3475 \u2014 before extracting anything, compare \u0060scripts/convert_joyimage_edit_to_diffusers.py\u0060 and \u0060scripts/convert_skyreelsv2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_wan_to_diffusers.py:1065\u0060 calls \u0060replace\u0060 and \u0060scripts/convert_joyimage_edit_to_diffusers.py:121\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":"scripts/convert_joyimage_edit_to_diffusers.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"786f973a0ff4f35f6510aaf8e6d224accdb50d63a8fdcc7b039e9c6a1d4c93a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): src/diffusers/guiders/perturbed_attention_guidance.py:175-187 | src/diffusers/guiders/perturbed_attention_guidance.py:195-207 | src/diffusers/guiders/skip_layer_guidance.py:171-183 | src/diffusers/guiders/skip_layer_guidance.py:191-203 | src/diffusers/guiders/smoothed_energy_guidance.py:160-172 | src/diffusers/guiders/smoothed_energy_guidance.py:180-192 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/perturbed_attention_guidance.py\u0060 and \u0060src/diffusers/guiders/skip_layer_guidance.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/perturbed_attention_guidance.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1cd247b91440c3b315ed175d193c71ff16787fc7c10196980ba0795b1b1e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): src/diffusers/models/controlnets/controlnet.py:670-682 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:599-611 | src/diffusers/models/controlnets/controlnet_union.py:615-627 | src/diffusers/models/controlnets/controlnet_xs.py:1008-1020 | src/diffusers/models/unets/unet_3d_condition.py:542-554 | src/diffusers/models/unets/unet_motion_model.py:1946-1958 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 317 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed917cf8c58ee1373060c2cd19ef91045b8af83d4a14d58ded62b0b98144f59c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): src/diffusers/modular_pipelines/flux2/before_denoise.py:361-373 | src/diffusers/modular_pipelines/flux2/before_denoise.py:424-436 | src/diffusers/pipelines/flux2/pipeline_flux2.py:360-372 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:271-283 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:318-330 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:275-287 \u2014 there are 6 copies across 5 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 6 sites; resolving a subset leaves the remainder to drift apart. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"490eb7670d4d6cd4cb2da457547613dee9df24ef4762c8338866448aa560dc6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): src/diffusers/pipelines/allegro/pipeline_allegro.py:295-307 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:318-330 | src/diffusers/pipelines/latte/pipeline_latte.py:289-301 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:270-282 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:383-395 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:327-339 \u2014 \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 and \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.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 24 separate duplicated blocks between them, totalling at least 305 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/latte/pipeline_latte.py:287\u0060 calls \u0060ones_like\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:293\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"544ad7ab664ecb146a124e24d13d7c98aada6216f2d3cd01aad609e14895257e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 6): src/diffusers/pipelines/bria/pipeline_bria.py:581-589 | src/diffusers/pipelines/sana/pipeline_sana.py:841-853 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:904-916 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:713-725 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:878-890 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:910-922 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/sana/pipeline_sana.py:841\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98214b5bd17a2068c3f3378165bbbc765af2ac2182c263a644dfc7d4db7cf8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:171-183 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:204-216 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:335-347 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:342-354 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:300-312 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:335-347 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 396 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c96a3380516650b76be25eccbc8a62e66b3dfb80a79c597251e2e7b9e949b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 5): examples/community/latent_consistency_interpolate.py:926-938 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:953-961 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:882-890 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:817-828 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:907-918 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_interpolate.py\u0060 and \u0060src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 466 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:962\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint.py:831\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e388972258337cbe56aca9445b9423178dcd09875b72ccc0776609b8ab5f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 5): examples/community/matryoshka.py:1107-1118 | src/diffusers/models/unets/unet_2d_blocks.py:2392-2403 | src/diffusers/models/unets/unet_3d_blocks.py:1368-1380 | src/diffusers/models/unets/unet_dreamlite.py:1014-1026 | src/diffusers/models/unets/unet_dreamlite.py:1174-1186 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_blocks.py:1368\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ca989f3d73a666b17e87f1fbf3bd1af8fa927db20d7111d15a22c6e6f6e011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 5): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1333-1345 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1622-1633 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:910-920 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1471-1481 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1459-1469 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 119 separate duplicated blocks between them, totalling at least 2012 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e65439ac931ac98b54446a79e6b73e9a76a0a7c0b95fdb38e7c8e4c0e666d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): examples/community/pipeline_zero1to3.py:392-404 | examples/community/pipeline_zero1to3.py:420-432 | examples/community/stable_unclip.py:24-36 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:155-167 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:225-237 \u2014 before extracting anything, compare \u0060examples/community/pipeline_zero1to3.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_zero1to3.py:420\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":"examples/community/pipeline_zero1to3.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66611c50dc5a9cccb12be8fe62b8b1912a9395fb06595fa1eff53c98d80eaf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 5): examples/community/stable_diffusion_xl_reference.py:1062-1073 | src/diffusers/pipelines/kolors/pipeline_kolors.py:972-984 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1152-1164 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1200-1210 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1387-1398 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_reference.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 464 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1213\u0060 calls \u0060to\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:986\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":"examples/community/stable_diffusion_xl_reference.py"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b1fab63e108c7c37446e75dd8329a6fbe8bffd79ebe7ad98cd1e7376f78455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): examples/community/unclip_text_interpolation.py:133-145 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:137-149 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:315-327 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:273-285 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:308-320 \u2014 before extracting anything, compare \u0060examples/community/unclip_text_interpolation.py\u0060 and \u0060src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 292 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_text_interpolation.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"339527d2948a726159ddd40d111eae1bb1e29d174caa1094d672f74f3a348d22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 5): scripts/convert_joyimage_edit_to_diffusers.py:113-122 | scripts/convert_skyreelsv2_to_diffusers.py:458-470 | scripts/convert_wan_to_diffusers.py:736-748 | scripts/convert_wan_to_diffusers.py:1053-1065 | src/diffusers/loaders/single_file_utils.py:3451-3463 \u2014 before extracting anything, compare \u0060scripts/convert_joyimage_edit_to_diffusers.py\u0060 and \u0060scripts/convert_skyreelsv2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_joyimage_edit_to_diffusers.py:113\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, \u0060scripts/convert_wan_to_diffusers.py:1070\u0060 calls \u0060replace\u0060 and \u0060scripts/convert_joyimage_edit_to_diffusers.py:123\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":"scripts/convert_joyimage_edit_to_diffusers.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"098386273b5625bbd048e893b633170b5e6be3fce1643b35986b4a8d62f5cebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 5): src/diffusers/models/transformers/transformer_anyflow.py:101-110 | src/diffusers/models/transformers/transformer_anyflow.py:154-163 | src/diffusers/models/transformers/transformer_anyflow_far.py:269-278 | src/diffusers/models/transformers/transformer_anyflow_far.py:323-332 | src/diffusers/models/transformers/transformer_sana_video.py:333-345 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow.py:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"985e53102a1f3cbcca2dfe802302ad850e3c456e205511930e4f0711b7537e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 5): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:540-552 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:577-589 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:497-509 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:502-512 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:540-550 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py:540\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:497\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:535\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9702c0d707a56f7a74ec2e6ace76c5a00381a072162e5236d395b0540c1951b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 5): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:698-710 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:822-834 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:943-952 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:940-952 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1053-1062 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"461196b194b3be14e3abf86c6b190fbc3828423b34987576832436e262bdbcd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:794-806 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:862-874 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:887-899 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1020-1032 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1212-1224 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_fill.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 993 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:794\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"90aeb0c84baf872e131de153b0a73dc1d52218d868fec259354e11deed86c54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 5): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:628-638 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:638-650 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:636-647 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:738-749 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:907-918 \u2014 \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py\u0060 and \u0060src/diffusers/pipelines/ovis_image/pipeline_ovis_image.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 23 separate duplicated blocks between them, totalling at least 265 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:628\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:637\u0060 calls \u0060set_begin_index\u0060 and \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:625\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"459b9cd5c2db025b8aa97d3124214e324471cf10b0f74c2c69c66d288e3ce7c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:802-814 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:653-665 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:718-730 | src/diffusers/schedulers/scheduling_sasolver.py:630-642 | src/diffusers/schedulers/scheduling_unipc_multistep.py:805-817 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:802\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:800\u0060 calls \u0060_sigma_to_alpha_sigma_t\u0060 and \u0060src/diffusers/schedulers/scheduling_sasolver.py:628\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"50608816cf51e9875f16f028422b1c412711d0a6731fdc013892840762a2eaed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/community/latent_consistency_img2img.py:375-387 | examples/community/latent_consistency_txt2img.py:290-302 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:619-631 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:718-730 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/latent_consistency_img2img.py:375\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":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0aa21705663f576f61e3827d006441eba3da69c6f3e711a4d760ebfbcbdc66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/community/matryoshka.py:2171-2183 | src/diffusers/models/unets/unet_2d_condition.py:378-390 | src/diffusers/models/unets/unet_dreamlite.py:1793-1805 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:668-680 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2171}}}],"partialFingerprints":{"codehealthFindingId/v1":"36da2f0588ff00e5283afc74daf6f8d34e93a0e52f1217580c3dcb578a185700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/community/matryoshka.py:2259-2271 | src/diffusers/models/unets/unet_2d_condition.py:461-473 | src/diffusers/models/unets/unet_dreamlite.py:1874-1886 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:780-792 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42d7b3e9571809714065d5641b1d7cd026bd33c4add2918ad31ddeb2e365331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/community/pipeline_animatediff_controlnet.py:936-948 | examples/community/rerender_a_video.py:755-767 | examples/community/stable_diffusion_controlnet_reference.py:265-277 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:897-909 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/stable_diffusion_controlnet_reference.py:262\u0060 calls \u0060is_compiled_module\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py:933\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd34c3cd23088c8f99dc49556bf137667dd59ce7dc9d0335414a56f975fdca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/community/pipeline_kolors_differential_img2img.py:498-510 | src/diffusers/pipelines/kolors/pipeline_kolors.py:468-480 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:492-504 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:486-498 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 1270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_kolors_differential_img2img.py:498\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_kolors_differential_img2img.py:496\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:467\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":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"25258619920036c79aab5c83542e9b81c7f4d49aed2530809546ba2a4a0b07d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/community/pipeline_stg_cogvideox.py:391-403 | src/diffusers/pipelines/allegro/pipeline_allegro.py:594-606 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:337-349 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:347-359 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 289 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_cogvideox.py:391\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":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"3546750039d7ab3f518e43ba31413776e3dd233f23d30e04005a3a1ddf6e87d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/community/pipeline_stg_cogvideox.py:796-808 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:731-743 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:797-809 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:812-824 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:731\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":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"750eeff28f44b13b5d293f9b9b80248e929f9340a17ab3984a2479b669ad12e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/community/pipeline_stg_ltx.py:794-806 | examples/community/pipeline_stg_ltx_image2video.py:867-879 | src/diffusers/pipelines/ltx/pipeline_ltx.py:771-783 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:844-856 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:841\u0060 calls \u0060unsqueeze\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:768\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":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"875699f6f5f28ca87262c3584378421f860da671a1088c9e3dc86443c6338298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/community/pipline_flux_fill_controlnet_Inpaint.py:231-243 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:224-236 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:217-229 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:219-231 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:231\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":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f5e2bd7d20ab3b6f34bf0e2b418aa7b9f0de53d9494fcb61b025147915c8ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 4): scripts/convert_mochi_to_diffusers.py:72-80 | scripts/convert_mochi_to_diffusers.py:114-126 | src/diffusers/loaders/single_file_utils.py:2732-2740 | src/diffusers/loaders/single_file_utils.py:2774-2786 \u2014 before extracting anything, compare \u0060scripts/convert_mochi_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 188 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_mochi_to_diffusers.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c189e4441736f4eb812ba41aae71bf4fe943fedec98f38a0da07a84173080ad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/diffusers/models/transformers/transformer_bria.py:483-495 | src/diffusers/models/transformers/transformer_bria_fibo.py:274-286 | src/diffusers/models/transformers/transformer_flux.py:394-406 | src/diffusers/models/transformers/transformer_longcat_image.py:247-259 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f3dc1b710b7f8dda607e1b35929409cae7e9b4cf58884efc8b0cee9b801320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/diffusers/models/transformers/transformer_chronoedit.py:146-158 | src/diffusers/models/transformers/transformer_helios.py:140-152 | src/diffusers/models/transformers/transformer_wan.py:143-155 | src/diffusers/models/transformers/transformer_wan_animate.py:626-638 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9123958c5290b611bde023da17b04cdee0a2c9b6589424171b971923ad914b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): src/diffusers/models/transformers/transformer_chronoedit.py:500-510 | src/diffusers/models/transformers/transformer_wan.py:485-495 | src/diffusers/models/transformers/transformer_wan_animate.py:964-974 | src/diffusers/models/transformers/transformer_wan_vace.py:108-120 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_wan.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 632 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_chronoedit.py:500\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e18ea7121e7856bcf5006f23a8a0031c7082a64fea2abf35689f9d89ded9eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): src/diffusers/models/transformers/transformer_hunyuan_video.py:139-150 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:116-128 | src/diffusers/models/transformers/transformer_hunyuanimage.py:134-145 | src/diffusers/models/transformers/transformer_motif_video.py:193-204 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b45a7b1d70a8d843c08d158bbed977322295cf6cf251f4af5e2b99198d414eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py:119-131 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:277-289 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:310-322 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:350-362 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b93e304d1f16c6c4e36c2db9f3ddcd60013ab441f41c6e32bfd94a0c5def1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:809-821 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1026-1038 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1012-1022 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1266-1276 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py:809\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1010\u0060 calls \u0060get_timesteps\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py:809\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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f87fe025ae91c2ef52336ed6917b83a062ca2834f381c1221f400784408f940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:168-180 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:188-200 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:198-210 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:207-219 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3c6b1c131393f6a9a31cc1ddc53692228718b139a4b788fe2fcbc5be8dd406"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:158-170 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:145-156 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:149-161 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:168-180 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"038cb04f7e84082bcbcbe3cfd1d7e6f20f65faf2cb27d96b3ba6aa030cc1b3ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:635-645 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:519-531 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:677-689 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:504-516 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:635\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be72c6ef42e5d9ba7cd6ee3f29acd7f9641f24ba7dc21a47adbf3405f6c3a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:853-865 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:741-753 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:927-939 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:698-710 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:853\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04c384a8bf4e88693a277fe00c6c0941f63abffdfe74ffd839a042a1a5a995c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1337-1349 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1762-1774 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2168-2180 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1415-1427 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1337\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c2ffa7d326fc174d499dd0c73ba298ed1264d77e1b2c4edbbaf0ea7ffb0320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1922-1934 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1964-1976 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2352-2364 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2401-2413 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 2039 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1922}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab5c17cef2edce8bd3218168d265caa1de5a1e4b1e8803e709392d2686a4f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:685-697 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:565-577 | src/diffusers/pipelines/wan/pipeline_wan.py:632-644 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:691-703 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:685\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, \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:563\u0060 calls \u0060cache_context\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_video2video.py:689\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":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"a966a70cced192595c95fc536b5554c9e756e5d02383a12f93e67ac172c7d546"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1406-1417 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:990-1001 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1022-1033 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1278-1290 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 721 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1036\u0060 calls \u0060max\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1418\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bc6d4ea439d0785ebde443581fb890d2c356d7009798c16ac5958bae1cb5a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1604-1616 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1672-1684 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1335-1347 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1527-1539 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 117 separate duplicated blocks between them, totalling at least 1765 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"9171e58d94bf8b2b83917431dcf1238fde43e1a2f091d6f7e0d7c39b5f4653b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/community/matryoshka.py:1633-1645 | src/diffusers/models/unets/unet_2d_blocks.py:77-89 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:725-737 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_blocks.py:77\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":"examples/community/matryoshka.py"},"region":{"startLine":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"1080a82fa43fe9e05237f68e3809c49ec4e01c55e4d1f1ac652d548ca23f4a23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/community/matryoshka.py:1763-1775 | src/diffusers/models/unets/unet_2d_blocks.py:362-374 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:782-794 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_blocks.py:362\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":"examples/community/matryoshka.py"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"10819ebd42e2c93cb6f8e43ed62fd3d7cb9091b24e7b53dce8e75a711336c0eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): examples/community/pipeline_flux_differential_img2img.py:213-225 | examples/community/pipeline_flux_with_cfg.py:183-195 | src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py:68-79 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_with_cfg.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 532 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060VaeImageProcessor\u0060 names \u0060...image_processor\u0060 in one and \u0060diffusers.image_processor\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5999f997b555a55e331558a954411e8a24961234197fdf07b80d7bebbca57c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): examples/community/pipeline_kolors_inpainting.py:1570-1581 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1262-1274 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1604-1615 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 862 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ed7dee3310e69960c7904a027bd2b8737ae9bb10794db5c17d560516cb926a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:812-824 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:153-161 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:420-432 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:812\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e05bf9d1700f5da2073f26056941e75002717654486d1b00d1710288bdd0d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:416-443 | examples/community/pipeline_stable_diffusion_xl_instantid.py:416-443 | src/diffusers/pipelines/consisid/pipeline_consisid.py:112-139 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52d9975184bfc0cb57204b7b7c1e856c1e229bb414ef0b2f2430dd8d76b1d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/community/pipeline_stg_hunyuan_video.py:244-256 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:208-220 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:183-195 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 451 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:222\u0060 calls \u0060getattr\u0060 and \u0060examples/community/pipeline_stg_hunyuan_video.py:258\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":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf56f12ea2b21d5fbd9fd42f70a6497a6d0687f84c846fc95a8596b50d70c893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/community/pipeline_stg_mochi.py:296-308 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:349-361 | src/diffusers/pipelines/mochi/pipeline_mochi.py:234-246 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_mochi.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_condition.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 413 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c19a0f0c71ed4e5cdf0407aebd187f2f72f2d952ff430072c89812545eef0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): examples/community/pipeline_z_image_differential_img2img.py:417-427 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:817-829 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:819-831 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_z_image_differential_img2img.py:417\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":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e69ac9248c1e042784fc43462c0bd81020cbd582e0cc3dd44442ac0e9d8bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/community/scheduling_ufogen.py:216-228 | src/diffusers/schedulers/scheduling_ddpm.py:232-244 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:245-257 \u2014 before extracting anything, compare \u0060examples/community/scheduling_ufogen.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddpm.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/scheduling_ufogen.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8c1fd8663a4ca55e5209b3f4f00891c5582ba4abf5ad4c2af2b4604fc64de5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1167-1179 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1217-1229 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1105-1117 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cbd4b71f57e6676473a05b66930730726239b4b0e04a88e9f7e5792d9ee985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1595-1607 | scripts/convert_zero123_to_diffusers.py:724-736 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:1495-1507 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_zero123_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 877 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b57bfddf32dc5ee0a795835a215601e2bdb49720a7d0a21c8e1d2e4c1e3408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/models/adapter.py:205-217 | src/diffusers/models/controlnets/multicontrolnet.py:202-214 | src/diffusers/models/controlnets/multicontrolnet_union.py:219-231 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/multicontrolnet.py\u0060 and \u0060src/diffusers/models/controlnets/multicontrolnet_union.py\u0060 as WHOLE FILES: 86% 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 2 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/adapter.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cc9c1febc9fd63d5537c67a37b9794eb85da4b80e4cb4c456b0ccf136d788f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/models/attention.py:819-831 | src/diffusers/models/attention.py:1422-1434 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:100-112 \u2014 before extracting anything, compare \u0060src/diffusers/models/attention.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/attention.py:1436\u0060 calls \u0060set_free_noise_properties\u0060 and \u0060src/diffusers/models/attention.py:834\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f7193d1e32d69d561517a80c4bb83970386a59860170cd28c1025f8bf54484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/diffusers/models/attention_processor.py:1313-1324 | src/diffusers/models/attention_processor.py:2441-2452 | src/diffusers/models/attention_processor.py:4116-4128 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb9fbaeed2cb6651a4833c093fe6ada70d880720151e91051ce53905b6c4c9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/diffusers/models/attention_processor.py:4357-4369 | src/diffusers/models/attention_processor.py:4583-4594 | src/diffusers/models/attention_processor.py:4820-4831 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/attention_processor.py:4818\u0060 calls \u0060batch_to_head_dim\u0060 and \u0060src/diffusers/models/attention_processor.py:4581\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4357}}}],"partialFingerprints":{"codehealthFindingId/v1":"874c354c8ed88f39b2e341c4edb0f07c8eabae27ac22c226039066a3ff02483b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:395-407 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:407-419 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:449-461 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dee84b2b7cb72e68c67fa779516a8d87a55bea3dac58c03ea39ca615a16f456"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:310-340 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:318-348 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:314-344 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"624ce56401a0a971864f5d3d181673570a4cd10bd321faa5ba12759e04e4c5aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:726-738 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:709-721 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:677-689 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ed6d42d71b573be6d000cffa7725b3af22e489f3f8950eadc4ffde3fdc07c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:842-853 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1306-1318 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1192-1204 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1306\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea85b56bb8acfc0050bb8678ec46635d0d5e03bc4815275702b97230d67fb0b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video.py:463-475 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:346-358 | src/diffusers/models/transformers/transformer_hunyuanimage.py:399-411 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"377e924a7e985f7d74c95cf8eef7cc39cc0fe57b5af621084a62a859656574cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:122-134 | src/diffusers/models/transformers/transformer_nucleusmoe_image.py:327-339 | src/diffusers/models/transformers/transformer_qwenimage.py:560-573 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage_edit_plus.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"884927bc3cfede2fa9e2b1b1065c06412155a957f9d87a111b569d9dcb3bc166"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/models/transformers/transformer_ltx.py:126-138 | src/diffusers/models/transformers/transformer_ltx2.py:344-356 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:330-342 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx.py\u0060 and \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"32aa031cedee69e0afcfd734dedc6f592c251c0cb87c7525f0ca61c05dee5b94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/models/unets/unet_2d.py:173-185 | src/diffusers/models/unets/unet_3d_condition.py:197-209 | src/diffusers/models/unets/unet_i2vgen_xl.py:234-246 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_condition.py\u0060 and \u0060src/diffusers/models/unets/unet_i2vgen_xl.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d.py:173\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca578ecf6d99bbb128ca054345345fd12a585c967a9e81c0bb64dd5e8d7e2f3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:1357-1369 | src/diffusers/models/unets/unet_dreamlite.py:909-919 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1588-1600 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf3f6dc821b82179d5d552b21fbdadc1fce45ae5a0a896df8b7b5429bdea254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/diffusers/modular_pipelines/anima/before_denoise.py:313-324 | src/diffusers/modular_pipelines/flux2/inputs.py:159-170 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:346-358 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/anima/before_denoise.py:313\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:341\u0060 calls \u0060check_inputs\u0060 and \u0060src/diffusers/modular_pipelines/anima/before_denoise.py:308\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e81ebf04b0f2cb8771649bbb280706e25bc5facdbd6bf157a175a67e74ce23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/diffusers/modular_pipelines/flux/inputs.py:199-211 | src/diffusers/modular_pipelines/qwenimage/inputs.py:424-436 | src/diffusers/modular_pipelines/stable_diffusion_3/inputs.py:293-304 \u2014 \u0060src/diffusers/modular_pipelines/qwenimage/inputs.py\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_3/inputs.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 3 separate duplicated blocks between them, totalling at least 87 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060FluxModularPipeline\u0060 in one and \u0060QwenImageModularPipeline\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, \u0060src/diffusers/modular_pipelines/qwenimage/inputs.py:439\u0060 calls \u0060pack_latents\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_3/inputs.py:306\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed38c30996a9b1f921c518c4f191fabfbb45270f5a20926ed6c0f15fad792d8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/diffusers/modular_pipelines/helios/before_denoise.py:531-543 | src/diffusers/pipelines/helios/pipeline_helios.py:703-714 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:779-790 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios.py\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/helios/before_denoise.py:531\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c15b7d392968fcabbfde8b22e077430072c838313033f43ff009684e441258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/diffusers/modular_pipelines/helios/encoders.py:82-94 | src/diffusers/modular_pipelines/wan/encoders.py:72-83 | src/diffusers/modular_pipelines/wan_animate_2/encoders.py:51-62 \u2014 \u0060src/diffusers/modular_pipelines/helios/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/wan/encoders.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 3 separate duplicated blocks between them, totalling at least 33 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/modular_pipelines/wan/encoders.py:70\u0060 calls \u0060prompt_clean\u0060 and \u0060src/diffusers/modular_pipelines/wan_animate_2/encoders.py:49\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/encoders.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"edeb5939c68115ffadefff52dc481d39b5449083e825a6e30ef69899ee0fc559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:958-970 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:665-677 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:965-973 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:958\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"637369d97ac17937f99f5bccf840cb9fcc334d4b3b4b0206641d8404706d310d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/encoders.py:198-210 | src/diffusers/modular_pipelines/minimax_h3_image/encoders.py:159-171 | src/diffusers/modular_pipelines/pika_h3_flex/encoders.py:201-213 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/encoders.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 11 separate duplicated blocks between them, totalling at least 429 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. 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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060MiniMaxH3ImageModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf72329f2c713a61f4732a71f5821aa13940d225e55b2f21a80057f378e761a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:823-835 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:339-351 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:376-388 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae1071a28eb6e7f2fa931a3fdeb548009c9137ee75bf549882f57c30b8a5deb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1136-1148 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1256-1268 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1218-1230 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1630 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67e14de49beb04bb1527a74dc880047761cd3224aba1859ef81be4247408609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:69-81 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:84-96 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py:92-104 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py\u0060 and \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccf0427f2401a52b44b49da1da77d1f1b53872d26c45ec249a7e6d695f578f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:212-226 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:153-165 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:168-180 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"aecf8d1430c8cec3e31ab28e43037fd5b39479f486864f174e32619631fe47e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:481-493 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:592-604 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:708-720 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d13aa0aa9d87c1344aae6b8c80dda03250f1deb531a0f054c9c8c165e540e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1053-1065 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:942-955 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1010-1023 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_kolors.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 289 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:942\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_kolors.py"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90eee4a78bfc96d4359d9fcc544ec26c9776b4b7d68de242e4fa4ada66eb8f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): src/diffusers/pipelines/sana/pipeline_sana_sprint.py:373-383 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:397-407 | src/diffusers/schedulers/scheduling_scm.py:158-170 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 833 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_scm.py:158\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"8359e8bb27aaaba9c544a12d2e40377f5d794e91b34410f91c5cc4e5d86745a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:796-808 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:855-867 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:892-904 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 770 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d03ac56bb0d3d2b75fb6c9ab0d2061e328de89092e773844547d426bda7f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:319-333 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:318-332 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:321-335 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 254 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2cc9c2d4937db2831c33f4daa5743fc401cb1e7cfd67527db156e42ca41770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 3): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:544-556 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:523-532 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:561-570 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 254 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:539\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:558\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"41105b273b79acbbdf434e6158f379cd473397b017088249b7eda4d40bd36a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1074-1086 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1115-1127 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1308-1320 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py\u0060 as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 1069 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1072\u0060 calls \u0060clone\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1113\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":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bacd3a6edffaa0693d5e2945bc80dee8719a89417b181c78db094e8a302450"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/schedulers/scheduling_deis_multistep.py:619-631 | src/diffusers/schedulers/scheduling_sasolver.py:625-637 | src/diffusers/schedulers/scheduling_unipc_multistep.py:800-812 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_sasolver.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd146971f0d6c9d7c1c937e118c2bb59efd512a1631a3555a940d3a6db015c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:287-299 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:200-212 | src/diffusers/schedulers/scheduling_euler_discrete.py:239-251 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6c074c4359afd07509a63eb8cc7889e9be651965d69973aa0cafd34a53e631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/schedulers/scheduling_heun_discrete.py:599-611 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:635-647 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:614-626 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_heun_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_heun_discrete.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9888498ff23109128982bd7394ca09d309c97d6413aa27211999afa54bee3d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): utils/check_doc_toc.py:73-85 | utils/check_doc_toc.py:108-120 | utils/check_doc_toc.py:157-169 \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":"utils/check_doc_toc.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d554ecd729fc8ea288a68c54739ac094070a4202692e48e197fcce4b918539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/pipeline_animatediff_controlnet.py:1043-1055 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:954-966 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 808 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bb9d3c483d16e196576f2d1a89decd3c592af45a21e770cb93a2691c6d30ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/pipeline_flux_kontext_multiple_images.py:762-774 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:651-663 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:762\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 \u0060image\u0060 to \u0060PipelineImageInput\u0060 in one and \u0060torch.Tensor\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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05775277c3964f254c8f573b434b7c66b8daabe6c755c7c30c8417e3a8c9a4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/pipeline_flux_semantic_guidance.py:1319-1331 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:848-860 \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 \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:848\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"559b422da3e2ebf75e3088977f6d526385b13c6e9820259b00310c7fb60c7cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/pipeline_stable_diffusion_boxdiff.py:283-301 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:725-737 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 565 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"62033bba2e19414d34d9f1a274f65ee05c0732e24b9398724700cff39cd99936"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:375-387 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:566-578 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 478 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"388bec03290a5d99edefad89143877f58f538ededf6b7295dbb0c75e9408796f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:1022-1034 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:837-849 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 837 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"58498c69cebd4023c5b3809cf1f2125b3ae9ef23fbc86dbd7b7dd04063c78201"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/research_projects/sana/train_sana_sprint_diffusers.py:160-172 | src/diffusers/models/transformers/sana_transformer.py:175-187 \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 \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py:160\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":"examples/research_projects/sana/train_sana_sprint_diffusers.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff941d173fda22c07446cef190497ce5f5a13267e767342b29ac3b6d1a4baa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): src/diffusers/hooks/mag_cache.py:261-273 | src/diffusers/hooks/mag_cache.py:314-324 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/hooks/mag_cache.py:261\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":"src/diffusers/hooks/mag_cache.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff313584ae47d8ea5cf0a58b1f7b5ee7805b5e466471db5d62d332a0132298f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/models/attention.py:947-959 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:239-251 \u2014 before extracting anything, compare \u0060src/diffusers/models/attention.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention.py:947\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"808e8bc929b76e9d66ce77184b92ea387e3b99f7f7f31558955e96c46a052941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/diffusers/models/attention_processor.py:5097-5108 | src/diffusers/models/attention_processor.py:5199-5211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":5097}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ba05b0e09d92ed9feee28c6fa81426c462aeed80aeb5311397ac7bd8f26c89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:98-110 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:132-144 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e3bae91c28ad675f827239749ceb6f8c1cb870c2d7d54983cccae103ba93df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:353-365 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:424-436 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf277877f1fca88963e57bc2200aa0454b411b3be19321fb601f53e8d101551"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:47-62 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:78-93 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"17131ec9586c4ae0052ab6228521c4eba99928385d38c0e9e6a28bc02b74d9e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1367-1379 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:989-1001 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:989\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0ffb609e0d0cc857fd904a889d9c2eceeddede10c9007dd0a603ba0693e691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:43-55 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:42-54 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"77863c77173752fcf54a91cd441db7f42746eb07a1da8adef982e2e066c252a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:349-361 | src/diffusers/models/transformers/ace_step_transformer.py:581-593 \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 \u0060src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:349\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/condition_embedders/condition_embedder_ace_step.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf83a37467e78e8c4da9647d5999b2ea69bd8c19da6bad8f59cf3486b5b71cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_qwenimage.py:76-86 | src/diffusers/models/transformers/transformer_qwenimage.py:843-855 \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 \u0060src/diffusers/models/controlnets/controlnet_qwenimage.py:76\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_qwenimage.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"904fd4623ae62694522efa289cf61a83b5426a6baf74e53423274c04987ae467"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_xs.py:126-138 | src/diffusers/models/controlnets/controlnet_xs.py:1179-1191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_xs.py:126\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3b57187b3ddb6da557928f66dddb71081617c56db83eb166df090276e8e4d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): src/diffusers/models/transformers/consisid_transformer_3d.py:38-48 | src/diffusers/models/transformers/consisid_transformer_3d.py:185-197 \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 \u0060dim\u0060 to \u0060int\u0060 in one and \u0060int = 3072\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":"src/diffusers/models/transformers/consisid_transformer_3d.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cf11e9ca951c55e206f3dd0c22c91cccf2865ce5544a8f65d8ff6266e2161d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/models/transformers/sana_transformer.py:211-223 | src/diffusers/models/transformers/transformer_sana_video.py:374-386 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/sana_transformer.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_video.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/sana_transformer.py:211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67cec2a55cadcecdaae1d389d10b927589890f0a0f34cdba7c4e7c577243504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/models/transformers/transformer_2d.py:465-477 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:485-497 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_2d.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b4ac19d3b8524d9ecb10d66578e96bdc078f373998855b500ba7e6192a1b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/models/transformers/transformer_2d.py:500-512 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:500-512 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_2d.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4a55c18b9f974e7a623a7fb68290bb1df74f7fd373338d33881c631ff2e3ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/transformer_helios.py:756-769 | src/diffusers/models/transformers/transformer_helios.py:775-788 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_helios.py"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"9470bf7bcdd9b6b4a09eeb91ede7045034494648040fb61c0c321d4f83af395c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx.py:545-556 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1506-1518 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_ltx.py:544\u0060 calls \u0060size\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1503\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":"src/diffusers/models/transformers/transformer_ltx.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e68a0977cc70fe3a2fad0b9b015147a25aa52ad592186fd37d103c241098d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201313 lines \u00D7 3): src/diffusers/models/transformers/transformer_ltx.py:145-147 | src/diffusers/models/transformers/transformer_ltx2.py:364-376 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:350-362 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx.py\u0060 and \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_ltx2.py:363\u0060 calls \u0060Linear\u0060, \u0060ModuleList\u0060 and \u0060src/diffusers/models/transformers/transformer_ltx.py:145\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"150dae57432146fb449fca5eacab0ab332229f30e467dbef3a3339504898088c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm.py:1944-1953 | src/diffusers/models/transformers/transformer_sana_wm.py:2393-2405 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_sana_wm.py:2393\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3f60bc93baf9fb1305968dcd3d3376832d47eaec5bf65ee9d61be906d92c05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm_refiner.py:861-872 | src/diffusers/models/transformers/transformer_skyreels_v2.py:133-145 \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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm_refiner.py"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"926cd9269055b58ad6350253b2bc81837981b73939c80effde6bf3b82b7d79c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/models/unets/unet_motion_model.py:2013-2025 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:630-642 \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 \u0060src/diffusers/models/unets/unet_motion_model.py:2013\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e1e09e77bd9f515b136752b063a4efc06e5b286828ad12e6fba626284ec794"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/modular_pipelines/anima/before_denoise.py:534-546 | src/diffusers/modular_pipelines/anima/before_denoise.py:614-626 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6b0b3e4c8e459f449836b956f998f3aff255c0c824af7a2954ca1e4caed4bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/modular_pipelines/cosmos/decoders.py:63-75 | src/diffusers/modular_pipelines/cosmos/decoders.py:250-262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/decoders.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b890ded8ac530d0ffde2d233135c1faec752ac0a93e0d9c030c9e90b67e820"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/modular_pipelines/cosmos/encoders.py:199-211 | src/diffusers/modular_pipelines/cosmos/encoders.py:455-467 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/cosmos/encoders.py:199\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":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe40d70208e2e52e240745e04f650c33344b874ec892730c70a21d9a281810a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): src/diffusers/modular_pipelines/cosmos/encoders.py:688-700 | src/diffusers/modular_pipelines/cosmos/encoders.py:794-804 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bd36b625efac95958597b5c907258074dad7222f25b7d5d56a33b4d17de1f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/modular_pipelines/flux/encoders.py:270-282 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:440-452 \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 \u0060src/diffusers/modular_pipelines/flux/encoders.py:270\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060FluxModularPipeline\u0060 in one and \u0060StableDiffusion3ModularPipeline\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":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2c9749db391d09cbc56c361e6159584375ba4c11fbf46080c5c7129d3ff472"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/modular_pipelines/kandinsky_s2v/denoise.py:227-239 | src/diffusers/modular_pipelines/kandinsky_s2v/denoise.py:298-310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/kandinsky_s2v/denoise.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afb376cd7010f1776ea98458f29d75d1f26bcc5f7bcc84b810fbe8d10854d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/modular_pipelines/ltx/denoise.py:143-155 | src/diffusers/modular_pipelines/ltx/denoise.py:376-388 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/ltx/denoise.py:143\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":"src/diffusers/modular_pipelines/ltx/denoise.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e9fa6b3730864196d54a43b249f8666caad61d684d9bd11de5cf0a9d558252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/modular_pipelines/ltx2/denoise.py:52-64 | src/diffusers/modular_pipelines/ltx2/encoders.py:791-803 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/denoise.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0beb3b7ede9fca3af501e5e00a36835ee97038aa5754ea42c238bffd36ea37ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): src/diffusers/modular_pipelines/ltx2/encoders.py:820-836 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1614-1632 \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":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"5209a8da4afb3a1fbbd29b97770c04deaa27a6c77eb076b60aab32c13f5c34f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_encoder.py:391-403 | src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py:383-395 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_encoder.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.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 5 separate duplicated blocks between them, totalling at least 140 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8c6442623ee5de0e17010d6e039dd6baffaee073f3a157350be048b7a5f213"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/references.py:211-232 | src/diffusers/modular_pipelines/pika_h3_flex/references.py:214-235 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/references.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/references.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 5 separate duplicated blocks between them, totalling at least 106 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. 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":"src/diffusers/modular_pipelines/minimax_h3/references.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d04bee55ec9afc9c505c232793a7812789da5e4ff203c0bc51cc2ca6da39de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:2105-2114 | src/diffusers/pipelines/pipeline_utils.py:335-347 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3999b41039a44b98db80ffdfa397b57ba36fb40a88f3516e9eabbd2a3203a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:223-235 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:344-356 \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":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"253238e1cab05a0b9a7e7bf3e2b1cf0e01ee2c6f04ac0dc58e2146b46735b64f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:304-316 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:289-301 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py\u0060 and \u0060src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 969 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:301\u0060 calls \u0060isinstance\u0060, \u0060from_unet2d\u0060 and \u0060src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:287\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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"0594032114a53aa6babfc0a73bec9d691a8b15ab014d4f168ce2f3e5a00f1cf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:361-375 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:381-395 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b60eb3c9af896e92a5a279a7766fa5a518345ec7ef5f5c0fac6b5c425b47163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:729-741 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:752-763 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:729\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"657b4344897f5a659d513863a924b1a96f4ee979d46fc5800ee0a4e5c20123da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:470-482 | src/diffusers/pipelines/consisid/pipeline_consisid.py:572-584 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py\u0060 and \u0060src/diffusers/pipelines/consisid/pipeline_consisid.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:470\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"05bb82e20c160d6b944d39c449cca80e13d6254772f5dcec044f291be00211fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1378-1390 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1492-1504 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1422 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdccf068d9abbe44ab5e25e8eb38b38bbcfd9d3af0fc372f5d4d96401f8577d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:442-454 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:419-431 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fcdd94a23823aafb009d5a0a594dad9106f8a43a2bdb3910bd072fabc0b4a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:815-826 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:956-968 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:815\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"5779382ed7681ec5877cdbafb42fa2986604db2905e369a7f3178b0182389d08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:639-651 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:758-770 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 518 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acf1af4c981481f82c48854c9e3616b01207b157284c0360d5f0bf049ac1bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:477-488 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:653-665 \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 \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:477\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fcb086391e64908c2b8c18f2fedd1a8508750d829c9d8433059dd416690626"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/deepfloyd_if/safety_checker.py:30-42 | src/diffusers/pipelines/deepfloyd_if/safety_checker.py:45-57 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/safety_checker.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba8fec1603c85771de67bc29814b01768563a41b58f79844b47a644c9b32849"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/deprecated/spectrogram_diffusion/continuous_encoder.py:80-92 | src/diffusers/pipelines/deprecated/spectrogram_diffusion/notes_encoder.py:74-86 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/spectrogram_diffusion/continuous_encoder.py:78\u0060 calls \u0060sum\u0060, \u0060roll\u0060, \u0060unsqueeze\u0060 and \u0060src/diffusers/pipelines/deprecated/spectrogram_diffusion/notes_encoder.py:73\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/spectrogram_diffusion/continuous_encoder.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9570f720887e83ebdea7466a9598b28cde55c2a6eecd8b666d1060e69a4285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:320-332 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:410-422 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"471e060eba1fc7f383474f6e540437c5332f3fc80b56eddf60f821260dadea5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:424-449 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:516-541 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py\u0060 and \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 185 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b934c6d10ac5fbe22ce37b1c284bed32cc15a9fb72355f62c42fdd8093cf39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:511-523 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:508-520 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py\u0060 and \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:511\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, \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:524\u0060 calls \u0060zeros_like\u0060 and \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:523\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"bade056ca16e3bb0806ca5d20b2a4c62217854faa5a5e94c274c2f76028515d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1133-1145 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1259-1271 \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":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"289482394cf726f9c9e693f308a060574d7f83131896c789846cdb95418de1b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux.py:835-847 | src/diffusers/pipelines/flux/pipeline_flux_control.py:783-795 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 659 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f0278b303ef8cc1e0ca36ad14a672d753ba1cf118ea4765850c1098a5049c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1220-1232 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1262-1274 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 328 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1218\u0060 calls \u0060_unpack_latents\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1261\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":"src/diffusers/pipelines/flux/pipeline_flux_inpaint.py"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4678a8255f0f04426d715095673e7b4fd213582da14b9180dc7e4180f0803f13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/diffusers/pipelines/flux2/pipeline_flux2.py:285-296 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:195-207 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py\u0060 as WHOLE FILES: this scan already matched 45 separate duplicated blocks between them, totalling at least 617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py:285\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7e06c818df2b0137ce2da8b7aad3ad87538e05a1e3fec5079a38c147fcb8eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:180-192 | src/diffusers/pipelines/wan/pipeline_wan.py:142-154 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 500 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8e6c4453d80af897abb58daae5569ac680263c2927d479128339ebab92998a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/lumina/pipeline_lumina.py:925-937 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:479-491 \u2014 \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py\u0060 and \u0060src/diffusers/pipelines/omnigen/pipeline_omnigen.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 6 separate duplicated blocks between them, totalling at least 96 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. 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":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"170d62e4d31ae240b42cd3ad4bea59bca0bb46921126ba292ffef79407553125"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1429-1441 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1503-1515 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 899 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1429\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda44928ff1af7959f3ab4726dcb8102f760eb9fbbd4a29c497ffb1eca1876dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:207-219 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:223-235 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py\u0060 as WHOLE FILES: this scan already matched 69 separate duplicated blocks between them, totalling at least 1053 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f576db1695e8c49f456216f2ea8c011ae998cbd871782996291a5460669d9637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:165-177 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:227-239 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53187b5b04aa91c4b455e60ff94b9f99c4f3d882f5a52553b41cf7547519a50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:712-723 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:880-892 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py\u0060 as WHOLE FILES: this scan already matched 76 separate duplicated blocks between them, totalling at least 906 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:712\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4bf212a7af24a172d46e99335cbb2dee3236309cadddc5e36ec5b91cca71d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:921-933 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:935-947 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 654 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"811d1d2607ca2ab530e193cc3cdd567e50f8ede642e5f6fb7c0907f23944f287"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/schedulers/scheduling_deis_multistep.py:342-354 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:485-497 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1cc7e7e3d2346646d2a3ba8b36cba57d22739470f523637b96692f2dc6a126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:411-423 | src/diffusers/schedulers/scheduling_sasolver.py:285-295 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_sasolver.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 401 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceaac2caaa9f3825a8471fa481155b769d723235a3d6e8dbe5a24293757441e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:356-368 | src/diffusers/schedulers/scheduling_heun_discrete.py:310-322 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_heun_discrete.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6f00e60c05ed4ca041815865a3788c921b64e28962608c5730598c9b18cf91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): src/diffusers/schedulers/scheduling_lcm.py:447-459 | src/diffusers/schedulers/scheduling_tcd.py:475-485 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_lcm.py\u0060 and \u0060src/diffusers/schedulers/scheduling_tcd.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 434 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_lcm.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56d18141d04979155fc65f3a906b994a058f8ebd44219d55fe4c1f68d42716f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 244): examples/community/adaptive_mask_inpainting.py:713-722 | examples/community/fresco_v2v.py:1749-1758 | examples/community/gluegen.py:477-486 | examples/community/instaflow_one_step.py:453-462 | examples/community/ip_adapter_face_id.py:734-743 | examples/community/latent_consistency_interpolate.py:573-582 | examples/community/llm_grounded_diffusion.py:514-523 | examples/community/lpw_stable_diffusion.py:689-698 | examples/community/lpw_stable_diffusion_xl.py:1002-1011 | examples/community/matryoshka.py:4107-4116 | examples/community/pipeline_animatediff_controlnet.py:514-523 | examples/community/pipeline_animatediff_img2video.py:626-635 | examples/community/pipeline_animatediff_ipex.py:483-492 | examples/community/pipeline_controlnet_xl_kolors.py:515-524 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:561-570 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:612-621 | examples/community/pipeline_demofusion_sdxl.py:432-441 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1577-1586 | examples/community/pipeline_flux_differential_img2img.py:470-479 | examples/community/pipeline_flux_kontext_multiple_images.py:533-542 | examples/community/pipeline_flux_rf_inversion.py:460-469 | examples/community/pipeline_flux_semantic_guidance.py:598-607 | examples/community/pipeline_flux_with_cfg.py:422-431 | examples/community/pipeline_kolors_differential_img2img.py:515-524 | examples/community/pipeline_kolors_inpainting.py:722-731 | examples/community/pipeline_prompt2prompt.py:496-505 | examples/community/pipeline_sdxl_style_aligned.py:825-834 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:537-546 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:612-621 | examples/community/pipeline_stable_diffusion_boxdiff.py:863-872 | examples/community/pipeline_stable_diffusion_pag.py:863-872 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:427-436 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:991-1000 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:572-581 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:719-728 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:566-575 | examples/community/pipeline_stable_diffusion_xl_ipex.py:574-583 | examples/community/pipeline_stg_cogvideox.py:451-460 | examples/community/pipeline_stg_hunyuan_video.py:427-436 | examples/community/pipeline_stg_ltx.py:414-423 | examples/community/pipeline_stg_ltx_image2video.py:438-447 | examples/community/pipeline_stg_mochi.py:421-430 | examples/community/pipeline_stg_wan.py:335-344 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:502-511 | examples/community/regional_prompting_stable_diffusion.py:743-752 | examples/community/rerender_a_video.py:411-420 | examples/community/stable_diffusion_controlnet_img2img.py:421-430 | examples/community/stable_diffusion_controlnet_inpaint.py:518-527 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:467-476 | examples/community/stable_diffusion_ipex.py:514-523 | examples/community/stable_diffusion_reference.py:331-340 | examples/community/stable_diffusion_repaint.py:491-500 | examples/research_projects/anytext/anytext.py:1687-1696 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:503-512 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:601-610 | src/diffusers/pipelines/allegro/pipeline_allegro.py:394-403 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:699-708 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:517-526 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:292-301 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:311-320 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:189-198 | src/diffusers/pipelines/bria/pipeline_bria.py:293-302 | src/diffusers/pipelines/chroma/pipeline_chroma.py:443-452 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:475-484 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:507-516 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:363-372 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:397-406 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:437-446 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:487-496 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:461-470 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:357-366 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:338-347 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:376-385 | src/diffusers/pipelines/consisid/pipeline_consisid.py:589-598 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:625-634 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:603-612 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:629-638 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:710-719 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:666-675 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:670-679 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:701-710 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:690-699 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:690-699 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:596-605 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:668-677 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:513-522 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:498-507 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:386-395 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:454-463 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:370-379 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:475-484 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:370-379 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:397-406 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:551-560 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:402-411 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:554-563 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:509-518 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:601-610 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:628-637 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:312-321 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:479-488 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:510-519 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:417-426 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:349-358 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:477-486 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:174-183 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:546-555 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:672-681 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:705-716 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:458-467 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:495-504 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:628-637 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:637-646 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:404-413 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:524-533 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:496-505 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:512-521 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:446-455 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:431-440 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:653-662 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:398-407 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:433-442 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:496-505 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:542-551 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:981-990 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:275-284 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:246-255 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:444-453 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:555-564 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:597-606 | src/diffusers/pipelines/flux/pipeline_flux.py:471-480 | src/diffusers/pipelines/flux/pipeline_flux_control.py:434-443 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:476-485 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:515-524 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:505-514 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:477-486 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:492-501 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:563-572 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:527-536 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:535-544 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:522-531 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:575-584 | src/diffusers/pipelines/flux2/pipeline_flux2.py:715-724 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:576-585 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:754-763 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:583-592 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:651-660 | src/diffusers/pipelines/helios/pipeline_helios.py:305-314 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:324-333 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:419-428 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:308-317 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:396-405 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:366-375 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:486-495 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:524-533 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:437-446 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:522-531 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:424-433 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:276-285 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:341-350 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:519-528 | src/diffusers/pipelines/kolors/pipeline_kolors.py:485-494 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:509-518 | src/diffusers/pipelines/krea2/pipeline_krea2.py:328-337 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:663-672 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:594-603 | src/diffusers/pipelines/latte/pipeline_latte.py:393-402 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:454-463 | src/diffusers/pipelines/ltx/pipeline_ltx.py:388-397 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:480-489 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:412-421 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:487-496 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:540-549 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:301-310 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:317-326 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:562-571 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:493-502 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:349-358 | src/diffusers/pipelines/lumina/pipeline_lumina.py:413-422 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:384-393 | src/diffusers/pipelines/mochi/pipeline_mochi.py:359-368 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:387-396 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:519-528 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:345-354 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:583-592 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:579-588 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:674-683 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:676-685 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:503-512 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:368-377 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:375-384 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:620-629 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:573-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:593-602 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:479-488 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:606-615 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:659-668 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:662-671 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:613-622 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:705-714 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:480-489 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:425-434 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:296-305 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:361-370 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:343-352 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:344-353 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:365-374 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:359-368 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:343-352 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:358-367 | src/diffusers/pipelines/sana/pipeline_sana.py:451-460 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:466-475 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:359-368 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:383-392 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:474-483 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:476-485 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:305-314 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:329-338 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:347-356 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:392-401 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:361-370 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:259-268 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:296-305 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:654-663 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:457-466 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:684-693 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:636-645 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:799-808 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:448-457 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:581-590 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:611-620 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:618-627 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:651-660 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:602-611 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:708-717 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:462-471 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:561-570 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:680-689 | src/diffusers/pipelines/wan/pipeline_wan.py:308-317 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:434-443 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:375-384 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:369-378 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:374-383 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:509-518 \u2014 there are 244 copies across 243 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 244 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/llm_grounded_diffusion.py:525\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:724\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d749daa910f53672a576cacbc9b6a7aa859c7bd6b2324bc0a3f5018b508f5e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 192): examples/community/gluegen.py:183-193 | examples/community/ip_adapter_face_id.py:120-130 | examples/community/lpw_stable_diffusion_xl.py:565-575 | examples/community/matryoshka.py:185-195 | examples/community/mixture_tiling_sdxl.py:269-279 | examples/community/pipeline_animatediff_img2video.py:228-238 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:179-189 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1152-1162 | examples/community/pipeline_flux_differential_img2img.py:158-168 | examples/community/pipeline_flux_kontext_multiple_images.py:175-185 | examples/community/pipeline_flux_rf_inversion.py:152-162 | examples/community/pipeline_flux_semantic_guidance.py:149-159 | examples/community/pipeline_flux_with_cfg.py:128-138 | examples/community/pipeline_hunyuandit_differential_img2img.py:226-236 | examples/community/pipeline_kolors_differential_img2img.py:128-138 | examples/community/pipeline_kolors_inpainting.py:300-310 | examples/community/pipeline_null_text_inversion.py:44-54 | examples/community/pipeline_sdxl_style_aligned.py:358-368 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:129-139 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:163-173 | examples/community/pipeline_stable_diffusion_boxdiff.py:351-361 | examples/community/pipeline_stable_diffusion_pag.py:321-331 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:481-491 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:147-157 | examples/community/pipeline_stable_diffusion_xl_ipex.py:143-153 | examples/community/pipeline_stg_cogvideox.py:187-197 | examples/community/pipeline_stg_hunyuan_video.py:191-201 | examples/community/pipeline_stg_ltx.py:182-192 | examples/community/pipeline_stg_ltx_image2video.py:187-197 | examples/community/pipeline_stg_mochi.py:186-196 | examples/community/pipeline_z_image_differential_img2img.py:142-152 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:173-183 | examples/community/regional_prompting_stable_diffusion.py:1653-1663 | examples/community/stable_diffusion_xl_controlnet_reference.py:136-146 | examples/community/stable_diffusion_xl_reference.py:125-135 | examples/research_projects/anytext/anytext.py:1173-1183 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:234-244 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:131-141 | examples/server-async/utils/scheduler.py:126-137 | src/diffusers/modular_pipelines/anima/before_denoise.py:50-60 | src/diffusers/modular_pipelines/flux/before_denoise.py:78-88 | src/diffusers/modular_pipelines/flux2/before_denoise.py:97-107 | src/diffusers/modular_pipelines/flux3/before_denoise.py:78-88 | src/diffusers/modular_pipelines/hunyuan_video1_5/before_denoise.py:80-90 | src/diffusers/modular_pipelines/ltx/before_denoise.py:91-101 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:99-109 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:88-98 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:92-102 | src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:90-100 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:92-102 | src/diffusers/modular_pipelines/wan/before_denoise.py:172-182 | src/diffusers/modular_pipelines/z_image/before_denoise.py:172-182 | src/diffusers/pipelines/allegro/pipeline_allegro.py:130-140 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:196-206 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:167-177 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:185-195 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:109-119 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:157-167 | src/diffusers/pipelines/chroma/pipeline_chroma.py:136-146 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:148-158 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:155-165 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:133-143 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:140-150 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:132-142 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:141-151 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:104-114 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:123-133 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:125-135 | src/diffusers/pipelines/consisid/pipeline_consisid.py:222-232 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:148-158 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:166-176 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:161-171 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:129-139 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:152-162 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:129-139 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:134-144 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:126-136 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:153-163 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:139-149 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:167-177 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:149-159 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:144-154 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:141-151 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:120-130 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:172-182 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:274-284 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:316-326 | src/diffusers/pipelines/flux/pipeline_flux.py:132-142 | src/diffusers/pipelines/flux/pipeline_flux_control.py:145-155 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:164-174 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:190-200 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:163-173 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:158-168 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:160-170 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:139-149 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:155-165 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:152-162 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:162-172 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:186-196 | src/diffusers/pipelines/flux2/pipeline_flux2.py:223-233 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:127-137 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:162-172 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:127-137 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:133-143 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:145-155 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:146-156 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:110-120 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:141-151 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:130-140 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:224-234 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:192-202 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:152-162 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:179-189 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:115-125 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_sr.py:111-121 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:150-160 | src/diffusers/pipelines/kolors/pipeline_kolors.py:109-119 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:128-138 | src/diffusers/pipelines/krea2/pipeline_krea2.py:120-130 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:114-124 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:119-129 | src/diffusers/pipelines/latte/pipeline_latte.py:126-136 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:191-201 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:190-200 | src/diffusers/pipelines/ltx/pipeline_ltx.py:129-139 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:197-207 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:134-144 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:168-178 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:225-235 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:202-212 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:220-230 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:188-198 | src/diffusers/pipelines/lumina/pipeline_lumina.py:121-131 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:122-132 | src/diffusers/pipelines/mochi/pipeline_mochi.py:124-134 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:134-144 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:143-153 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:118-128 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:105-115 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:115-125 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:154-164 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:171-181 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:114-124 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:130-140 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:133-143 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:143-153 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:122-132 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:138-148 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:138-148 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:170-180 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:158-168 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:177-187 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:190-200 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:227-237 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:171-181 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:118-128 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:178-188 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:151-161 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:127-137 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:128-138 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:130-140 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:120-130 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:123-133 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:135-145 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:120-130 | src/diffusers/pipelines/sana/pipeline_sana.py:175-185 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:182-192 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:126-136 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:132-142 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:172-182 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:148-158 | src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:92-102 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:161-171 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:140-150 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:168-178 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:114-124 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:134-144 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:154-164 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:153-163 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:156-166 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:174-184 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:201-211 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:119-129 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:177-187 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:199-209 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:146-156 | src/diffusers/pipelines/z_image/pipeline_z_image.py:123-133 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:174-184 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:174-184 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:135-145 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:151-161 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:124-134 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b63bc4f799f181a658b4df36c16bd7242945c504e1792d39e2f1d4fa1d92e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 179): examples/community/adaptive_mask_inpainting.py:719-728 | examples/community/fresco_v2v.py:1755-1764 | examples/community/gluegen.py:483-492 | examples/community/instaflow_one_step.py:459-468 | examples/community/ip_adapter_face_id.py:740-749 | examples/community/lpw_stable_diffusion.py:695-704 | examples/community/lpw_stable_diffusion_xl.py:1012-1019 | examples/community/matryoshka.py:4113-4122 | examples/community/pipeline_animatediff_controlnet.py:520-529 | examples/community/pipeline_animatediff_img2video.py:632-641 | examples/community/pipeline_animatediff_ipex.py:489-498 | examples/community/pipeline_controlnet_xl_kolors.py:521-530 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:567-576 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:618-627 | examples/community/pipeline_demofusion_sdxl.py:442-449 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1587-1594 | examples/community/pipeline_flux_kontext_multiple_images.py:543-550 | examples/community/pipeline_flux_semantic_guidance.py:608-615 | examples/community/pipeline_flux_with_cfg.py:432-439 | examples/community/pipeline_kolors_differential_img2img.py:521-530 | examples/community/pipeline_kolors_inpainting.py:728-737 | examples/community/pipeline_prompt2prompt.py:502-511 | examples/community/pipeline_sdxl_style_aligned.py:835-842 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:549-556 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:624-631 | examples/community/pipeline_stable_diffusion_boxdiff.py:869-878 | examples/community/pipeline_stable_diffusion_pag.py:869-878 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:433-442 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1001-1008 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:582-589 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:729-736 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:576-583 | examples/community/pipeline_stable_diffusion_xl_ipex.py:584-591 | examples/community/pipeline_stg_cogvideox.py:457-466 | examples/community/regional_prompting_stable_diffusion.py:749-758 | examples/community/rerender_a_video.py:417-426 | examples/community/stable_diffusion_controlnet_img2img.py:427-436 | examples/community/stable_diffusion_controlnet_inpaint.py:524-533 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:473-482 | examples/community/stable_diffusion_ipex.py:520-529 | examples/community/stable_diffusion_reference.py:337-346 | examples/community/stable_diffusion_repaint.py:497-506 | examples/research_projects/anytext/anytext.py:1693-1702 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:509-518 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:607-616 | src/diffusers/pipelines/allegro/pipeline_allegro.py:400-409 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:709-716 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:523-532 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:768-777 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:195-204 | src/diffusers/pipelines/bria/pipeline_bria.py:299-308 | src/diffusers/pipelines/chroma/pipeline_chroma.py:449-458 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:481-490 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:513-522 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:403-412 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:443-452 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:493-502 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:467-476 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:363-372 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:344-353 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:382-391 | src/diffusers/pipelines/consisid/pipeline_consisid.py:595-604 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:631-640 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:609-618 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:635-644 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:720-727 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:676-683 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:680-687 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:711-718 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:700-707 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:700-707 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:608-615 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:680-687 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:376-385 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:403-412 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:557-566 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:408-417 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:560-569 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:515-524 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:607-616 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:634-643 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:318-327 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:485-494 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:520-527 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:423-432 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:355-364 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:483-492 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:180-189 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:552-561 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:678-687 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:711-722 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:464-473 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:501-510 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:634-643 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:643-652 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:410-419 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:530-539 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:502-511 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:518-527 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:452-461 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:437-446 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:404-413 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:439-448 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:502-511 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:552-559 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:987-996 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:281-290 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:252-261 | src/diffusers/pipelines/flux/pipeline_flux.py:481-488 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:515-522 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:537-544 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:545-552 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:532-539 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:585-592 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:582-589 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:425-434 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:314-323 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:443-452 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:528-537 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:430-439 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:282-291 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:347-356 | src/diffusers/pipelines/kolors/pipeline_kolors.py:491-500 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:515-524 | src/diffusers/pipelines/krea2/pipeline_krea2.py:334-343 | src/diffusers/pipelines/latte/pipeline_latte.py:399-408 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:460-469 | src/diffusers/pipelines/lumina/pipeline_lumina.py:419-428 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:390-399 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:351-359 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:589-598 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:585-594 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:684-691 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:686-693 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:509-518 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:374-383 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:381-390 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:626-635 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:585-592 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:605-612 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:485-494 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:612-621 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:665-674 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:672-679 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:623-630 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:715-722 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:486-495 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:431-440 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:302-311 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:367-376 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:349-358 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:350-359 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:371-380 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:365-374 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:349-358 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:364-373 | src/diffusers/pipelines/sana/pipeline_sana.py:457-466 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:472-481 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:480-489 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:482-491 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:356-365 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:265-274 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:302-311 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:660-669 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:463-472 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:690-699 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:642-651 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:805-814 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:454-463 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:593-600 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:623-630 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:630-637 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:661-668 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:612-619 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:718-725 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:468-477 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:567-576 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:690-697 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:515-524 \u2014 there are 179 copies across 178 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 179 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:719\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/lpw_stable_diffusion_xl.py:1021\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:780\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a3e96e0f040ddc7df2d24fe67857fb88e9f256c8cb50e5616858317607d34a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 149): examples/community/adaptive_mask_inpainting.py:725-736 | examples/community/fresco_v2v.py:1761-1772 | examples/community/gluegen.py:489-500 | examples/community/instaflow_one_step.py:465-476 | examples/community/ip_adapter_face_id.py:746-757 | examples/community/llm_grounded_diffusion.py:528-539 | examples/community/lpw_stable_diffusion.py:701-712 | examples/community/lpw_stable_diffusion_xl.py:1021-1032 | examples/community/matryoshka.py:4119-4130 | examples/community/pipeline_animatediff_controlnet.py:526-537 | examples/community/pipeline_animatediff_img2video.py:638-649 | examples/community/pipeline_animatediff_ipex.py:495-506 | examples/community/pipeline_controlnet_xl_kolors.py:527-538 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:573-584 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:624-635 | examples/community/pipeline_demofusion_sdxl.py:451-462 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1596-1607 | examples/community/pipeline_flux_semantic_guidance.py:617-628 | examples/community/pipeline_flux_with_cfg.py:441-452 | examples/community/pipeline_kolors_differential_img2img.py:527-538 | examples/community/pipeline_kolors_inpainting.py:734-745 | examples/community/pipeline_prompt2prompt.py:508-519 | examples/community/pipeline_sdxl_style_aligned.py:844-855 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:563-574 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:638-649 | examples/community/pipeline_stable_diffusion_boxdiff.py:875-886 | examples/community/pipeline_stable_diffusion_pag.py:875-886 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:439-450 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1010-1021 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:591-602 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:738-749 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:585-596 | examples/community/pipeline_stable_diffusion_xl_ipex.py:593-604 | examples/community/pipeline_stg_cogvideox.py:469-480 | examples/community/regional_prompting_stable_diffusion.py:755-766 | examples/community/rerender_a_video.py:423-434 | examples/community/stable_diffusion_controlnet_img2img.py:433-444 | examples/community/stable_diffusion_controlnet_inpaint.py:530-541 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:479-490 | examples/community/stable_diffusion_ipex.py:526-537 | examples/community/stable_diffusion_reference.py:343-354 | examples/community/stable_diffusion_repaint.py:503-514 | examples/research_projects/anytext/anytext.py:1699-1710 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:613-624 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:484-495 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:527-538 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:718-729 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:529-540 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:595-606 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:631-642 | src/diffusers/pipelines/bria/pipeline_bria.py:305-316 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:519-530 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:415-426 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:455-466 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:505-516 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:479-490 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:375-386 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:394-405 | src/diffusers/pipelines/consisid/pipeline_consisid.py:607-618 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:637-648 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:615-626 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:641-652 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:729-740 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:685-696 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:689-700 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:720-731 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:709-720 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:709-720 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:622-633 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:694-705 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:382-393 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:409-420 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:563-574 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:414-425 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:566-577 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:521-532 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:613-624 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:640-651 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:324-335 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:491-502 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:529-540 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:429-440 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:361-372 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:489-500 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:186-197 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:558-569 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:684-695 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:719-730 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:470-481 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:507-518 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:640-651 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:649-660 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:416-427 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:536-547 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:508-519 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:524-535 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:458-469 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:443-454 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:410-421 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:445-456 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:508-519 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:561-572 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:993-1004 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:287-298 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:258-269 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:524-535 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:546-557 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:554-565 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:594-605 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:601-612 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:288-299 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:353-364 | src/diffusers/pipelines/kolors/pipeline_kolors.py:497-508 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:521-532 | src/diffusers/pipelines/latte/pipeline_latte.py:411-422 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:471-482 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:595-606 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:591-602 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:693-704 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:695-706 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:515-526 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:632-643 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:599-610 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:619-630 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:491-502 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:618-629 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:671-682 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:681-692 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:632-643 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:724-735 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:362-373 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:271-282 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:308-319 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:666-677 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:469-480 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:696-707 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:648-659 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:811-822 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:321-332 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:460-471 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:607-618 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:637-648 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:644-655 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:670-681 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:621-632 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:727-738 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:474-485 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:573-584 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:699-710 \u2014 there are 149 copies across 148 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 149 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/llm_grounded_diffusion.py:525\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:722\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b8b51ca250e0c74a118cf12f73f753d6f3da35132f3327da82db9ced3873cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 112): examples/community/adaptive_mask_inpainting.py:599-610 | examples/community/composable_stable_diffusion.py:230-241 | examples/community/fresco_v2v.py:1544-1555 | examples/community/gluegen.py:380-391 | examples/community/img2img_inpainting.py:278-289 | examples/community/instaflow_one_step.py:332-343 | examples/community/interpolate_stable_diffusion.py:256-267 | examples/community/ip_adapter_face_id.py:611-622 | examples/community/latent_consistency_interpolate.py:408-419 | examples/community/llm_grounded_diffusion.py:1361-1372 | examples/community/matryoshka.py:3893-3904 | examples/community/pipeline_animatediff_controlnet.py:325-336 | examples/community/pipeline_animatediff_img2video.py:442-453 | examples/community/pipeline_animatediff_ipex.py:296-307 | examples/community/pipeline_controlnet_xl_kolors.py:336-347 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:360-371 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:410-421 | examples/community/pipeline_fabric.py:296-307 | examples/community/pipeline_hunyuandit_differential_img2img.py:467-478 | examples/community/pipeline_kolors_differential_img2img.py:324-335 | examples/community/pipeline_kolors_inpainting.py:597-608 | examples/community/pipeline_prompt2prompt.py:379-390 | examples/community/pipeline_stable_diffusion_boxdiff.py:714-725 | examples/community/pipeline_stable_diffusion_pag.py:680-691 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:320-331 | examples/community/pipeline_zero1to3.py:279-290 | examples/community/regional_prompting_stable_diffusion.py:658-669 | examples/community/regional_prompting_stable_diffusion.py:1186-1197 | examples/community/sd_text2img_k_diffusion.py:181-192 | examples/community/seed_resize_stable_diffusion.py:200-211 | examples/community/speech_to_image_diffusion.py:146-157 | examples/community/stable_diffusion_controlnet_img2img.py:271-282 | examples/community/stable_diffusion_controlnet_inpaint.py:370-381 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:355-366 | examples/community/stable_diffusion_ipex.py:402-413 | examples/community/stable_diffusion_reference.py:539-550 | examples/community/stable_diffusion_repaint.py:375-386 | examples/community/wildcard_stable_diffusion.py:300-311 | examples/research_projects/anytext/anytext.py:1487-1498 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:449-460 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:281-292 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:326-337 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:335-346 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:383-394 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:414-425 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:555-566 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:425-436 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:403-414 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:409-420 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:398-409 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:454-465 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:482-493 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:196-207 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:359-370 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:270-281 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:214-225 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:343-354 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:464-475 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:423-434 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:549-560 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:347-358 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:378-389 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:439-450 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:410-421 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:255-266 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:338-349 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:415-426 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:386-397 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:319-330 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:316-327 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:534-545 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:286-297 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:321-332 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:943-954 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:491-502 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:171-182 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:163-174 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:198-209 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:370-381 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:180-191 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:213-224 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:344-355 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:351-362 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:309-320 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:344-355 | src/diffusers/pipelines/kolors/pipeline_kolors.py:298-309 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:318-329 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:368-379 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:353-364 | src/diffusers/pipelines/lumina/pipeline_lumina.py:325-336 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:311-322 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:402-413 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:378-389 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:380-391 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:315-326 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:431-442 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:292-303 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:426-437 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:461-472 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:183-194 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:193-204 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:212-223 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:459-470 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:331-342 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:485-496 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:439-450 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:589-600 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:250-261 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:344-355 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:424-435 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:386-397 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:438-449 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"7787938c80852810e17f18d6caceca7b8c33ba260d4aa0105318b0983c6279a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 96): examples/community/gluegen.py:503-513 | examples/community/instaflow_one_step.py:479-489 | examples/community/ip_adapter_face_id.py:760-770 | examples/community/latent_consistency_interpolate.py:479-489 | examples/community/lpw_stable_diffusion.py:777-787 | examples/community/lpw_stable_diffusion_xl.py:1102-1112 | examples/community/lpw_stable_diffusion_xl.py:1187-1197 | examples/community/pipeline_demofusion_sdxl.py:486-496 | examples/community/pipeline_kolors_inpainting.py:791-801 | examples/community/pipeline_sdxl_style_aligned.py:925-935 | examples/community/pipeline_sdxl_style_aligned.py:1010-1020 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:678-689 | examples/community/pipeline_stable_diffusion_pag.py:894-904 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:756-766 | examples/community/pipeline_stable_diffusion_xl_ipex.py:618-628 | examples/community/pipeline_zero1to3.py:504-514 | examples/community/regional_prompting_stable_diffusion.py:509-519 | examples/community/stable_diffusion_controlnet_inpaint.py:638-648 | examples/community/stable_diffusion_ipex.py:540-550 | examples/community/stable_diffusion_reference.py:621-631 | examples/community/stable_diffusion_tensorrt_inpaint.py:871-881 | examples/research_projects/anytext/anytext.py:1858-1868 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:766-776 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:805-815 | examples/research_projects/rdm/pipeline_rdm.py:126-136 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:739-749 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1018-1028 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:390-401 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:297-307 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:304-314 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:308-318 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:828-838 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:859-869 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:925-935 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:888-898 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:902-912 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:865-875 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:553-563 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:663-674 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:805-816 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:627-637 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:597-607 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:646-656 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:290-300 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:201-211 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:598-608 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:756-766 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:491-501 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:529-539 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:669-679 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:679-689 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:431-441 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:551-561 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:473-483 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:458-468 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:666-676 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:523-533 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:484-494 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:351-361 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:216-226 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:302-312 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:606-616 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:524-534 | src/diffusers/pipelines/kolors/pipeline_kolors.py:540-550 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:496-506 | src/diffusers/pipelines/lumina/pipeline_lumina.py:597-607 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:246-257 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:788-798 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:810-820 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:896-906 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:535-545 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:558-568 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:553-563 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:563-573 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:662-672 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:640-651 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:728-738 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:721-731 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:782-792 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:665-675 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:610-620 | src/diffusers/pipelines/sana/pipeline_sana.py:638-648 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:687-697 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:530-540 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:695-705 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:238-248 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:704-714 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:841-851 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:556-566 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:647-658 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:698-708 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:710-720 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:784-794 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:489-499 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:599-609 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:739-749 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/gluegen.py:502\u0060 calls \u0060prepare_latents\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:829\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"8baec4d09265d3536d4db9fbaa070a23b59d70775fae6c15f53de9c0606645c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 89): examples/community/gluegen.py:510-521 | examples/community/instaflow_one_step.py:486-497 | examples/community/ip_adapter_face_id.py:767-778 | examples/community/latent_consistency_interpolate.py:486-497 | examples/community/llm_grounded_diffusion.py:1493-1504 | examples/community/lpw_stable_diffusion.py:784-795 | examples/community/lpw_stable_diffusion_xl.py:1109-1120 | examples/community/masked_stable_diffusion_xl_img2img.py:643-654 | examples/community/pipeline_animatediff_controlnet.py:678-689 | examples/community/pipeline_controlnet_xl_kolors.py:704-715 | examples/community/pipeline_controlnet_xl_kolors.py:724-735 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:863-874 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:939-950 | examples/community/pipeline_demofusion_sdxl.py:493-504 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1623-1634 | examples/community/pipeline_prompt2prompt.py:545-556 | examples/community/pipeline_sdxl_style_aligned.py:932-943 | examples/community/pipeline_stable_diffusion_boxdiff.py:905-916 | examples/community/pipeline_stable_diffusion_pag.py:901-912 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:763-774 | examples/community/pipeline_zero1to3.py:511-522 | examples/community/regional_prompting_stable_diffusion.py:516-527 | examples/community/stable_diffusion_controlnet_inpaint.py:645-656 | examples/community/stable_diffusion_ipex.py:547-558 | examples/community/stable_diffusion_reference.py:628-639 | examples/community/stable_diffusion_repaint.py:535-546 | examples/community/stable_diffusion_tensorrt_txt2img.py:777-788 | examples/research_projects/anytext/anytext.py:1865-1876 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:773-784 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:812-823 | examples/research_projects/rdm/pipeline_rdm.py:133-144 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1025-1036 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:753-764 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:636-647 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:830-841 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:304-315 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:835-846 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:895-906 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:872-883 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:560-571 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:634-645 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:346-357 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:604-615 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:653-664 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:496-507 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:383-394 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:297-308 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:575-586 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:208-219 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:605-616 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:763-774 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:498-509 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:536-547 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:676-687 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:686-697 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:438-449 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:558-569 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:480-491 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:465-476 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:673-684 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:434-445 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:530-541 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:491-502 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:358-369 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:223-234 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:309-320 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:531-542 | src/diffusers/pipelines/kolors/pipeline_kolors.py:547-558 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:503-514 | src/diffusers/pipelines/latte/pipeline_latte.py:576-587 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:795-806 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:903-914 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:542-553 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:565-576 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:560-571 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:669-680 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:728-739 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:672-683 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:617-628 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:406-417 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:702-713 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:245-256 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:848-859 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:563-574 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:717-728 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:496-507 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:355-366 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:606-617 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:746-757 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/stable_diffusion_ipex.py:562\u0060 calls \u0060replace_example_docstring\u0060 and \u0060examples/community/instaflow_one_step.py:501\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace296683aa0a3168b98aac5faab14d3864407bc5aa9491207ef4a988730b1b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 79): examples/community/adaptive_mask_inpainting.py:558-569 | examples/community/composable_stable_diffusion.py:202-209 | examples/community/fresco_v2v.py:1492-1503 | examples/community/gluegen.py:321-332 | examples/community/instaflow_one_step.py:291-302 | examples/community/ip_adapter_face_id.py:559-570 | examples/community/latent_consistency_img2img.py:115-126 | examples/community/latent_consistency_interpolate.py:356-367 | examples/community/latent_consistency_txt2img.py:113-124 | examples/community/llm_grounded_diffusion.py:1307-1318 | examples/community/matryoshka.py:3865-3876 | examples/community/pipeline_animatediff_controlnet.py:273-284 | examples/community/pipeline_animatediff_img2video.py:390-401 | examples/community/pipeline_animatediff_ipex.py:244-255 | examples/community/pipeline_fabric.py:255-266 | examples/community/pipeline_prompt2prompt.py:325-336 | examples/community/pipeline_stable_diffusion_boxdiff.py:662-673 | examples/community/pipeline_stable_diffusion_pag.py:628-639 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:268-279 | examples/community/pipeline_zero1to3.py:245-256 | examples/community/regional_prompting_stable_diffusion.py:606-617 | examples/community/regional_prompting_stable_diffusion.py:1142-1149 | examples/community/sd_text2img_k_diffusion.py:153-160 | examples/community/stable_diffusion_controlnet_img2img.py:237-248 | examples/community/stable_diffusion_controlnet_inpaint.py:336-347 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:321-332 | examples/community/stable_diffusion_ipex.py:368-379 | examples/community/stable_diffusion_reference.py:487-498 | examples/community/stable_diffusion_repaint.py:341-352 | examples/research_projects/anytext/anytext.py:1435-1446 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:397-408 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:229-240 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:274-285 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:283-294 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:331-342 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:362-373 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:373-384 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:351-362 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:357-368 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:402-413 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:430-441 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:307-318 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:218-229 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:291-302 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:371-382 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:497-508 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:295-306 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:326-337 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:387-398 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:358-369 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:227-234 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:286-297 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:363-374 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:334-345 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:267-278 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:264-275 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:482-493 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:234-245 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:269-280 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:891-902 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:190-197 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:143-150 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:316-327 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:301-312 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:350-361 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:326-337 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:379-390 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:240-251 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:374-385 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:409-420 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:407-418 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:279-290 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:433-444 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:387-398 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:553-564 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:292-303 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:372-383 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:334-345 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:386-397 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:558\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, \u0060examples/community/gluegen.py:334\u0060 calls \u0060to\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:570\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe5d2e3da3534f67d8a002adcd894757ff0bf9e3626fe2852c80ff51ee18767"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 76): examples/community/adaptive_mask_inpainting.py:619-630 | examples/community/composable_stable_diffusion.py:246-257 | examples/community/fresco_v2v.py:1564-1575 | examples/community/gluegen.py:396-407 | examples/community/instaflow_one_step.py:352-363 | examples/community/ip_adapter_face_id.py:631-642 | examples/community/latent_consistency_interpolate.py:428-439 | examples/community/llm_grounded_diffusion.py:1381-1392 | examples/community/pipeline_animatediff_controlnet.py:345-356 | examples/community/pipeline_animatediff_img2video.py:462-473 | examples/community/pipeline_animatediff_ipex.py:316-327 | examples/community/pipeline_fabric.py:316-327 | examples/community/pipeline_prompt2prompt.py:399-410 | examples/community/pipeline_stable_diffusion_boxdiff.py:734-745 | examples/community/pipeline_stable_diffusion_pag.py:700-711 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:340-351 | examples/community/pipeline_zero1to3.py:295-306 | examples/community/regional_prompting_stable_diffusion.py:678-689 | examples/community/regional_prompting_stable_diffusion.py:1206-1217 | examples/community/sd_text2img_k_diffusion.py:197-208 | examples/community/stable_diffusion_controlnet_img2img.py:287-298 | examples/community/stable_diffusion_controlnet_inpaint.py:386-397 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:371-382 | examples/community/stable_diffusion_ipex.py:422-433 | examples/community/stable_diffusion_reference.py:559-570 | examples/community/stable_diffusion_repaint.py:395-406 | examples/research_projects/anytext/anytext.py:1507-1518 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:469-480 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:301-312 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:346-357 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:355-366 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:403-414 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:434-445 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:445-456 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:423-434 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:429-440 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:474-485 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:502-513 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:379-390 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:286-297 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:363-374 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:443-454 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:569-580 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:367-378 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:398-409 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:459-470 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:430-441 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:271-282 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:358-369 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:435-446 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:406-417 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:339-350 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:336-347 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:554-565 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:306-317 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:341-352 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:963-974 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:216-227 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:187-198 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:388-399 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:373-384 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:422-433 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:398-409 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:451-462 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:312-323 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:446-457 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:481-492 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:479-490 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:351-362 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:505-516 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:459-470 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:609-620 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:364-375 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:444-455 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:406-417 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:458-469 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/adaptive_mask_inpainting.py:615\u0060 calls \u0060isinstance\u0060, \u0060maybe_convert_prompt\u0060 and \u0060examples/community/gluegen.py:393\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4542ff16a545d9bc52a6477ef21ef16bccf0f5859ea7c71c87ad87488ceedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 75): examples/community/lpw_stable_diffusion_xl.py:994-1005 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1569-1580 | examples/community/pipeline_flux_differential_img2img.py:462-473 | examples/community/pipeline_flux_kontext_multiple_images.py:525-536 | examples/community/pipeline_flux_rf_inversion.py:452-463 | examples/community/pipeline_flux_semantic_guidance.py:590-601 | examples/community/pipeline_flux_with_cfg.py:414-425 | examples/community/pipeline_sdxl_style_aligned.py:817-828 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:524-535 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:599-610 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:983-994 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:564-575 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:711-722 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:558-569 | examples/community/pipeline_stable_diffusion_xl_ipex.py:566-577 | examples/community/pipeline_stg_hunyuan_video.py:419-430 | examples/community/pipeline_stg_wan.py:327-338 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:494-505 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:691-702 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:284-295 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:303-314 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:355-366 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:702-713 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:658-669 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:662-673 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:693-704 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:682-693 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:682-693 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:583-594 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:655-666 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:502-513 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:534-545 | src/diffusers/pipelines/flux/pipeline_flux.py:463-474 | src/diffusers/pipelines/flux/pipeline_flux_control.py:426-437 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:468-479 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:507-518 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:497-508 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:469-480 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:484-495 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:555-566 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:519-530 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:527-538 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:514-525 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:567-578 | src/diffusers/pipelines/helios/pipeline_helios.py:297-308 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:316-327 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:542-553 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:388-399 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:358-369 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:478-489 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:516-527 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:341-352 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:666-677 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:668-679 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:560-571 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:580-591 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:654-665 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:605-616 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:697-708 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:297-308 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:321-332 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:339-350 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:384-395 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:353-364 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:568-579 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:598-609 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:605-616 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:643-654 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:594-605 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:700-711 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:672-683 | src/diffusers/pipelines/wan/pipeline_wan.py:300-311 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:426-437 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:367-378 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:366-377 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 832 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:994\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d8452a5d505bf86d5a42c1e7f083cf32f766f68e55fc1f4a4bf5e8048e6cb59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 72): examples/community/fresco_v2v.py:1735-1746 | examples/community/ip_adapter_face_id.py:721-731 | examples/community/latent_consistency_interpolate.py:559-570 | examples/community/lpw_stable_diffusion_xl.py:983-994 | examples/community/matryoshka.py:4094-4104 | examples/community/pipeline_animatediff_controlnet.py:501-511 | examples/community/pipeline_animatediff_img2video.py:613-623 | examples/community/pipeline_controlnet_xl_kolors.py:501-512 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:547-558 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:598-609 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1558-1569 | examples/community/pipeline_kolors_inpainting.py:708-719 | examples/community/pipeline_prompt2prompt.py:483-493 | examples/community/pipeline_sdxl_style_aligned.py:806-817 | examples/community/pipeline_stable_diffusion_boxdiff.py:850-860 | examples/community/pipeline_stable_diffusion_pag.py:850-860 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:972-983 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:553-564 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:700-711 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:547-558 | examples/community/pipeline_stable_diffusion_xl_ipex.py:555-566 | examples/community/regional_prompting_stable_diffusion.py:730-740 | examples/community/stable_diffusion_reference.py:318-328 | examples/research_projects/anytext/anytext.py:1673-1684 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-598 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:459-469 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:611-622 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:589-600 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:615-626 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:691-702 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:647-658 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:651-662 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:682-693 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:671-682 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:588-598 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:615-626 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:161-171 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:482-492 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:615-625 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:624-634 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:391-401 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:511-521 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:483-494 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:499-510 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:433-443 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:418-428 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:385-395 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:420-431 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:483-493 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:523-534 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:262-272 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:263-273 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:327-338 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:649-660 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:580-591 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:655-666 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:657-668 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:607-617 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:645-656 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:643-654 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:594-605 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:686-697 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:641-651 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:444-455 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:671-682 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:622-633 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:785-796 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:632-643 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:583-594 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:689-700 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:448-459 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:661-672 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/ip_adapter_face_id.py:719\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/fresco_v2v.py:1734\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec714482171399a47024e82f476ec3ab9da2dcdb8d33064fd8a9709dc3de06df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 57): examples/community/adaptive_mask_inpainting.py:656-667 | examples/community/fresco_v2v.py:1677-1688 | examples/community/gluegen.py:434-445 | examples/community/instaflow_one_step.py:383-394 | examples/community/ip_adapter_face_id.py:666-677 | examples/community/latent_consistency_img2img.py:154-165 | examples/community/latent_consistency_interpolate.py:464-475 | examples/community/latent_consistency_txt2img.py:152-163 | examples/community/llm_grounded_diffusion.py:1431-1442 | examples/community/pipeline_hunyuandit_differential_img2img.py:517-528 | examples/community/pipeline_prompt2prompt.py:435-446 | examples/community/pipeline_stable_diffusion_boxdiff.py:793-804 | examples/community/pipeline_stable_diffusion_pag.py:793-804 | examples/community/stable_diffusion_reference.py:808-819 | examples/community/stable_diffusion_tensorrt_img2img.py:849-860 | examples/community/stable_diffusion_tensorrt_inpaint.py:932-943 | examples/community/stable_diffusion_tensorrt_txt2img.py:805-816 | examples/research_projects/anytext/anytext.py:1615-1626 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:530-541 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:553-564 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:531-542 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:537-548 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:443-454 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:533-544 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:561-572 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:416-427 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:222-233 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:104-115 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:480-491 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:606-617 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:404-415 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:435-446 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:538-549 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:454-465 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:541-552 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:443-454 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:376-387 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:373-384 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:591-602 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:784-795 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:415-426 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:496-507 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:481-492 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:413-424 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:530-541 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:506-517 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:425-436 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:559-570 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:554-565 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:589-600 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:584-595 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:388-399 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:171-182 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:613-624 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:567-578 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:731-742 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:495-506 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 57 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 57 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/adaptive_mask_inpainting.py:650\u0060 calls \u0060cat\u0060 and \u0060examples/community/latent_consistency_img2img.py:148\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97439b7bcbc7624bb33790e7a6aab9d36ee6ed20159933d7e361fd4df84b7f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 33): examples/community/gluegen.py:698-709 | examples/community/ip_adapter_face_id.py:986-997 | examples/community/masked_stable_diffusion_xl_img2img.py:218-229 | examples/community/matryoshka.py:4410-4421 | examples/community/pipeline_animatediff_ipex.py:698-709 | examples/community/pipeline_animatediff_ipex.py:879-890 | examples/community/pipeline_kolors_inpainting.py:1345-1356 | examples/community/pipeline_sdxl_style_aligned.py:1595-1606 | examples/community/pipeline_stable_diffusion_boxdiff.py:1485-1496 | examples/community/pipeline_stable_diffusion_pag.py:1250-1261 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1899-1910 | examples/community/pipeline_stable_diffusion_xl_ipex.py:942-953 | examples/community/regional_prompting_stable_diffusion.py:960-971 | examples/community/stable_diffusion_xl_reference.py:544-555 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:721-732 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1093-1104 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1463-1474 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:852-863 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:910-921 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:814-825 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:896-907 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:716-727 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:927-938 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1096-1107 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1068-1079 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1235-1246 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1362-1373 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:949-960 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:783-794 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1009-1020 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1065-1076 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1227-1238 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1369-1380 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:779\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py:694\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c84922e58bb9271728593c65f740f01faf9e8cc4c238f87ad1ecea13eacf003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 31): examples/community/adaptive_mask_inpainting.py:705-716 | examples/community/instaflow_one_step.py:445-456 | examples/community/llm_grounded_diffusion.py:506-517 | examples/community/lpw_stable_diffusion.py:681-692 | examples/community/pipeline_demofusion_sdxl.py:419-430 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:419-430 | examples/community/rerender_a_video.py:403-414 | examples/community/stable_diffusion_controlnet_img2img.py:413-424 | examples/community/stable_diffusion_controlnet_inpaint.py:510-521 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:459-470 | examples/community/stable_diffusion_ipex.py:506-517 | examples/community/stable_diffusion_repaint.py:483-494 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:495-506 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:753-764 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:362-373 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:389-400 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:543-554 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:394-405 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:546-557 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:501-512 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:304-315 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:341-352 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:538-549 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:664-675 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:450-461 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:360-371 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:472-483 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:417-428 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:341-352 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:440-451 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:553-564 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:705\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/instaflow_one_step.py:442\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:417\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"801a922f088b2e377363a54e5abffb891693f888338d4809ca32565b458b103b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 31): examples/community/lpw_stable_diffusion_xl.py:838-849 | examples/community/mixture_tiling_sdxl.py:522-533 | examples/community/mod_controlnet_tile_sr_sdxl.py:529-540 | examples/community/pipeline_demofusion_sdxl.py:302-313 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1399-1410 | examples/community/pipeline_sdxl_style_aligned.py:642-653 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:826-837 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:375-386 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:522-533 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:402-413 | examples/community/pipeline_stable_diffusion_xl_ipex.py:402-413 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:434-445 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:463-474 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:427-438 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:435-446 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:427-438 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:416-427 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:427-438 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:446-457 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:359-370 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:721-732 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:442-453 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:432-443 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:429-440 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:447-458 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:537-548 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:419-430 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:437-448 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:541-552 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:340-351 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:447-458 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abd8632ce3876abdbc76af09f316531a2517e067318b36fb33290271433fb57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 31): src/diffusers/loaders/lora_pipeline.py:301-312 | src/diffusers/loaders/lora_pipeline.py:723-734 | src/diffusers/loaders/lora_pipeline.py:994-1005 | src/diffusers/loaders/lora_pipeline.py:1278-1289 | src/diffusers/loaders/lora_pipeline.py:1472-1483 | src/diffusers/loaders/lora_pipeline.py:2379-2390 | src/diffusers/loaders/lora_pipeline.py:2564-2575 | src/diffusers/loaders/lora_pipeline.py:2752-2763 | src/diffusers/loaders/lora_pipeline.py:2945-2956 | src/diffusers/loaders/lora_pipeline.py:3161-3172 | src/diffusers/loaders/lora_pipeline.py:3349-3360 | src/diffusers/loaders/lora_pipeline.py:3539-3550 | src/diffusers/loaders/lora_pipeline.py:3731-3742 | src/diffusers/loaders/lora_pipeline.py:3925-3936 | src/diffusers/loaders/lora_pipeline.py:4113-4124 | src/diffusers/loaders/lora_pipeline.py:4377-4388 | src/diffusers/loaders/lora_pipeline.py:4643-4654 | src/diffusers/loaders/lora_pipeline.py:4831-4842 | src/diffusers/loaders/lora_pipeline.py:5023-5034 | src/diffusers/loaders/lora_pipeline.py:5218-5229 | src/diffusers/loaders/lora_pipeline.py:5412-5423 | src/diffusers/loaders/lora_pipeline.py:5611-5622 | src/diffusers/loaders/lora_pipeline.py:5798-5809 | src/diffusers/loaders/lora_pipeline.py:6000-6011 | src/diffusers/loaders/lora_pipeline.py:6192-6203 | src/diffusers/loaders/lora_pipeline.py:6380-6391 | src/diffusers/loaders/lora_pipeline.py:6576-6587 | src/diffusers/loaders/lora_pipeline.py:6778-6789 | src/diffusers/loaders/lora_pipeline.py:6964-6975 | src/diffusers/loaders/lora_pipeline.py:7174-7185 | src/diffusers/loaders/lora_pipeline.py:7558-7569 \u2014 all 31 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87c6d0bb123286bad6c1d0ad108fbba485f49491ecac225fe06484f98335b45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 30): examples/community/lpw_stable_diffusion_xl.py:451-462 | examples/community/mixture_tiling_sdxl.py:611-622 | examples/community/mod_controlnet_tile_sr_sdxl.py:618-629 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1486-1497 | examples/community/pipeline_sdxl_style_aligned.py:730-741 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:913-924 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:463-474 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:610-621 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:490-501 | examples/community/pipeline_stable_diffusion_xl_ipex.py:490-501 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:523-534 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:552-563 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:516-527 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:524-535 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:516-527 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:505-516 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:516-527 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:535-546 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:448-459 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:810-821 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:598-609 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:531-542 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:521-532 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:518-529 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:536-547 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:626-637 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:508-519 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:526-537 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:630-641 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:536-547 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:451\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd41a53f2cbd2712ad16f1466a88bdaa93ca9402c294c3eeae82918032a4940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 29): examples/community/mixture_tiling_sdxl.py:481-492 | examples/community/mod_controlnet_tile_sr_sdxl.py:488-499 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1360-1371 | examples/community/pipeline_sdxl_style_aligned.py:601-612 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:787-798 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1423-1434 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:334-345 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:481-492 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:361-372 | examples/community/pipeline_stable_diffusion_xl_ipex.py:361-372 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:395-406 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:420-431 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:384-395 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:392-403 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:384-395 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:373-384 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:384-395 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:403-414 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:316-327 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:678-689 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:399-410 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:389-400 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:386-397 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:404-415 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:494-505 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:376-387 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:394-405 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:498-509 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:404-415 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mixture_tiling_sdxl.py:481\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":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"5afe45fd7763fa0d4dee9c017cb4a92641b095ec2723b30f3962358675a0eaac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 29): examples/community/pipeline_flux_kontext_multiple_images.py:1202-1212 | examples/community/pipeline_stg_mochi.py:828-838 | src/diffusers/pipelines/chroma/pipeline_chroma.py:903-913 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:986-996 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1179-1189 | src/diffusers/pipelines/flux/pipeline_flux.py:950-960 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1090-1100 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1409-1419 | src/diffusers/pipelines/flux2/pipeline_flux2.py:1006-1016 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:848-857 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:738-747 | src/diffusers/pipelines/krea2/pipeline_krea2.py:687-698 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:675-685 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:732-742 | src/diffusers/pipelines/mochi/pipeline_mochi.py:687-697 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:762-772 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:886-896 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:616-626 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:690-700 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:693-702 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:936-945 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:907-916 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:822-831 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1048-1057 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:866-875 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:795-804 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:976-985 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:870-879 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:830-839 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_stg_mochi.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux.py:963\u0060 calls \u0060to\u0060, \u0060get_module_execution_device\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1215\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae9c85da6d2d91467a3f5903b53717c832ea336606bd42e958b74172bc68734"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201312 lines \u00D7 26): examples/community/fresco_v2v.py:1848-1859 | examples/community/pipeline_animatediff_controlnet.py:614-625 | examples/community/pipeline_controlnet_xl_kolors.py:602-613 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:677-688 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:728-739 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:639-650 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:786-797 | examples/community/rerender_a_video.py:482-493 | examples/research_projects/anytext/anytext.py:1760-1771 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:720-731 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:615-626 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:742-753 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:730-741 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:702-713 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:741-752 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:845-856 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:788-799 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:792-803 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:798-809 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:781-792 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:764-766 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:761-772 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:688-699 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:691-702 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:796-807 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:798-809 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:764\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:736\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py:630\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbff96b5c8efa079906e5ad523dd277702990f273c203ab8518f97b6d10f1a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 24): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:91-101 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:158-168 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:23-32 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:44-53 | scripts/convert_if.py:558-568 | scripts/convert_if.py:588-598 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:44-54 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:65-75 | scripts/convert_original_audioldm2_to_diffusers.py:74-84 | scripts/convert_original_audioldm2_to_diffusers.py:143-153 | scripts/convert_original_audioldm_to_diffusers.py:65-75 | scripts/convert_original_audioldm_to_diffusers.py:135-145 | scripts/convert_original_musicldm_to_diffusers.py:66-76 | scripts/convert_original_musicldm_to_diffusers.py:135-145 | scripts/convert_svd_to_diffusers.py:233-244 | scripts/convert_svd_to_diffusers.py:579-590 | scripts/convert_svd_to_diffusers.py:610-620 | scripts/convert_unidiffuser_to_diffusers.py:82-92 | scripts/convert_versatile_diffusion_to_diffusers.py:115-125 | scripts/convert_versatile_diffusion_to_diffusers.py:182-192 | scripts/convert_zero123_to_diffusers.py:217-227 | scripts/convert_zero123_to_diffusers.py:657-667 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:89-99 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:156-166 \u2014 there are 24 copies across 12 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 24 sites; resolving a subset leaves the remainder to drift apart. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_svd_to_diffusers.py:229\u0060 calls \u0060replace\u0060 and \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:87\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"354f979e5bccdfd4168960c8bd8536427d32e1ff7096352a0ab4bb9e07db9bb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 23): examples/community/mixture_tiling_sdxl.py:1168-1177 | examples/community/pipeline_kolors_differential_img2img.py:1231-1240 | examples/community/pipeline_kolors_inpainting.py:1654-1663 | examples/community/pipeline_sdxl_style_aligned.py:1871-1880 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1399-1408 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1127-1136 | examples/community/stable_diffusion_xl_reference.py:1151-1160 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1555-1564 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1565-1574 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1028-1037 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1208-1217 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1344-1353 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1568-1577 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1091-1100 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1295-1304 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1488-1497 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1721-1730 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:777-788 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1259-1268 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1444-1453 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1683-1692 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:927-936 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1277-1286 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1397\u0060 calls \u0060callback\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1563\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb5cd0ba6bd90cfb775220ce197d156ee2037ee33d4838a93a35caee23683d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 23): src/diffusers/loaders/lora_pipeline.py:1053-1064 | src/diffusers/loaders/lora_pipeline.py:1338-1349 | src/diffusers/loaders/lora_pipeline.py:2438-2449 | src/diffusers/loaders/lora_pipeline.py:2624-2635 | src/diffusers/loaders/lora_pipeline.py:2816-2827 | src/diffusers/loaders/lora_pipeline.py:3221-3232 | src/diffusers/loaders/lora_pipeline.py:3411-3422 | src/diffusers/loaders/lora_pipeline.py:3603-3614 | src/diffusers/loaders/lora_pipeline.py:3796-3807 | src/diffusers/loaders/lora_pipeline.py:3985-3996 | src/diffusers/loaders/lora_pipeline.py:4703-4714 | src/diffusers/loaders/lora_pipeline.py:4895-4906 | src/diffusers/loaders/lora_pipeline.py:5090-5101 | src/diffusers/loaders/lora_pipeline.py:5284-5295 | src/diffusers/loaders/lora_pipeline.py:5484-5495 | src/diffusers/loaders/lora_pipeline.py:5881-5892 | src/diffusers/loaders/lora_pipeline.py:6063-6074 | src/diffusers/loaders/lora_pipeline.py:6252-6263 | src/diffusers/loaders/lora_pipeline.py:6448-6459 | src/diffusers/loaders/lora_pipeline.py:6648-6659 | src/diffusers/loaders/lora_pipeline.py:6838-6849 | src/diffusers/loaders/lora_pipeline.py:7029-7040 | src/diffusers/loaders/lora_pipeline.py:7618-7629 \u2014 all 23 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060state_dict\u0060 to \u0060k.startswith(\u0022lora_unet_\u0022) for k in\u0060 in one and \u0060k.startswith(\u0022transformer.\u0022) for k in\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":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"d377f0f258bdce28613042149d61df3cd120e663c73564aa5037e0e45bf70465"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 22): examples/community/fresco_v2v.py:1820-1829 | examples/community/mod_controlnet_tile_sr_sdxl.py:748-757 | examples/community/pipeline_animatediff_controlnet.py:580-589 | examples/community/pipeline_controlnet_xl_kolors.py:568-577 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:643-652 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:694-703 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:690-699 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:837-846 | examples/community/rerender_a_video.py:454-463 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:686-695 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:581-590 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:708-717 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:693-704 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:674-683 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:713-722 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:811-820 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:754-763 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:758-767 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:651-662 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:663-672 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:762-771 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:764-773 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 22 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 22 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1820\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d77471e0c90198c3317f9c6efbc2d13c07421fcffcee31afc5bdf36cfba12a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 21): examples/community/pipeline_flux_differential_img2img.py:361-372 | examples/community/pipeline_flux_kontext_multiple_images.py:403-414 | examples/community/pipeline_flux_rf_inversion.py:358-369 | examples/community/pipeline_flux_semantic_guidance.py:362-373 | examples/community/pipeline_flux_with_cfg.py:304-313 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:391-402 | src/diffusers/modular_pipelines/flux/encoders.py:415-426 | src/diffusers/pipelines/flux/pipeline_flux.py:344-355 | src/diffusers/pipelines/flux/pipeline_flux_control.py:358-369 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:369-380 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:408-419 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:376-387 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:370-381 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:381-392 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:453-464 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:367-378 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:371-382 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:392-403 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:425-436 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:331-342 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:327-338 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32ee4f271eaa79562c7ce525ff163ef9f1fb0ac701e3b50029d0cf1a36cc415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 21): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:645-656 | src/diffusers/pipelines/allegro/pipeline_allegro.py:495-506 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:465-476 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:509-520 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:262-273 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:549-560 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:264-275 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:220-231 | src/diffusers/pipelines/latte/pipeline_latte.py:482-493 | src/diffusers/pipelines/lumina/pipeline_lumina.py:514-525 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:469-480 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:476-487 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:581-592 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:526-537 | src/diffusers/pipelines/prx/pipeline_prx.py:150-160 | src/diffusers/pipelines/sana/pipeline_sana.py:552-563 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:567-578 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:443-454 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:467-478 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:575-586 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:577-588 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b1a1407035c8051bf7608db5f34e1e21ab60fab1a9c07e40679149ab5e95c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 21): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:665-673 | scripts/convert_amused.py:148-157 | scripts/convert_amused.py:212-220 | scripts/convert_pixart_alpha_to_diffusers.py:89-99 | scripts/convert_pixart_sigma_to_diffusers.py:95-103 | scripts/convert_sana_controlnet_to_diffusers.py:74-84 | scripts/convert_sana_controlnet_to_diffusers.py:113-123 | scripts/convert_sana_to_diffusers.py:163-172 | scripts/convert_sana_to_diffusers.py:208-217 | scripts/convert_sana_video_to_diffusers.py:129-138 | scripts/convert_sana_video_to_diffusers.py:177-186 | scripts/convert_sd3_to_diffusers.py:116-124 | scripts/convert_sd3_to_diffusers.py:162-172 | scripts/convert_sd3_to_diffusers.py:199-210 | scripts/convert_sd3_to_diffusers.py:215-223 | src/diffusers/loaders/single_file_utils.py:2088-2096 | src/diffusers/loaders/single_file_utils.py:2133-2143 | src/diffusers/loaders/single_file_utils.py:2170-2181 | src/diffusers/loaders/single_file_utils.py:2186-2194 | src/diffusers/loaders/single_file_utils.py:3152-3162 | src/diffusers/loaders/single_file_utils.py:3179-3189 \u2014 there are 21 copies across 9 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 21 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_sd3_to_diffusers.py:199\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"511c8117f1988a6f1f119c498be006ce478cb8b27396aa512ada913cda90f294"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 20): examples/community/pipeline_flux_differential_img2img.py:315-326 | examples/community/pipeline_flux_kontext_multiple_images.py:357-368 | examples/community/pipeline_flux_rf_inversion.py:312-323 | examples/community/pipeline_flux_semantic_guidance.py:316-327 | examples/community/pipeline_flux_with_cfg.py:275-286 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:345-356 | src/diffusers/pipelines/flux/pipeline_flux.py:300-310 | src/diffusers/pipelines/flux/pipeline_flux_control.py:313-323 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:324-334 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:363-373 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:332-342 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:325-335 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:336-346 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:328-338 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:322-332 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:326-336 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:347-357 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:380-390 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:286-296 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:279-289 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:315\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux.py:299\u0060 calls \u0060get_module_execution_device\u0060, \u0060text_encoder\u0060, \u0060to\u0060 and \u0060examples/community/pipeline_flux_differential_img2img.py:315\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8365afcd9dcc144a4c47b7d9512d042dc6d47bda7fa004dbae153c22027d6de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 20): examples/community/pipeline_hunyuandit_differential_img2img.py:599-611 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:524-535 | src/diffusers/pipelines/allegro/pipeline_allegro.py:415-426 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:210-221 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:527-539 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:498-510 | src/diffusers/pipelines/lumina/pipeline_lumina.py:434-445 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:405-416 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:404-415 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:536-547 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:509-521 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:389-400 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:396-407 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:501-512 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:446-457 | src/diffusers/pipelines/sana/pipeline_sana.py:472-483 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:487-498 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:495-506 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:497-508 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:319-334 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 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 20 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:599\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77794ad018f8b8b3c28f6e833615bb42d0730447330159b67f9296c1d7fa42b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 19): examples/community/gluegen.py:693-704 | examples/community/hd_painter.py:535-548 | examples/community/ip_adapter_face_id.py:981-992 | examples/community/matryoshka.py:4405-4416 | examples/community/pipeline_stable_diffusion_boxdiff.py:1480-1491 | examples/community/regional_prompting_stable_diffusion.py:955-966 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1094-1105 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1092-1103 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1464-1475 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1342-1353 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1458-1469 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1363-1374 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:773-784 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:907-918 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:903-914 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:955-966 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:944-955 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1004-1015 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1095-1106 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 19 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 19 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1477\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/gluegen.py:707\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":"examples/community/gluegen.py"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"778a4545e3c71d582129547796e30a161a5acb77400cf24b61289a7e5894b72d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 19): examples/community/pipeline_animatediff_controlnet.py:1100-1107 | examples/community/pipeline_animatediff_ipex.py:799-806 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:841-848 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1092-1099 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:998-1005 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1042-1049 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1330-1337 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:933-940 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:406-415 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:495-506 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:516-525 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:534-543 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:599-608 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:849-856 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:605-611 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:572-578 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:632-638 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:504-513 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:619-628 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 639 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:406\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, \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:545\u0060 calls \u0060pop\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py:1111\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dcd303d36904a7ee9463be99650e7977195fdb9550af7df564abe4c16667aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 19): scripts/convert_flux_to_diffusers.py:133-143 | scripts/convert_flux_to_diffusers.py:172-181 | scripts/convert_flux_to_diffusers.py:249-259 | scripts/convert_flux_xlabs_ipadapter_to_diffusers.py:65-75 | scripts/convert_hunyuan_image_to_diffusers.py:214-224 | scripts/convert_hunyuan_image_to_diffusers.py:242-253 | scripts/convert_hunyuan_image_to_diffusers.py:320-331 | scripts/convert_hunyuan_image_to_diffusers.py:440-451 | scripts/convert_ovis_image_to_diffusers.py:85-95 | scripts/convert_ovis_image_to_diffusers.py:124-133 | scripts/convert_ovis_image_to_diffusers.py:170-181 | scripts/convert_ovis_image_to_diffusers.py:217-227 | src/diffusers/loaders/lora_conversion_utils.py:1264-1275 | src/diffusers/loaders/single_file_utils.py:2361-2371 | src/diffusers/loaders/single_file_utils.py:2398-2407 | src/diffusers/loaders/single_file_utils.py:2469-2476 | src/diffusers/loaders/single_file_utils.py:3608-3617 | src/diffusers/loaders/single_file_utils.py:3659-3668 | src/diffusers/loaders/single_file_utils.py:3723-3730 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_flux_xlabs_ipadapter_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.py:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/loaders/single_file_utils.py:2375\u0060 calls \u0060chunk\u0060, \u0060pop\u0060 and \u0060scripts/convert_flux_to_diffusers.py:147\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/convert_flux_to_diffusers.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb30e70df2a6d60ebfe23c43a39b9bba8ea3876397da01e89cb891581ab4319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 19): src/diffusers/schedulers/scheduling_deis_multistep.py:603-614 | src/diffusers/schedulers/scheduling_deis_multistep.py:666-677 | src/diffusers/schedulers/scheduling_deis_multistep.py:723-734 | src/diffusers/schedulers/scheduling_deis_multistep.py:797-808 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:774-785 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:871-882 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:946-957 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1072-1083 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:625-636 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:723-734 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:799-810 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:926-937 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:691-702 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:791-802 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:859-870 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:974-985 | src/diffusers/schedulers/scheduling_helios.py:396-407 | src/diffusers/schedulers/scheduling_sasolver.py:604-615 | src/diffusers/schedulers/scheduling_unipc_multistep.py:782-793 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ce76d55b3c517186f4d7e31796710ca57f8165c5e28b0c8d7630ae6a6a3685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 18): examples/community/hd_painter.py:55-66 | examples/community/hd_painter.py:155-166 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:203-214 | examples/community/pipeline_stable_diffusion_xl_instantid.py:203-214 | examples/community/regional_prompting_stable_diffusion.py:333-344 | src/diffusers/models/attention_processor.py:1138-1149 | src/diffusers/models/attention_processor.py:2035-2046 | src/diffusers/models/attention_processor.py:2531-2542 | src/diffusers/models/attention_processor.py:2621-2632 | src/diffusers/models/attention_processor.py:2727-2738 | src/diffusers/models/attention_processor.py:2824-2835 | src/diffusers/models/attention_processor.py:3153-3164 | src/diffusers/models/attention_processor.py:3361-3372 | src/diffusers/models/attention_processor.py:3485-3496 | src/diffusers/models/attention_processor.py:4276-4287 | src/diffusers/models/attention_processor.py:4486-4497 | src/diffusers/models/attention_processor.py:4731-4742 | src/diffusers/models/unets/unet_dreamlite.py:325-336 \u2014 there are 18 copies across 6 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 18 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/attention_processor.py:2529\u0060 calls \u0060expand\u0060 and \u0060examples/community/hd_painter.py:53\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef10ad58189f7a75a530bdfef0b709f8e4a3e0035cee8249aef19a1129454867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 18): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:239-249 | examples/research_projects/anytext/anytext.py:1282-1293 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:213-223 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:273-283 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:264-274 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:265-275 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:283-293 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:229-239 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:239-249 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:235-245 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:358-368 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:229-239 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:279-289 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:267-277 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:154-164 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:208-218 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:228-238 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:227-237 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 18 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 18 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:239\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80c5d6da4539f3828ceeac7f475cd50512b3eb3308649a2e8ffc2d179722ce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 17): examples/community/fresco_v2v.py:1172-1183 | examples/community/pipeline_sdxl_style_aligned.py:265-275 | examples/community/pipeline_stable_diffusion_pag.py:116-126 | examples/community/pipeline_stable_diffusion_pag.py:231-241 | examples/community/regional_prompting_stable_diffusion.py:365-375 | src/diffusers/models/attention_processor.py:2066-2076 | src/diffusers/models/attention_processor.py:2663-2673 | src/diffusers/models/attention_processor.py:2757-2767 | src/diffusers/models/attention_processor.py:2873-2883 | src/diffusers/models/attention_processor.py:3091-3101 | src/diffusers/models/attention_processor.py:3189-3199 | src/diffusers/models/attention_processor.py:3292-3302 | src/diffusers/models/attention_processor.py:3397-3407 | src/diffusers/models/attention_processor.py:3521-3531 | src/diffusers/models/attention_processor.py:3737-3747 | src/diffusers/models/attention_processor.py:5090-5099 | src/diffusers/models/attention_processor.py:5191-5201 \u2014 there are 17 copies across 5 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 17 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1172\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f35564e300e54263d27001dc228074b84252b6dcf3e8c0278d6a8c285b3718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 17): examples/community/pipeline_animatediff_controlnet.py:602-613 | examples/community/pipeline_controlnet_xl_kolors.py:590-601 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:665-676 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:716-727 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:627-638 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:774-785 | examples/research_projects/anytext/anytext.py:1748-1759 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:708-719 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:603-614 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:730-741 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:718-729 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:833-844 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:776-787 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:780-791 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:676-687 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:784-795 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:786-797 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96450cbb155c59de22741943a83542fa5ca10543bd434b78ce2ac5aafdb3a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 17): examples/community/pipline_flux_fill_controlnet_Inpaint.py:714-725 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:334-345 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:587-598 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:692-703 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:835-847 | src/diffusers/pipelines/flux/pipeline_flux_control.py:545-556 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:598-609 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:637-648 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:639-650 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:599-610 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:703-714 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:469-480 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:451-462 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:486-497 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:661-672 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:345-356 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:352-363 \u2014 there are 17 copies across 16 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 17 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eeb5fe781550fadf2bb4142b836275ce7ae80864bc76fad8ff0e1cdde417895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 17): src/diffusers/models/autoencoders/autoencoder_kl.py:186-197 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:823-833 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1169-1179 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:198-209 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:793-803 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:515-524 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:719-729 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:757-767 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:618-629 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:338-348 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1249-1258 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:761-770 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:853-863 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:871-881 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:830-839 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1293-1302 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1180-1189 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 17 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:351\u0060 calls \u0060out_proj\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:773\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":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f14299a4b66cb57697ca30491e82441d9cefc11e39dc41eb49b8b09ef5b3812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 16): examples/community/fresco_v2v.py:1585-1596 | examples/community/gluegen.py:420-431 | examples/community/ip_adapter_face_id.py:652-663 | examples/community/latent_consistency_interpolate.py:449-460 | examples/community/llm_grounded_diffusion.py:1402-1413 | examples/community/pipeline_animatediff_controlnet.py:366-377 | examples/community/pipeline_animatediff_img2video.py:483-494 | examples/community/pipeline_prompt2prompt.py:420-431 | examples/community/pipeline_stable_diffusion_boxdiff.py:755-764 | examples/community/pipeline_stable_diffusion_pag.py:721-732 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:361-372 | examples/community/stable_diffusion_reference.py:580-591 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:490-501 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:495-506 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:523-534 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:695-704 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/gluegen.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/gluegen.py:416\u0060 calls \u0060_adapt_language\u0060 and \u0060examples/community/fresco_v2v.py:1581\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9c83d7b34135e429c3dc7045164886881af080f1a8191088b182b4cd25494b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 16): examples/community/pipeline_controlnet_xl_kolors.py:310-317 | examples/community/pipeline_controlnet_xl_kolors.py:365-372 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:332-339 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:389-396 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:383-390 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:439-446 | examples/community/pipeline_kolors_differential_img2img.py:294-305 | examples/community/pipeline_kolors_differential_img2img.py:349-360 | examples/community/pipeline_kolors_inpainting.py:570-577 | examples/community/pipeline_kolors_inpainting.py:626-633 | src/diffusers/pipelines/kolors/pipeline_kolors.py:268-279 | src/diffusers/pipelines/kolors/pipeline_kolors.py:323-334 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:288-299 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:343-354 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:285-296 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:340-351 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff262ad6505b1300ad6e23885530436ff56758e84225464951798c2cd7bfd4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 16): examples/community/pipeline_controlnet_xl_kolors.py:1124-1132 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1318-1329 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1607-1618 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:898-906 | examples/community/pipeline_stable_diffusion_xl_instantid.py:888-896 | examples/community/rerender_a_video.py:819-830 | examples/community/rerender_a_video.py:987-998 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1211-1219 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1659-1669 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1378-1386 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1456-1467 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1650-1660 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1374-1382 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1485-1496 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1363-1371 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1444-1455 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/rerender_a_video.py:819\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2294923583cab6e833c642097b62b1c4290dfa8aac41c09b551ec8ac09b2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 16): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:633-645 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:686-698 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:707-718 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:532-544 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:569-581 | src/diffusers/pipelines/flux2/pipeline_flux2.py:852-864 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:722-734 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:830-841 | src/diffusers/pipelines/krea2/pipeline_krea2.py:556-568 | src/diffusers/pipelines/mochi/pipeline_mochi.py:563-575 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:536-548 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:663-675 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:723-735 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:644-656 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:811-823 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:666-678 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 867 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:633\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"75faf30207f4f0798852217863b3679d59db616bb54c46fd23cb59a0731562ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 15): examples/community/hd_painter.py:835-845 | examples/community/lpw_stable_diffusion_xl.py:1882-1892 | examples/community/pipeline_kolors_inpainting.py:1625-1635 | examples/community/pipeline_sdxl_style_aligned.py:1845-1855 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2218-2228 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1468-1478 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1831-1841 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1843-1853 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1211-1221 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1496-1506 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1343-1353 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1695-1705 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1305-1315 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1659-1669 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:899-910 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 15 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 15 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/hd_painter.py:835\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, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1481\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1225\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"575cf08440a2acd2a039c316243143fc6f7f6f0c3d8fbe987c7ced2506404084"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 15): examples/community/lpw_stable_diffusion_xl.py:1192-1203 | examples/community/pipeline_kolors_inpainting.py:796-807 | examples/community/pipeline_sdxl_style_aligned.py:1015-1026 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:923-934 | examples/community/stable_diffusion_tensorrt_inpaint.py:876-887 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:744-755 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:864-875 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:930-941 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:907-918 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:815-826 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:733-744 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:787-798 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:709-720 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:703-714 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:789-800 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 595 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1192\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: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/lpw_stable_diffusion_xl.py:1207\u0060 calls \u0060repeat\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:938\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e798df99a2eb096850bf621f836f92ed0581cee624ed259a597e927510d8d712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 15): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1041-1052 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1243-1254 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1337-1348 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:741-752 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:874-885 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:718-729 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:891-902 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:842-853 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:906-917 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:711-722 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:922-933 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1091-1102 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1063-1074 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1230-1241 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1357-1368 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 1105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1256\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd.py:905\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":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d2818448bd7d1cfffec4b2c4aa94f4d0016fafec1d744983f61eef9248eedd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 14): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:596-604 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:651-659 | src/diffusers/pipelines/flux/pipeline_flux_control.py:776-787 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:811-822 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:960-971 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1022-1033 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:879-890 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1022-1033 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:879-890 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:904-915 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1037-1048 | src/diffusers/pipelines/ltx/pipeline_ltx.py:730-741 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:802-813 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:646-657 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py:596\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py:775\u0060 calls \u0060get\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py:595\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"461a75c6c05477115e5c3406c58f98565073cbca0d49beebbe9a321d2a110e41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 13): examples/community/clip_guided_stable_diffusion_img2img.py:226-237 | examples/community/latent_consistency_img2img.py:230-241 | examples/community/pipeline_hunyuandit_differential_img2img.py:690-701 | examples/community/rerender_a_video.py:582-593 | examples/community/stable_diffusion_controlnet_img2img.py:561-572 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:634-645 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:865-876 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:707-718 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:276-287 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:562-573 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:711-722 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:547-558 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:787-798 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 13 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 13 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_stable_diffusion_img2img.py:226\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":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f48de215957971f801f829182b0704e11a23c15058d75af316d1f0aad5b36c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 13): examples/community/fresco_v2v.py:2423-2435 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1325-1336 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1742-1753 | examples/community/rerender_a_video.py:857-869 | examples/community/rerender_a_video.py:1035-1046 | examples/community/stable_diffusion_xl_controlnet_reference.py:1228-1240 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1268-1280 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1243-1255 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1411-1423 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1762-1778 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1483-1495 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1542-1553 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1246-1258 \u2014 there are 13 copies across 12 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 13 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2423\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2423}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9d17610562516ff233804a8542c0c2429b4e14559a27498a30dfc4fc9a87ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 13): examples/community/masked_stable_diffusion_xl_img2img.py:473-484 | examples/community/pipeline_kolors_inpainting.py:1651-1662 | examples/community/pipeline_sdxl_style_aligned.py:1868-1879 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1396-1407 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1124-1135 | examples/community/stable_diffusion_xl_reference.py:1148-1159 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1552-1563 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:774-785 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1256-1267 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1441-1452 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1680-1691 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:924-935 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1274-1285 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1408\u0060 calls \u0060to\u0060, \u0060next\u0060, \u0060iter\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py:485\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":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"441af184261047dfc20c936fa92de38dbd3bd92a49176100866f742bbe66f8e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 13): examples/community/pipeline_animatediff_controlnet.py:922-933 | examples/community/pipeline_animatediff_ipex.py:693-704 | examples/community/pipeline_animatediff_ipex.py:874-885 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:776-787 | examples/community/pipeline_stable_diffusion_xl_instantid.py:768-779 | examples/research_projects/anytext/anytext.py:2129-2140 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1084-1095 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:855-866 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:847-858 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:905-916 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:809-820 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:843-854 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:775-786 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 639 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_animatediff_controlnet.py:935\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:868\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":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c532bbb6a822e12d3707c0259aaff05b8cb5fd9d9e8f1b0a2559af87a643d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 13): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:492-501 | scripts/convert_gligen_to_diffusers.py:257-266 | scripts/convert_i2vgen_to_diffusers.py:263-272 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:165-172 | scripts/convert_ms_text_to_video_to_diffusers.py:219-228 | scripts/convert_original_audioldm_to_diffusers.py:373-382 | scripts/convert_original_musicldm_to_diffusers.py:369-378 | scripts/convert_svd_to_diffusers.py:333-343 | scripts/convert_versatile_diffusion_to_diffusers.py:431-440 | scripts/convert_zero123_to_diffusers.py:341-350 | src/diffusers/loaders/single_file_utils.py:1284-1294 | src/diffusers/loaders/single_file_utils.py:1414-1425 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:490-499 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:492\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"9448cf69d90d6404f6abe8e688a66a16e7ea7b5ba98c828ead797e4d2c772a7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 13): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:874-885 | src/diffusers/pipelines/ltx/pipeline_ltx.py:695-705 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1066-1076 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:759-769 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1236-1246 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1684-1694 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1230-1240 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2068-2078 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1302-1312 | src/diffusers/pipelines/sana/pipeline_sana.py:863-873 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:926-936 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:900-910 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:932-942 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 13 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 13 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:874\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, \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video.py:913\u0060 calls \u0060retrieve_timesteps\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:708\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7f15a5918e77251606c44e943bbb4aa6a3ef8dd4b0cd48d5f4530d9f9c1f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 12): examples/community/fresco_v2v.py:1976-1987 | examples/community/lpw_stable_diffusion_xl.py:1146-1157 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:815-826 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:891-902 | examples/community/pipeline_hunyuandit_differential_img2img.py:657-667 | examples/community/pipeline_sdxl_style_aligned.py:969-980 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:611-620 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:676-687 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:677-688 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:481-491 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:672-683 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:688-699 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1976}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e7528cce61cf31b8f8c1853a03c63190a1ac5a8d59794226bf92184ef8726f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 12): examples/community/pipeline_flux_kontext_multiple_images.py:1092-1101 | examples/community/pipeline_flux_rf_inversion.py:865-873 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1054-1064 | src/diffusers/pipelines/flux/pipeline_flux.py:842-851 | src/diffusers/pipelines/flux/pipeline_flux_control.py:790-799 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:872-882 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1028-1036 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:942-950 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:942-952 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1098-1108 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:980-989 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:833-844 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1092\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, \u0060src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1028\u0060 calls \u0060max\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:872\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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a9affbe9d11c58702b7fca40c8ddbd2cd3c1a7f4f14ec2a16d14aad8bbe050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 12): examples/community/pipeline_stg_cogvideox.py:282-293 | examples/community/pipeline_stg_ltx.py:289-300 | examples/community/pipeline_stg_ltx_image2video.py:312-323 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:228-239 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:236-247 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:246-257 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:252-263 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:194-205 | src/diffusers/pipelines/consisid/pipeline_consisid.py:338-349 | src/diffusers/pipelines/ltx/pipeline_ltx.py:263-274 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:532-543 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:286-297 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060examples/community/pipeline_stg_ltx.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d16abfffdd9951e4ff40c3892751dec839da6a1d7b752fc713ed32aac442ac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 12): examples/community/pipeline_stg_hunyuan_video.py:463-474 | examples/community/pipeline_stg_wan.py:366-377 | src/diffusers/modular_pipelines/wan/before_denoise.py:562-573 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:324-335 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:343-354 | src/diffusers/pipelines/helios/pipeline_helios.py:339-350 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:361-372 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:673-684 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:673-684 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:337-348 | src/diffusers/pipelines/wan/pipeline_wan.py:342-353 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:650-661 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060examples/community/pipeline_stg_wan.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/modular_pipelines/wan/before_denoise.py:559\u0060 calls \u0060to\u0060 and \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:671\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae16ca96d25f32cf07c850f6873e66004a96470eb1af53d43f66a38ffc493f27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 12): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:83-94 | scripts/convert_i2vgen_to_diffusers.py:113-124 | scripts/convert_if.py:550-561 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:36-47 | scripts/convert_ms_text_to_video_to_diffusers.py:118-129 | scripts/convert_original_audioldm2_to_diffusers.py:66-77 | scripts/convert_original_audioldm_to_diffusers.py:57-68 | scripts/convert_original_musicldm_to_diffusers.py:58-69 | scripts/convert_svd_to_diffusers.py:224-235 | scripts/convert_versatile_diffusion_to_diffusers.py:107-118 | scripts/convert_zero123_to_diffusers.py:209-220 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:81-92 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 322 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_svd_to_diffusers.py:238\u0060 calls \u0060replace\u0060 and \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:97\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"238eff14f1d0003a7e5ac8d16e11c5237ff468a8f9545e7a15d374e2d3d43442"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 11): examples/community/lpw_stable_diffusion.py:999-1010 | examples/community/pipeline_prompt2prompt.py:712-723 | examples/community/pipeline_zero1to3.py:741-752 | examples/community/stable_diffusion_ipex.py:698-709 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1027-1038 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:502-513 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:678-689 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:582-593 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:773-784 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:593-604 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:381-392 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 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 11 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion.py:999\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, \u0060examples/community/pipeline_zero1to3.py:756\u0060 calls \u0060cat\u0060 and \u0060examples/community/pipeline_prompt2prompt.py:729\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35c37cb6653dd24d16aeb088112c4044d24ace7e00db445007303cef9168e86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 11): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:377-388 | src/diffusers/pipelines/allegro/pipeline_allegro.py:267-278 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:226-237 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:250-261 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:403-414 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:254-265 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:405-416 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:361-372 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:242-253 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:355-366 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:299-310 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bc6dece419045f135e7be3aa93e37e477ebdfe58794a54e4f88c31faf6e25c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 11): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:699-710 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:747-758 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:699-710 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:688-699 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:568-579 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:701-712 | src/diffusers/pipelines/wan/pipeline_wan.py:635-646 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1140-1151 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:792-803 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:997-1008 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:694-705 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:747\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa89033588a7195d8c4a42881a658dd34a68c2cb667f4134797838dc5af708cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 10): examples/community/fresco_v2v.py:2408-2419 | examples/community/pipeline_animatediff_controlnet.py:1045-1055 | examples/research_projects/anytext/anytext.py:2255-2266 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1234-1245 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1038-1048 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:956-966 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1276-1286 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1253-1264 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1228-1239 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1396-1407 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_animatediff_controlnet.py:1056\u0060 calls \u0060repeat_interleave\u0060 and \u0060examples/community/fresco_v2v.py:2421\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":"examples/community/fresco_v2v.py"},"region":{"startLine":2408}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cd6baf365f3a10649f576b4e4a9d8ada3f3f54e298ee20a32c54bed7797752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 10): examples/community/gluegen.py:302-312 | examples/community/pipeline_zero1to3.py:226-236 | examples/community/stable_diffusion_controlnet_img2img.py:218-228 | examples/community/stable_diffusion_controlnet_inpaint.py:317-327 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:302-312 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:142-152 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:199-209 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:163-173 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:151-162 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:138-149 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:302\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:195\u0060 calls \u0060clip_skip\u0060 and \u0060examples/community/pipeline_zero1to3.py:224\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe028f385258fc29be8cfc4b44fbaa38327b4d6bd00b601fff435135ef9bf75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10): examples/community/lpw_stable_diffusion_xl.py:1211-1224 | examples/community/pipeline_kolors_inpainting.py:815-828 | examples/community/pipeline_sdxl_style_aligned.py:1034-1047 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1086-1099 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:942-955 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:763-776 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:950-963 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:927-940 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:806-819 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:808-821 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 595 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1211\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a0128372e845ac7d810532e9d91459ef7d567075f7376a2e3cea00260c9de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 10): examples/community/matryoshka.py:2731-2740 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:1029-1038 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:256-265 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:579-588 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1149-1158 | src/diffusers/pipelines/dit/pipeline_dit.py:186-195 | src/diffusers/pipelines/latte/pipeline_latte.py:806-815 | src/diffusers/pipelines/lumina/pipeline_lumina.py:829-840 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:809-818 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:844-853 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py:829\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:842\u0060 calls \u0060scale_model_input\u0060 and \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py:827\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":"examples/community/matryoshka.py"},"region":{"startLine":2731}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8468c4cba2544d8fb15e36fb9d375a49bddb7a7e6c9b8193f63b09d2aac43b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 10): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:440-451 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:498-509 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:254-264 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:488-499 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:510-521 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:458-469 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:474-485 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:467-478 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:493-504 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:499-510 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 772 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"537e82bc21951f5073ccea6dde8401dc70032029df866973f2e676128b8cc412"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 10): examples/community/pipeline_stg_cogvideox.py:124-135 | src/diffusers/models/transformers/transformer_easyanimate.py:76-87 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:70-81 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:77-88 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:69-80 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:78-89 | src/diffusers/pipelines/consisid/pipeline_consisid.py:159-170 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:82-93 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:158-169 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:180-191 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee7aa8b2aab00452e58ea3884f0808cee6728ef7476fc2dea347f6da88cef07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 10): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:507-518 | scripts/convert_gligen_to_diffusers.py:272-283 | scripts/convert_i2vgen_to_diffusers.py:279-290 | scripts/convert_ms_text_to_video_to_diffusers.py:235-246 | scripts/convert_original_audioldm2_to_diffusers.py:387-398 | scripts/convert_original_audioldm_to_diffusers.py:388-399 | scripts/convert_original_musicldm_to_diffusers.py:384-395 | scripts/convert_versatile_diffusion_to_diffusers.py:457-468 | scripts/convert_zero123_to_diffusers.py:356-367 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:505-516 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b9526cd9555dac8f229fa36c48ce79f43d769d141753fba6cf8958c919e50a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 9): examples/community/kohya_hires_fix.py:323-334 | examples/community/matryoshka.py:3123-3134 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:846-856 | src/diffusers/models/unets/unet_2d_condition.py:1204-1215 | src/diffusers/models/unets/unet_3d_condition.py:637-648 | src/diffusers/models/unets/unet_i2vgen_xl.py:618-629 | src/diffusers/models/unets/unet_motion_model.py:2076-2087 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:673-684 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1377-1388 \u2014 before extracting anything, compare \u0060examples/community/kohya_hires_fix.py\u0060 and \u0060examples/community/matryoshka.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/kohya_hires_fix.py:323\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":"examples/community/kohya_hires_fix.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1d20d0e7fa27485402f3991c0857c6c671b51e10ee9476a50534da286bf999"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 9): examples/community/masked_stable_diffusion_xl_img2img.py:440-451 | examples/community/pipeline_kolors_inpainting.py:1602-1612 | examples/community/stable_diffusion_xl_reference.py:1116-1126 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1264-1274 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1456-1466 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1672-1682 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1229-1239 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1414-1424 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1636-1646 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3ad6d821a939bbc02861e52b6e7b85e65c573936aca6ca431e23a1fd3d5b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 9): examples/community/pipeline_flux_differential_img2img.py:842-853 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:801-811 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:951-962 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:774-784 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:842-852 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:849-859 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:981-992 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:634-644 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:777-788 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 304 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:981\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37eca284a3af889236839dcb4a1d164c5e4c95a5f2e32bf45b695f038d63d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:591-602 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:364-375 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:245-256 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:262-273 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:251-262 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:286-297 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:302-313 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:278-289 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:308-319 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 995 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:591\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, \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:360\u0060 calls \u0060isinstance\u0060, \u0060MultiControlNetModel\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:588\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddabb2ab1aa88fa716deb1a1ea45d0a7ae23baf4ece60599578cb5ed18382707"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 8): examples/community/fresco_v2v.py:1971-1982 | examples/community/latent_consistency_img2img.py:196-207 | examples/community/rerender_a_video.py:548-559 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:672-683 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:477-486 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:167-178 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:138-149 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:266-277 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1971\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1971}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a40ff8dfeaef4b06c4b4bf8157f08f6b62389339682aed2387b2c63998fd3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 8): examples/community/latent_consistency_img2img.py:563-574 | examples/community/latent_consistency_txt2img.py:475-486 | src/diffusers/schedulers/scheduling_ddim.py:218-229 | src/diffusers/schedulers/scheduling_ddim_parallel.py:224-235 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:196-206 | src/diffusers/schedulers/scheduling_euler_discrete.py:235-245 | src/diffusers/schedulers/scheduling_lcm.py:230-241 | src/diffusers/schedulers/scheduling_tcd.py:231-242 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e0148cec8d0256a563ec4dc2a58bf4d754220661e8133ebd6d14a062fad896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): examples/community/lpw_stable_diffusion.py:939-953 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:860-874 | examples/community/stable_diffusion_controlnet_reference.py:246-260 | examples/community/stable_diffusion_ipex.py:659-673 | examples/community/stable_diffusion_repaint.py:753-764 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:464-478 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:544-558 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:587-601 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion.py:939\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, \u0060examples/community/lpw_stable_diffusion.py:954\u0060 calls \u0060get\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py:877\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":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab592b7b14fbae26b2aa397435d763c916e3f8dac1dd2f6d95a32a9fb1173bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): examples/community/lpw_stable_diffusion_xl.py:663-674 | examples/community/pipeline_sdxl_style_aligned.py:477-488 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:217-228 | examples/community/pipeline_stable_diffusion_xl_ipex.py:240-251 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:408-419 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:361-372 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:262-273 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:255-266 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 1530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:214\u0060 calls \u0060isinstance\u0060, \u0060MultiControlNetModel\u0060 and \u0060examples/community/lpw_stable_diffusion_xl.py:661\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"e181b3960746c2b2b6b909b2dc057c5026fd464bf73db615ee32d4777bd8b64b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 8): examples/community/matryoshka.py:1299-1310 | examples/research_projects/pixart/controlnet_pixart_alpha.py:178-189 | src/diffusers/models/controlnets/controlnet_sana.py:172-183 | src/diffusers/models/transformers/pixart_transformer_2d.py:287-298 | src/diffusers/models/transformers/sana_transformer.py:472-483 | src/diffusers/models/transformers/transformer_2d.py:387-398 | src/diffusers/models/transformers/transformer_ltx2.py:1468-1474 | src/diffusers/models/transformers/transformer_sana_video.py:628-639 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/pixart_transformer_2d.py:275\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/models/transformers/sana_transformer.py:460\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":"examples/community/matryoshka.py"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a670b2b399826b1b2c43f0febd4d9d3de807fa2b37dffe5201ed573fe40cf0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): examples/community/pipeline_kolors_differential_img2img.py:1108-1119 | examples/community/stable_diffusion_xl_reference.py:1019-1030 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1181-1192 | src/diffusers/pipelines/kolors/pipeline_kolors.py:929-940 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1103-1114 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:967-978 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1168-1179 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1155-1166 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060examples/community/stable_diffusion_xl_reference.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 355 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1179\u0060 calls \u0060repeat_interleave\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1166\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":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"69681cb19f37f91aa5ffb9fcffec78c3aab40215e422c238dc182d0e60bf08ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 8): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1040-1051 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1077-1088 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:932-943 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:970-981 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:814-824 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:848-858 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:948-959 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:985-996 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"97405e3109b7d8b33ebcf6c9d442206834dcb7e4069d72589350e8cf8035e6b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 8): scripts/convert_flux_to_diffusers.py:129-138 | scripts/convert_flux_to_diffusers.py:221-232 | scripts/convert_flux_xlabs_ipadapter_to_diffusers.py:62-70 | scripts/convert_ovis_image_to_diffusers.py:81-90 | scripts/convert_ovis_image_to_diffusers.py:189-200 | src/diffusers/loaders/single_file_utils.py:2357-2366 | src/diffusers/loaders/single_file_utils.py:2441-2452 | src/diffusers/loaders/single_file_utils.py:3604-3613 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_flux_xlabs_ipadapter_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.py:221\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/convert_flux_to_diffusers.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"0537a3ab7c48e31511885713f12eadbc4aa447a78e3833be3ee1d2173cc7f8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 8): scripts/convert_hunyuan_image_to_diffusers.py:830-839 | scripts/convert_hunyuan_video1_5_to_diffusers.py:596-605 | scripts/convert_pixart_alpha_to_diffusers.py:124-133 | scripts/convert_pixart_sigma_to_diffusers.py:136-145 | scripts/convert_sana_to_diffusers.py:216-225 | scripts/convert_sana_video_to_diffusers.py:185-194 | src/diffusers/loaders/single_file_utils.py:3197-3206 | src/diffusers/loaders/single_file_utils.py:3618-3629 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuan_image_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuan_video1_5_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 384 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_hunyuan_image_to_diffusers.py:830\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/convert_hunyuan_image_to_diffusers.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9b85a85d015af1ee0009e813e7ff1a5da686a7799d2ba42ff9dcd19bdc49e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:735-746 | src/diffusers/pipelines/consisid/pipeline_consisid.py:811-822 | src/diffusers/pipelines/sana/pipeline_sana.py:836-847 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:899-910 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:708-719 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:788-799 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:873-884 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:905-916 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py\u0060 and \u0060src/diffusers/pipelines/consisid/pipeline_consisid.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd920acdf5b27f32b4d4e5633b4cf0e38f5a7fc26e8b00acc2f03d0aeb60dfbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 8): src/diffusers/pipelines/flux/pipeline_flux_control.py:822-833 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:905-916 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:977-986 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:971-982 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:838-848 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:830-838 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:720-728 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:866-877 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 906 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py:822\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e818598b3081032d33370bb70b3379aa09bff7a7cfbe2434019d76c2d71a9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 8): src/diffusers/pipelines/krea2/pipeline_krea2.py:707-717 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:635-644 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:711-721 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:954-964 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:925-935 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:840-850 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:884-894 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:813-824 \u2014 \u0060src/diffusers/pipelines/krea2/pipeline_krea2.py\u0060 and \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.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 26 separate duplicated blocks between them, totalling at least 286 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/krea2/pipeline_krea2.py:707\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":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"098ef5dc63bfc0027789b5fcd53e543df0f9f3d77d91a3d3b7f7907906ecea26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): examples/community/adaptive_mask_inpainting.py:272-283 | examples/community/pipeline_kolors_inpainting.py:194-205 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:390-401 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:240-251 | examples/community/stable_diffusion_repaint.py:97-108 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:197-208 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:195-206 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db5d523981e73e000b2441519f97d730a6129878a51723abbd4f056c0857c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): examples/community/fresco_v2v.py:2433-2444 | examples/research_projects/anytext/anytext.py:2280-2291 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1260-1271 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1278-1289 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1253-1264 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1421-1432 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1256-1267 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/research_projects/anytext/anytext.py\u0060 as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 920 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2433\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, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1436\u0060 calls \u0060cat\u0060 and \u0060examples/community/fresco_v2v.py:2447\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":"examples/community/fresco_v2v.py"},"region":{"startLine":2433}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a773aba851be9d1584a96129b58ed32fa2671d90256bc99e3061ce0ce03427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 7): examples/community/pipeline_flux_differential_img2img.py:582-591 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:617-626 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:640-649 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:607-616 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:676-685 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:528-539 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:484-495 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 789 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:526\u0060 calls \u0060transpose\u0060 and \u0060examples/community/pipeline_flux_differential_img2img.py:580\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6715a24b7eea0f2ef996900eca58dac0d8f2ddeb106e21439e4430a24cf184a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 7): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:252-262 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:260-271 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:205-215 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:221-231 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:221-231 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:243-254 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:249-260 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 925 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:260\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:217\u0060 calls \u0060set_pag_applied_layers\u0060, \u0060PAGCFGJointAttnProcessor2_0\u0060, \u0060PAGJointAttnProcessor2_0\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:264\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3e64367fd3da1a5828ab69a6b7a14fa5529e5b8e389cd2aaebaef5f4e5b3eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): examples/community/pipeline_zero1to3.py:482-493 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:467-478 | src/diffusers/pipelines/consisid/pipeline_consisid.py:569-580 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:267-278 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:193-204 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:215-226 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:322-333 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_zero1to3.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"289f0afd003d1cb7f2be2d541a89030c5fc7aab61776732179bf1b6547e212d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 7): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1115-1125 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:844-854 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:995-1005 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1230-1240 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:887-898 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:683-693 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:827-837 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 342 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d754271770b75651e25a1c5b9097e8bbcd17330b4bb71fd56c63e5679b48ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): src/diffusers/models/transformers/transformer_bria.py:164-175 | src/diffusers/models/transformers/transformer_bria_fibo.py:110-121 | src/diffusers/models/transformers/transformer_flux.py:121-132 | src/diffusers/models/transformers/transformer_flux2.py:372-383 | src/diffusers/models/transformers/transformer_longcat_image.py:111-122 | src/diffusers/models/transformers/transformer_motif_video.py:188-200 | src/diffusers/models/transformers/transformer_ovis_image.py:111-122 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_bria.py:161\u0060 calls \u0060apply_rotary_emb\u0060 and \u0060src/diffusers/models/transformers/transformer_motif_video.py:185\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"a639d58e62c2f09e00ceb7d5df8a742ddbdfbba5477035ab96e856e7234d7e98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:763-774 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:940-951 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:894-906 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:978-990 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1182-1194 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:841-852 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:748-759 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"979158230ac7121e99af019851b15a0906547cbc7d29219b597cea79f97cbe8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:285-296 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:276-287 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:277-288 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:295-306 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:209-220 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:291-302 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:279-290 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1944 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060StableDiffusionXLWatermarker\u0060 names \u0060...stable_diffusion_xl.watermark\u0060 in one and \u0060..stable_diffusion_xl.watermark\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:288\u0060 calls \u0060register_to_config\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:299\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b15a5c0f7c81cb661d5310de49724aaf89a938019ca78c6a75afe2d25900d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 7): src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:154-164 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:175-185 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:136-144 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:164-175 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:151-161 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:155-166 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:174-185 \u2014 \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py\u0060 and \u0060src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.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 47 separate duplicated blocks between them, totalling at least 713 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:154\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d335947a42d83218f9592afad8fd8a416e4f5f7632b5ff5cddd26cc400809b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): examples/community/adaptive_mask_inpainting.py:575-586 | examples/community/instaflow_one_step.py:308-319 | examples/community/latent_consistency_img2img.py:132-143 | examples/community/latent_consistency_txt2img.py:130-141 | examples/community/pipeline_fabric.py:272-283 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:610-621 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:575\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cbccc9fe4938ccd75bbe6e3cf858b872e6f0f76561917fa7382f98fd73453b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 6): examples/community/fresco_v2v.py:384-395 | examples/community/kohya_hires_fix.py:152-163 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:700-706 | src/diffusers/models/unets/unet_2d_condition.py:1063-1074 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:561-572 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1131-1142 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/kohya_hires_fix.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1f13d1658ca0e7a08af485bddd2a1dbf2fc3d6a3aaeb04ac9d0189859339c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): examples/community/fresco_v2v.py:1224-1235 | examples/community/rerender_a_video.py:238-249 | examples/community/stable_diffusion_controlnet_img2img.py:65-76 | examples/community/stable_diffusion_controlnet_inpaint.py:128-139 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:127-138 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:117-128 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/rerender_a_video.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c940bb5d6e169082f3989ce24b6fccf5af840965706039745022676ef8bbdc7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): examples/community/matryoshka.py:799-810 | src/diffusers/models/unets/unet_2d_blocks.py:1172-1183 | src/diffusers/models/unets/unet_3d_blocks.py:1170-1181 | src/diffusers/models/unets/unet_dreamlite.py:576-587 | src/diffusers/models/unets/unet_dreamlite.py:724-735 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1628-1639 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_blocks.py:1170\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":"examples/community/matryoshka.py"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f50155610501ef65ce9a18eca10e2504d08410571f76d5d507c5ac03fcc9df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): examples/community/matryoshka.py:4485-4496 | examples/community/pipeline_stable_diffusion_pag.py:1314-1325 | examples/community/regional_prompting_stable_diffusion.py:1022-1033 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:980-991 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1268-1279 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1014-1025 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_pag.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 503 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:4485\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":"examples/community/matryoshka.py"},"region":{"startLine":4485}}}],"partialFingerprints":{"codehealthFindingId/v1":"6305553a3dfdd48c490df6e39ea59faf75f5dc70de0f771af92ba068f95a50ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): examples/community/pipeline_animatediff_img2video.py:299-310 | examples/community/pipeline_animatediff_ipex.py:153-164 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:138-149 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:241-252 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:200-211 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:147-158 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_img2video.py\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_animatediff_ipex.py:152\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py:298\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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"588ad18381653f73a45dc142559044bb8cf4b4c352a2a60bd11badf1f3a7c542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): examples/community/pipeline_stg_ltx.py:240-251 | examples/community/pipeline_stg_ltx_image2video.py:259-270 | src/diffusers/pipelines/ltx/pipeline_ltx.py:214-225 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:296-307 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:442-453 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:233-244 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_ltx.py:240\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"273ba2e276b110d7d2995385934fc00771199a107cd767993994b36bafd35f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): examples/community/pipeline_stg_wan.py:562-574 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:725-736 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:839-850 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:537-549 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:668-680 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:665-677 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:725\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:553\u0060 calls \u0060cache_context\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_video2video.py:681\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ca3c721a11410c111befc1b91cf6b22581d48306e6fd98abb100dacfa7f994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): examples/community/pipeline_stg_wan.py:632-643 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:719-730 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:708-719 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:588-599 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:721-732 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:714-725 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 418 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:708\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":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"1027ac4d2542592d7f65d95f3000f1ee614009f3d9a8ab7fc7255ece0403fb7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 6): examples/community/pipline_flux_fill_controlnet_Inpaint.py:976-987 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1017-1028 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1189-1200 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:863-874 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:764-774 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:886-897 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:777\u0060 calls \u0060get\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1030\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"9124c8e5c646fe39707513e72bdb4918b1e6aa6e9c7ef858a5f5e4239f623fd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 6): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:447-458 | src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:776-787 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:370-380 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:594-604 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:452-463 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:782-793 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:447\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"210ca182ffef8cb3b2858faddbc42b85b802ebdaf757aabcf312e0814ca23f94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): src/diffusers/modular_pipelines/z_image/before_denoise.py:460-471 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:641-652 | src/diffusers/pipelines/z_image/pipeline_z_image.py:264-275 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:319-330 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:326-337 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:285-296 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/z_image/before_denoise.py:460\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":"src/diffusers/modular_pipelines/z_image/before_denoise.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5ea8c01c5d6511e16adf377620cd630982e06981439215b0322563f455a2b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 6): src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1325-1335 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1299-1310 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1485-1496 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1607-1618 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1654-1665 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:691-701 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 111 separate duplicated blocks between them, totalling at least 1729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd074ca95841cc2cdd386120e7afb412c67a989cbfe1f25c49094590950cf7ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 6): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:772-786 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:896-910 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:1013-1027 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:1018-1032 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1127-1140 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:869-883 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d6d2c6d4bd1e62dacf1f16aa67172a99a34a60b406529723d96d77eb34ec1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:410-421 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:462-473 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:472-483 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:484-495 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:415-426 | src/diffusers/pipelines/lumina/pipeline_lumina.py:303-314 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:410\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53f009b8e76c30324b2a89709024bcab15a283c81e47d4723bc297b07f9c8e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1920-1931 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1962-1973 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1448-1459 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1486-1497 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2350-2361 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2399-2410 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 823 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1920\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"474999db698afc4cac3480f3b93a19bf8e5baa15f4576464678475060d4eabfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 6): src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1021-1032 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:996-1006 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1285-1295 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1222-1233 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1415-1426 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1628-1639 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_kolors.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 515 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_kolors.py"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c9a361be47bb6e0a91d9b1653f8b36773da3e3de09e735b405b829c6a7326f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:656-667 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:784-795 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:998-1009 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:828-839 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:758-769 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:927-938 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 633 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2896c0bdf1f3f1efd6b7705b45260ecf9bfe546214a70852a28d7a5c82d9b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): src/diffusers/schedulers/scheduling_deis_multistep.py:623-634 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:801-812 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:652-663 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:717-728 | src/diffusers/schedulers/scheduling_sasolver.py:629-640 | src/diffusers/schedulers/scheduling_unipc_multistep.py:804-815 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:800\u0060 calls \u0060_sigma_to_alpha_sigma_t\u0060 and \u0060src/diffusers/schedulers/scheduling_sasolver.py:628\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":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e574eb1560773bca02504f5963e7a6c0cbfd40c371f6c821e82066b35168ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 5): examples/community/composable_stable_diffusion.py:189-199 | examples/community/regional_prompting_stable_diffusion.py:1128-1139 | examples/community/sd_text2img_k_diffusion.py:140-150 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:214-224 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:130-140 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/regional_prompting_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2a2b1518e7cc8d9e5203666ba283c06121e7bdd48c84a89e8e03d23101af0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/community/fresco_v2v.py:2290-2301 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1251-1262 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:835-846 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1149-1160 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1403-1414 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfb63f7a216b33dbffd4739774a44db3f05680bd6a3b6345fcd9a0e4925668d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/community/pipeline_hunyuandit_differential_img2img.py:576-587 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:504-515 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:566-577 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:475-486 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:486-497 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:576\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, \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:565\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:575\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":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70221c280162347b42486058920c0453ca6b08a08bed045f0e86a5418bec5b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/community/pipeline_kolors_inpainting.py:1694-1705 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2284-2295 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1875-1886 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1887-1898 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1723-1734 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ded786f03c7e0728803dbce5b67fcabb5a93c352ecf327a5e17a7a3aa417d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:216-227 | examples/community/pipeline_stable_diffusion_xl_instantid.py:216-227 | src/diffusers/models/attention_processor.py:1151-1162 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:105-116 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:123-134 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e69efe4664732f671017c17090c20874c853c8a53dbc7fc5bc1e1c7b890e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 5): examples/community/pipeline_stg_cogvideox.py:241-251 | src/diffusers/pipelines/allegro/pipeline_allegro.py:200-210 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:187-197 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:194-204 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:209-220 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 289 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"601672f5354c97cca6960cca672e7b9075454cb44505f7c04b113c26a9b97758"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/community/stable_diffusion_repaint.py:749-760 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:778-789 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:334-345 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:658-669 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:752-763 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/stable_diffusion_repaint.py:747\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:656\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":"examples/community/stable_diffusion_repaint.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8235c9360772b98eef82d072ae7b84ccc834d693956a39bbec03fae6d28a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 5): examples/community/unclip_text_interpolation.py:151-162 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:155-166 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:331-340 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:289-298 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:324-333 \u2014 before extracting anything, compare \u0060examples/community/unclip_text_interpolation.py\u0060 and \u0060src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 292 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/unclip_text_interpolation.py:151\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_text_interpolation.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"825c9960b5f6f56ae0b4811915c30d576a2669a4e6c92f88b18a2ad112d653bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): scripts/convert_flux_to_diffusers.py:214-225 | scripts/convert_ovis_image_to_diffusers.py:182-193 | src/diffusers/loaders/lora_conversion_utils.py:1271-1282 | src/diffusers/loaders/single_file_utils.py:2434-2445 | src/diffusers/loaders/single_file_utils.py:3695-3706 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_ovis_image_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.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":"scripts/convert_flux_to_diffusers.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"98486783d232f053d82912ecf096ab87277d4778046777a617104c3ff72b55ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 5): scripts/convert_sana_to_diffusers.py:212-223 | scripts/convert_sana_video_to_diffusers.py:181-192 | scripts/convert_sd3_to_diffusers.py:219-229 | src/diffusers/loaders/single_file_utils.py:2190-2200 | src/diffusers/loaders/single_file_utils.py:3194-3204 \u2014 before extracting anything, compare \u0060scripts/convert_sana_to_diffusers.py\u0060 and \u0060scripts/convert_sana_video_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_sana_to_diffusers.py:212\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/convert_sana_to_diffusers.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"833510372ea63807664634c92904c58c3c16f055e7ac827faa67b0ea2993d02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): src/diffusers/models/attention_processor.py:1026-1037 | src/diffusers/models/transformers/transformer_hunyuan_video.py:114-125 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:84-95 | src/diffusers/models/transformers/transformer_hunyuanimage.py:109-120 | src/diffusers/models/transformers/transformer_motif_video.py:170-181 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"49288cd0a43238c3a37759bda2f1134e74d11808eb03048ec3f929a1e35bd785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): src/diffusers/models/transformers/transformer_chronoedit.py:42-53 | src/diffusers/models/transformers/transformer_helios.py:66-77 | src/diffusers/models/transformers/transformer_wan.py:41-52 | src/diffusers/models/transformers/transformer_wan_animate.py:53-64 | src/diffusers/models/transformers/transformer_wan_animate_2.py:88-99 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060attn\u0060 to \u0060\u0022WanAttention\u0022\u0060 in one and \u0060\u0022HeliosAttention\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6705b43425962e0b580e847cd0c540ffab45d52361f4420feefb2ea2b56b3f6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): src/diffusers/models/transformers/transformer_chronoedit.py:125-136 | src/diffusers/models/transformers/transformer_skyreels_v2.py:128-139 | src/diffusers/models/transformers/transformer_wan.py:122-133 | src/diffusers/models/transformers/transformer_wan_animate.py:605-616 | src/diffusers/models/transformers/transformer_wan_animate_2.py:320-331 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_chronoedit.py:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"2058357f84af8c65c46c122783687c3152e20a8538a144692476b84c55d67179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): src/diffusers/models/transformers/transformer_chronoedit.py:505-516 | src/diffusers/models/transformers/transformer_skyreels_v2.py:501-512 | src/diffusers/models/transformers/transformer_wan.py:490-501 | src/diffusers/models/transformers/transformer_wan_animate.py:969-980 | src/diffusers/models/transformers/transformer_wan_vace.py:115-126 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cedec5a97bcbf611570bfdd96513a628f7bfb2f04b8ce4b7e7ff2e7f3bef834"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): src/diffusers/models/transformers/transformer_hunyuan_video.py:132-143 | src/diffusers/models/transformers/transformer_hunyuanimage.py:127-138 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:122-134 | src/diffusers/models/transformers/transformer_nucleusmoe_image.py:327-339 | src/diffusers/models/transformers/transformer_qwenimage.py:560-573 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b24a2d00cbb645ac3dad308eab03cf025783211844dc25f5a6aa068ec5c778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 5): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:414-425 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:503-514 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:299-308 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:358-367 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:528-537 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 320 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:526\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:501\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":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef40de81f1d7d716cb2e2e5dd995f5b927950a048a6c8b41dbda146131ff650f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:330-341 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:217-228 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:231-242 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:337-348 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:352-363 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:330\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, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:329\u0060 calls \u0060getattr\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:216\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee690f2a9d91a7cbd8e0e8def2384b7fbadbd5838136591a9b1621b539beec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 5): src/diffusers/schedulers/scheduling_dpmsolver_sde.py:445-455 | src/diffusers/schedulers/scheduling_heun_discrete.py:342-352 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:302-313 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:302-312 | src/diffusers/schedulers/scheduling_lms_discrete.py:324-334 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_sde.py\u0060 and \u0060src/diffusers/schedulers/scheduling_heun_discrete.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_sde.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"396e7e60befe253503ba28e152740de27dabea14f3269fa81896f3f48450684e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/community/pipeline_flux_kontext_multiple_images.py:967-978 | src/diffusers/modular_pipelines/flux/inputs.py:354-365 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:845-856 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1066-1077 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"d897697486d8bfa6dd769d34aa0626be6e8578b523a44f807d278eda46ec404f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1351-1362 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1804-1815 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1817-1828 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1254-1265 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 814 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1351\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_differential_img2img.py"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"372e9a0c6e8802398eb3b96c0bb9b83379c9f08e05fd0e9b192f9023fdac77f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 4): examples/community/pipeline_stg_ltx.py:742-753 | examples/community/pipeline_stg_ltx_image2video.py:817-825 | src/diffusers/pipelines/ltx/pipeline_ltx.py:719-730 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:794-802 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:719\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, \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:791\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:719\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":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"309313c07fe7b0f68e5e663bb1c8a1a7e41711476ae5a4fff467b6ee6fa3e392"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/community/pipeline_stg_ltx.py:753-764 | examples/community/pipeline_stg_ltx_image2video.py:825-836 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:658-669 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:807-818 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py:658\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"e482171ed77a67c22682bbbcfe669e2746ecbc4af54fabd4b09a8cab3ccf7897"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/community/pipeline_z_image_differential_img2img.py:185-196 | src/diffusers/pipelines/z_image/pipeline_z_image.py:154-165 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:183-194 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:199-210 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060ZImageTransformer2DModel\u0060 names \u0060...models.transformers\u0060 in one and \u0060diffusers.models.transformers\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_z_image_differential_img2img.py:197\u0060 calls \u0060getattr\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:211\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc99252e5b79c99732484656da580dba2a273d552746deb43c4d24ca11039f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:414-425 | scripts/convert_svd_to_diffusers.py:261-272 | scripts/convert_zero123_to_diffusers.py:268-279 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:412-423 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_svd_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 454 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"9265c181436acd5e6c9e89aff3ac1b7cc9eaa212f745845c676130650c478bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): examples/research_projects/rdm/pipeline_rdm.py:322-333 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:546-556 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:384-394 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:462-472 \u2014 before extracting anything, compare \u0060examples/research_projects/rdm/pipeline_rdm.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/rdm/pipeline_rdm.py:322\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/rdm/pipeline_rdm.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a66ab57e3e3bae79320461059e7ba8b52c87a84150319ab537830c589615d1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/research_projects/sana/train_sana_sprint_diffusers.py:128-139 | src/diffusers/models/attention_processor.py:3026-3037 | src/diffusers/models/transformers/sana_transformer.py:142-153 | src/diffusers/models/transformers/transformer_sana_video.py:300-311 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py:128\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, \u0060src/diffusers/models/attention_processor.py:3039\u0060 calls \u0060norm_encoder_hidden_states\u0060 and \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py:141\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/sana/train_sana_sprint_diffusers.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"622e52233a1b46d4566672e6a5a7980c0b08d02eca44fa4cec0a781cc045ed01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 4): scripts/convert_cogview3_to_diffusers.py:137-148 | scripts/convert_cogview4_to_diffusers.py:145-156 | scripts/convert_mochi_to_diffusers.py:136-147 | src/diffusers/loaders/single_file_utils.py:2796-2805 \u2014 before extracting anything, compare \u0060scripts/convert_cogview3_to_diffusers.py\u0060 and \u0060scripts/convert_cogview4_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_cogview3_to_diffusers.py:137\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/convert_cogview3_to_diffusers.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"122a175267ffd8c3ac6c7c6673c47cbfdf891acad42604332e0de66690a76a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/models/transformers/transformer_ltx2.py:166-177 | src/diffusers/models/transformers/transformer_ltx2.py:246-257 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:150-161 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:231-242 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.py:166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75f05183c4dde8525657a93667ce881069563e389b71e5742434503eba0665b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/models/unets/unet_2d_blocks.py:2561-2572 | src/diffusers/models/unets/unet_2d_blocks.py:3077-3088 | src/diffusers/models/unets/unet_dreamlite.py:1325-1336 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1834-1845 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"7729d4a9e4897a3405f7eaa0d364fe108a37d3a61cb89dd141153d589923336e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/models/unets/unet_2d_condition.py:382-393 | src/diffusers/models/unets/unet_2d_condition.py:465-476 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:672-683 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:784-795 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 1027 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_condition.py:382\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93c1aff9991d519e675ba2af14408f39eb8aca81ec2ad9c99b216751ae38ebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/models/unets/unet_dreamlite.py:666-677 | src/diffusers/models/unets/unet_dreamlite.py:816-827 | src/diffusers/models/unets/unet_dreamlite.py:1063-1074 | src/diffusers/models/unets/unet_dreamlite.py:1223-1234 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_dreamlite.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c634e6ac2af2bf325fe211271954ebb76f02a92869f8a30f74cd8ef6cbb455d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:362-373 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:323-334 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:545-556 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:368-379 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0c9feba3ae14791c251fbaf7d862e8a125ea722108ba2626d8979554598c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:469-480 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:512-523 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:580-591 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:616-627 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py:469\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"33689d9d6421455e2390e89008caae28c0d227fd01f4b0079ec14faf72f55935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201312 lines \u00D7 6): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:731-742 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:855-866 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:974-985 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:972-975 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1083-1086 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:828-839 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"570844a12c9f14459da90159bf7e6cb9472a78f966a0753c8e0a63b837a07b36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/pipelines/ltx/pipeline_ltx.py:672-683 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:736-747 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1195-1206 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1260-1271 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 953 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2c79c28196d14a61158b64b92a5fcb58df3b57241cb9b493e4b2148e2b1c94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:344-355 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:372-383 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:440-451 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:422-433 \u2014 \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.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 32 separate duplicated blocks between them, totalling at least 343 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. 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":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d87c836e61e26852ac076347b14f3e0ab580bc040fa384af00d9cdd68d0737b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1238-1249 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1421-1432 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1495-1506 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1558-1569 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1238\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1235\u0060 calls \u0060is_available\u0060, \u0060cudagraph_mark_step_begin\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1419\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece64bf06c745da2cfc32540dd9fff7deef603807ac2be313c052f6aa58fa3c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_sana.py:170-181 | src/diffusers/pipelines/sana/pipeline_sana.py:209-220 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:160-171 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:167-178 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 791 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f56a842728237a49d45bc93bff817bd4937d73cea70d4b94d1dd4b7c1195f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/pipelines/z_image/pipeline_z_image.py:399-410 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:499-510 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:513-524 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:540-551 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 514 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b60159e22e7b42ab22951d3f500042233f4965ff2266876a7c3d72940890af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/schedulers/scheduling_ddim.py:457-468 | src/diffusers/schedulers/scheduling_ddim_inverse.py:357-368 | src/diffusers/schedulers/scheduling_ddim_parallel.py:456-467 | src/diffusers/schedulers/scheduling_ddim_parallel.py:588-599 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim_inverse.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"0758d905c35d29b4cd365f93699001be0d0bfa472b6bfc828111a3e62b1252d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/community/composable_stable_diffusion.py:424-435 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:626-638 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:658-669 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 500 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"876336325fc80026089c3d4a88c68483b8805a0eec823163f5989df4fbaf521d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/community/matryoshka.py:2537-2548 | src/diffusers/models/attention.py:51-62 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:839-850 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060processors\u0060 to \u0060Dict[str, AttentionProcessor]\u0060 in one and \u0060dict[str, AttentionProcessor]\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":"examples/community/matryoshka.py"},"region":{"startLine":2537}}}],"partialFingerprints":{"codehealthFindingId/v1":"722faa470f939a5f7145989aee453440aff4bdb0815603192d65eead7bbc0c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/community/pipeline_flux_differential_img2img.py:945-956 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:948-959 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:842-853 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_fill.py\u0060 as WHOLE FILES: this scan already matched 56 separate duplicated blocks between them, totalling at least 687 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b99de6a577b654271669da3b12f845093a6cd6e92b3dcb480346d8c99c2b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/community/pipeline_flux_semantic_guidance.py:1058-1069 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:610-622 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:662-674 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 251 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:610\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0000681ad686008a9c55db21ff9fb4af7693de098fc5dfd51c174798511b035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/community/pipeline_prompt2prompt.py:819-830 | examples/community/pipeline_stable_diffusion_boxdiff.py:146-157 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:154-165 \u2014 before extracting anything, compare \u0060examples/community/pipeline_prompt2prompt.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 765 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e4ce0ac0b147b4501022c4aa8215e9a258582191d3e6e111ffa0d4601bb42f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:632-642 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:695-706 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:711-722 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 869 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py:632\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":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b1dbf6f9f5a3fc2b1f7923576aa874789b39f314a03440f93ccd29fa085bad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:808-819 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1444-1455 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:416-427 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 478 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:808\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90f007a4377a17ba6b9e96edb93f45f5d2d00294131715a3938df7cb29d10dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1432-1443 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:812-822 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:139-148 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1432\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fc02f7033a1b6026a22257cfbd7a8715f3e827455ac9512cafa8c818c233e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): examples/community/pipeline_stg_wan.py:125-134 | src/diffusers/models/transformers/transformer_anyflow.py:490-501 | src/diffusers/models/transformers/transformer_anyflow_far.py:603-614 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6babea6d4ace512ea57685b2fe17324c9349eee92c1d8d856808699c9c3e251e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): examples/community/pipline_flux_fill_controlnet_Inpaint.py:762-772 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:366-376 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:681-692 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_fill.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 733 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bc866329b079c20dc5a8fd3199872fc59b3743e7be8907c5d990c7fd07cf59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl.py:390-400 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:402-412 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:959-970 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 342 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a338a0aabff9780d4fdba77b9233ff561e5e6f1e60707a2deb2faa3952d3882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:1001-1012 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1466-1477 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1484-1495 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"47021be203efda56a9ca53b06468425e63fc8e339ac582ad1f6972be6c8c0107"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:1015-1026 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1482-1493 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1500-1511 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"87cb25e3f339b6f71d50af924a767dad9e5bf64da9d6347cb59b0601d60f1772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:719-730 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:579-588 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:542-551 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 340 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:719\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_magvit.py"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7c6d8b33cac3425a3564a238400f5234e862217defaf92c45999c2e4969cfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:248-259 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:254-265 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:250-261 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:248\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e651633fe88dc12245f9565182b9808012c97714557b12bbe28d7f5b6d616fd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/models/resnet.py:135-146 | src/diffusers/models/resnet.py:306-317 | src/diffusers/models/unets/unet_dreamlite.py:218-229 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/resnet.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"08adb71f5fcf7616593c5f6730f042bee0cc86357164f22adb3e78ffb9281f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video.py:573-584 | src/diffusers/models/transformers/transformer_hunyuanimage.py:523-534 | src/diffusers/models/transformers/transformer_motif_video.py:610-621 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"395e2985243ee5ea793399fdefe3fd115e5a9c5c4fa721ef28ee9434c4d6d380"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 3): src/diffusers/models/transformers/transformer_ltx.py:547-554 | src/diffusers/models/transformers/transformer_ltx2.py:1513-1524 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1509-1515 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx.py\u0060 and \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.py:1513\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, \u0060src/diffusers/models/transformers/transformer_ltx.py:544\u0060 calls \u0060size\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1503\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":"src/diffusers/models/transformers/transformer_ltx.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a0fad2e5ac649eb52c106f0776d412fc10e8c97814b647e6f5343da8e96bbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/modular_pipelines/flux/denoise.py:226-237 | src/diffusers/modular_pipelines/ltx/denoise.py:179-190 | src/diffusers/modular_pipelines/stable_diffusion_3/denoise.py:178-189 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060FluxModularPipeline\u0060 in one and \u0060LTXModularPipeline\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":"src/diffusers/modular_pipelines/flux/denoise.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9dc46ba506cc97c12388093a88ab1c612dfc3ad6af14711dd093dad0278985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): src/diffusers/modular_pipelines/helios/denoise.py:565-574 | src/diffusers/modular_pipelines/helios/denoise.py:901-912 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:930-939 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/helios/denoise.py:565\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1cacd659d9c7395f5c20db2df8a8dd372c131789466024072e8614ddb21029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:1310-1321 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1594-1605 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1825-1836 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1590\u0060 calls \u0060unwrap_module\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1822\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":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0c2d38609ec9114cbd41612548036216c50e5564c6520a3cff9e05c7992be9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:524-535 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:572-583 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:518-529 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:524\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"1110742eda224a57b8046faa27de3552f48d5fde8eaf530c5036af18c9416482"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:785-796 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:583-594 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:739-750 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 681 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:785\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26fbf60cbe0613d56f0607b0c320d5d6c125ef72e6fec56b0677b400dd14ca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:726-737 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:963-973 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1182-1192 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:726\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf7cff6455e09ef8314ab48c1cc6f28fdf2d1e333722e3b7590fb1d3202af8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/pipelines/flux/pipeline_flux_fill.py:230-241 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:228-239 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:282-293 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_fill.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_inpaint.py\u0060 as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 856 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_fill.py:230\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_fill.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f835a139ed814639acf1d1bcb35767659da8f885226c9e87833e7eef85be8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/pipelines/flux2/pipeline_flux2.py:641-652 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:500-511 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:508-519 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py:641\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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"d779f836e36a5476a2d25f0832a8c212a4b2f6ec7d9f399352a36e9ca30214e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:410-421 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:299-308 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:302-311 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff965debe82b6c18c24e638196111242f578e3cb003ea9f04cb084160374c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1622-1633 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:1503-1513 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2009-2020 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 594 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c38b18af1d140fb347c1f5539f036d5791d49246fc7e0aa00876d88395d92a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:473-484 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:406-414 | src/diffusers/schedulers/scheduling_unipc_multistep.py:455-465 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 704 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d04fb2607b5f53fe20da02fbd2a540ccd00d07c6559d644caa77ccdd271386"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/adaptive_mask_inpainting.py:1134-1145 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:734-745 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 442 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56b5f2937cc38d7cea1be3c4a972016c1283a1d12aa6d240dba6a49d20227c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): examples/community/lpw_stable_diffusion.py:1033-1043 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:750-761 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7345df0b82dd927f1b8a27163ad457c9da47262b3d6b0bccc6b7cdef96a55da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/masked_stable_diffusion_xl_img2img.py:431-442 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:993-1004 \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 \u0060examples/community/masked_stable_diffusion_xl_img2img.py:431\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6411f2e53f64dd6476d5f109929cdf21e274c8388e44ed6dc94595a4871fc39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/matryoshka.py:2742-2753 | src/diffusers/models/unets/unet_2d_condition.py:861-872 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:2742\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":"examples/community/matryoshka.py"},"region":{"startLine":2742}}}],"partialFingerprints":{"codehealthFindingId/v1":"baaad340ab5ccbebc5162d99a875cb2538ee0b6f7de76295520a97955476b3ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/pipeline_flux_semantic_guidance.py:1293-1304 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:675-686 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d907cf1c0b1ee70f11c5d452a886692eda99b4f57d31f09bbe928954fb26aab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): examples/community/pipeline_hunyuandit_differential_img2img.py:670-681 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:582-591 \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 \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:670\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ab7834acf0b0db2995544d66c1f3360b0eaca740239a241f2d32cab9a5646e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:733-744 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:1031-1041 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 478 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63c46e87e7f0af84ca12a3721234ee41e277688df96fe5043c993ce9241574b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/scheduling_ufogen.py:210-221 | src/diffusers/schedulers/scheduling_repaint.py:143-154 \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 \u0060src/diffusers/schedulers/scheduling_repaint.py:143\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/scheduling_ufogen.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfbaaabd323b903a0a747e63ce0c0d84e4a3f13975f20d955e282c4a009b522"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/unclip_image_interpolation.py:194-205 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:193-204 \u2014 before extracting anything, compare \u0060examples/community/unclip_image_interpolation.py\u0060 and \u0060src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 238 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060image_embeddings\u0060 to \u0060Optional[torch.Tensor] = None\u0060 in one and \u0060torch.Tensor | None = None\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c149dcb32ad6603a47e6ec7bb30dad9f154c6e216fb04c5a3b1e9f1848d25d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/guiders/perturbed_attention_guidance.py:278-289 | src/diffusers/guiders/skip_layer_guidance.py:269-280 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/perturbed_attention_guidance.py\u0060 and \u0060src/diffusers/guiders/skip_layer_guidance.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/perturbed_attention_guidance.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3ecbe05cdce0294f826786749a0a16e4dfbc6bf695c42338f5c0bbd958f46c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/diffusers/hooks/sea_cache.py:660-671 | src/diffusers/hooks/sea_cache.py:815-825 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/sea_cache.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"332a84c7308cc455d86e63fe8c44b5be24bfde27f76b72e195487da5e2c2d602"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/loaders/ip_adapter.py:238-250 | src/diffusers/loaders/ip_adapter.py:489-501 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefbfd0d60b5d8ce57855c831dc735fa0989b74d230b6182a44ae136fcf020fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/diffusers/loaders/textual_inversion.py:51-62 | src/diffusers/loaders/unet.py:125-134 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/textual_inversion.py:51\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/textual_inversion.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d9c5b0a4d0ee225c8edea208d86a2721c71343164e555c74371f947eb3f20e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:877-888 | src/diffusers/models/attention_dispatch.py:3849-3860 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fded4d165b70d004a698b7f36fbf9436a2ad07f967c3a856ee388b873c86f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:1018-1029 | src/diffusers/models/attention_dispatch.py:1129-1140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"151ffc424938dc488f885bf427139bfd516c233045afeba148c0bd9bc8d062d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:3953-3964 | src/diffusers/models/attention_dispatch.py:4043-4054 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060query\u0060 to \u0060\u0022Native efficient attention backend does not support setting \u0060return_lse=True\u0060.\u0022)\u0060 in one and \u0060\u0022Native math attention backend does not support setting \u0060return_lse=True\u0060.\u0022)\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":3953}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd000ef01b2ac7258823e9378585bbea841e1be7ca7613f545a7a14db0d8a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201312 lines \u00D7 3): src/diffusers/models/attention_processor.py:1203-1214 | src/diffusers/models/attention_processor.py:3800-3803 | src/diffusers/models/attention_processor.py:3903-3914 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb196b46d0458035ad7a2263cac7d04057c6accfc4c643b66d066b165ef2de2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/models/attention_processor.py:1481-1495 | src/diffusers/models/attention_processor.py:4976-4990 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"e872acba1a35740c4013b85d218a18a00e2fb215aab61bac68817dc37b2ce43b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/attention_processor.py:4570-4581 | src/diffusers/models/attention_processor.py:4597-4608 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4570}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f04636cc29bd8546ccf9190dec5878b2002977e0615c8dc946384062e7c83e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/attention_processor.py:5341-5352 | src/diffusers/models/transformers/transformer_sana_video.py:110-121 \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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":5341}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eadb52a54c0193095afceb4c26e0ae74ba3e800324c4a31e5f6dc1286f7ec5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl.py:200-211 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:212-223 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 342 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb76f0f2bbae5673727e8c966b12bd53b4c1db9539899ae5fb3a399bfb264df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:139-150 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:577-588 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_kvae.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_flux2.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e592e5a1a8e051b23d0d1c471a8ceac6e80bddae65f2542b976be9fc4576eb66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:904-915 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:311-321 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"89dd66a7cd3e0ec799a9542dbd58b26bcaa7ec92d5b1945c5145cf9b362c5bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:703-714 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:662-673 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ea63cc366974ab17143a269a373ac7f6891b3aed20ae24bb10b8f734442259"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:977-988 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:960-971 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:977\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c09dc4056d0b1bfff997ea1c8424d213be0a130c802f232ba9e68aa31bb02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:447-458 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:443-454 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 367 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:447\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e392e105b8bff9f2bfa2fa16079200c3dffece1b9174502cf62d64b6e728a7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:213-224 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:309-320 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:213\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_mochi.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50de70a950a6a0dee78e91495f13390c88b81fdd6d17a16cf0efc0129cb8f68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:206-217 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:378-389 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_mochi.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"48873a6815253be462999a1bfba858f01de571c83afe744c75ac94b60d73a9a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:405-416 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:541-552 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2d90eb634980c38d61129c4f888c6e5702ce39b74d821108fb6f8a0c0e675d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:582-593 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:820-831 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"982d293df28b35667d0bc11c56829f196e061b84e38807dd5b9bfe4ebc23458c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/resnet.py:284-295 | src/diffusers/models/unets/unet_dreamlite.py:196-207 \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":"src/diffusers/models/resnet.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"c398a4d49d44cbfc237f1a646db15db140b2596644f9f5b3606e139ee868a1c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow.py:614-624 | src/diffusers/models/transformers/transformer_anyflow_far.py:1196-1207 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e2e30f751562ed1a7d9d213837b30f85c3a3f5a07749972e55904209190bff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow_far.py:1374-1385 | src/diffusers/models/transformers/transformer_anyflow_far.py:1597-1605 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow_far.py:1374\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, \u0060src/diffusers/models/transformers/transformer_anyflow_far.py:1594\u0060 calls \u0060block\u0060, \u0060unsqueeze\u0060, \u0060chunk\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py:1374\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow_far.py"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"6494d2dfa880cb4cb084617c4e7de52c707edcafee37010d89a5436b61f2293b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/transformers/transformer_bria.py:569-580 | src/diffusers/models/transformers/transformer_bria_fibo.py:491-502 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_bria.py:569\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: \u0060ModelMixin\u0060 names \u0060...models.modeling_utils\u0060 in one and \u0060..modeling_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea0b838f6ea21e5691a88260c0d618bdac3903b0fd9fc35d43cc73b3f79ce73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/transformers/transformer_bria.py:642-653 | src/diffusers/models/transformers/transformer_bria_fibo.py:566-577 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"617cb95a676852fb47609bc041cb9bbc7fa239f0997694b090590db0587a7096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:137-146 | src/diffusers/models/transformers/transformer_glm_image.py:276-287 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_cogview4.py\u0060 and \u0060src/diffusers/models/transformers/transformer_glm_image.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"11379bfb9473f45e0b5e526ac635da457f97ea0fbaf2d1dba190251f5a2d10e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/diffusers/models/transformers/transformer_cosmos3.py:762-771 | src/diffusers/models/transformers/transformer_cosmos3.py:783-794 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cosmos3.py"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ddde0406773cbcd1eaf5bae224a0c2332f88729618cebe1ce73ac1437dbdc6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/transformers/transformer_flux2.py:610-621 | src/diffusers/models/transformers/transformer_motif_video.py:89-100 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_flux2.py:609\u0060 calls \u0060apply_rotary_emb\u0060 and \u0060src/diffusers/models/transformers/transformer_motif_video.py:88\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ea794eed2b9b2b09ae76dcecbd393dd65f8525be9338b48f3462fa51a4cccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video.py:979-990 | src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py:188-199 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"9793bbce7940484a1fa657d7f34a416aa6661e8eeaf7a440c2012b81878e2deb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video15.py:188-198 | src/diffusers/models/transformers/transformer_hunyuanimage.py:224-235 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 242 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py:239\u0060 calls \u0060TimestepEmbedding\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py:200\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video15.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c4d18a6ebbcac0edcda5ca02cad6c102e7b5a2897079792f29586b716a6a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:131-140 | src/diffusers/models/transformers/transformer_qwenimage.py:185-196 \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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2395603ddb5542c3d429bff89073cf0d4e5df454f13fb1bb46f9a59203319e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:737-748 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:2158-2169 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abcfb99c9c8c65821e0f01eb581c1d6a21496e4d66ccc12b5c8ab1693745bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1350-1361 | src/diffusers/models/unets/unet_2d_blocks.py:1824-1835 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a17d13273c0862240f55637eeb017a437373ed483e3914f5fd6abb0b5353bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1652-1663 | src/diffusers/models/unets/unet_2d_blocks.py:1742-1753 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"30867c2d89b5ec2c550eae240a23da91de3c264e3cf000831eb3f0aca6960061"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:2767-2778 | src/diffusers/models/unets/unet_2d_blocks.py:2900-2911 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2767}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b28c4260ba3b3db165d5bb066ef5e165b4096ae1e9e230b53a9550676332139"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/unets/unet_kandinsky3.py:250-261 | src/diffusers/models/unets/unet_kandinsky3.py:316-328 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_kandinsky3.py:250\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_kandinsky3.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d61c50d547b862f57019d324dd3d014b918fd3d3dec971e356fd0a452331c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/diffusers/models/unets/unet_motion_model.py:642-651 | src/diffusers/models/unets/unet_motion_model.py:785-796 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_motion_model.py:785\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, \u0060src/diffusers/models/unets/unet_motion_model.py:641\u0060 calls \u0060ModuleList\u0060 and \u0060src/diffusers/models/unets/unet_motion_model.py:785\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_motion_model.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fa753cc588fc2044d2b0293dedeedd6d68fe755a728d408e5ecac4d832c050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/diffusers/modular_pipelines/cosmos/before_denoise.py:364-374 | src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:911-922 \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 \u0060src/diffusers/modular_pipelines/cosmos/before_denoise.py:364\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/before_denoise.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b705e05e3394eae084dc1977293e3955468db52a7b35c13d7ddfefd98dc5cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/diffusers/modular_pipelines/helios/denoise.py:66-76 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:463-474 \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 \u0060src/diffusers/modular_pipelines/helios/denoise.py:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8795f992b7a96d0ca44df3e2bdb7188abbe8a83ce098da2d315f31939f0a9be7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:2324-2335 | src/diffusers/pipelines/pipeline_utils.py:1130-1141 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2324}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf006949609509d9b5337c5cf8b4d95d2e2bdc6410140108b31633e2138ae8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/modular_pipelines/wan/denoise.py:402-413 | src/diffusers/modular_pipelines/z_image/denoise.py:228-239 \u2014 \u0060src/diffusers/modular_pipelines/wan/denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/z_image/denoise.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 5 separate duplicated blocks between them, totalling at least 57 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. 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 \u0060components\u0060 to \u0060WanModularPipeline\u0060 in one and \u0060ZImageModularPipeline\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":"src/diffusers/modular_pipelines/wan/denoise.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d809a0cb68d340cf61fb886f70041d1d02949b6181b814e546adaeac8de1ceb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/modular_pipelines/wan/encoders.py:126-137 | src/diffusers/modular_pipelines/z_image/encoders.py:104-115 \u2014 \u0060src/diffusers/modular_pipelines/wan/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/z_image/encoders.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 5 separate duplicated blocks between them, totalling at least 58 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/wan/encoders.py:126\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e504200a94b705efb9fd16d3ad40d01630ac956c1aea0474f13978d99bea32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/modular_pipelines/wan/encoders.py:692-703 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:433-444 \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 \u0060src/diffusers/modular_pipelines/wan/encoders.py:692\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"968e990ea862d845c7a4edffe56b3837f97767944e2468c06c5cb7d6f7ca57f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): src/diffusers/modular_pipelines/wan/encoders.py:741-763 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:490-513 \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 \u0060src/diffusers/modular_pipelines/wan/encoders.py:741\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d0e3e8b5532a9a22b4f79857f6f6255f60ac19f07473dc4c3b196a980d7018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1243-1254 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1465-1476 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 633 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"439c95eec87e73cd7807d731e66a10bc68d1b8879861506c1dc3bf0d156b2e6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1547-1558 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1422-1433 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1548 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbacec970b8100b7a3713cdf0b1124d51eabc1f805b069a75a35dfd1e1578ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1668-1679 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1386-1395 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"d300d407d6476ba0e44245fa91f8dac64ec0c95d71dec52f2e95499bcb51a36a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:851-862 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1296-1307 \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":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fca6897a95cd0120f6906b9bdc18767124b7a333180c582c414c75160ea662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:424-435 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:397-408 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83cba6cd428129c8b79a3a68c89507af8b3dc11e78730996cdbf04b1f9fde98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:649-660 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:595-606 \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 \u0060src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:649\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"9277a448409f56c181fcc1d2e0cc48182b62a905692d44c085f519224cfb60da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux.py:900-911 | src/diffusers/pipelines/flux/pipeline_flux.py:917-928 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux.py:898\u0060 calls \u0060expand\u0060, \u0060to\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux.py:915\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f60467c65ce46747d9bdee9559edfd445022e6f57f656b9030e528282261fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/flux2/pipeline_flux2.py:857-870 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:562-573 \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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"8833eca193b1e0a49132172fcca69532d70d6b4ae617e9581924c72107f34e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/diffusers/pipelines/flux2/pipeline_flux2.py:1025-1036 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:920-930 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"4547a5a6d58d8675ee41aa825f17e726691f76a294ed610bccf2d3df71db7dd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1183-1194 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1197-1208 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2bcc1124091c05b6a2a9d6ac68718b4db11daad82b2ed9a46fa7ff22e77a46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:371-382 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:385-396 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3ad23e118b7901d2ff7c28db364b15398024411b76e2e03a77ce37f84eaffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:407-416 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:419-430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"982941a1e5a8cb06502bf4a413e556794834e7fb30f7a31b4509b4dcc69b4036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:433-442 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:445-456 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ecc9956a197c8387026d65e3f8c05c348c4aa15f6f2232d425b15dec546cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:924-935 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1106-1117 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 453 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:924\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":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b694004fdbb4fdc3cfa99a5218e1d555532cc0892f6ee6d9f96bc56f3bcdb52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:651-662 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:526-536 \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 \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:651\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be3d4f85106e75ad4a556984f26580acdf35a71b8e08d6105dfec04357fe324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:663-674 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:693-704 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:663\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f5f3ee7f41de773e72d41891afdb0273912082e38618e238f3e6aa7bcd8a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:287-298 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:244-255 \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 \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2bfac838f99a1a79f07f56ec4d03e7c2e36cb46d8c46813670736c363df9b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:180-192 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:158-169 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:180\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5763d380cd01d7dd0c3cd58465f57bc1886c734137110b8629d2e7e3e23fcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:326-335 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:741-752 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:741\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4655af45864b8108ac46a4cf73d7348fcd73ef73b33ceae37471d9cc9bd6ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/diffusers/pipelines/krea2/pipeline_krea2.py:631-640 | src/diffusers/pipelines/mochi/pipeline_mochi.py:631-642 \u2014 \u0060src/diffusers/pipelines/krea2/pipeline_krea2.py\u0060 and \u0060src/diffusers/pipelines/mochi/pipeline_mochi.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 26 separate duplicated blocks between them, totalling at least 307 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/krea2/pipeline_krea2.py:631\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b30e0ea9a9b61f1fd936d3db08248c8eb5204bb28a48cbb7279c1587d92247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/krea2/pipeline_krea2.py:624-636 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:549-560 \u2014 \u0060src/diffusers/pipelines/krea2/pipeline_krea2.py\u0060 and \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.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 26 separate duplicated blocks between them, totalling at least 286 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/krea2/pipeline_krea2.py:624\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, \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:563\u0060 calls \u0060_reset_stateful_cache\u0060 and \u0060src/diffusers/pipelines/krea2/pipeline_krea2.py:637\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":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"d938603f09d549fd4b12fe7c0345488d96e79113494bd0b120dd759076dcd193"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:120-138 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:150-168 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"357f15787d78edc12923ce555c7ed36ca6af7e514aab7171391aa37501076b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:611-622 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:652-663 \u2014 \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.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 26 separate duplicated blocks between them, totalling at least 283 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c45a7c8954f872a1fea06a298d3eef8729d6bdf4fe09a274cf73bedcea5186c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:779-790 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:744-754 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:779\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be6032044b14a692f2fc278b55e87abc2a34f5352aa2c444abd2a3050e230a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:59-76 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:53-70 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb71b575f68eb1ffb6473ba9be0b448429a939f635db9fad01ba098f7159d22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:428-439 | src/diffusers/schedulers/scheduling_sasolver.py:299-309 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_sasolver.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 401 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:428\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"8356b50315536a87679afdba3223205b1a0afcc86d93ed0988b68f82bf1d7331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1226-1233 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:772-783 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 323 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1226\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb11bfb30735a5f1f3d4846131e7a38f7c304583a160db96030873f00491fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:61-72 | src/diffusers/schedulers/scheduling_helios_dmd.py:52-63 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_helios.py\u0060 and \u0060src/diffusers/schedulers/scheduling_helios_dmd.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2988d238e098e90bad8241b5f1d00cc27dc8b4a54c7f1a7509c0587562ea7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 157): examples/community/fresco_v2v.py:2466-2474 | examples/community/hd_painter.py:839-847 | examples/community/ip_adapter_face_id.py:1090-1098 | examples/community/latent_consistency_interpolate.py:929-939 | examples/community/lpw_stable_diffusion_xl.py:1886-1894 | examples/community/masked_stable_diffusion_xl_img2img.py:453-461 | examples/community/matryoshka.py:4543-4551 | examples/community/pipeline_animatediff_controlnet.py:1100-1108 | examples/community/pipeline_animatediff_ipex.py:799-807 | examples/community/pipeline_controlnet_xl_kolors.py:1276-1284 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1479-1487 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1799-1807 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2188-2196 | examples/community/pipeline_hunyuandit_differential_img2img.py:1104-1112 | examples/community/pipeline_kolors_differential_img2img.py:1212-1220 | examples/community/pipeline_kolors_inpainting.py:1629-1637 | examples/community/pipeline_sdxl_style_aligned.py:1849-1857 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:943-951 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1229-1237 | examples/community/pipeline_stable_diffusion_boxdiff.py:1688-1696 | examples/community/pipeline_stable_diffusion_pag.py:1445-1453 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2222-2230 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1376-1384 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1032-1040 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1021-1029 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1104-1112 | examples/community/pipeline_stg_cogvideox.py:844-852 | examples/community/pipeline_stg_wan.py:620-628 | examples/community/pipeline_z_image_differential_img2img.py:814-822 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1286-1294 | examples/community/regional_prompting_stable_diffusion.py:1071-1079 | examples/community/stable_diffusion_xl_controlnet_reference.py:1301-1309 | examples/community/stable_diffusion_xl_reference.py:1128-1136 | examples/research_projects/anytext/anytext.py:2314-2322 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1293-1301 | src/diffusers/pipelines/allegro/pipeline_allegro.py:904-912 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:841-849 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1092-1100 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1267-1275 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:998-1006 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1042-1050 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1330-1338 | src/diffusers/pipelines/bria/pipeline_bria.py:714-722 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:696-704 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:943-951 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:707-715 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:766-774 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:821-829 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:876-884 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:847-855 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:654-662 | src/diffusers/pipelines/consisid/pipeline_consisid.py:950-958 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1312-1320 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1286-1294 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1472-1480 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1835-1843 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1531-1539 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1588-1596 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1847-1855 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1550-1558 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1640-1648 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1010-1018 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1219-1227 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1378-1386 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:824-832 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:966-974 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:627-635 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:746-754 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:617-625 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:785-793 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:955-963 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:1010-1018 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:881-889 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1066-1074 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:933-941 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:1009-1017 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1159-1167 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:408-418 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:497-507 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:744-752 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:980-988 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1215-1223 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1170-1178 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:986-994 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1179-1187 | src/diffusers/pipelines/helios/pipeline_helios.py:898-906 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:1074-1084 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:958-966 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:872-880 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:843-850 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:293-301 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:352-360 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:520-528 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:518-528 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:536-544 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:601-609 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:916-924 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:804-812 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:990-998 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:758-766 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:923-930 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1009-1017 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1189-1197 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:954-962 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:883-891 | src/diffusers/pipelines/latte/pipeline_latte.py:847-855 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1325-1333 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:696-704 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1294-1302 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1500-1508 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1548-1556 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1609-1617 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:925-933 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1072-1080 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:875-883 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1040-1048 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:963-971 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1031-1039 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:849-857 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1071-1079 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1347-1355 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1276-1284 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1468-1476 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1699-1707 | src/diffusers/pipelines/sana/pipeline_sana.py:939-947 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:1035-1043 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:972-980 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:1025-1033 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:576-584 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:922-930 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:1001-1009 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:1011-1019 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:709-717 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:506-514 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:621-629 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1064-1072 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:865-873 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1121-1129 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1309-1317 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:453-461 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1120-1128 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1138-1146 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1345-1353 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1241-1249 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1426-1434 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1663-1671 | src/diffusers/pipelines/wan/pipeline_wan.py:643-651 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1148-1156 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:800-808 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:1005-1013 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:702-710 | src/diffusers/pipelines/z_image/pipeline_z_image.py:574-582 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:711-719 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:738-746 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:686-694 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:904-912 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:720-728 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 157 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 157 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/hd_painter.py:848\u0060 calls \u0060pop\u0060 and \u0060examples/community/fresco_v2v.py:2477\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":"examples/community/fresco_v2v.py"},"region":{"startLine":2466}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38ef45f8b092eb9f60760cf4973378e7e50fda6edbe38daf485e6426c258c7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 90): examples/community/mixture_tiling_sdxl.py:542-552 | examples/community/mod_controlnet_tile_sr_sdxl.py:549-559 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1419-1429 | examples/community/pipeline_sdxl_style_aligned.py:662-672 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:453-463 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:511-521 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:846-856 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:395-405 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:542-552 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:422-432 | examples/community/pipeline_stable_diffusion_xl_ipex.py:422-432 | examples/community/pipeline_stg_cogvideox.py:357-367 | examples/community/pipeline_stg_ltx.py:370-380 | examples/community/pipeline_stg_ltx_image2video.py:393-403 | examples/community/pipeline_stg_mochi.py:377-387 | examples/community/pipeline_stg_wan.py:287-297 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:454-464 | src/diffusers/modular_pipelines/wan/encoders.py:253-263 | src/diffusers/modular_pipelines/z_image/encoders.py:224-234 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:483-493 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:239-249 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:256-266 | src/diffusers/pipelines/bria/pipeline_bria.py:212-222 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:256-266 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:420-430 | src/diffusers/pipelines/chroma/pipeline_chroma.py:333-343 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:360-370 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:362-372 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:301-311 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:303-313 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:312-322 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:322-332 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:328-338 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:273-283 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:280-290 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:284-294 | src/diffusers/pipelines/consisid/pipeline_consisid.py:414-424 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:447-457 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:455-465 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:447-457 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:436-446 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:447-457 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:466-476 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:501-511 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:523-533 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:384-394 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:356-366 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:314-324 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:333-343 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:299-309 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:343-353 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:379-389 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:741-751 | src/diffusers/pipelines/helios/pipeline_helios.py:255-265 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:273-283 | src/diffusers/pipelines/ltx/pipeline_ltx.py:344-354 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:430-440 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:613-623 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:367-377 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:430-440 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:482-492 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:492-502 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:504-514 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:435-445 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:299-309 | src/diffusers/pipelines/mochi/pipeline_mochi.py:315-325 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:462-472 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:452-462 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:471-481 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:487-497 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:449-459 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:467-477 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:557-567 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:257-267 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:278-288 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:283-293 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:339-349 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:300-310 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:480-490 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:506-516 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:512-522 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:439-449 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:457-467 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:561-571 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:467-477 | src/diffusers/pipelines/wan/pipeline_wan.py:259-269 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:350-360 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:313-323 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:306-316 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:324-334 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"135da077405558cebfd9823a7a92d026462439607da4f7b52e69885c1a3d6ded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 68): examples/community/masked_stable_diffusion_xl_img2img.py:448-457 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2183-2192 | examples/community/pipeline_flux_differential_img2img.py:987-996 | examples/community/pipeline_flux_kontext_multiple_images.py:1187-1196 | examples/community/pipeline_flux_rf_inversion.py:918-927 | examples/community/pipeline_flux_semantic_guidance.py:1326-1335 | examples/community/pipeline_flux_with_cfg.py:838-847 | examples/community/pipeline_kolors_differential_img2img.py:1207-1216 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:938-947 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1224-1233 | examples/community/pipeline_stg_mochi.py:813-822 | examples/community/pipeline_z_image_differential_img2img.py:809-818 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1280-1290 | examples/community/stable_diffusion_xl_reference.py:1123-1132 | src/diffusers/pipelines/bria/pipeline_bria.py:709-718 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:691-700 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:938-947 | src/diffusers/pipelines/chroma/pipeline_chroma.py:888-897 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:971-980 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1164-1173 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1214-1223 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1373-1382 | src/diffusers/pipelines/flux/pipeline_flux.py:935-944 | src/diffusers/pipelines/flux/pipeline_flux_control.py:828-837 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:911-920 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1080-1089 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1165-1174 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:982-990 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1173-1183 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:977-986 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1025-1034 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1193-1202 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1075-1084 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1394-1403 | src/diffusers/pipelines/flux2/pipeline_flux2.py:991-1000 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:883-892 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1226-1235 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:844-852 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:953-962 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:833-842 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:723-732 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1004-1013 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1184-1193 | src/diffusers/pipelines/krea2/pipeline_krea2.py:672-681 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:710-719 | src/diffusers/pipelines/mochi/pipeline_mochi.py:672-681 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:604-612 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:675-684 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1067-1076 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:958-967 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1026-1035 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1271-1280 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1463-1472 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:678-687 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:921-930 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:892-901 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:807-816 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1033-1042 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:851-860 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:780-789 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:961-970 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:855-864 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1115-1124 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1133-1142 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1340-1349 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1236-1245 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1421-1430 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:872-881 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 68 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 68 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/bria/pipeline_bria.py:722\u0060 calls \u0060pop\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1202\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74a1d7775d94bf2c12354978e70cd3c384f1d9678ed70b479114e05e57dd443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 62): examples/community/fresco_v2v.py:1503-1512 | examples/community/gluegen.py:334-344 | examples/community/ip_adapter_face_id.py:570-579 | examples/community/latent_consistency_interpolate.py:367-376 | examples/community/llm_grounded_diffusion.py:1318-1328 | examples/community/pipeline_animatediff_controlnet.py:284-293 | examples/community/pipeline_animatediff_img2video.py:401-410 | examples/community/pipeline_animatediff_ipex.py:255-264 | examples/community/pipeline_prompt2prompt.py:336-346 | examples/community/pipeline_stable_diffusion_boxdiff.py:673-682 | examples/community/pipeline_stable_diffusion_pag.py:639-648 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:279-288 | examples/community/regional_prompting_stable_diffusion.py:617-626 | examples/community/stable_diffusion_reference.py:498-507 | examples/research_projects/anytext/anytext.py:1446-1455 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:408-417 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:240-249 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:285-294 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:294-303 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:342-351 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:373-382 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:384-393 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:362-371 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:368-377 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:413-422 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:441-450 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:318-327 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:229-238 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:302-311 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:382-391 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:508-517 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:306-315 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:337-346 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:398-407 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:369-378 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:297-306 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:374-383 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:345-354 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:278-287 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:275-284 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:493-502 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:245-254 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:280-289 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:902-911 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:450-459 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:327-336 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:312-321 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:664-673 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:361-370 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:337-346 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:390-399 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:251-260 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:385-394 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:420-429 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:418-427 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:290-299 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:444-453 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:398-407 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:303-312 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:383-392 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:345-354 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:397-406 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/gluegen.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1503\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/gluegen.py:332\u0060 calls \u0060to\u0060 and \u0060examples/community/fresco_v2v.py:1502\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad00999c7cb6cb58762d23304bd191366b88bcd64b433e065d31ce620506647"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201311 lines \u00D7 42): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:660-668 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:701-705 | src/diffusers/pipelines/allegro/pipeline_allegro.py:510-518 | src/diffusers/pipelines/allegro/pipeline_allegro.py:551-555 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:480-488 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:521-525 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:524-532 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:565-569 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:277-285 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:318-322 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:564-572 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:605-609 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:279-287 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:320-324 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:235-243 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:276-280 | src/diffusers/pipelines/latte/pipeline_latte.py:497-505 | src/diffusers/pipelines/latte/pipeline_latte.py:538-542 | src/diffusers/pipelines/lumina/pipeline_lumina.py:529-537 | src/diffusers/pipelines/lumina/pipeline_lumina.py:570-574 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:484-492 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:525-529 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:491-499 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:532-536 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:596-604 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:637-641 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:541-549 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:582-586 | src/diffusers/pipelines/prx/pipeline_prx.py:164-174 | src/diffusers/pipelines/prx/pipeline_prx.py:206-211 | src/diffusers/pipelines/sana/pipeline_sana.py:567-575 | src/diffusers/pipelines/sana/pipeline_sana.py:608-612 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:582-590 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:623-627 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:458-466 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:499-503 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:482-490 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:523-527 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:590-598 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:631-635 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:592-600 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:633-637 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/prx/pipeline_prx.py:202\u0060 calls \u0060strip\u0060 and \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:698\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":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87d5bf7ebc2fa963ad3fdfb062d45405eb7edd7926f03d2b09b2e4a41951a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 38): examples/community/fresco_v2v.py:2495-2507 | examples/community/gluegen.py:799-811 | examples/community/instaflow_one_step.py:676-688 | examples/community/ip_adapter_face_id.py:1112-1124 | examples/community/pipeline_hunyuandit_differential_img2img.py:1127-1139 | examples/community/pipeline_stable_diffusion_boxdiff.py:1710-1722 | examples/community/pipeline_stable_diffusion_pag.py:1467-1479 | examples/community/regional_prompting_stable_diffusion.py:1096-1107 | examples/research_projects/anytext/anytext.py:2343-2355 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1322-1334 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1344-1356 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1319-1331 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1033-1045 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:977-989 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:1032-1044 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:909-921 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1031-1041 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1531-1543 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:844-856 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:1036-1048 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1185-1196 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:861-872 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:938-948 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:772-784 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:815-827 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:781-793 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1092-1104 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:895-907 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:979-991 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:908-920 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1204-1216 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1323-1335 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:948-960 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1062-1074 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1092-1104 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:423-434 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1146-1158 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:477-489 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/gluegen.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2495\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, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1043\u0060 calls \u0060set_attn_processor\u0060 and \u0060examples/community/fresco_v2v.py:2509\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":"examples/community/fresco_v2v.py"},"region":{"startLine":2495}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e63a8a9d88a8c1ef7f657d0964791baba14238f7a66b3627d1307fcb803ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 33): examples/community/adaptive_mask_inpainting.py:704-713 | examples/community/instaflow_one_step.py:444-453 | examples/community/llm_grounded_diffusion.py:505-514 | examples/community/lpw_stable_diffusion.py:680-689 | examples/community/pipeline_demofusion_sdxl.py:418-427 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:418-427 | examples/community/rerender_a_video.py:402-411 | examples/community/stable_diffusion_controlnet_img2img.py:412-421 | examples/community/stable_diffusion_controlnet_inpaint.py:509-518 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:458-467 | examples/community/stable_diffusion_ipex.py:505-514 | examples/community/stable_diffusion_repaint.py:482-491 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:494-503 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:752-761 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:361-370 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:388-397 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:542-551 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:393-402 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:545-554 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:500-509 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:303-312 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:340-349 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:537-546 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:663-672 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:449-458 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:359-368 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:471-480 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:416-425 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:340-349 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:439-448 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:541-551 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:487-497 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:552-561 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:704\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/adaptive_mask_inpainting.py:713\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:552\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee3534fb6450344a9fa95ba953d550ea790554ae7bbc02fc6c3cd9ae114086d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 33): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:320-327 | src/diffusers/models/autoencoders/autoencoder_dc.py:647-656 | src/diffusers/models/autoencoders/autoencoder_dc.py:687-697 | src/diffusers/models/autoencoders/autoencoder_kl.py:285-294 | src/diffusers/models/autoencoders/autoencoder_kl.py:342-351 | src/diffusers/models/autoencoders/autoencoder_kl.py:393-402 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1306-1316 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1385-1395 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:297-306 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:354-363 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:405-414 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:907-917 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:962-972 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:605-613 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:648-656 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:827-835 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:877-885 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:861-869 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:910-918 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:712-721 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:756-765 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1371-1381 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1427-1437 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1387-1397 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1445-1455 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:968-977 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:1025-1034 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:993-1003 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:1067-1077 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1291-1301 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1417-1427 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:314-323 | src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:956-966 \u2014 there are 33 copies across 17 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 33 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_vidtok.py:1290\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_dc.py:646\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cf08eb2c28a3d3bdb3e5e7f5672d6fb220f82fc71967d8cc585f97626dc083"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 32): examples/community/lpw_stable_diffusion_xl.py:803-813 | examples/community/mixture_tiling_sdxl.py:486-496 | examples/community/mod_controlnet_tile_sr_sdxl.py:493-503 | examples/community/pipeline_demofusion_sdxl.py:267-277 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1365-1375 | examples/community/pipeline_sdxl_style_aligned.py:606-616 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:792-802 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:339-349 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:486-496 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:366-376 | examples/community/pipeline_stable_diffusion_xl_ipex.py:366-376 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:400-410 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:425-435 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:389-399 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:397-407 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:389-399 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:378-388 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:389-399 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:408-418 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:321-331 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:683-693 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:509-519 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:404-414 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:394-404 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:391-401 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:409-419 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:499-509 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:381-391 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:399-409 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:503-513 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:305-315 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:409-419 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/mixture_tiling_sdxl.py:481\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/lpw_stable_diffusion_xl.py:799\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"3743fc33fffbb50bf88ff36d0f8ab2ba9e7bde64a47af2eaf7775aa91df6b740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 32): examples/community/lpw_stable_diffusion_xl.py:905-914 | examples/community/mixture_tiling_sdxl.py:603-612 | examples/community/mod_controlnet_tile_sr_sdxl.py:610-619 | examples/community/pipeline_demofusion_sdxl.py:369-378 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1478-1487 | examples/community/pipeline_sdxl_style_aligned.py:722-731 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:905-914 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:455-464 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:602-611 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:482-491 | examples/community/pipeline_stable_diffusion_xl_ipex.py:482-491 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:515-524 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:544-553 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:508-517 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:516-525 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:508-517 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:497-506 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:508-517 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:527-536 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:440-449 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:802-811 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:589-599 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:523-532 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:513-522 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:510-519 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:528-537 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:618-627 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:500-509 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:518-527 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:622-631 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:408-417 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:528-537 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc7c63ee48bee169e30960bc8f7b8c11c6601b324587d3be27604cf5a5b6153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 29): examples/community/fresco_v2v.py:1929-1939 | examples/community/mod_controlnet_tile_sr_sdxl.py:840-850 | examples/community/pipeline_animatediff_controlnet.py:706-716 | examples/community/pipeline_controlnet_xl_kolors.py:683-693 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:758-768 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:809-819 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:841-851 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1178-1188 | examples/community/rerender_a_video.py:510-520 | examples/research_projects/anytext/anytext.py:1839-1849 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:739-749 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:786-796 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1564-1575 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1795-1806 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:809-819 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:783-793 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:824-835 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:890-901 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:869-879 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:873-883 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:866-877 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:846-856 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:864-874 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:578-588 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:627-637 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:769-779 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:775-786 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:877-887 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:879-889 \u2014 there are 29 copies across 28 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 29 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1564\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, \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:854\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1576\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd615125e0b5496012b0aad0e0f17ba7f094f22f41b7edf38497979f9e390cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 29): examples/community/instaflow_one_step.py:674-683 | examples/community/latent_consistency_img2img.py:373-382 | examples/community/latent_consistency_txt2img.py:288-297 | examples/community/llm_grounded_diffusion.py:1068-1077 | examples/community/pipeline_hunyuandit_differential_img2img.py:1125-1134 | examples/community/pipeline_prompt2prompt.py:755-765 | examples/community/stable_diffusion_controlnet_reference.py:818-827 | examples/community/stable_diffusion_reference.py:1449-1458 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1031-1040 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:617-626 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:716-725 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1029-1038 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1529-1538 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:842-851 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:1034-1043 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:1030-1039 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1183-1192 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:859-868 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:936-945 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:770-779 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:813-822 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:779-788 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1090-1099 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:893-902 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:977-986 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:906-915 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:946-955 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:421-430 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:475-484 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 29 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 29 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/instaflow_one_step.py:688\u0060 calls \u0060maybe_free_model_hooks\u0060 and \u0060examples/community/latent_consistency_img2img.py:386\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":"examples/community/instaflow_one_step.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3dd57ea4b7c10ab3602f230716f6a669c54abe538bcc0726c57a8bdc35e0bf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 28): examples/community/mixture_tiling_sdxl.py:589-598 | examples/community/mod_controlnet_tile_sr_sdxl.py:596-605 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1464-1473 | examples/community/pipeline_sdxl_style_aligned.py:708-717 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:891-900 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:441-450 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:588-597 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:468-477 | examples/community/pipeline_stable_diffusion_xl_ipex.py:468-477 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:499-509 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:530-539 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:494-503 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:502-511 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:494-503 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:483-492 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:494-503 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:513-522 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:426-435 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:788-797 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:509-518 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:499-508 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:496-505 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:514-523 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:604-613 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:486-495 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:504-513 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:608-617 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:514-523 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:499\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":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ffe130168935745c6aa013991bd0014663fb22ad45f5e30ef6fa13890bf272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 28): examples/community/pipeline_flux_kontext_multiple_images.py:998-1009 | src/diffusers/pipelines/allegro/pipeline_allegro.py:794-805 | src/diffusers/pipelines/chroma/pipeline_chroma.py:726-737 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:637-648 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:690-701 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:710-721 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:536-547 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:573-584 | src/diffusers/pipelines/flux/pipeline_flux.py:752-763 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:876-887 | src/diffusers/pipelines/flux2/pipeline_flux2.py:856-867 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:726-737 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:689-700 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:834-844 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:647-658 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:557-568 | src/diffusers/pipelines/krea2/pipeline_krea2.py:560-571 | src/diffusers/pipelines/latte/pipeline_latte.py:734-745 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:561-572 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:607-618 | src/diffusers/pipelines/mochi/pipeline_mochi.py:567-578 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:482-492 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:566-577 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:540-551 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:667-678 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:727-738 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:648-659 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:815-826 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 28 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 28 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1012\u0060 calls \u0060get\u0060 and \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:494\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d1dfa253cfc06186571eb6b213e61ea5e157af56646079d1c717febc9397a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 27): examples/community/fresco_v2v.py:1335-1345 | examples/community/gluegen.py:213-223 | examples/community/pipeline_animatediff_controlnet.py:180-190 | examples/community/pipeline_flux_kontext_multiple_images.py:254-264 | examples/community/pipeline_flux_semantic_guidance.py:214-224 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:195-205 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:141-153 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:225-235 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:181-191 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:190-200 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:269-279 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:246-256 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:224-234 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:227-237 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:197-207 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:121-133 | src/diffusers/pipelines/flux/pipeline_flux.py:197-207 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:214-224 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:211-221 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:241-251 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:265-275 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:254-264 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:228-238 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:192-202 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:208-218 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:151-161 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:155-165 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/gluegen.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:141\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, \u0060examples/community/fresco_v2v.py:1332\u0060 calls \u0060isinstance\u0060, \u0060MultiControlNetModel\u0060, \u0060register_modules\u0060 and \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:141\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"91320dcb8eea7f9b91a0fe86bf185ce8ab0ad2029c781bfaf286f572f582bebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 27): examples/community/fresco_v2v.py:1850-1860 | examples/community/mod_controlnet_tile_sr_sdxl.py:778-788 | examples/community/pipeline_animatediff_controlnet.py:616-626 | examples/community/pipeline_controlnet_xl_kolors.py:604-614 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:679-689 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:730-740 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:641-651 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:788-798 | examples/community/rerender_a_video.py:484-494 | examples/research_projects/anytext/anytext.py:1762-1772 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:722-732 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:617-627 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:744-754 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:732-742 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:704-714 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:743-753 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:847-857 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:790-800 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:794-804 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:800-810 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:783-793 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:776-786 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:763-773 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:690-700 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:693-703 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:798-808 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:800-810 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 27 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 27 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1850\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, \u0060examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:736\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py:630\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1850}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0f5de91947a7d4264a8544bcee72b54f4ffc8574090c8cb85494c6bffd7dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 27): examples/community/pipeline_stg_cogvideox.py:338-348 | examples/community/pipeline_stg_wan.py:268-278 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:220-230 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:237-247 | src/diffusers/pipelines/bria/pipeline_bria.py:192-202 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:282-292 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:284-294 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:293-303 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:303-313 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:309-319 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:252-262 | src/diffusers/pipelines/consisid/pipeline_consisid.py:395-405 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:294-302 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:313-321 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:279-287 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:323-331 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:280-290 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:238-248 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:259-269 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:264-274 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:320-330 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:281-291 | src/diffusers/pipelines/wan/pipeline_wan.py:240-250 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:331-341 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:294-304 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:287-297 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:305-315 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060examples/community/pipeline_stg_wan.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_cogvideox.py:338\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"c353a6b5acb9530af229120c346ce14b52452021ea961cc269b2f9d84ff0fdd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 25): examples/community/matryoshka.py:4122-4134 | examples/community/pipeline_animatediff_ipex.py:498-510 | examples/community/pipeline_prompt2prompt.py:511-523 | examples/community/pipeline_stable_diffusion_pag.py:878-890 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:588-600 | examples/community/regional_prompting_stable_diffusion.py:758-770 | examples/community/stable_diffusion_reference.py:346-358 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:487-499 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:532-544 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:598-608 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:634-644 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:458-470 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:482-492 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:492-504 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:643-655 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:652-664 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:635-647 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:494-506 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:621-633 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:635-647 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:328-340 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:669-681 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:699-711 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:814-826 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:624-636 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:4122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/matryoshka.py:4138\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:340\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":"examples/community/matryoshka.py"},"region":{"startLine":4122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69fb9c341e2d9f7f7c9ab63edddf953fa63cb31d22c80e1f82a65b6837a725d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 24): examples/community/pipeline_hunyuandit_differential_img2img.py:1114-1124 | examples/community/pipeline_kolors_differential_img2img.py:1226-1234 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:662-670 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1559-1568 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1020-1030 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:752-760 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:988-997 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1223-1231 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:882-892 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1023-1031 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1203-1211 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1189-1199 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:722-731 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1562-1571 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:935-945 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1086-1094 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1048-1057 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1079-1087 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1357-1366 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1290-1298 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1482-1491 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1715-1724 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1358-1367 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:614-622 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:1114\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:662\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":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3151f4f389e958fee609266bd634427001d8ee7f8e2affa16d7a6bf9a795df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 21): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:614-626 | src/diffusers/pipelines/allegro/pipeline_allegro.py:464-476 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:434-446 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:478-490 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:231-243 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:518-530 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:233-245 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:189-201 | src/diffusers/pipelines/latte/pipeline_latte.py:451-463 | src/diffusers/pipelines/lumina/pipeline_lumina.py:483-495 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:438-450 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:445-457 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:550-562 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:495-507 | src/diffusers/pipelines/prx/pipeline_prx.py:131-141 | src/diffusers/pipelines/sana/pipeline_sana.py:521-533 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:536-548 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:412-424 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:436-448 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:544-556 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:546-558 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:614\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"9024c5d2315a2d65b3d82830ba1be6a76deeadbb2eb567a46a9088e3a58ea501"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 20): examples/community/gluegen.py:692-702 | examples/community/hd_painter.py:534-544 | examples/community/ip_adapter_face_id.py:980-990 | examples/community/matryoshka.py:4404-4414 | examples/community/pipeline_stable_diffusion_boxdiff.py:1479-1489 | examples/community/regional_prompting_stable_diffusion.py:954-964 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1093-1103 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1091-1101 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1205-1215 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1463-1473 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1341-1351 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1457-1467 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1362-1372 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:772-782 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:906-916 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:902-912 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:954-964 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:943-953 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1003-1013 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1094-1104 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 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 20 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1477\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/gluegen.py:707\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"db12d9b6de63c65cf1d5ef602bc7c92394340e5b523e523a09d3d109f3974c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 20): examples/community/pipeline_flux_differential_img2img.py:393-403 | examples/community/pipeline_flux_kontext_multiple_images.py:435-445 | examples/community/pipeline_flux_rf_inversion.py:390-400 | examples/community/pipeline_flux_semantic_guidance.py:394-404 | examples/community/pipeline_flux_with_cfg.py:369-377 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:423-433 | src/diffusers/pipelines/flux/pipeline_flux.py:376-386 | src/diffusers/pipelines/flux/pipeline_flux_control.py:390-400 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:401-411 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:440-450 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:408-418 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:402-412 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:413-423 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:485-495 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:399-409 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:403-413 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:424-434 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:457-467 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:363-373 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:367-377 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09502e0a41286eafcdec1c25496f28941db46b329287d16506b4e1b2f6182e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 18): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2237-2247 | examples/community/pipeline_kolors_inpainting.py:1679-1689 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2269-2279 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1427-1437 | examples/community/stable_diffusion_xl_controlnet_reference.py:1342-1352 | examples/community/stable_diffusion_xl_reference.py:1176-1186 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1576-1586 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1640-1650 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1586-1596 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1687-1697 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1589-1599 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1657-1667 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1320-1330 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1513-1523 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1746-1756 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1469-1479 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1708-1718 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:952-962 \u2014 before extracting anything, compare \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1427\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, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1652\u0060 calls \u0060StableDiffusionXLPipelineOutput\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1441\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":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"24199ca63c72053ccacba8bfe6f2bca95456615cd53dff35d96fd1bd9ef9100e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 16): examples/community/fresco_v2v.py:2423-2434 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1325-1335 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1742-1752 | examples/community/rerender_a_video.py:857-868 | examples/community/rerender_a_video.py:1035-1045 | examples/community/stable_diffusion_xl_controlnet_reference.py:1228-1239 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1268-1279 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1243-1254 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1411-1422 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1762-1777 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1483-1494 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1542-1552 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1246-1257 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1429-1440 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1503-1514 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1566-1576 \u2014 there are 16 copies across 15 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 16 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2423\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2423}}}],"partialFingerprints":{"codehealthFindingId/v1":"277b9006e396902424411dfea5a1bdbbef3a237f26c35facd0792912fbba16d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 15): examples/community/adaptive_mask_inpainting.py:1099-1108 | examples/community/hd_painter.py:682-691 | examples/community/img2img_inpainting.py:357-367 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1594-1603 | examples/community/pipeline_kolors_inpainting.py:1470-1479 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2025-2034 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1562-1571 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1646-1655 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:568-577 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:570-579 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1334-1343 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1216-1225 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1502-1511 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1226-1235 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1501-1510 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 15 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 15 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed104fa24044fa6e5affb375f2b2c64f9145860c24cdc1e2189629b1716d1202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 15): examples/community/fresco_v2v.py:2237-2247 | examples/community/pipeline_animatediff_controlnet.py:936-946 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:790-800 | examples/community/pipeline_stable_diffusion_xl_instantid.py:782-792 | examples/community/rerender_a_video.py:755-765 | examples/community/stable_diffusion_controlnet_reference.py:265-275 | examples/community/stable_diffusion_xl_controlnet_reference.py:626-636 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1098-1108 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:897-907 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1108-1118 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1106-1116 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1228-1238 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1265-1275 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1356-1366 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1055-1065 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2237\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/stable_diffusion_controlnet_reference.py:262\u0060 calls \u0060is_compiled_module\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py:933\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e298bd3c96e4221bb33dc7493f99a6ef9737187adccda7e72a452d74711dd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 15): examples/community/gluegen.py:758-766 | examples/community/ip_adapter_face_id.py:1057-1065 | examples/community/pipeline_kolors_inpainting.py:1569-1578 | examples/community/pipeline_sdxl_style_aligned.py:1794-1804 | examples/community/regional_prompting_stable_diffusion.py:1038-1046 | examples/community/stable_diffusion_xl_reference.py:1059-1068 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:950-958 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:976-984 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:829-837 | src/diffusers/pipelines/kolors/pipeline_kolors.py:969-978 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1149-1158 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1092-1100 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1261-1271 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1384-1393 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1603-1612 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1274\u0060 calls \u0060cat\u0060 and \u0060examples/community/gluegen.py:769\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":"examples/community/gluegen.py"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"995728e8246e194542433493d097558abef81b8f9c5a4db14cf890e8010a96bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 15): examples/community/lpw_stable_diffusion_xl.py:1155-1164 | examples/community/lpw_stable_diffusion_xl.py:1246-1255 | examples/community/pipeline_animatediff_img2video.py:703-712 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:824-834 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:900-910 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1045-1054 | examples/community/pipeline_kolors_inpainting.py:850-859 | examples/community/pipeline_sdxl_style_aligned.py:978-987 | examples/community/pipeline_sdxl_style_aligned.py:1122-1131 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1121-1130 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:685-694 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:985-994 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:963-972 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:842-851 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:843-852 \u2014 there are 15 copies across 12 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 15 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1155\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b35fa616058d7cffe3638400b3b9a258eceed96f78fcc47453b78450b063721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 15): examples/community/pipeline_flux_kontext_multiple_images.py:1083-1093 | examples/community/pipeline_flux_semantic_guidance.py:1056-1066 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:476-486 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:473-483 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:971-981 | src/diffusers/pipelines/krea2/pipeline_krea2.py:622-632 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:608-618 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:660-670 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:547-557 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:618-628 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:604-614 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:817-827 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:795-805 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:726-736 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:770-780 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1083\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, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:619\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1097\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"45641b0e736f963e0e0e413099243480d8b1e5689641b610aedb04182575bf75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 14): examples/community/fresco_v2v.py:2234-2244 | examples/community/pipeline_animatediff_controlnet.py:933-943 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:787-797 | examples/community/pipeline_stable_diffusion_xl_instantid.py:779-789 | examples/community/stable_diffusion_xl_controlnet_reference.py:623-633 | examples/research_projects/anytext/anytext.py:2140-2150 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1095-1105 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:894-904 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1105-1115 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1103-1113 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1225-1235 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1262-1272 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1353-1363 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1052-1062 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/anytext/anytext.py:2152\u0060 calls \u0060modify_prompt\u0060 and \u0060examples/community/fresco_v2v.py:2247\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":"examples/community/fresco_v2v.py"},"region":{"startLine":2234}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a546de64c179a084c0f598eb7ed4ecc88bec50e940859100b9d25ae882bb858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 14): examples/community/masked_stable_diffusion_xl_img2img.py:471-481 | examples/community/pipeline_kolors_inpainting.py:1649-1659 | examples/community/pipeline_sdxl_style_aligned.py:1866-1876 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2242-2252 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1394-1404 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1122-1132 | examples/community/stable_diffusion_xl_reference.py:1146-1156 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1550-1560 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:772-782 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1254-1264 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1439-1449 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1678-1688 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:922-932 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1272-1282 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1408\u0060 calls \u0060to\u0060, \u0060next\u0060, \u0060iter\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py:485\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aeecf12042c2e32ad8ac128bc01efe6cdcc26466ce1f0edbbef9accfd34724c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 14): examples/community/pipeline_stg_hunyuan_video.py:467-477 | examples/community/pipeline_stg_wan.py:370-380 | src/diffusers/modular_pipelines/wan/before_denoise.py:566-576 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:328-338 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:347-357 | src/diffusers/pipelines/helios/pipeline_helios.py:343-353 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:365-375 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:406-416 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:540-549 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:496-506 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:582-592 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:341-351 | src/diffusers/pipelines/wan/pipeline_wan.py:346-356 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:654-664 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060examples/community/pipeline_stg_wan.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_hunyuan_video.py:467\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":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"358b5fa835699fc306e38195194aea370895fc8337134124f67b5d9bf8de6235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 14): examples/community/pipeline_stg_ltx.py:864-874 | examples/community/pipeline_stg_ltx_image2video.py:963-973 | src/diffusers/modular_pipelines/ltx/decoders.py:175-185 | src/diffusers/modular_pipelines/ltx2/decoders.py:303-313 | src/diffusers/pipelines/ltx/pipeline_ltx.py:834-844 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1272-1282 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:932-942 | src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:297-307 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1641-1651 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:2095-2105 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1587-1597 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2528-2538 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1745-1755 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:403-413 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:847\u0060 calls \u0060to\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1285\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":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4a891fa0ac563acd74f302474f0365e41d05076825e7f7fad7e612b17e9b30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 13): examples/community/fresco_v2v.py:1780-1791 | examples/community/mod_controlnet_tile_sr_sdxl.py:718-728 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:602-614 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:653-665 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:632-643 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:634-645 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:673-684 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:771-782 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:714-725 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:718-729 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:623-634 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:722-733 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:724-735 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 13 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 13 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1780\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"681801d78bcec3b57f9de78c33c242d667b98022c7cc683255e0103638e0be57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 13): examples/community/gluegen.py:780-788 | examples/community/ip_adapter_face_id.py:1080-1088 | examples/community/matryoshka.py:4533-4541 | examples/community/pipeline_sdxl_style_aligned.py:1823-1831 | examples/community/pipeline_stable_diffusion_boxdiff.py:1678-1686 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2197-2205 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1094-1102 | examples/community/regional_prompting_stable_diffusion.py:1061-1069 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1255-1265 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:945-953 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1030-1038 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1322-1330 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1054-1062 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae524807ea640c9d300a359491b47b59f830d9642ddf398be0aae04474598c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 13): examples/community/mod_controlnet_tile_sr_sdxl.py:911-921 | examples/community/pipeline_kolors_differential_img2img.py:647-657 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:836-846 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:944-954 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:935-945 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:644-654 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:533-543 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:950-960 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:682-692 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:742-752 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:518-528 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:758-768 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:729-739 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 13 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 13 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:911\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1f86b00f5c7fb87520bdd90aefe516cef5b9c1e5bfb7cc7d0a6ad0c12eb2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 12): examples/community/instaflow_one_step.py:594-608 | examples/community/lpw_stable_diffusion.py:939-953 | examples/community/masked_stable_diffusion_img2img.py:118-128 | examples/community/pipeline_prompt2prompt.py:672-683 | examples/community/stable_diffusion_ipex.py:659-673 | examples/community/stable_diffusion_reference.py:947-961 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:675-689 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:667-678 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:724-738 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:592-606 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:543-557 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:608-619 \u2014 before extracting anything, compare \u0060examples/community/instaflow_one_step.py\u0060 and \u0060examples/community/lpw_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 379 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/instaflow_one_step.py:594\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/instaflow_one_step.py:612\u0060 calls \u0060get\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:609\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/instaflow_one_step.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"91334e4e6a873d42fadf19dd39af05fd123f0785373188ff4d8aa9874b3268ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 12): examples/community/llm_grounded_diffusion.py:1487-1498 | examples/community/pipeline_animatediff_controlnet.py:672-683 | examples/community/pipeline_animatediff_ipex.py:529-540 | examples/community/pipeline_prompt2prompt.py:539-550 | examples/community/stable_diffusion_repaint.py:529-540 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:747-758 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:630-641 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:490-501 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:569-580 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:428-439 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:702-712 | src/diffusers/pipelines/latte/pipeline_latte.py:570-581 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 466 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/llm_grounded_diffusion.py:1487\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"029b340c0083ded3a11e3bea19b97a2a600e7bd2bbe2411a9b73fe2503b22463"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 12): examples/community/lpw_stable_diffusion.py:1000-1010 | examples/community/pipeline_prompt2prompt.py:713-723 | examples/community/pipeline_zero1to3.py:742-752 | examples/community/stable_diffusion_controlnet_img2img.py:812-822 | examples/community/stable_diffusion_ipex.py:699-709 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1028-1038 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:503-513 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:679-689 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:583-593 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:774-784 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:594-604 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:382-392 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion.py:1000\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, \u0060examples/community/pipeline_zero1to3.py:756\u0060 calls \u0060cat\u0060 and \u0060examples/community/pipeline_prompt2prompt.py:729\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d1590b732b13ab8ebcded1df9f50588770aea732c2e2b07b3b136c2b3bf423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 12): examples/community/lpw_stable_diffusion_xl.py:1266-1276 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1065-1075 | examples/community/pipeline_kolors_inpainting.py:870-880 | examples/community/pipeline_sdxl_style_aligned.py:1066-1076 | examples/community/stable_diffusion_controlnet_inpaint.py:665-673 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:652-660 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:791-801 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:793-803 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1005-1015 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:984-994 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:863-873 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:863-873 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1266\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/lpw_stable_diffusion_xl.py:1280\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:805\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe217899e2bd96811c6fe8f240d01746b3a6478584a7a7e361b21fe0f9616cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 12): examples/community/mixture_tiling_sdxl.py:363-373 | examples/community/pipeline_demofusion_sdxl.py:166-175 | examples/community/pipeline_stable_diffusion_xl_ipex.py:249-259 | examples/community/pipeline_stable_diffusion_xl_t5.py:126-136 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:417-427 | src/diffusers/pipelines/kolors/pipeline_kolors.py:187-197 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:206-216 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:201-211 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:271-281 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:264-274 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:194-203 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:299-308 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 249 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mixture_tiling_sdxl.py:363\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: \u0060VaeImageProcessor\u0060 names \u0060....image_processor\u0060 in one and \u0060diffusers.image_processor\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fae5a0c8080ab648602aa760630b9f2ca1f16314291e199a7c16957d15eb9c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 12): examples/community/pipeline_flux_with_cfg.py:722-733 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1040-1051 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:975-986 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1016-1027 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1188-1199 | src/diffusers/pipelines/flux/pipeline_flux_control.py:701-712 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:862-873 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:763-773 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:885-896 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:954-965 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1001-1012 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1117-1128 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_with_cfg.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 380 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py:716\u0060 calls \u0060get\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1130\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"182f43f91dc539480f904083e4920ec55be326650a8573a5e8f4543a44a9b90f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 11): examples/community/adaptive_mask_inpainting.py:816-826 | examples/community/lpw_stable_diffusion_xl.py:1289-1298 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1088-1097 | examples/community/pipeline_kolors_inpainting.py:893-902 | examples/community/pipeline_sdxl_style_aligned.py:1089-1098 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1165-1174 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1028-1036 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1023-1031 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1002-1010 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:886-895 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:886-895 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e315d67d23cefba40b97697b146a9a27825440965eec7be29f754274f9873d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 11): examples/community/fresco_v2v.py:413-424 | examples/community/matryoshka.py:2742-2752 | examples/research_projects/anytext/anytext_controlnet.py:339-350 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:267-278 | src/diffusers/models/controlnets/controlnet.py:683-694 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:612-623 | src/diffusers/models/controlnets/controlnet_union.py:628-639 | src/diffusers/models/unets/unet_2d_condition.py:861-871 | src/diffusers/models/unets/unet_i2vgen_xl.py:507-517 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:590-601 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1160-1171 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 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 11 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:413\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"362b751e139fadf8eb9d1cd6977b9db3e52073060f181fe690b534ae6d0786a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 11): examples/community/gluegen.py:752-760 | examples/community/ip_adapter_face_id.py:1051-1059 | examples/community/matryoshka.py:4495-4503 | examples/community/regional_prompting_stable_diffusion.py:1032-1040 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:919-927 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:978-986 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:970-978 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1046-1056 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1024-1032 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1086-1094 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1255-1263 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f488ab51ec2874e977da5cfdb83adf22783745db000633285c71aedbe36adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 11): examples/community/pipeline_flux_rf_inversion.py:212-222 | src/diffusers/pipelines/chroma/pipeline_chroma.py:191-201 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:203-213 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:212-222 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:136-146 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:116-126 | src/diffusers/pipelines/flux/pipeline_flux_control.py:205-215 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:219-229 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:250-260 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:213-223 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:199-209 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 332 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:215\u0060 calls \u0060getattr\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:205\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":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d616fc3792d3bf95fb8c6dfa8718a9276cf08b8a6667e6c3a226aff85152e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 11): src/diffusers/guiders/adaptive_projected_guidance.py:145-155 | src/diffusers/guiders/adaptive_projected_guidance_mix.py:161-171 | src/diffusers/guiders/auto_guidance.py:183-193 | src/diffusers/guiders/classifier_free_guidance.py:141-151 | src/diffusers/guiders/classifier_free_zero_star_guidance.py:138-148 | src/diffusers/guiders/frequency_decoupled_guidance.py:302-312 | src/diffusers/guiders/magnitude_aware_guidance.py:123-133 | src/diffusers/guiders/perturbed_attention_guidance.py:259-269 | src/diffusers/guiders/skip_layer_guidance.py:251-261 | src/diffusers/guiders/smoothed_energy_guidance.py:240-250 | src/diffusers/guiders/tangential_classifier_free_guidance.py:114-124 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/adaptive_projected_guidance.py\u0060 and \u0060src/diffusers/guiders/adaptive_projected_guidance_mix.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/adaptive_projected_guidance.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b06c71392f3a279f36241c27aa2c3534966cdfdc5b99ef79abc1434177681c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): examples/community/clip_guided_stable_diffusion_img2img.py:210-220 | examples/community/fresco_v2v.py:1990-2000 | examples/community/rerender_a_video.py:566-576 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:849-859 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:691-701 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:602-612 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:546-556 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:695-705 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:531-541 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:771-781 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d778b3672cdc18c22ec3d2b42999c057de6376e48a02db649afe0e4bccbfca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 10): examples/community/edict_pipeline.py:27-36 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:199-208 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:113-122 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:148-157 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:71-79 | src/diffusers/pipelines/flux2/pipeline_flux2.py:282-291 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:192-202 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:164-173 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:117-126 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:179-188 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/edict_pipeline.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e970f447857bf870fbd39b1c32075fa95f7f16f64c0d633fb44c5d89833d58de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): examples/community/img2img_inpainting.py:401-411 | examples/community/interpolate_stable_diffusion.py:339-349 | examples/community/multilingual_stable_diffusion.py:374-384 | examples/community/seed_resize_stable_diffusion.py:306-316 | examples/community/speech_to_image_diffusion.py:229-239 | examples/community/wildcard_stable_diffusion.py:383-393 | examples/research_projects/rdm/pipeline_rdm.py:317-327 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:541-551 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:379-389 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:457-467 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/interpolate_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/img2img_inpainting.py:393\u0060 calls \u0060cat\u0060 and \u0060examples/community/interpolate_stable_diffusion.py:332\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf421cbe6422543a3c142c64c7c069e6e0130cf957dd0af199f61498be2a4c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): examples/community/lpw_stable_diffusion.py:1010-1020 | examples/community/masked_stable_diffusion_img2img.py:175-185 | examples/community/pipeline_animatediff_img2video.py:940-950 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1494-1504 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:784-795 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:728-738 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:784-794 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:604-614 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:659-669 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:436-446 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion.py:1010\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":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d2f90c553d628fa2e65c9c0c96bd501e18760b41165c902d259907dd1096fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): examples/community/lpw_stable_diffusion_xl.py:664-674 | examples/community/pipeline_sdxl_style_aligned.py:478-488 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:218-228 | examples/community/pipeline_stable_diffusion_xl_ipex.py:241-251 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:306-316 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:409-419 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:362-372 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:263-273 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:256-266 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:291-301 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 1530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:664\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, \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:214\u0060 calls \u0060isinstance\u0060, \u0060MultiControlNetModel\u0060 and \u0060examples/community/lpw_stable_diffusion_xl.py:661\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0146da0540d2829587f69f5e6cf1fc8ff848ca04289be861a6291857a4cdd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 10): examples/community/pipeline_kolors_inpainting.py:392-402 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:593-603 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:366-375 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:247-256 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:264-273 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:253-262 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:288-297 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:304-313 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:280-289 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:310-319 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_kolors_inpainting.py:392\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"e081d7dd6627111317e7ea413210a504262689b06f427a67b607e901a681853e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 10): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:486-496 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:544-554 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:241-248 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:534-544 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:556-566 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:504-514 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:520-530 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:513-523 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:539-549 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:545-555 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 772 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py:486\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78b78379acfa2145839273a04a5d5bd0407daf2ff21db9ec5da4899bab4fef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:573-583 | scripts/convert_gligen_to_diffusers.py:337-347 | scripts/convert_i2vgen_to_diffusers.py:402-412 | scripts/convert_if.py:466-476 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:273-283 | scripts/convert_ms_text_to_video_to_diffusers.py:358-368 | scripts/convert_original_audioldm_to_diffusers.py:453-463 | scripts/convert_original_musicldm_to_diffusers.py:449-459 | scripts/convert_zero123_to_diffusers.py:421-431 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:571-581 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:573\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b018e9e27b2bc1d9602020462ec920428c1be5e785e6031769795aecd2a72f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:831-841 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:982-992 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:799-809 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:867-877 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:892-902 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1025-1035 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1217-1227 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:874-884 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:670-680 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:814-824 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 823 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:799\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7401fbd29458dde2960cb27d43b907920f9b3dbd4dafd741684715c79df2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): src/diffusers/schedulers/scheduling_ddim_cogvideox.py:206-216 | src/diffusers/schedulers/scheduling_ddim_inverse.py:207-217 | src/diffusers/schedulers/scheduling_ddpm.py:212-222 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:225-235 | src/diffusers/schedulers/scheduling_deis_multistep.py:192-202 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:208-218 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:269-279 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:214-224 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:270-280 | src/diffusers/schedulers/scheduling_sasolver.py:195-205 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim_cogvideox.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim_inverse.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:269\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim_cogvideox.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1c9a894c9e1f46b4ccd9bae75d4e7c7a26420704cd3c46b77fb99971d589de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): examples/community/hd_painter.py:48-58 | examples/community/hd_painter.py:148-158 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:196-206 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:282-292 | examples/community/pipeline_stable_diffusion_xl_instantid.py:196-206 | examples/community/pipeline_stable_diffusion_xl_instantid.py:282-292 | src/diffusers/models/attention_processor.py:1131-1141 | src/diffusers/models/attention_processor.py:4014-4024 | src/diffusers/models/attention_processor.py:4269-4279 \u2014 there are 9 copies across 4 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 9 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/attention_processor.py:4026\u0060 calls \u0060head_to_batch_dim\u0060 and \u0060examples/community/hd_painter.py:60\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":"examples/community/hd_painter.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c12778334f8299185a4357490044e3741d53579dfae22971f45da6b4b9110f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): examples/community/lpw_stable_diffusion_xl.py:1908-1918 | examples/community/mod_controlnet_tile_sr_sdxl.py:1801-1811 | examples/community/stable_diffusion_xl_controlnet_reference.py:1324-1334 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1558-1568 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1622-1632 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1568-1578 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1669-1679 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1571-1581 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1639-1649 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1556\u0060 calls \u0060mark_step\u0060 and \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:1322\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"8724334f9db2c34c1aee724a698533ac5795ac4f457263eef2c8a79b27e25137"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 9): examples/community/pipeline_z_image_differential_img2img.py:716-726 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1196-1202 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:918-924 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1092-1098 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:619-629 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:646-656 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:605-615 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:810-820 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:622-632 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8e449a39a781b0241a1e86755918817098de801232bf490c65108973e8bbb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 8): examples/community/instaflow_one_step.py:592-602 | examples/community/stable_diffusion_ipex.py:657-667 | examples/community/stable_diffusion_reference.py:945-955 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:607-615 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:673-683 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:722-732 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:590-600 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:541-551 \u2014 before extracting anything, compare \u0060examples/community/instaflow_one_step.py\u0060 and \u0060examples/community/stable_diffusion_ipex.py\u0060 as WHOLE FILES: this scan already matched 45 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/instaflow_one_step.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9bae5684798a4945189a9544268510a68465606e1d7b2ef382723bd5ef3de7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 8): examples/community/pipeline_kolors_inpainting.py:1567-1575 | examples/community/pipeline_sdxl_style_aligned.py:1792-1802 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2150-2160 | examples/community/stable_diffusion_xl_reference.py:1057-1066 | src/diffusers/pipelines/kolors/pipeline_kolors.py:967-976 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1147-1156 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1382-1391 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1601-1609 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 748 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:967\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1615\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:981\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e15c5327e03903d52cbcf3d532e8734121502a727ce942ab0411f6f1f5866a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 8): src/diffusers/models/transformers/transformer_bria.py:169-178 | src/diffusers/models/transformers/transformer_bria_fibo.py:115-124 | src/diffusers/models/transformers/transformer_flux.py:126-135 | src/diffusers/models/transformers/transformer_flux.py:233-242 | src/diffusers/models/transformers/transformer_flux2.py:377-386 | src/diffusers/models/transformers/transformer_flux2.py:475-485 | src/diffusers/models/transformers/transformer_longcat_image.py:116-125 | src/diffusers/models/transformers/transformer_ovis_image.py:116-125 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_bria.py:169\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, \u0060src/diffusers/models/transformers/transformer_flux2.py:387\u0060 calls \u0060to_add_out\u0060 and \u0060src/diffusers/models/transformers/transformer_bria.py:179\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddef2cc8a649d6c70510443e3e26827db79696110d6a6953fa8434ebd2a44a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 8): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:618-632 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:839-853 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:740-754 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:955-969 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:784-798 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:721-735 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:890-904 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:782-796 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:635\u0060 calls \u0060set_begin_index\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:972\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aca017cbfad58d8348c0abfda80738143962b88bcfc71941ccc3cef17361989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): examples/community/masked_stable_diffusion_xl_img2img.py:418-429 | examples/community/pipeline_kolors_differential_img2img.py:1181-1193 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1339-1349 | src/diffusers/pipelines/kolors/pipeline_kolors.py:978-990 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1158-1170 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1037-1049 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1393-1403 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 264 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:418\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":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fa1ab4c23c9df60c116b4050bd545967f68db4d4c2abec1e07165ca807f743"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 7): examples/community/matryoshka.py:2133-2143 | src/diffusers/models/unets/unet_2d_condition.py:341-351 | src/diffusers/models/unets/unet_dreamlite.py:1764-1771 | src/diffusers/models/unets/unet_motion_model.py:1332-1342 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:150-160 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:278-288 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:631-641 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:275\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/models/unets/unet_motion_model.py:1330\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c750748dc8ac1a59a5c13e32eedef1cf955ec07e482c912e1c8e13f1c9fa1bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): examples/community/pipeline_flux_semantic_guidance.py:1044-1054 | src/diffusers/pipelines/chroma/pipeline_chroma.py:771-781 | src/diffusers/pipelines/flux/pipeline_flux_control.py:765-775 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1011-1021 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:596-606 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:648-658 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:635-645 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:771\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd790a7bd79da82a7921d794b934ec2b3b4b7261fadcd9d653c32c75db6d43a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): examples/community/pipeline_hunyuandit_differential_img2img.py:592-602 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:520-530 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:455-465 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:566-576 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:608-618 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:491-501 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:502-512 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc1c151d75bebef18731a1ee1ccf6493933fabebdbb801116a9b299fad54cb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): examples/community/pipeline_z_image_differential_img2img.py:586-596 | src/diffusers/pipelines/z_image/pipeline_z_image.py:402-412 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:502-512 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:516-526 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:498-508 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:682-692 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:543-553 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"702318b5e1e66b4d4218948d9c84ace39092487e40b69f89996932e55103cb76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): examples/community/unclip_image_interpolation.py:442-452 | examples/community/unclip_text_interpolation.py:518-528 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:493-503 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:420-430 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:405-415 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:632-642 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:317-327 \u2014 before extracting anything, compare \u0060examples/community/unclip_image_interpolation.py\u0060 and \u0060examples/community/unclip_text_interpolation.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 179 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0060549b12de21806444877faf380bac3dfb84b6d3a8d23944cc3739dd55c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 7): scripts/convert_pixart_alpha_to_diffusers.py:85-94 | scripts/convert_pixart_alpha_to_diffusers.py:119-128 | scripts/convert_pixart_sigma_to_diffusers.py:84-93 | scripts/convert_pixart_sigma_to_diffusers.py:131-140 | scripts/convert_sana_controlnet_to_diffusers.py:70-79 | scripts/convert_sana_controlnet_to_diffusers.py:109-118 | src/diffusers/loaders/single_file_utils.py:3174-3184 \u2014 before extracting anything, compare \u0060scripts/convert_pixart_alpha_to_diffusers.py\u0060 and \u0060scripts/convert_pixart_sigma_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/convert_pixart_alpha_to_diffusers.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5375680e4b7d8588d4de168d81874f0a8ed8a190f6d3cf2307e0555d96683b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): src/diffusers/models/transformers/transformer_bria.py:26-36 | src/diffusers/models/transformers/transformer_bria_fibo.py:38-48 | src/diffusers/models/transformers/transformer_flux.py:47-57 | src/diffusers/models/transformers/transformer_flux2.py:256-266 | src/diffusers/models/transformers/transformer_longcat_image.py:39-49 | src/diffusers/models/transformers/transformer_ovis_image.py:39-49 | src/diffusers/models/transformers/transformer_pan2.py:38-48 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060attn\u0060 to \u0060\u0022BriaAttention\u0022\u0060 in one and \u0060\u0022BriaFiboAttention\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a6faaf75226b08dbb43bc9372abbfe09ce2cc5454f19b5c585958bbbe81faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): src/diffusers/models/transformers/transformer_bria.py:158-168 | src/diffusers/models/transformers/transformer_bria_fibo.py:104-114 | src/diffusers/models/transformers/transformer_flux.py:115-125 | src/diffusers/models/transformers/transformer_flux.py:220-230 | src/diffusers/models/transformers/transformer_flux2.py:366-376 | src/diffusers/models/transformers/transformer_longcat_image.py:105-115 | src/diffusers/models/transformers/transformer_ovis_image.py:105-115 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_bria.py:158\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"984534353b46aed5405a671a7f6b4d2dbf881c2e39b446ad797539ee2b765855"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 7): src/diffusers/models/transformers/transformer_chronoedit.py:737-746 | src/diffusers/models/transformers/transformer_helios.py:847-857 | src/diffusers/models/transformers/transformer_sana_video.py:707-717 | src/diffusers/models/transformers/transformer_skyreels_v2.py:780-789 | src/diffusers/models/transformers/transformer_wan.py:724-733 | src/diffusers/models/transformers/transformer_wan_animate.py:1295-1304 | src/diffusers/models/transformers/transformer_wan_vace.py:390-399 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d30610aadae326c8e7937f14ee6d1498bb35d0ac165a3ae1b0bc8608708cc3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): src/diffusers/pipelines/bria/pipeline_bria.py:577-587 | src/diffusers/pipelines/sana/pipeline_sana.py:837-847 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:900-910 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:709-719 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:789-799 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:874-884 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:906-916 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65bbfc21326803a2d2dd69b11fe2e33d3eaf12f853607e94d9e7cabcb54f266"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1469-1479 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1738-1748 | src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:513-523 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:968-978 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:821-831 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:880-890 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:568-578 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:513\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"0273de6c0f4fd2d3ddd48bbb6702f081f8689f1fad7ffec493a2f96217540173"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1100-1110 | src/diffusers/schedulers/scheduling_helios.py:484-494 | src/diffusers/schedulers/scheduling_helios.py:625-635 | src/diffusers/schedulers/scheduling_sasolver.py:972-982 | src/diffusers/schedulers/scheduling_sasolver.py:1106-1116 | src/diffusers/schedulers/scheduling_unipc_multistep.py:858-868 | src/diffusers/schedulers/scheduling_unipc_multistep.py:990-1000 \u2014 there are 7 copies across 4 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 7 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1099\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/schedulers/scheduling_helios.py:482\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":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a994d7c5495f81b6cb157682dfbbe0f0a4bdfc3f55cd14ed0a77c794478a3bf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): examples/community/matryoshka.py:1107-1117 | src/diffusers/models/unets/unet_2d_blocks.py:2392-2402 | src/diffusers/models/unets/unet_3d_blocks.py:1368-1379 | src/diffusers/models/unets/unet_dreamlite.py:1014-1025 | src/diffusers/models/unets/unet_dreamlite.py:1174-1185 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1206-1216 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_3d_blocks.py:1368\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf1909d721a2d280d5dd6336fc1986dd017770a8df8c4a14fef7766ddd6c539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): examples/community/pipeline_flux_differential_img2img.py:943-953 | src/diffusers/pipelines/flux/pipeline_flux_control.py:795-805 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:878-888 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1032-1042 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:946-956 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:840-850 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py:807\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_fill.py:959\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e36acb437e625943fb9dd14d6afa27e264238e89158b27a1c61d8a1830fd25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): examples/community/pipeline_stg_hunyuan_video.py:247-257 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:211-221 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:186-196 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:289-299 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:209-219 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:246-256 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 451 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_hunyuan_video.py:247\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, \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:222\u0060 calls \u0060getattr\u0060 and \u0060examples/community/pipeline_stg_hunyuan_video.py:258\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":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e2e92fe7dba4370ef78b0e86836aad880cf22863957e9d503c58300c5f93ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): examples/community/pipeline_stg_wan.py:173-183 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:140-150 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:161-171 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:166-176 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:222-232 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:207-217 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"989d9842e38dde15f0259acf17c5f8779bb460751135d486403461086ba36a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): src/diffusers/models/transformers/transformer_bria.py:488-498 | src/diffusers/models/transformers/transformer_bria_fibo.py:279-289 | src/diffusers/models/transformers/transformer_chroma.py:249-259 | src/diffusers/models/transformers/transformer_flux.py:399-409 | src/diffusers/models/transformers/transformer_longcat_image.py:252-262 | src/diffusers/models/transformers/transformer_ovis_image.py:255-265 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_bria.py:488\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c6acf4eaf37e417fe4a4f6e038d6ba6f38a831b38d0103ac742253579b2fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:323-333 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:348-358 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:501-511 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:352-362 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:503-513 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:459-469 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce8b134a9e5198b83d9543bf5e5e26fc2e6fec92a5b4417dc860b670190c3b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 6): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:187-197 | src/diffusers/pipelines/z_image/pipeline_z_image.py:158-166 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:213-221 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:217-225 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:187-195 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:203-211 \u2014 \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image.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 12 separate duplicated blocks between them, totalling at least 146 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:187\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: \u0060DiffusionPipeline\u0060 names \u0060...pipelines.pipeline_utils\u0060 in one and \u0060..pipeline_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:226\u0060 calls \u0060VaeImageProcessor\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image.py:168\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"938cd203a53e5593470f6a86833727ddb764a3109539bf7020ca31e57883ee72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1279-1289 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1052-1062 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:941-952 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1009-1020 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1056-1066 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1312-1323 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_kolors.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 456 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1279\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"380867cf1c509de4f6de9bf1c2a1ee26f2e1581aef42e3cf6bbc474e9402a227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:644-654 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:771-781 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:985-995 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:815-825 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:746-756 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:915-925 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 633 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:782\u0060 calls \u0060size\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:656\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"157d73e96ab5abaf84b9bf019d51b189f9b9242f27cd44aabd5388beda6b91b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:222-232 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:195-205 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:195-205 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:197-207 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:198-208 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:204-214 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 77 separate duplicated blocks between them, totalling at least 1086 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:206\u0060 calls \u0060getattr\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:235\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cd52b555abe252dcf979526ded3d0a192fcca21a4f06619fdf8cab1267366b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): src/diffusers/schedulers/scheduling_ddim_cogvideox.py:218-228 | src/diffusers/schedulers/scheduling_deis_multistep.py:204-214 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:220-230 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:226-236 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:282-292 | src/diffusers/schedulers/scheduling_sasolver.py:207-217 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim_cogvideox.py\u0060 and \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_sasolver.py:207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim_cogvideox.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"45736a9dbd79b6788219f50ab0a3672237c6e393ea524af10d51d517a4079212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): examples/community/clip_guided_stable_diffusion_img2img.py:197-207 | examples/community/stable_diffusion_controlnet_img2img.py:543-553 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:616-626 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:790-800 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:744-754 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7d5e1eddbfa1bf56b219f4b9465f5b10e466d38678a26780d31531df7d61fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): examples/community/matryoshka.py:615-625 | src/diffusers/schedulers/scheduling_ddim.py:451-461 | src/diffusers/schedulers/scheduling_ddim_inverse.py:351-361 | src/diffusers/schedulers/scheduling_ddim_parallel.py:450-460 | src/diffusers/schedulers/scheduling_ddim_parallel.py:582-592 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b52ecce8d00e9022357818b14a3ef554267d93ffe14f15e759fa6e9bd9fa55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): examples/community/mod_controlnet_tile_sr_sdxl.py:1788-1798 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:891-901 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1305-1315 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1511-1521 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1626-1636 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb2be48cc80ecc9ad1aed9ecb1280ae3999428c488338a3613b3fea2f7ab1e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1236-1249 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1136-1146 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1388-1401 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1406-1419 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1376-1389 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 62 separate duplicated blocks between them, totalling at least 992 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1388\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, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1134\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1388\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":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"220b7501bccc44451fc1c7eb2288294411f992703ef524d80f9be7c73b91059c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 5): examples/community/pipeline_flux_kontext_multiple_images.py:671-679 | examples/community/pipeline_flux_kontext_multiple_images.py:703-711 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:936-944 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1110-1118 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1152-1162 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"affdcd19520d75978d4ead908a0261528333fdc9081a4d17946faffc85e235b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): examples/community/pipeline_flux_semantic_guidance.py:222-232 | src/diffusers/pipelines/flux/pipeline_flux.py:205-215 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:227-237 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:237-247 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:228-238 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 765 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_semantic_guidance.py:222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"3111918da39708c9db282c1ec40c4f7979362abc7a76441bbc8a4a27b7ad23ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:926-936 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1202-1212 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1361-1371 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1121-1131 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1314-1324 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"286e506aa722196b8ef56167e92805b850dad41feafb2a9d3e069513c5b4646a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1276-1286 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1687-1697 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1723-1733 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:868-878 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1220-1230 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"2833ba8fe165c57e9627d3d99e92e4d839d67ffef09f7307835f4db0f39e76c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): examples/community/pipeline_stg_cogvideox.py:800-810 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:735-745 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:801-811 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:845-855 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:816-826 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:735\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"32de50b463b8841c157af44f934412e2ab9b47bcd19a49594ff506c90991eeef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): examples/community/pipeline_stg_hunyuan_video.py:340-357 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:307-324 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:279-296 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:384-401 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:436-453 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 451 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stg_hunyuan_video.py:360\u0060 calls \u0060repeat\u0060, \u0060view\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:454\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":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"1104d43e769f84e25b852d4c3c7c0e858e682c91ff654daadf792560538a0135"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 5): examples/community/pipline_flux_fill_controlnet_Inpaint.py:1183-1192 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1124-1134 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1295-1305 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:906-915 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1079-1088 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1183\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2e0c22e343a6f16a9894b7c968ee37170a67506a6d59a8fab9141c14df7270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 5): examples/community/stable_diffusion_controlnet_inpaint.py:977-987 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:949-959 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:708-714 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:832-838 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:950-956 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py\u0060 as WHOLE FILES: this scan already matched 68 separate duplicated blocks between them, totalling at least 1028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py:943\u0060 calls \u0060cat\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py:971\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6d86e4e58f74534b3b6203bf415b60e70d4c61e04f6bbd014844365914a8ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): examples/research_projects/anytext/anytext_controlnet.py:396-406 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:325-335 | src/diffusers/models/controlnets/controlnet.py:740-750 | src/diffusers/models/controlnets/controlnet_union.py:721-731 | src/diffusers/models/unets/unet_i2vgen_xl.py:585-595 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext_controlnet.py\u0060 and \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c873bdd9d2e9b073d11029607d9efe6c3331a4a6f229d3944e95ab66dda932"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): src/diffusers/models/transformers/transformer_chronoedit.py:129-139 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:860-870 | src/diffusers/models/transformers/transformer_skyreels_v2.py:132-142 | src/diffusers/models/transformers/transformer_wan.py:126-136 | src/diffusers/models/transformers/transformer_wan_animate.py:609-619 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_chronoedit.py:129\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc173f15d9edbf4125beb706a9569240b89713ca89d2b267a88db893fe18d4b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 5): src/diffusers/modular_pipelines/flux/inputs.py:108-115 | src/diffusers/modular_pipelines/flux2/inputs.py:79-86 | src/diffusers/modular_pipelines/flux2/inputs.py:156-163 | src/diffusers/modular_pipelines/qwenimage/inputs.py:218-228 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:343-351 \u2014 before extracting anything, compare \u0060src/diffusers/modular_pipelines/flux2/inputs.py\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/qwenimage/inputs.py:218\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, \u0060src/diffusers/modular_pipelines/flux/inputs.py:106\u0060 calls \u0060check_inputs\u0060 and \u0060src/diffusers/modular_pipelines/flux2/inputs.py:77\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"94048c14480889a7b781ce92b4001c303eeda7c8f5958c97238a084f83203ff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:336-346 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:320-330 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:334-344 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:390-400 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:348-358 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42cbea074eafe1f5a6b90a2163b8282ac45a642f255b96d13a210e5f65079b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:904-914 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:558-568 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:608-618 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:649-659 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:816-826 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"1688cfd78c3952091bca1a76a518a3dc854f014656c855ef1862a64994066302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): src/diffusers/schedulers/scheduling_deis_multistep.py:817-827 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1092-1102 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:946-956 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:994-1004 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:636-646 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b555e20eb21522afb35456a3f2739878413cd6f01541611444670640aeb8d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/community/bit_diffusion.py:109-119 | src/diffusers/schedulers/scheduling_ddim.py:481-491 | src/diffusers/schedulers/scheduling_ddim_parallel.py:480-490 | src/diffusers/schedulers/scheduling_ddim_parallel.py:612-622 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim_parallel.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/bit_diffusion.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29eb8dc9777f93aa7bfc7cb5d2bebff60512802cb6709c545de025ee8508478"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/community/pipeline_kolors_inpainting.py:403-413 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:604-614 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:315-325 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:321-331 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060StableDiffusionXLWatermarker\u0060 names \u0060..stable_diffusion_xl.watermark\u0060 in one and \u0060.watermark\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:327\u0060 calls \u0060set_pag_applied_layers\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py:416\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":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaceac21612a80d284d393f8638c76f9012243cc4aabd0493bff48eb7a80b05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1131-1141 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1020-1030 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1054-1064 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1162-1172 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py\u0060 as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 1096 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1020\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f04dbb37e3bfa9be880f444fcce7c547f3043e4435da9445f5fd17fa60c13b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 4): examples/community/pipeline_z_image_differential_img2img.py:417-425 | examples/community/stable_diffusion_reference.py:781-790 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:817-827 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:819-829 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_z_image_differential_img2img.py:417\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"061081f3075c60f9680f4891be5f6277d899531a46371ff1ffc7d06a31c8d95b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/community/regional_prompting_stable_diffusion.py:117-127 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:161-172 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py:67-78 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:86-96 \u2014 before extracting anything, compare \u0060examples/community/regional_prompting_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 612 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/regional_prompting_stable_diffusion.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91182bc82f5f7ad4d3cb3ef20bffcf9bd97b64c23b702e21b6a443b9df5f1f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/research_projects/anytext/anytext_controlnet.py:446-456 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:376-386 | src/diffusers/models/controlnets/controlnet.py:791-801 | src/diffusers/models/controlnets/controlnet_union.py:769-779 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext_controlnet.py\u0060 and \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"38095bf54c7831dcb4f5ce394cb0100929534ad8544ce082145611f6176024a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:1040-1050 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:820-830 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:926-936 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:855-865 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 736 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:820\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"5725a78083acb096abd886c0810710ba4feba587c441cfe72f6be1f2efb0eb4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/diffusers/models/attention_processor.py:5343-5353 | src/diffusers/models/transformers/transformer_anyflow.py:76-86 | src/diffusers/models/transformers/transformer_anyflow_far.py:244-254 | src/diffusers/models/transformers/transformer_sana_video.py:112-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":5343}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1ff8923bbbf5aa6c0348322f4e95d8841e5d092136a9410b9da76814a8f49a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1136-1143 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1188-1195 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1285-1295 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1364-1374 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c1c66a018c3938b045a0c8d3c0cc6050a3029ecd6c588c166a3e64f8287e69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/diffusers/models/unets/unet_2d_blocks.py:1583-1594 | src/diffusers/models/unets/unet_2d_blocks.py:1688-1699 | src/diffusers/models/unets/unet_2d_blocks.py:2813-2823 | src/diffusers/models/unets/unet_2d_blocks.py:2925-2935 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1583}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a575d899b2547a5696c1c11b85504d356ede34f407f2ff8182ed48a010638d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/diffusers/pipelines/allegro/pipeline_allegro.py:891-901 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:738-748 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:920-930 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:825-835 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:891\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff5c2509206f56ff7d8171a0cc61d90b0cf0c154eb932a670dcbb3e729b92b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1063-1074 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:618-629 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:606-616 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:410-420 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 527 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"db79f9611fafe0da32216de28c7515ad6bdbb8153d5d01092caf9bc5a6bdb934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:926-936 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:985-995 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:688-698 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:900-910 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1097 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:926\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"985f68c56f890dc4f40cd7157b1958453d8b100a32f024c9651005c7e855638d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:305-316 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:332-342 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py:363-373 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:636-647 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py\u0060 and \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:305\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1896baff1df3efffd2cd2e1bb030c626a86e4698f7dd032f5ce0d8535d07401"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/diffusers/pipelines/flux/pipeline_flux.py:923-933 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1013-1023 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1169-1179 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:663-673 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_img2img.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux.py:923\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d68ecf6de583754fd3c26938a362da2ecffb3dca3a87401f95a9f00e0f7e65a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:929-939 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:817-827 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:1003-1013 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:771-781 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:929\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, \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:1016\u0060 calls \u0060normalize_first_frame\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:942\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8a3f4ecdf9e0f4c025dcb2e1eb72d0c647cce0df744eb597244587874154c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1455-1464 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1491-1501 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1724-1733 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1760-1770 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd61b357b2a39173ceb2d1a0d408827f87bd3f8120975bbd76009e4c7bf0ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1525-1532 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1961-1968 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1482-1492 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1603-1610 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1525\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1ad03a207ed8b7c7a80c8cfaef9baccdc6bbd7963418567db09814f42a0b8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/diffusers/schedulers/scheduling_deis_multistep.py:207-218 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:229-240 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:208-219 | src/diffusers/schedulers/scheduling_sasolver.py:210-221 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 413 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_sasolver.py:210\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"881d8f1053bebf07186bbe78786d97bb4e0905cf9e36a158b2de8a5387c7c858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/diffusers/schedulers/scheduling_deis_multistep.py:1034-1044 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1340-1350 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1314-1324 | src/diffusers/schedulers/scheduling_unipc_multistep.py:1287-1297 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1340\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":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e05a6589739894282bd514a53afba39521755bf0acb2991c36a8c8401e62fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 4): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:316-326 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:252-262 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:227-235 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:115-124 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:316\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"26011bd9926bbd6f1a5502dead792507f0490a6ed1d4bb02d37a8ba1fe41ba86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/community/img2img_inpainting.py:296-306 | examples/community/seed_resize_stable_diffusion.py:218-228 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:299-309 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/seed_resize_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 371 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/img2img_inpainting.py:296\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca8be2fc240c01f429037aac341b04f099a2e3e0d1736acca087d66a2f3607a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/community/matryoshka.py:2514-2524 | src/diffusers/models/unets/unet_2d_condition.py:698-708 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:816-826 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2514}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c0a571ee0b4c01f0ede1ed6e5de08e6bd0c0a9ec809da1527d1b96c23d16d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/community/pipeline_flux_differential_img2img.py:531-541 | examples/community/pipeline_flux_with_cfg.py:490-500 | src/diffusers/pipelines/bria/pipeline_bria.py:421-431 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_with_cfg.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 532 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:531\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe13494fb353432aefe23a6cd4565aa9b85ef8b4b1b83bcc5eae1cf767ea4ef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/community/pipeline_flux_with_cfg.py:569-579 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:413-423 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:577-587 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c62e9526f8590f1945d0066002f1385f45eb46e686a26ad89c1fd83a9bd978"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:706-716 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:660-670 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:676-686 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 874 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed2e8ffd05db31656d5ab0ad44162a05372b3f13b7691fab14619e2c965adcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): examples/community/pipeline_stable_diffusion_pag.py:192-201 | src/diffusers/models/attention_processor.py:3462-3472 | src/diffusers/models/attention_processor.py:5152-5161 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6f18520859eb97f582a119a2b8988705b246f229cdafec83be1d692194c52d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/community/pipeline_stg_ltx_image2video.py:555-565 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:531-541 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:826-836 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 808 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_ltx_image2video.py:555\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx_image2video.py"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"a781f462470d2ae5a20bc8714278cff23379f5a8c76b647ddb41c401e881e31d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/community/pipeline_stg_ltx_image2video.py:794-804 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:773-783 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1364-1374 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 808 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:773\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":"examples/community/pipeline_stg_ltx_image2video.py"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e82b65c7808dbf6f95e8236ebff38d132cc23e9431a71ba9cd44cd76ffcdad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/community/pipeline_stg_mochi.py:756-766 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:601-612 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:806-817 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c78ef1bd21400a3a6b3b4a423e63d47f4a6460efd9942ecb2033513a48e3606"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:409-419 | src/diffusers/pipelines/latte/pipeline_latte.py:293-303 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:282-292 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/latte/pipeline_latte.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 402 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:409\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4bb2df6c7c74f32d02453603b34f0c275f9a49f735c560ccc2466b235b4943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:707-717 | scripts/convert_svd_to_diffusers.py:625-635 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:645-655 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_svd_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 454 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"3440ec3243baa50dad5b75bd989d71a6af0bcbfbd5a5e682a1c229c127c0cd6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): scripts/convert_hunyuan_video_to_diffusers.py:32-42 | src/diffusers/loaders/lora_conversion_utils.py:1604-1614 | src/diffusers/loaders/single_file_utils.py:2820-2830 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_hunyuan_video_to_diffusers.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"296848ae04773e63a6352f083ace359970b438174e231eb324067cfd4086bd19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201311 lines \u00D7 4): examples/community/ip_adapter_face_id.py:301-304 | src/diffusers/loaders/ip_adapter.py:177-187 | src/diffusers/loaders/ip_adapter.py:473-483 | src/diffusers/loaders/ip_adapter.py:1000-1010 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/loaders/ip_adapter.py:176\u0060 calls \u0060startswith\u0060, \u0060replace\u0060, \u0060get_tensor\u0060 and \u0060examples/community/ip_adapter_face_id.py:301\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":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"30920536e11bf22c32ac66b7472e3721049baf868e24a4ed1c6496d46cbceecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/models/attention_processor.py:4217-4227 | src/diffusers/models/attention_processor.py:4422-4432 | src/diffusers/models/attention_processor.py:4662-4672 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:4217\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4217}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee7c2623fd819d06b68b7085924c95a33e9dcd89e605179a6b1276b33a1f2bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:577-587 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:566-576 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:540-550 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:577\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"295f2ce05b646a1e4c8ec38cb1760e882df967a65ed1957d007c268de0f23118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:1001-1010 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1491-1501 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1372-1382 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1491\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d45b3da1b9f437f32479862bc1e02ab8dedcb8e7a52a84ed7c5a54e0b8aca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 3): src/diffusers/models/normalization.py:106-113 | src/diffusers/models/normalization.py:183-192 | src/diffusers/models/transformers/transformer_hunyuan_video.py:252-262 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"82799c9661559a7ccbe8de70fda7cd434f92c72ac8baf75a955d7823cdef06ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): src/diffusers/models/transformers/transformer_anyflow.py:138-148 | src/diffusers/models/transformers/transformer_anyflow_far.py:307-317 | src/diffusers/models/transformers/transformer_sana_video.py:117-126 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee9076f0a27a7fc2e587e02c42c34fc328163902860dae28d2c033beadaef58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/models/transformers/transformer_flux.py:658-668 | src/diffusers/models/transformers/transformer_ovis_image.py:464-474 | src/diffusers/models/transformers/transformer_qwenimage.py:855-865 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_flux.py\u0060 and \u0060src/diffusers/models/transformers/transformer_ovis_image.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 367 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_flux.py:658\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98fb2a4aeba6c188de72228cd3a38085f68cbf680ff1c3a3b1ac6427bef2da8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video.py:982-992 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:611-621 | src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py:191-201 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:982\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"5134854392c25bb53109d771f05e94a5a00fb39ae9cbc01e2148218b8fe79191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:1353-1363 | src/diffusers/models/unets/unet_2d_blocks.py:1827-1837 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1584-1594 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 839 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"32803935d4f6b566cf0d6fb06a8e0e0fb1d771b2aba473e0a1eab5cdebcdf667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:1349-1359 | src/diffusers/models/unets/unet_2d_blocks.py:1823-1833 | src/diffusers/models/unets/unet_2d_blocks.py:2046-2056 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31a1a054dc745dad7eb77cdc60577aefb722eaa476edd7504d532d04ae707e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py:47-55 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:93-103 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:106-116 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b676cddc9fa655d761e1918c194151bdc6c478154dd3e6319419b55e4a27740e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): src/diffusers/modular_pipelines/ltx/denoise.py:127-136 | src/diffusers/modular_pipelines/ltx/denoise.py:360-369 | src/diffusers/modular_pipelines/wan/denoise.py:199-209 \u2014 \u0060src/diffusers/modular_pipelines/ltx/denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/wan/denoise.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 5 separate duplicated blocks between them, totalling at least 54 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060LTXModularPipeline\u0060 in one and \u0060WanModularPipeline\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":"src/diffusers/modular_pipelines/ltx/denoise.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48f1c304557b2e2421d0a01baf586dafd1b4239fac28b2a6f7688df6fcf01f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:859-869 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1244-1254 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1367-1377 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:859\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"88982d32dd75b90af68d529b1d0913eca4f0a07751ee7a59137ccdf207b81231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:533-544 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:712-722 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:759-770 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff810281ecc6571d04af8ef5f51719e6087c8bdb77da0b7bc07faa50750c6a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:589-599 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:644-654 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:964-974 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py:589\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"a144ee41a368cf2d12690a1af964650e39b0b7f9af3bf4f2e1d1e869306df2df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py:99-109 | src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:163-173 | src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py:152-162 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 194 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py:99\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":"src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d24a4f14d220fa35356263df73a7b84e35ec11a0695ee00695493cd29f8ae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): src/diffusers/schedulers/scheduling_deis_multistep.py:307-316 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:435-445 | src/diffusers/schedulers/scheduling_sasolver.py:305-314 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"6157e8a5c6aaba5c331b59000ebb981729c2ffd16334b138264a4d4ca0f01d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/schedulers/scheduling_dpmsolver_sde.py:285-295 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:174-184 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:173-183 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_sde.py\u0060 and \u0060src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_sde.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dec39bcebc7a15ce43479709b93a69aa3ea6fe575b389a3192a2558d0011f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): src/diffusers/schedulers/scheduling_edm_euler.py:494-504 | src/diffusers/schedulers/scheduling_euler_discrete.py:753-761 | src/diffusers/schedulers/scheduling_flow_match_heun_discrete.py:297-307 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_edm_euler.py\u0060 and \u0060src/diffusers/schedulers/scheduling_euler_discrete.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_edm_euler.py:494\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_edm_euler.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"d964e8c46e808d30df181291e8b77fd0f987dc8b499b73986100a7d346b01b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/community/matryoshka.py:202-212 | src/diffusers/models/attention.py:530-540 \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":"examples/community/matryoshka.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fc50977a79987ff150e86d64db3514a5571b0e3140943694de17d9830254c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/community/pipeline_flux_semantic_guidance.py:1319-1329 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:662-672 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 251 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:662\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea9d7113af1404beba46be00acec2c353ccd5d4b8f90f4f43dddc05284be5dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/community/pipeline_flux_with_cfg.py:794-804 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:817-827 \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 \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:817\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3aa357192644f64920ed34a023737a2f6997631ee8e36d4a0816508a94c816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/hooks/group_offloading.py:954-964 | src/diffusers/hooks/group_offloading.py:972-982 \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":"src/diffusers/hooks/group_offloading.py"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fe92018c1d70281f620dbbbf65d6493acace660e3f3c6a53eb2a0e118976e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201311 lines \u00D7 5): src/diffusers/loaders/lora_conversion_utils.py:1178-1187 | src/diffusers/loaders/lora_conversion_utils.py:1309-1311 | src/diffusers/loaders/lora_conversion_utils.py:1412-1422 | src/diffusers/loaders/lora_conversion_utils.py:1543-1545 | src/diffusers/loaders/lora_conversion_utils.py:2516-2518 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/lora_conversion_utils.py:1178\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/loaders/lora_conversion_utils.py:1176\u0060 calls \u0060pop\u0060, \u0060cat\u0060 and \u0060src/diffusers/loaders/lora_conversion_utils.py:1309\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":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"918cdf869cd33fe277ebd0c9f3d8c58adf3642b06f7d267abe42a5d93067e66f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:1048-1058 | src/diffusers/models/attention_dispatch.py:1154-1164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_dispatch.py:1048\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":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f132f52ceeea59509b9cdf202bbdd39761ac90745b440c58a752f04f1580fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:1213-1223 | src/diffusers/models/attention_dispatch.py:1333-1343 \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":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01cb1f7bca8f4dd6f59ba4f810a82f9dbe9c34647bce56220c7414d97fbe80c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:2405-2415 | src/diffusers/models/attention_dispatch.py:2484-2494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":2405}}}],"partialFingerprints":{"codehealthFindingId/v1":"69453a9d407027c7951f36b2250dd8f9a1d7e5bf2645c63b827e930746e2b69b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/attention_processor.py:1438-1448 | src/diffusers/models/attention_processor.py:4930-4940 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1531884e3b103cf72ca564187daa674904f405c016f15a21dd83ca8aaeca2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:908-916 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:1001-1011 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:908\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70762bcf415334eca1b2483f5f92c5f5a0ceb3c067f05c3aaa3d50c605e53e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:113-123 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:136-146 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b70cb13c0a73416358fa8b3aa4bb0b6e0fcccb6a43126ca4acbd451462be99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:444-454 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:630-640 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:444\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"0605b2a52b7eb2786376f1c0cb86f987d965fa33af6a6ec954eecbe946912725"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201311 lines \u00D7 5): src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:214-224 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:309-310 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:317-318 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:313-314 | src/diffusers/pipelines/ltx2/duration_head.py:43-53 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060attn\u0060 to \u0060\u0022KVAEAudioAttention\u0022\u0060 in one and \u0060\u0022LTX2DurationAttentionPooler\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/ltx2/duration_head.py:40\u0060 calls \u0060unsqueeze\u0060, \u0060expand\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:212\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":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f27470370700525dfd906330fc8ed3f3fae834e8f952dad8bbbd3359bd3d157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:137-147 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:177-185 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca81c9264650350405e1a8cf4ecf1f7f41fbe59b71b17bc41b9de2b1069889f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:386-396 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:501-511 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ee5f365df6649d75a8797291459fb4eeee673f2eaf950b698d8e669fd6d64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:63-73 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:158-168 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"655975cb67569ef82760201f3fcd69b8469f74a6465aa3d1c8e6d90ac6229a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201342 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:184-217 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:285-326 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:275-316 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"220d6d7184de5494677c456f31a778e98a15066ae780348bb71992a518ed9716"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:361-371 | src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:423-433 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef892dde9454413c618e53722681668d5a4501bb700d6339a39e7610680358a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_vidtok.py:244-254 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:302-312 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_vidtok.py:244\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0e7a101dd645e0f75c522c07729d89b42b359325ca6dc34ad357016bc1af11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/controlnets/controlnet.py:500-510 | src/diffusers/models/controlnets/controlnet_union.py:442-452 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_union.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet.py:500\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21296f1b581c4de45366c9212fc00c08d02eb5989af0ee4db31acf5c5eb8650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_flux.py:66-76 | src/diffusers/models/transformers/transformer_flux.py:629-640 \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":"src/diffusers/models/controlnets/controlnet_flux.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5aca65ce9baa540ca9898a3cb69abd1c2fc760e8ec3299421ac25600220635"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_flux.py:135-145 | src/diffusers/models/controlnets/controlnet_qwenimage.py:112-122 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_flux.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01687d04f084b92b4b1e77541de13f913b0770190befcd91b49fa5cc5629823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_sparsectrl.py:616-626 | src/diffusers/models/unets/unet_3d_condition.py:560-570 \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":"src/diffusers/models/controlnets/controlnet_sparsectrl.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"0153fbc24bfa97e131d53b3ea10c7c7f0dead12f10f7f35f2136a38bdd7b3e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/downsampling.py:272-282 | src/diffusers/models/upsampling.py:332-342 \u2014 before extracting anything, compare \u0060src/diffusers/models/downsampling.py\u0060 and \u0060src/diffusers/models/upsampling.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/downsampling.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"129a21e81ee4aef2d47f684ac35d8490e5fc1fdbaa2a7a67b07dc2982716f196"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/embeddings.py:1100-1110 | src/diffusers/models/transformers/stable_audio_transformer.py:39-49 \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":"src/diffusers/models/embeddings.py"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"15929bfab5e06ec143f245392ca9bcd85107beaf615385d1beb15248528e9e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/lora.py:316-326 | src/diffusers/models/lora.py:402-412 \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":"src/diffusers/models/lora.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"dceb4e9cf51170d5019006d6fae446ee5ac35419ed45871cba5a5ddeb910df52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): src/diffusers/models/normalization.py:146-155 | src/diffusers/models/transformers/transformer_hunyuan_video.py:201-211 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81c4702f0b49195f968d0551906f632be9eefd677d9e63ba417dd2e97b470de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow_far.py:1414-1424 | src/diffusers/models/transformers/transformer_anyflow_far.py:1519-1529 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow_far.py:1414\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow_far.py"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5cd091491ec0cefe023c61ee057050cf8ddbaeec8b8c70ec31ba58eba9e08a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/transformers/transformer_chronoedit.py:344-354 | src/diffusers/models/transformers/transformer_wan.py:337-347 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_wan.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 632 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54dddece78c4b10fcdf798809d4c3a0297ce16c6e6d649799722a9318ed9e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:150-160 | src/diffusers/models/transformers/transformer_cogview4.py:353-363 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9dbad87a64fd11a08cfbed1aaf22bc336148b5184d492cc5379f468d632b891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:180-188 | src/diffusers/models/transformers/transformer_cogview4.py:403-413 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37929f23b668e3818a7cba5ebcba919279165768972a34a9e1055fce86ae1b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video.py:225-235 | src/diffusers/models/transformers/transformer_hunyuan_video.py:275-284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:225\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ec0aa5393c0da1314cd8cb786f10a5a0514e75e138d317df8d0ef3404c2e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/transformers/transformer_wan_animate_2.py:307-317 | src/diffusers/models/transformers/transformer_wan_animate_2.py:324-334 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_wan_animate_2.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e84f553994af3f98d67172014ca5091d3175ab3539d4b2702486c0ecf3c16b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/transformers/transformer_z_image.py:693-703 | src/diffusers/models/transformers/transformer_z_image.py:734-744 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_z_image.py"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9759bb9ee88a86fb939726d5a2da0c6435fea36fa126dda51e30d02676283f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:1119-1126 | src/diffusers/models/unets/unet_2d_blocks.py:2141-2151 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"84adcacdcc52c40bc28cff0d293e273643a1121c3f279430a4b7bb600175f353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): src/diffusers/models/unets/unet_i2vgen_xl.py:167-174 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:119-129 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_i2vgen_xl.py\u0060 and \u0060src/diffusers/models/unets/unet_spatio_temporal_condition.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_spatio_temporal_condition.py:119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_i2vgen_xl.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d18dd3d483c307b9ef3e59d652cc0a43a8d6b8ad0f4ecbd33f04ae32fe858c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/modular_pipelines/helios/denoise.py:161-171 | src/diffusers/modular_pipelines/helios/denoise.py:234-244 \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":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1596a2bd988e5a1544bf9ca3146ef1015d9ae0c117b397400e7fdf85d30bb8dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/modular_pipelines/krea2/before_denoise.py:144-154 | src/diffusers/modular_pipelines/krea2/before_denoise.py:241-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/krea2/before_denoise.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f2d2ec993608d93dd0a5057fb4af6f41191f0e7b60656c568dca946138cb18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:2789-2799 | src/diffusers/pipelines/pipeline_utils.py:542-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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":2789}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ad85b5380bf3e5caea981aa295a339891d16af76e8c643ad4a78bdb519b2df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py:39-49 | src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py:114-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py:39\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afe8f5a74191247a664a6fdc53aa51468c51f3b820fe9c6003cdda311e9dae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage21/decoders.py:171-181 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:842-852 \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":"src/diffusers/modular_pipelines/qwenimage21/decoders.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5fd6ce6dbe1e25eb92ef23f156d48bc1375c8fad5a9caf755c3f2e3f5c23c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/modular_pipelines/wan/encoders.py:542-552 | src/diffusers/modular_pipelines/wan/encoders.py:1004-1014 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed6641f99bc9fb0f480639ca5436990d3d69b67f157265489d34b0575919e6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/modular_pipelines/wan/encoders.py:824-834 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:622-632 \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 \u0060src/diffusers/modular_pipelines/wan/encoders.py:824\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":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8437a98f1566f31130e9c06b1175875e3b595afae4ec08430edd13795e9d205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:473-483 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:282-290 \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 \u0060src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:473\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a75aa974b7b9654eeefc6681fc8a725f9505b0d8a2da9cfbc5bc89032db726"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:767-777 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:747-757 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:747\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5b06e878de734f7cb585b4201b2edd4e9a82c9aeca8748293a1a653d073e2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:196-206 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:169-179 \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, \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:194\u0060 calls \u0060CosmosSafetyChecker\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:167\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd85781b63802f525c0c98ec31c5f4da0b75f6e5111eac08ecf8ecbbb2a1f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:598-608 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:755-765 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 549 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:598\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3bc531fb33a0eab185f00836a68209b04259644fb0bd23d091f19dc88c6dd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:397-407 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:571-581 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py\u0060 as WHOLE FILES: this scan already matched 45 separate duplicated blocks between them, totalling at least 682 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce8ee4174570239300f3b7116710913bd43848b722a7c8bade727c49b5b0625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:163-173 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:227-237 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2c6ea5da4b4a399e4cbc4a9fcf6cc5cfb904a51bb0d54e434ca902a75eb2d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/deprecated/blip_diffusion/modeling_ctx_clip.py:24-34 | src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:307-317 \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":"src/diffusers/pipelines/deprecated/blip_diffusion/modeling_ctx_clip.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d73ed8eeabcac7a64ddeb36a7dc81cc9b4d4ede7aaef241199ed57c19ca255"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:604-614 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:698-708 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py\u0060 and \u0060src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:604\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bccfde43c47163b193bd1b3b4b95ac5fc1fa7afea56f6138f9fcbfde3f41510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1217-1227 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1241-1251 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1217\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a45c1d7cc1e61b6e6f2e438236a9ef32422aa16c6d2cc40bf5932f8632f5bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:116-126 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:157-168 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 216 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa48a00db1a8538fe01260b4311edad4289631cfc7c44e82bcf9a930457788c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:542-552 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:529-539 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py\u0060 and \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93bba6f4594354a9ef851e4939e537c736e47f39c0897098b13d502b271796a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:188-198 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:223-233 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 515 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12bb737dc64bf9b680239b34e5c366db409a8b75ed4be0463403fbacb1d29c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1066-1076 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:497-507 \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 \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1066\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b6aec63f98edc7b1854a4b950e0677ebfca64823a35de68c8e4194553c9711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/free_noise_utils.py:166-176 | src/diffusers/pipelines/free_noise_utils.py:200-210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/free_noise_utils.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd1bd2e7a37b5e28a298c09416926681977fafd3ae93dfb3ab893bf302d52de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:207-217 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:171-181 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 512 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"6044866eaf910ef9923b41952de485be7dc82c2f3d536ccad8382590480e6178"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:711-724 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:618-631 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 512 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:711\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"a836b37bd07274bd98cdd6eea8b395dc7c08f32ffbe222b331a144f428a33bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:141-151 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:171-181 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"978b9b13894db258593f67f1ab0cb8e56ae8241c717b618dac7af3126bcf0960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1178-1188 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1321-1331 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e26f9a9fb505e6225640dbde795cccc7b685716da1a7377bb61eb1528e755cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/llada2/pipeline_llada2.py:145-155 | src/diffusers/pipelines/llada2/pipeline_llada2.py:162-172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/llada2/pipeline_llada2.py:145\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":"src/diffusers/pipelines/llada2/pipeline_llada2.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"2049a23854aac6247b12855035b29acc75a0d4ce09f915e95f455e9e7513180a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:280-290 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:276-286 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py\u0060 and \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:280\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a8c6f4348dd8e9f0d2679558e2246e5eb03120c443dd3342bf95500fb60fab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:634-644 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:696-706 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py\u0060 and \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccdbf558ccf0fe4d7f812506a277a86dbc398bf7ea838510d396cf366d51e4e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:1348-1358 | src/diffusers/pipelines/lumina/pipeline_lumina.py:912-922 \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":"src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py"},"region":{"startLine":1348}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e521d5c64d5febcc8f9458488abf16b9a11297a26e77f6323b0bebd1400526"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/lumina/pipeline_lumina.py:604-614 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:439-449 \u2014 \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py\u0060 and \u0060src/diffusers/pipelines/lumina2/pipeline_lumina2.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 28 separate duplicated blocks between them, totalling at least 362 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed564627523455fce11e5df26311efc60c59971061dfd5a4c13736862817c29a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/lumina/pipeline_lumina.py:796-806 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:890-900 \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, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:901\u0060 calls \u0060max\u0060 and \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py:809\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":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"468e763a474299483e98ca77683a455f1931f61ba531b1459b5362455c04a037"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/lumina2/pipeline_lumina2.py:696-706 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:842-852 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lumina2/pipeline_lumina2.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina2/pipeline_lumina2.py"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f8e170a8a8a369134abac35add291a423a30cfcd137239f77debc841f464b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:841-854 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:872-885 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 1024 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"40aea90db71662dcab0cac0ec600954478c0a8c41a0f66e75d51abee40efdf1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:858-868 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:963-973 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21f697a230421b67266397f1e0105df1757ff43c43b21252c1859c3ead08a51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/prx/pipeline_prx.py:800-810 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:636-646 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/prx/pipeline_prx.py\u0060 and \u0060src/diffusers/pipelines/prx/pipeline_prx_pixel.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1fb73472f09cae7660a5f9b60b4100859ed36b79096c46ce2b0e9918f60432"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:353-364 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:416-425 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"332eb4db95fe212a7d15f9fdc3d16c7045f51e8b488f0e1858af2baf68ac133a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): src/diffusers/schedulers/scheduling_deis_multistep.py:238-245 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:331-341 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:331\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"648deef17708fcbe941b5d0f9191e13a6423cb5357105c84aefe00c95dc17437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/schedulers/scheduling_deis_multistep.py:289-311 | src/diffusers/schedulers/scheduling_unipc_multistep.py:351-373 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_unipc_multistep.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 401 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7b7d9e64eb88f20ab07e201df63f3c047fb7b7cbfb5ff901fac59f2504f855"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:908-919 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:760-771 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:908\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08a7bc681e9174b6fdc73cee5d5ba10b4989e5d60f79ac0897fa3312e80a014"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:226-236 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:247-257 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_flow_match_lcm.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:226\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":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d8134a02313145391b243e0ad66d2da9b1d7056615ffd9167464d000a9354e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:381-391 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:384-394 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_flow_match_lcm.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c3b182a178d534366c95b0473e660cfb555c1924858a44a2e0a723fc958f42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:412-422 | src/diffusers/schedulers/scheduling_unipc_multistep.py:795-805 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_helios.py\u0060 and \u0060src/diffusers/schedulers/scheduling_unipc_multistep.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"96343947a70ff3811be103ede4ba141959023ac6ddedaa2b42fe38f459562d42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/schedulers/scheduling_unipc_multistep.py:887-897 | src/diffusers/schedulers/scheduling_unipc_multistep.py:1022-1032 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_unipc_multistep.py"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b70b1497568d623b3e1931947da68797ca7198e28428d06901d50221f607090"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 2): src/diffusers/utils/export_utils.py:131-137 | src/diffusers/utils/export_utils.py:199-209 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/utils/export_utils.py:199\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/export_utils.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f0fcb1e4f5ad21b85033bed77b7561bbf2ad69d7fe24230eb055f05707dc77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 216): examples/community/fresco_v2v.py:1741-1749 | examples/community/ip_adapter_face_id.py:726-734 | examples/community/latent_consistency_interpolate.py:565-573 | examples/community/lpw_stable_diffusion_xl.py:989-997 | examples/community/matryoshka.py:4099-4107 | examples/community/pipeline_animatediff_controlnet.py:506-514 | examples/community/pipeline_animatediff_img2video.py:618-626 | examples/community/pipeline_animatediff_ipex.py:475-483 | examples/community/pipeline_controlnet_xl_kolors.py:507-515 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:553-561 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:604-612 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1564-1572 | examples/community/pipeline_flux_differential_img2img.py:457-465 | examples/community/pipeline_flux_kontext_multiple_images.py:520-528 | examples/community/pipeline_flux_rf_inversion.py:447-455 | examples/community/pipeline_flux_semantic_guidance.py:585-593 | examples/community/pipeline_flux_with_cfg.py:409-417 | examples/community/pipeline_hunyuandit_differential_img2img.py:566-574 | examples/community/pipeline_kolors_differential_img2img.py:507-515 | examples/community/pipeline_kolors_inpainting.py:714-722 | examples/community/pipeline_prompt2prompt.py:488-496 | examples/community/pipeline_sdxl_style_aligned.py:812-820 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:519-527 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:594-602 | examples/community/pipeline_stable_diffusion_boxdiff.py:855-863 | examples/community/pipeline_stable_diffusion_pag.py:855-863 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:978-986 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:559-567 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:706-714 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:553-561 | examples/community/pipeline_stable_diffusion_xl_ipex.py:561-569 | examples/community/pipeline_stg_cogvideox.py:444-451 | examples/community/pipeline_stg_hunyuan_video.py:414-422 | examples/community/pipeline_stg_ltx.py:406-414 | examples/community/pipeline_stg_ltx_image2video.py:430-438 | examples/community/pipeline_stg_mochi.py:413-421 | examples/community/pipeline_stg_wan.py:322-330 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:489-497 | examples/community/regional_prompting_stable_diffusion.py:735-743 | examples/community/stable_diffusion_reference.py:323-331 | examples/research_projects/anytext/anytext.py:1679-1687 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:593-601 | src/diffusers/pipelines/allegro/pipeline_allegro.py:386-394 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:464-472 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:507-515 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:686-694 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:509-517 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:575-583 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:611-619 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:279-287 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:298-306 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:182-189 | src/diffusers/pipelines/bria/pipeline_bria.py:285-293 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:464-473 | src/diffusers/pipelines/chroma/pipeline_chroma.py:435-443 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:467-475 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:499-507 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:350-358 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:390-397 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:430-437 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:480-487 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:454-461 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:350-357 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:331-338 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:369-376 | src/diffusers/pipelines/consisid/pipeline_consisid.py:582-589 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:617-625 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:595-603 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:621-629 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:697-705 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:653-661 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:657-665 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:688-696 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:677-685 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:677-685 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:494-502 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:578-586 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:650-658 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:505-513 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:490-498 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:378-386 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:446-454 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:362-370 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:467-475 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:593-601 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:621-628 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:471-479 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:497-505 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:469-477 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:166-174 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:487-495 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:620-628 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:629-637 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:396-404 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:516-524 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:489-496 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:505-512 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:438-446 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:423-431 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:390-398 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:426-433 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:488-496 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:529-537 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:267-275 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:436-444 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:547-555 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:589-597 | src/diffusers/pipelines/flux/pipeline_flux.py:458-466 | src/diffusers/pipelines/flux/pipeline_flux_control.py:421-429 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:463-471 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:502-510 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:492-500 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:464-472 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:479-487 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:550-558 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:514-522 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:522-530 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:509-517 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:562-570 | src/diffusers/pipelines/flux2/pipeline_flux2.py:707-715 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:568-576 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:746-754 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:575-583 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:644-651 | src/diffusers/pipelines/helios/pipeline_helios.py:292-300 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:311-319 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:537-545 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:411-419 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:300-308 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:383-391 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:353-361 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:473-481 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:511-519 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:465-473 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:268-276 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:333-341 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:511-519 | src/diffusers/pipelines/kolors/pipeline_kolors.py:477-485 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:501-509 | src/diffusers/pipelines/krea2/pipeline_krea2.py:320-328 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:655-663 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:586-594 | src/diffusers/pipelines/latte/pipeline_latte.py:386-393 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:464-471 | src/diffusers/pipelines/ltx/pipeline_ltx.py:380-388 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:472-480 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:404-412 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:479-487 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:532-540 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:293-301 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:309-317 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:534-542 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:554-562 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:485-493 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:336-344 | src/diffusers/pipelines/lumina/pipeline_lumina.py:405-413 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:376-384 | src/diffusers/pipelines/mochi/pipeline_mochi.py:351-359 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:379-387 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:511-519 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:337-345 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:575-583 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:571-579 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:661-669 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:663-671 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:476-484 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:495-503 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:367-375 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:612-620 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:555-563 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:575-583 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:471-479 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:599-606 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:651-659 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:649-657 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:600-608 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:692-700 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:288-296 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:353-361 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:335-343 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:336-344 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:357-365 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:351-359 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:335-343 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:350-358 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:373-381 | src/diffusers/pipelines/sana/pipeline_sana.py:443-451 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:458-466 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:351-359 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:375-383 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:466-474 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:468-476 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:292-300 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:316-324 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:334-342 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:379-387 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:348-356 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:251-259 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:288-296 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:646-654 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:450-457 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:677-684 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:628-636 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:791-799 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:563-571 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:593-601 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:600-608 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:638-646 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:589-597 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:695-703 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:454-462 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:667-675 | src/diffusers/pipelines/wan/pipeline_wan.py:295-303 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:362-370 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:361-369 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:501-509 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1741\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_kolors_differential_img2img.py:505\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/fresco_v2v.py:1739\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1741}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d26cd02d39e22aaa6cc4dad56689ae07c68c105717e4a5005d588ea80453f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 91): examples/community/fresco_v2v.py:2466-2473 | examples/community/ip_adapter_face_id.py:1090-1097 | examples/community/matryoshka.py:4543-4550 | examples/community/pipeline_controlnet_xl_kolors.py:1276-1283 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1479-1486 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1799-1806 | examples/community/pipeline_hunyuandit_differential_img2img.py:1104-1111 | examples/community/pipeline_stable_diffusion_boxdiff.py:1688-1695 | examples/community/pipeline_stable_diffusion_pag.py:1445-1452 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1032-1039 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1021-1028 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1104-1111 | examples/community/pipeline_stg_hunyuan_video.py:787-794 | examples/community/pipeline_stg_ltx.py:828-835 | examples/community/pipeline_stg_wan.py:620-627 | examples/community/regional_prompting_stable_diffusion.py:1071-1078 | examples/community/stable_diffusion_xl_controlnet_reference.py:1301-1308 | examples/research_projects/anytext/anytext.py:2314-2321 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1293-1300 | src/diffusers/pipelines/allegro/pipeline_allegro.py:904-911 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1267-1274 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:642-649 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:707-714 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1312-1319 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1286-1293 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1531-1538 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1588-1595 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1550-1557 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1640-1647 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1010-1017 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:824-831 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:966-973 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:627-634 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:746-753 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:615-624 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:783-792 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:955-962 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:1010-1017 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:881-888 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1066-1073 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:1009-1016 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:744-751 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:980-987 | src/diffusers/pipelines/helios/pipeline_helios.py:896-905 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:1072-1081 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:755-762 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:707-714 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:999-1006 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:872-879 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:843-849 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:291-300 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:350-359 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:914-923 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:802-811 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:988-997 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:758-765 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:923-929 | src/diffusers/pipelines/latte/pipeline_latte.py:847-854 | src/diffusers/pipelines/ltx/pipeline_ltx.py:798-805 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1598-1605 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:2048-2055 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1548-1555 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2483-2490 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1702-1709 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:696-703 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:751-758 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:875-882 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1294-1301 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1548-1555 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1609-1616 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:925-932 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:875-882 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1040-1047 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1071-1078 | src/diffusers/pipelines/sana/pipeline_sana.py:939-946 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:1035-1042 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:972-979 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:576-583 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:920-929 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:999-1008 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:1009-1018 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:709-716 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1064-1071 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:865-872 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1121-1128 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:453-460 | src/diffusers/pipelines/wan/pipeline_wan.py:643-650 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1148-1155 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:800-807 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:1005-1012 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:702-709 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:615\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, \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:1099\u0060 calls \u0060rescale_noise_cfg\u0060 and \u0060examples/community/fresco_v2v.py:2461\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2466}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79a1f2b7ee575e743f8b6885675cc25bf8a1ef95785949ee4e666a1bdd919c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 64): examples/community/adaptive_mask_inpainting.py:535-544 | examples/community/fresco_v2v.py:1469-1478 | examples/community/instaflow_one_step.py:268-277 | examples/community/ip_adapter_face_id.py:536-545 | examples/community/latent_consistency_interpolate.py:333-342 | examples/community/llm_grounded_diffusion.py:1284-1293 | examples/community/matryoshka.py:3845-3854 | examples/community/pipeline_animatediff_controlnet.py:250-259 | examples/community/pipeline_animatediff_img2video.py:367-376 | examples/community/pipeline_animatediff_ipex.py:221-230 | examples/community/pipeline_fabric.py:232-241 | examples/community/pipeline_prompt2prompt.py:302-311 | examples/community/pipeline_stable_diffusion_boxdiff.py:639-648 | examples/community/pipeline_stable_diffusion_pag.py:605-614 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:245-254 | examples/community/regional_prompting_stable_diffusion.py:583-592 | examples/community/stable_diffusion_ipex.py:345-354 | examples/community/stable_diffusion_reference.py:464-473 | examples/community/stable_diffusion_repaint.py:318-327 | examples/research_projects/anytext/anytext.py:1412-1421 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:374-383 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:206-215 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:251-260 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:260-269 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:350-359 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:328-337 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:334-343 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:379-388 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:407-416 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:284-293 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:268-277 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:348-357 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:474-483 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:272-281 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:303-312 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:364-373 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:335-344 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:263-272 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:340-349 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:311-320 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:244-253 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:241-250 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:459-468 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:211-220 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:246-255 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:868-877 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:416-425 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:293-302 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:278-287 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:327-336 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:303-312 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:356-365 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:217-226 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:351-360 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:386-395 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:384-393 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:256-265 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:410-419 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:364-373 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:530-539 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:269-278 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:349-358 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:311-320 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:363-372 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 64 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 64 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/instaflow_one_step.py:266\u0060 calls \u0060adjust_lora_scale_text_encoder\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:533\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b97d08ca5f527fe51b53798eae84a5e3061f275d82f88fb9ccc52099b72805"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 55): examples/community/pipeline_flux_kontext_multiple_images.py:1199-1208 | examples/community/pipeline_stg_cogvideox.py:852-860 | examples/community/pipeline_stg_hunyuan_video.py:794-803 | examples/community/pipeline_stg_mochi.py:825-834 | examples/community/pipeline_stg_wan.py:628-637 | src/diffusers/pipelines/allegro/pipeline_allegro.py:912-920 | src/diffusers/pipelines/chroma/pipeline_chroma.py:900-909 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:983-992 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1176-1185 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:715-724 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:774-782 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:829-837 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:884-892 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:855-863 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:663-671 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:715-723 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:832-841 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:635-644 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:754-763 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:625-634 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:793-802 | src/diffusers/pipelines/flux/pipeline_flux.py:947-956 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1087-1096 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1406-1415 | src/diffusers/pipelines/flux2/pipeline_flux2.py:1003-1012 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:895-904 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1238-1247 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:1044-1052 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:845-854 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:735-744 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:762-771 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:714-723 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:935-944 | src/diffusers/pipelines/krea2/pipeline_krea2.py:684-693 | src/diffusers/pipelines/latte/pipeline_latte.py:855-863 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:704-713 | src/diffusers/pipelines/mochi/pipeline_mochi.py:684-693 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:614-622 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:687-696 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:690-699 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:933-942 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:904-913 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:819-828 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1045-1054 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:863-872 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:792-801 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:973-982 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:867-876 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:828-836 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:584-593 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:717-726 | src/diffusers/pipelines/wan/pipeline_wan.py:651-660 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:808-817 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:1013-1022 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:710-719 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 55 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 55 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:910\u0060 calls \u0060pop\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1196\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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d062224438319420309f4f557befe1c84bf57337e26515eadb904e294a007b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 54): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:270-279 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:315-324 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:324-333 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:372-381 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:403-412 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:414-423 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:392-401 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:398-407 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:387-396 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:265-274 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:289-298 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:442-451 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:293-302 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:444-453 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:400-409 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:443-452 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:471-480 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:348-357 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:332-341 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:412-421 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:538-547 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:336-345 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:367-376 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:428-437 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:399-408 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:327-336 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:404-413 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:375-384 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:308-317 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:305-314 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:523-532 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:275-284 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:310-319 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:932-941 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:480-489 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:359-368 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:357-366 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:342-351 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:391-400 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:367-376 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:369-378 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:420-429 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:281-290 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:415-424 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:450-459 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:448-457 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:320-329 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:474-483 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:428-437 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:578-587 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:333-342 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:413-422 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:375-384 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:427-436 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py:281\u0060 calls \u0060TypeError\u0060 and \u0060src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:344\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf357f213e1b06da29d85b1f6ddd6ffdb0633f7cf49eb112b8a37be91be4c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 44): examples/community/fresco_v2v.py:1336-1345 | examples/community/gluegen.py:214-223 | examples/community/pipeline_animatediff_controlnet.py:181-190 | examples/community/pipeline_flux_kontext_multiple_images.py:255-264 | examples/community/pipeline_flux_semantic_guidance.py:215-224 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:196-205 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:240-249 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:144-153 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:226-235 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:182-191 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:191-200 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:270-279 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:214-223 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:247-256 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:225-234 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:228-237 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:274-283 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:265-274 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:266-275 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:284-293 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:230-239 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:240-249 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:198-207 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:236-245 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:359-368 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:124-133 | src/diffusers/pipelines/flux/pipeline_flux.py:198-207 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:230-239 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:215-224 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:212-221 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:242-251 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:266-275 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:255-264 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:229-238 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:280-289 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:268-277 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:193-202 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:209-218 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:152-161 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:155-164 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:156-165 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:209-218 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:229-238 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:228-237 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/gluegen.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1336\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, \u0060examples/community/fresco_v2v.py:1332\u0060 calls \u0060isinstance\u0060, \u0060MultiControlNetModel\u0060 and \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:141\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fab1c8e78af7a653b901a0390f86148b8ff0ce7df64884db23319d578bcc610"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 40): examples/community/composable_stable_diffusion.py:234-243 | examples/community/gluegen.py:384-393 | examples/community/img2img_inpainting.py:282-291 | examples/community/interpolate_stable_diffusion.py:260-269 | examples/community/pipeline_hunyuandit_differential_img2img.py:471-480 | examples/community/pipeline_zero1to3.py:283-292 | examples/community/sd_text2img_k_diffusion.py:185-194 | examples/community/seed_resize_stable_diffusion.py:204-213 | examples/community/speech_to_image_diffusion.py:150-159 | examples/community/stable_diffusion_controlnet_img2img.py:275-284 | examples/community/stable_diffusion_controlnet_inpaint.py:374-383 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:359-368 | examples/community/wildcard_stable_diffusion.py:304-313 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:402-411 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:275-284 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:299-308 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:452-461 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:303-312 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:454-463 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:410-419 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:200-209 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:274-283 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:218-227 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:468-477 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:259-268 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:175-184 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:167-176 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:202-211 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:374-383 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:184-193 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:217-226 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:348-357 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:355-364 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:313-322 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:348-357 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:384-393 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:187-196 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:197-206 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:216-225 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:254-263 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 40 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 40 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/composable_stable_diffusion.py:234\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, \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:286\u0060 calls \u0060_text_preprocessing\u0060 and \u0060examples/community/gluegen.py:395\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":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"921ece975ac1912aa14fbf8b10790bc2cbcc70733d196879a9c75825a00b858f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 39): examples/community/ip_adapter_face_id.py:262-271 | examples/community/kohya_hires_fix.py:456-465 | examples/community/llm_grounded_diffusion.py:407-416 | examples/community/mod_controlnet_tile_sr_sdxl.py:340-349 | examples/community/pipeline_animatediff_img2video.py:301-310 | examples/community/pipeline_animatediff_ipex.py:155-164 | examples/community/pipeline_prompt2prompt.py:202-211 | examples/community/pipeline_stable_diffusion_boxdiff.py:488-497 | examples/community/pipeline_stable_diffusion_pag.py:455-464 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:235-244 | examples/community/regional_prompting_stable_diffusion.py:118-127 | examples/community/rerender_a_video.py:345-354 | examples/community/stable_diffusion_controlnet_img2img.py:172-181 | examples/community/stable_diffusion_controlnet_inpaint.py:270-279 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:254-265 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:140-149 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:243-252 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:281-290 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:309-318 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:179-190 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:202-211 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:374-383 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:262-273 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:233-244 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:163-172 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py:69-78 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:87-96 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:221-230 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:223-232 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:209-220 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:287-296 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:149-158 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:282-291 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:314-323 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:286-295 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:310-319 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:261-270 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:156-167 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:263-272 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 39 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 39 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py:254\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:259\u0060 calls \u0060info\u0060 and \u0060examples/community/ip_adapter_face_id.py:260\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":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6277a9748bfa8f2b74f31d348957d9321bf8741dba82316b05b1968b174195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 39): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:321-328 | src/diffusers/models/autoencoders/autoencoder_dc.py:648-657 | src/diffusers/models/autoencoders/autoencoder_dc.py:689-698 | src/diffusers/models/autoencoders/autoencoder_kl.py:286-295 | src/diffusers/models/autoencoders/autoencoder_kl.py:343-352 | src/diffusers/models/autoencoders/autoencoder_kl.py:394-403 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1308-1317 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1387-1396 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:298-307 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:355-364 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:406-415 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:909-918 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:964-973 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:607-614 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:650-657 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:829-836 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:879-886 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:863-870 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:912-919 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:713-722 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:757-766 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1373-1382 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1429-1438 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1389-1398 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1447-1456 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:969-978 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:1026-1035 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:995-1004 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:1069-1078 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:957-966 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:1017-1026 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1437-1446 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1509-1518 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1319-1328 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1390-1399 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1293-1302 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1419-1428 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:315-324 | src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:958-967 \u2014 there are 39 copies across 20 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 39 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_vidtok.py:1290\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_dc.py:646\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29194a436f39f7f3b777a661a2a2a3ecaf3aece62739a55d491ebc32e52fc24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 37): examples/community/lpw_stable_diffusion_xl.py:1015-1024 | examples/community/pipeline_demofusion_sdxl.py:445-454 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1590-1599 | examples/community/pipeline_flux_kontext_multiple_images.py:546-555 | examples/community/pipeline_flux_semantic_guidance.py:611-620 | examples/community/pipeline_flux_with_cfg.py:435-444 | examples/community/pipeline_sdxl_style_aligned.py:838-847 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1004-1013 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:585-594 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:732-741 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:579-588 | examples/community/pipeline_stable_diffusion_xl_ipex.py:587-596 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:712-721 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:723-732 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:679-688 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:683-692 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:714-723 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:703-712 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:703-712 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:523-532 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:555-564 | src/diffusers/pipelines/flux/pipeline_flux.py:484-493 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:518-527 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:540-549 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:548-557 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:535-544 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:588-597 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:644-653 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:687-696 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:689-698 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:675-684 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:626-635 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:718-727 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:664-673 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:615-624 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:721-730 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:693-702 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4c7036e3cbe20ec4161fe2a34452796088b7dbdb00916fed1258250c92fd09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 35): examples/community/pipeline_hunyuandit_differential_img2img.py:604-614 | examples/community/pipeline_stg_ltx.py:428-437 | examples/community/pipeline_stg_ltx_image2video.py:452-461 | examples/community/pipeline_stg_mochi.py:435-444 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:529-538 | src/diffusers/pipelines/allegro/pipeline_allegro.py:420-429 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:215-224 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:532-542 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:462-473 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:573-584 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:615-626 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:503-513 | src/diffusers/pipelines/ltx/pipeline_ltx.py:402-411 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:494-503 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:426-435 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:501-510 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:554-563 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:315-324 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:331-340 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:576-585 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:507-516 | src/diffusers/pipelines/lumina/pipeline_lumina.py:439-448 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:410-419 | src/diffusers/pipelines/mochi/pipeline_mochi.py:373-382 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:409-418 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:514-524 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:394-403 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:401-410 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:506-515 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:451-460 | src/diffusers/pipelines/sana/pipeline_sana.py:477-486 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:492-501 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:500-509 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:502-511 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:323-337 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 35 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 35 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:462\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:602\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:462\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":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fc39f64d92ac9c4584cba4391be188fde58ee3158a5b6a3bdaa104622c507f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 32): examples/community/pipeline_flux_differential_img2img.py:1013-1021 | examples/community/pipeline_flux_kontext_multiple_images.py:1214-1222 | examples/community/pipeline_flux_rf_inversion.py:944-952 | examples/community/pipeline_flux_semantic_guidance.py:1352-1360 | examples/community/pipeline_flux_with_cfg.py:864-872 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:966-975 | examples/community/pipeline_z_image_differential_img2img.py:833-842 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1309-1317 | src/diffusers/pipelines/chroma/pipeline_chroma.py:915-923 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:998-1006 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1191-1199 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1243-1252 | src/diffusers/pipelines/flux/pipeline_flux_control.py:853-861 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:937-945 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1106-1114 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1192-1201 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:1006-1013 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1202-1210 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:1004-1012 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1051-1059 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1102-1110 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1421-1429 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:980-989 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:702-710 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1141-1150 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1162-1171 | src/diffusers/pipelines/z_image/pipeline_z_image.py:593-602 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:730-739 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:757-766 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:705-714 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:928-937 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:739-748 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1213\u0060 calls \u0060_unpack_latents\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1242\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbaaa20da108091399e08c6b06885a79750962ff38894e62b8ad989d967c1d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 28): examples/community/lpw_stable_diffusion_xl.py:790-799 | examples/community/mixture_tiling_sdxl.py:471-480 | examples/community/pipeline_demofusion_sdxl.py:254-263 | examples/community/pipeline_sdxl_style_aligned.py:591-600 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:777-786 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:324-333 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:471-480 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:351-360 | examples/community/pipeline_stable_diffusion_xl_ipex.py:351-360 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:410-419 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:374-383 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:382-391 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:374-383 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:363-372 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:374-383 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:393-402 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:306-315 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:668-677 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:389-398 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:379-388 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:376-385 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:394-403 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:484-493 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:366-375 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:384-393 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:488-497 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:292-301 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:394-403 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/mixture_tiling_sdxl.py:481\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/lpw_stable_diffusion_xl.py:801\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd0b6c0b4414d60908689dce6f62044ad8dba862c791f0f77f447e39c4b0e91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 26): examples/community/pipeline_flux_kontext_multiple_images.py:552-564 | examples/community/pipeline_hunyuandit_differential_img2img.py:596-607 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:521-530 | src/diffusers/pipelines/allegro/pipeline_allegro.py:412-421 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:207-216 | src/diffusers/pipelines/chroma/pipeline_chroma.py:455-466 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:487-498 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:524-535 | src/diffusers/pipelines/flux/pipeline_flux.py:490-502 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:541-553 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:431-443 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:449-461 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:534-546 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:495-506 | src/diffusers/pipelines/krea2/pipeline_krea2.py:340-352 | src/diffusers/pipelines/lumina/pipeline_lumina.py:431-440 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:402-411 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:506-517 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:386-395 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:393-402 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:498-507 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:443-452 | src/diffusers/pipelines/sana/pipeline_sana.py:469-478 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:484-493 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:492-501 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:494-503 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 26 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 26 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f54c2eacb716cb7f993b3c291ce329a6355733176d37d6ba6b9e0c185fc30b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 24): examples/community/fresco_v2v.py:1181-1191 | examples/community/hd_painter.py:87-97 | examples/community/hd_painter.py:388-398 | examples/community/llm_grounded_diffusion.py:262-272 | examples/community/pipeline_sdxl_style_aligned.py:273-282 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:227-237 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:339-349 | examples/community/pipeline_stable_diffusion_xl_instantid.py:227-237 | examples/community/pipeline_stable_diffusion_xl_instantid.py:339-349 | src/diffusers/models/attention_processor.py:1162-1172 | src/diffusers/models/attention_processor.py:2074-2084 | src/diffusers/models/attention_processor.py:2557-2567 | src/diffusers/models/attention_processor.py:2671-2681 | src/diffusers/models/attention_processor.py:2765-2775 | src/diffusers/models/attention_processor.py:2881-2891 | src/diffusers/models/attention_processor.py:3099-3109 | src/diffusers/models/attention_processor.py:3197-3207 | src/diffusers/models/attention_processor.py:3300-3310 | src/diffusers/models/attention_processor.py:3745-3755 | src/diffusers/models/attention_processor.py:4062-4072 | src/diffusers/models/attention_processor.py:4383-4393 | src/diffusers/models/attention_processor.py:4615-4625 | src/diffusers/models/attention_processor.py:4847-4857 | src/diffusers/models/unets/unet_dreamlite.py:378-388 \u2014 there are 24 copies across 8 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 24 sites; resolving a subset leaves the remainder to drift apart. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/attention_processor.py:4840\u0060 calls \u0060batch_to_head_dim\u0060 and \u0060src/diffusers/models/attention_processor.py:4608\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6312673dc2d4c96c9f77e28273ac1047adb97998e3417e677d2c974e05e02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 23): examples/community/ip_adapter_face_id.py:262-271 | examples/community/llm_grounded_diffusion.py:407-416 | examples/community/pipeline_controlnet_xl_kolors.py:208-218 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:229-239 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:278-288 | examples/community/pipeline_prompt2prompt.py:202-211 | examples/community/pipeline_stable_diffusion_boxdiff.py:488-497 | examples/community/pipeline_stable_diffusion_pag.py:455-464 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:235-244 | examples/community/rerender_a_video.py:345-354 | examples/community/stable_diffusion_controlnet_img2img.py:172-181 | examples/community/stable_diffusion_controlnet_inpaint.py:270-279 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:281-290 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:309-318 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:374-383 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:221-230 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:223-232 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:287-296 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:282-291 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:314-323 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:286-295 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:310-319 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:263-272 \u2014 before extracting anything, compare \u0060examples/community/ip_adapter_face_id.py\u0060 and \u0060examples/community/llm_grounded_diffusion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 704 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_prompt2prompt.py:213\u0060 calls \u0060VaeImageProcessor\u0060 and \u0060examples/community/stable_diffusion_controlnet_img2img.py:183\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":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d216b46b94eaa96cdc8a85a85c689167b886762538234fb16db8ad9c8da518"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 22): examples/community/pipeline_flux_kontext_multiple_images.py:1083-1092 | examples/community/pipeline_flux_semantic_guidance.py:1056-1065 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1115-1124 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:844-853 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:995-1004 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:476-485 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:473-482 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:971-980 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1230-1239 | src/diffusers/pipelines/krea2/pipeline_krea2.py:622-631 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:608-617 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:660-669 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:547-556 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:618-627 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:604-613 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:817-826 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:795-804 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:726-735 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:887-896 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:770-779 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:683-692 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:827-836 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1083\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7217f475927261441c19a25adf6e64c49b0bb688adf4e2bf6c6bd0617180b7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 20): examples/community/fresco_v2v.py:2204-2213 | examples/community/pipeline_controlnet_xl_kolors.py:986-996 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1172-1182 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1384-1394 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:746-755 | examples/community/pipeline_stable_diffusion_xl_instantid.py:742-751 | examples/community/rerender_a_video.py:719-728 | examples/community/stable_diffusion_xl_controlnet_reference.py:573-582 | examples/research_projects/anytext/anytext.py:2105-2114 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1061-1070 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1069-1078 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1067-1076 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1176-1185 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1430-1439 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1221-1230 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1311-1320 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1016-1025 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1141-1150 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1212-1221 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1305-1314 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 464 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2204\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"73464da093fe1063b5612b96576cf8a87fd9ab5f1270bfc30ca3921aab4974d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 20): examples/community/pipeline_stg_wan.py:203-212 | src/diffusers/modular_pipelines/helios/encoders.py:83-92 | src/diffusers/modular_pipelines/wan/encoders.py:73-82 | src/diffusers/modular_pipelines/wan_animate_2/encoders.py:52-61 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:153-162 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:170-179 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:202-211 | src/diffusers/pipelines/helios/pipeline_helios.py:171-180 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:189-198 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:213-222 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:171-180 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:192-201 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:197-206 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:253-262 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:201-210 | src/diffusers/pipelines/wan/pipeline_wan.py:174-183 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:251-260 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:215-224 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:220-229 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:238-247 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 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 20 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_wan.py:203\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, \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py:164\u0060 calls \u0060get_module_execution_device\u0060 and \u0060examples/community/pipeline_stg_wan.py:214\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":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac30d90708e5bef3bd57a72f4d69ab252b0c57b1b6bdec2c84c9f10b7e164dd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 19): examples/community/fresco_v2v.py:2423-2433 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1325-1334 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1742-1751 | examples/community/rerender_a_video.py:857-867 | examples/community/rerender_a_video.py:1035-1044 | examples/community/stable_diffusion_xl_controlnet_reference.py:1228-1238 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1268-1278 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1243-1253 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1411-1421 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1762-1776 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1483-1493 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1542-1551 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1776-1790 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1500-1510 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1592-1601 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1246-1256 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1429-1439 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1503-1513 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1566-1575 \u2014 there are 19 copies across 18 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 19 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2423\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2423}}}],"partialFingerprints":{"codehealthFindingId/v1":"29161af726d8ee5d7998219a75ed930d743b69004089d8979bfa0ec7d39b6faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 19): examples/community/mod_controlnet_tile_sr_sdxl.py:769-778 | examples/community/pipeline_animatediff_controlnet.py:601-610 | examples/community/pipeline_controlnet_xl_kolors.py:589-598 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:664-673 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:715-724 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:626-635 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:773-782 | examples/research_projects/anytext/anytext.py:1747-1756 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:707-716 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:602-611 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:729-738 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:717-726 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:832-841 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:775-784 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:779-788 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:785-794 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:675-684 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:783-792 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:785-794 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cad2745917922cbdd98378285ab083be2e1514916c9bb60793772a00e41fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 19): examples/community/pipline_flux_fill_controlnet_Inpaint.py:976-986 | src/diffusers/pipelines/bria/pipeline_bria.py:577-587 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:736-746 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:534-544 | src/diffusers/pipelines/consisid/pipeline_consisid.py:812-822 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1017-1027 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1189-1199 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:774-784 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:908-918 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:956-966 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:863-873 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:764-773 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:886-896 | src/diffusers/pipelines/sana/pipeline_sana.py:837-847 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:900-910 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:709-719 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:789-799 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:874-884 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:906-916 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f3a8ddce30694d1ca8900d0b08a3437ae43cd701ff20cc9261e5ca8a77d011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 19): src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:636-646 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:689-699 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:709-719 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:535-545 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:572-582 | src/diffusers/pipelines/flux2/pipeline_flux2.py:855-865 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:725-735 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:688-698 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:833-842 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:646-656 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:556-566 | src/diffusers/pipelines/krea2/pipeline_krea2.py:559-569 | src/diffusers/pipelines/mochi/pipeline_mochi.py:566-576 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:539-549 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:666-676 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:726-736 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:647-657 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:814-824 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:669-679 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 867 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c595816ad2e95350880845d1c1a306ce3ef9b72fe5cd56d53ecc42f8752d6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 17): examples/community/hd_painter.py:598-607 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1525-1534 | examples/community/pipeline_flux_differential_img2img.py:833-842 | examples/community/pipeline_kolors_inpainting.py:1402-1411 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1957-1966 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1006-1017 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:942-951 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1543-1552 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1534-1543 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:916-927 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:972-981 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1145-1154 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1426-1435 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:768-777 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1163-1172 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1195-1204 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1433-1442 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d8f32ef0f19cc745812238b6f034cd2d83fef8131f79b4660bf3a8b0ad9328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 17): examples/community/pipeline_flux_kontext_multiple_images.py:733-742 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:590-599 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:566-575 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:610-619 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:551-560 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:590-599 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:552-561 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:580-589 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:647-656 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:625-634 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:646-655 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:625-634 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:701-710 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:571-580 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:489-497 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:418-426 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:445-453 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 611 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:733\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fcf1b24495f3fd4afb20a6bf1ef015eb7fdc6f97c615d4ad87e8ddd7697696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201310 lines \u00D7 20): examples/community/pipeline_stg_wan.py:217-226 | src/diffusers/modular_pipelines/helios/encoders.py:95-97 | src/diffusers/modular_pipelines/wan/encoders.py:84-86 | src/diffusers/modular_pipelines/wan_animate_2/encoders.py:63-65 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:168-177 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:185-194 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:217-226 | src/diffusers/pipelines/helios/pipeline_helios.py:185-192 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:203-210 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:228-237 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:186-195 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:207-216 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:212-221 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:268-277 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:216-225 | src/diffusers/pipelines/wan/pipeline_wan.py:189-198 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:266-275 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:230-239 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:235-244 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:253-262 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 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 20 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/helios/encoders.py:95\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/wan/encoders.py:86\u0060 calls \u0060stack\u0060, \u0060cat\u0060, \u0060new_zeros\u0060 and \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:226\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"569b3d185512c9e26843a781fd6152fc75a6255b2c180371edbaa1d3b6d2c7c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 16): examples/community/adaptive_mask_inpainting.py:817-826 | examples/community/lpw_stable_diffusion_xl.py:1290-1299 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1089-1098 | examples/community/pipeline_kolors_inpainting.py:894-903 | examples/community/pipeline_sdxl_style_aligned.py:1090-1099 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1166-1175 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1029-1037 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:923-932 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1024-1032 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1003-1011 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:328-337 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:874-883 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:807-816 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:887-896 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:781-790 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:887-896 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 16 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 16 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"14833fd67f61f6429beba76339ec24b1add2ac6f087335f24a9ac892c12ecfe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 16): examples/community/adaptive_mask_inpainting.py:1228-1237 | examples/community/hd_painter.py:870-879 | examples/community/latent_consistency_img2img.py:375-384 | examples/community/latent_consistency_txt2img.py:290-299 | examples/community/llm_grounded_diffusion.py:1070-1079 | examples/community/masked_stable_diffusion_img2img.py:219-228 | examples/community/pipeline_prompt2prompt.py:757-767 | examples/community/stable_diffusion_controlnet_reference.py:820-829 | examples/community/stable_diffusion_reference.py:1451-1460 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1505-1514 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:619-628 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:718-727 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1529-1538 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1378-1387 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1343-1352 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:796-805 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 16 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 16 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:1228\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, \u0060examples/community/hd_painter.py:882\u0060 calls \u0060apply_overlay\u0060, \u0060maybe_free_model_hooks\u0060 and \u0060examples/community/latent_consistency_img2img.py:386\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a2bd8d3483b958e2fd9eddc6a20c4b598e1bee777dc1c7532a6d74efe9f347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 16): examples/community/clip_guided_stable_diffusion_img2img.py:212-221 | examples/community/fresco_v2v.py:1992-2001 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1775-1784 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:721-730 | examples/community/rerender_a_video.py:568-577 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:851-860 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:693-702 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:604-613 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:584-593 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:638-647 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:548-557 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:697-706 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:533-542 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:773-782 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:879-888 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:537-546 \u2014 there are 16 copies across 15 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 16 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a85edc400039dc33b98d3487482601cf1e5c63a3a3fa43b71c58f432f49a224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 16): examples/community/latent_consistency_img2img.py:791-799 | examples/community/latent_consistency_txt2img.py:699-707 | examples/community/matryoshka.py:735-743 | examples/community/scheduling_ufogen.py:474-482 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:285-294 | src/diffusers/schedulers/scheduling_ddim.py:549-557 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:460-468 | src/diffusers/schedulers/scheduling_ddim_parallel.py:659-667 | src/diffusers/schedulers/scheduling_ddpm.py:601-609 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:700-708 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:554-562 | src/diffusers/schedulers/scheduling_lcm.py:699-707 | src/diffusers/schedulers/scheduling_pndm.py:493-501 | src/diffusers/schedulers/scheduling_sasolver.py:1412-1420 | src/diffusers/schedulers/scheduling_tcd.py:734-742 | src/diffusers/schedulers/scheduling_unclip.py:388-396 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9f28efe8238600fa9addc00a81af4752a49c3b0c7357150faddf0a573929cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 15): examples/community/fresco_v2v.py:1024-1033 | examples/community/llm_grounded_diffusion.py:188-197 | examples/community/pipeline_sdxl_style_aligned.py:221-229 | examples/community/regional_prompting_stable_diffusion.py:321-330 | src/diffusers/models/attention_processor.py:2021-2030 | src/diffusers/models/attention_processor.py:2602-2611 | src/diffusers/models/attention_processor.py:2713-2722 | src/diffusers/models/attention_processor.py:2810-2819 | src/diffusers/models/attention_processor.py:3020-3029 | src/diffusers/models/attention_processor.py:3139-3148 | src/diffusers/models/attention_processor.py:3240-3249 | src/diffusers/models/attention_processor.py:3691-3700 | src/diffusers/models/attention_processor.py:4472-4481 | src/diffusers/models/attention_processor.py:4712-4721 | src/diffusers/models/unets/unet_dreamlite.py:313-322 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/llm_grounded_diffusion.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/fresco_v2v.py:1036\u0060 calls \u0060view\u0060 and \u0060examples/community/llm_grounded_diffusion.py:199\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbbcfb423d780e8913ab4fd62c8b0f889357f302c21b0e127ea41b035e29d3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 15): examples/community/fresco_v2v.py:1963-1974 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1752-1762 | examples/community/rerender_a_video.py:540-551 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:124-133 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:815-826 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:664-675 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:159-170 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:130-141 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:258-269 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:512-523 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:661-672 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:497-508 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:737-748 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:866-876 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:514-524 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37111711a9c89b5ac88577c658f103932909f4520bf889971e2d57a92526a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 15): examples/community/gluegen.py:776-785 | examples/community/ip_adapter_face_id.py:1076-1085 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2162-2173 | examples/community/pipeline_kolors_inpainting.py:1595-1604 | examples/community/pipeline_sdxl_style_aligned.py:1819-1828 | examples/community/pipeline_stable_diffusion_boxdiff.py:1674-1683 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1090-1099 | examples/community/regional_prompting_stable_diffusion.py:1057-1066 | examples/community/stable_diffusion_xl_reference.py:1109-1118 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1251-1262 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:941-950 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1050-1059 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1222-1231 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1407-1416 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1629-1638 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:776\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2647ff1de0cfce0435898e5cc667da49a643a465c30b9ce826c862aed8b3c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 14): examples/community/clip_guided_stable_diffusion_img2img.py:226-235 | examples/community/latent_consistency_img2img.py:230-239 | examples/community/pipeline_hunyuandit_differential_img2img.py:690-699 | examples/community/rerender_a_video.py:582-591 | examples/community/stable_diffusion_controlnet_img2img.py:561-570 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:634-643 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:865-874 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:707-716 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:499-508 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:276-285 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:562-571 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:711-720 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:547-556 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:787-796 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 14 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 14 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_stable_diffusion_img2img.py:226\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, \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:510\u0060 calls \u0060reshape\u0060, \u0060permute\u0060 and \u0060examples/community/rerender_a_video.py:593\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e15ee41b960ab2179b35a7d6870372bb1d9e68d21e06bff4587917e129b39c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 14): examples/community/lpw_stable_diffusion_xl.py:1154-1163 | examples/community/mod_controlnet_tile_sr_sdxl.py:918-927 | examples/community/pipeline_animatediff_img2video.py:702-711 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:823-832 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:899-908 | examples/community/pipeline_kolors_differential_img2img.py:654-663 | examples/community/pipeline_sdxl_style_aligned.py:977-986 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:684-693 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:951-960 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:942-951 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:651-660 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:957-966 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:749-758 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:736-745 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 14 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 14 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1154\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, \u0060examples/community/lpw_stable_diffusion_xl.py:1151\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:914\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"858e0bba0ab7d9b21aeb4d27cd319c81de9a9a6e1d983ae18945df0ed17f94a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 14): examples/community/lpw_stable_diffusion_xl.py:1267-1277 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1066-1076 | examples/community/pipeline_kolors_inpainting.py:871-881 | examples/community/pipeline_sdxl_style_aligned.py:1067-1077 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1144-1153 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1011-1021 | examples/community/stable_diffusion_controlnet_inpaint.py:665-674 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:652-661 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:792-802 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:794-804 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1006-1016 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:985-995 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:864-874 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:864-874 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1267\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, \u0060examples/community/lpw_stable_diffusion_xl.py:1280\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:805\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7519a40f4517055a602b1925689a3bbe42e2833222c3006e42a5f88458bc05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 14): examples/community/pipeline_hunyuandit_differential_img2img.py:137-146 | examples/community/pipeline_stg_cogvideox.py:129-138 | src/diffusers/models/transformers/transformer_easyanimate.py:81-90 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:75-84 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:82-91 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:74-83 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:83-92 | src/diffusers/pipelines/consisid/pipeline_consisid.py:164-173 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:126-135 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:87-96 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:163-172 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:185-194 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:110-119 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:113-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 14 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 14 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abfc5dd46dca60f5e2d7a7d188ecbb7727276038107ddf48c4ef13b00a8ca5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201310 lines \u00D7 14): src/diffusers/models/attention_processor.py:600-609 | src/diffusers/models/transformers/transformer_bria.py:259-263 | src/diffusers/models/transformers/transformer_bria_fibo.py:204-208 | src/diffusers/models/transformers/transformer_ernie_image.py:222-226 | src/diffusers/models/transformers/transformer_flux.py:350-354 | src/diffusers/models/transformers/transformer_flux2.py:564-568 | src/diffusers/models/transformers/transformer_flux2.py:799-803 | src/diffusers/models/transformers/transformer_ideogram4.py:164-168 | src/diffusers/models/transformers/transformer_kandinsky.py:377-385 | src/diffusers/models/transformers/transformer_krea2.py:139-143 | src/diffusers/models/transformers/transformer_longcat_image.py:206-210 | src/diffusers/models/transformers/transformer_ltx.py:165-169 | src/diffusers/models/transformers/transformer_motif_video.py:381-385 | src/diffusers/models/transformers/transformer_ovis_image.py:206-210 \u2014 there are 14 copies across 13 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 14 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:600\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c863de26164c3b14b0054b77bdcccfd117aac30d973c65ae443268e674631ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 13): examples/community/fresco_v2v.py:1029-1038 | examples/community/pipeline_sdxl_style_aligned.py:225-234 | examples/community/regional_prompting_stable_diffusion.py:326-333 | src/diffusers/models/attention_processor.py:2026-2035 | src/diffusers/models/attention_processor.py:2718-2727 | src/diffusers/models/attention_processor.py:2815-2824 | src/diffusers/models/attention_processor.py:3144-3153 | src/diffusers/models/attention_processor.py:3245-3254 | src/diffusers/models/attention_processor.py:3352-3361 | src/diffusers/models/attention_processor.py:3476-3485 | src/diffusers/models/attention_processor.py:3696-3705 | src/diffusers/models/attention_processor.py:4477-4486 | src/diffusers/models/unets/unet_dreamlite.py:318-325 \u2014 there are 13 copies across 5 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 13 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1029\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, \u0060src/diffusers/models/attention_processor.py:3348\u0060 calls \u0060chunk\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py:223\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bf1f2c5936c342563860c2913b935c7e5e15bf86d4a9767d12a2d2f6db29c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 13): examples/community/llm_grounded_diffusion.py:1489-1498 | examples/community/pipeline_animatediff_controlnet.py:674-683 | examples/community/pipeline_animatediff_ipex.py:531-540 | examples/community/pipeline_prompt2prompt.py:541-550 | examples/community/stable_diffusion_repaint.py:531-540 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:749-758 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:632-641 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:492-501 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:571-580 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:430-439 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:703-712 | src/diffusers/pipelines/latte/pipeline_latte.py:572-581 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:351-360 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 466 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/llm_grounded_diffusion.py:1489\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"479acd28ae100a117242173e4ae1d04b646938bd09c4f9af50653fce21fc7ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 12): examples/community/llm_grounded_diffusion.py:559-568 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:497-505 | examples/community/pipeline_stable_diffusion_xl_instantid.py:497-505 | examples/custom_diffusion/train_custom_diffusion.py:941-949 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:418-426 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:536-544 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:300-308 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:301-309 | examples/research_projects/ip_adapter/tutorial_train_plus.py:322-330 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:368-376 | examples/research_projects/lora/train_text_to_image_lora.py:523-531 | src/diffusers/loaders/unet.py:616-624 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/llm_grounded_diffusion.py:554\u0060 calls \u0060endswith\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:496\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"2185e9f6363079667bc566308507e64414dab48c9348fd9870d412a792116414"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 12): examples/community/lpw_stable_diffusion.py:1010-1019 | examples/community/masked_stable_diffusion_img2img.py:175-184 | examples/community/pipeline_animatediff_img2video.py:940-949 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1038-1047 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1494-1503 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:784-794 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:728-737 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:784-793 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:996-1005 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:604-613 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:659-668 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:436-445 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion.py:1010\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":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a57a287cb3ec1ee913964c2269784539eecb29212e4d87055acdb3fe4b4a9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 12): examples/community/lpw_stable_diffusion_xl.py:819-828 | examples/community/mixture_tiling_sdxl.py:502-508 | examples/community/pipeline_demofusion_sdxl.py:283-292 | examples/community/pipeline_sdxl_style_aligned.py:622-628 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:808-814 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1444-1450 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:355-361 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:502-508 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:382-388 | examples/community/pipeline_stable_diffusion_xl_ipex.py:382-388 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:416-422 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:321-330 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:819\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f67534d26450fa7415e58df9a1e23779c631b3f68daaf6b2cc432537837e58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 12): examples/community/pipeline_flux_semantic_guidance.py:220-228 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:240-249 | src/diffusers/pipelines/chroma/pipeline_chroma.py:197-205 | src/diffusers/pipelines/flux/pipeline_flux.py:203-211 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:225-233 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:256-264 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:235-243 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:226-234 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:228-237 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:228-235 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:254-261 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:168-176 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 650 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_semantic_guidance.py:220\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, \u0060examples/community/pipeline_flux_semantic_guidance.py:230\u0060 calls \u0060hasattr\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:206\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_semantic_guidance.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebaabf062612e5fa61a7745e44d1d7ccf57c188d3443ff979f4d02876c67427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 12): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:572-581 | scripts/convert_gligen_to_diffusers.py:336-345 | scripts/convert_i2vgen_to_diffusers.py:401-410 | scripts/convert_if.py:465-474 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:272-281 | scripts/convert_ms_text_to_video_to_diffusers.py:357-366 | scripts/convert_original_audioldm_to_diffusers.py:452-461 | scripts/convert_original_musicldm_to_diffusers.py:448-457 | scripts/convert_svd_to_diffusers.py:488-497 | scripts/convert_versatile_diffusion_to_diffusers.py:519-527 | scripts/convert_zero123_to_diffusers.py:420-429 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:570-579 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:569\u0060 calls \u0060sorted\u0060, \u0060items\u0060 and \u0060scripts/convert_versatile_diffusion_to_diffusers.py:515\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f241c86713cbf8226ab64cad1ad2e7a22d13a5b2141d14e0c06b05720ab7fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 11): examples/community/latent_consistency_img2img.py:566-575 | examples/community/latent_consistency_txt2img.py:478-487 | examples/community/matryoshka.py:398-407 | src/diffusers/schedulers/scheduling_ddim.py:221-230 | src/diffusers/schedulers/scheduling_ddim_inverse.py:224-233 | src/diffusers/schedulers/scheduling_ddim_parallel.py:227-236 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:286-294 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:199-207 | src/diffusers/schedulers/scheduling_euler_discrete.py:238-246 | src/diffusers/schedulers/scheduling_lcm.py:233-242 | src/diffusers/schedulers/scheduling_tcd.py:234-243 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"30094237e93a4238c9874aa5ce2716e8c33543b74f80d542b824b4065de0f844"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 11): examples/community/mod_controlnet_tile_sr_sdxl.py:919-928 | examples/community/pipeline_kolors_differential_img2img.py:655-664 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:704-713 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:643-652 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:766-775 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:952-961 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:943-952 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:652-661 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:958-967 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:750-759 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:737-746 \u2014 there are 11 copies across 10 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 11 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:919\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9c4bd59b4078799384a59e876ca2637f608d3cc88ca6e42da35f8c645bc8b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 11): examples/community/pipeline_controlnet_xl_kolors.py:1239-1250 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1443-1454 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1763-1774 | examples/community/stable_diffusion_xl_controlnet_reference.py:1241-1250 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1423-1432 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1779-1788 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1496-1505 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1554-1563 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1795-1804 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1515-1524 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1606-1615 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:1241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70e97031697242756230d2be4f86291af84d52281476c2ef1a4eeebc563644f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 11): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:526-535 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:601-610 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:585-594 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:657-666 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:154-163 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:544-553 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:562-571 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:582-591 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:570-579 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:600-609 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:607-616 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 772 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"2453ac914f1df06181cbd1d7a5cfb2134d3b4e852a3ea9950faec5bcf29deb16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 11): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:195-204 | scripts/convert_i2vgen_to_diffusers.py:52-61 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:103-112 | scripts/convert_ms_text_to_video_to_diffusers.py:48-57 | scripts/convert_original_audioldm2_to_diffusers.py:180-189 | scripts/convert_original_audioldm_to_diffusers.py:173-182 | scripts/convert_original_musicldm_to_diffusers.py:173-182 | scripts/convert_unidiffuser_to_diffusers.py:139-148 | scripts/convert_versatile_diffusion_to_diffusers.py:220-229 | scripts/convert_zero123_to_diffusers.py:167-176 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:193-202 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 322 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:207\u0060 calls \u0060replace\u0060 and \u0060scripts/convert_i2vgen_to_diffusers.py:63\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7200102ebf1d6d3ead8bf955879533a695fcbc47e324e225a6f1944a322456"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 11): src/diffusers/schedulers/scheduling_consistency_models.py:498-507 | src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:726-735 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:813-822 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:845-854 | src/diffusers/schedulers/scheduling_edm_euler.py:573-582 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:516-525 | src/diffusers/schedulers/scheduling_euler_discrete.py:839-848 | src/diffusers/schedulers/scheduling_heun_discrete.py:699-708 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:731-740 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:703-712 | src/diffusers/schedulers/scheduling_lms_discrete.py:663-672 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_consistency_models.py\u0060 and \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_consistency_models.py:498\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":"src/diffusers/schedulers/scheduling_consistency_models.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe46ba4b35f7b30411bde9063e6261650f06bcd42a5c7a9ac40a4766847901d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 10): examples/community/pipeline_sdxl_style_aligned.py:1878-1886 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1376-1384 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1052-1060 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1041-1049 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1134-1142 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1092-1100 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1316-1324 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1351-1359 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:784-793 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1284-1292 \u2014 before extracting anything, compare \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 748 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:795\u0060 calls \u0060run_safety_checker\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1061\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b54c75c645cdd452afc22c740923af57a896cf4581f175d22f6dbf1470bd40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): examples/community/matryoshka.py:2791-2800 | examples/research_projects/anytext/anytext_controlnet.py:370-379 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:298-307 | src/diffusers/models/controlnets/controlnet.py:714-723 | src/diffusers/models/controlnets/controlnet_union.py:659-668 | src/diffusers/models/controlnets/controlnet_xs.py:1050-1059 | src/diffusers/models/unets/unet_2d_condition.py:908-917 | src/diffusers/models/unets/unet_motion_model.py:1977-1987 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1208-1217 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060added_cond_kwargs\u0060 to \u0060Dict[str, Any]\u0060 in one and \u0060dict[str, Any]\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":"examples/community/matryoshka.py"},"region":{"startLine":2791}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee777ce883de34b30d8bff553de252fe60449bfb4d25935d5b346551ce83d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 9): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:445-454 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:193-200 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:435-444 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:457-466 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:405-414 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:421-430 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:414-423 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:440-449 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:446-455 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"29996a02945ca3946190576121cbf5c9e9c1c8811cc0f7124a5a5779d472eb68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): examples/community/pipeline_stg_cogvideox.py:270-279 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:216-225 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:224-233 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:234-243 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:240-249 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:182-191 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:190-199 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:193-202 | src/diffusers/pipelines/consisid/pipeline_consisid.py:326-335 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a4925218c6224d601708b203b88d249e98cfd48174c2b02df1c9745f8f03d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 9): examples/community/unclip_text_interpolation.py:148-157 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:152-161 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:145-150 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:173-182 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:330-335 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:288-293 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:323-328 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:164-173 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:183-192 \u2014 before extracting anything, compare \u0060examples/community/unclip_text_interpolation.py\u0060 and \u0060src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 292 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/unclip_text_interpolation.py:148\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_text_interpolation.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a42c0fbbee4d68d17df6034d6d72340b5079b304d86d7f349c3ff71b94c5388"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 9): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:558-567 | scripts/convert_gligen_to_diffusers.py:322-331 | scripts/convert_i2vgen_to_diffusers.py:377-386 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:261-268 | scripts/convert_ms_text_to_video_to_diffusers.py:333-342 | scripts/convert_original_audioldm_to_diffusers.py:438-447 | scripts/convert_original_musicldm_to_diffusers.py:434-443 | scripts/convert_zero123_to_diffusers.py:406-415 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:556-565 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"6397ac0618979d5b7244e9b90e0e1ba7b2c3b5b21904d0de8344b0e3fcfe1da4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 9): src/diffusers/models/attention_processor.py:1475-1482 | src/diffusers/models/attention_processor.py:1958-1965 | src/diffusers/models/attention_processor.py:2132-2141 | src/diffusers/models/attention_processor.py:2223-2232 | src/diffusers/models/attention_processor.py:4970-4977 | src/diffusers/models/transformers/transformer_easyanimate.py:160-167 | src/diffusers/models/transformers/transformer_hunyuan_video.py:122-129 | src/diffusers/models/transformers/transformer_hunyuanimage.py:117-124 | src/diffusers/models/transformers/transformer_motif_video.py:178-185 \u2014 there are 9 copies across 5 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 9 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:2132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"501ff1934d2ab86d93554933c39e0a50699a654dd32fa3b6ae2edfe00c732690"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 9): src/diffusers/models/transformers/transformer_anyflow.py:146-153 | src/diffusers/models/transformers/transformer_anyflow_far.py:315-322 | src/diffusers/models/transformers/transformer_ltx.py:87-94 | src/diffusers/models/transformers/transformer_ltx2.py:196-203 | src/diffusers/models/transformers/transformer_ltx2.py:283-292 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:180-187 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:268-277 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:859-866 | src/diffusers/models/transformers/transformer_wan_animate_2.py:306-313 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow.py:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e75e95c036d6fb9d95b7e5827f21d02f99a257d7d2ed73e660ef36ea32097d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): src/diffusers/models/transformers/transformer_bria.py:284-293 | src/diffusers/models/transformers/transformer_bria.py:351-360 | src/diffusers/models/transformers/transformer_bria_fibo.py:229-238 | src/diffusers/models/transformers/transformer_flux.py:517-526 | src/diffusers/models/transformers/transformer_flux2.py:989-998 | src/diffusers/models/transformers/transformer_flux3.py:314-323 | src/diffusers/models/transformers/transformer_krea2.py:327-336 | src/diffusers/models/transformers/transformer_longcat_image.py:369-378 | src/diffusers/models/transformers/transformer_ovis_image.py:372-381 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_bria.py:284\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":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9581359f859eacbb72be49ba905d5f2b0ec9fef2616a5d993407d023f5a68da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): src/diffusers/pipelines/ltx/pipeline_ltx.py:671-681 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1016-1026 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:735-745 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1194-1204 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1620-1630 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1712-1721 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:1501-1510 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2007-2017 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1259-1269 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_condition.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"e296c125a53bb279e6e2da552b5d30da931554a77d1c84afd110e39b602b10cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 9): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1441-1449 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1526-1534 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:956-964 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:794-802 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:883-891 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:947-955 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1156-1165 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1345-1353 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1558-1567 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 117 separate duplicated blocks between them, totalling at least 1765 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:958\u0060 calls \u0060preprocess\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:805\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":1441}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1aba9c687aa1594492523dd5994d11d74b6d9e31deaa9a2c70857f9fa941373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): examples/community/img2img_inpainting.py:246-255 | examples/community/interpolate_stable_diffusion.py:222-231 | examples/community/multilingual_stable_diffusion.py:243-252 | examples/community/seed_resize_stable_diffusion.py:166-175 | examples/community/speech_to_image_diffusion.py:114-123 | examples/community/wildcard_stable_diffusion.py:268-277 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:401-410 | src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py:104-113 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/interpolate_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/img2img_inpainting.py:241\u0060 calls \u0060check_size\u0060 and \u0060examples/community/seed_resize_stable_diffusion.py:163\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf486c8b05bccbf2f8cbd133eb08d5fc7ec274e1d2bb9af3d9ccb4416f95820"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 8): examples/community/mixture_tiling_sdxl.py:1160-1169 | examples/community/mod_controlnet_tile_sr_sdxl.py:1783-1792 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:569-576 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:546-553 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:810-819 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:934-943 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:670-679 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:727-736 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69380bd336d714bf7937c3ca90217bb520583d2766b68db03f0cbb804cb8c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): examples/community/pipeline_flux_kontext_multiple_images.py:1097-1106 | examples/community/pipeline_flux_semantic_guidance.py:1085-1094 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1060-1069 | src/diffusers/pipelines/flux/pipeline_flux.py:847-856 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:948-957 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1104-1113 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:985-994 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1294-1303 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3a2524720d8070d24785d493f1512403fe2fa1b958c3929e2c5d59294960fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): src/diffusers/models/transformers/transformer_bria.py:153-162 | src/diffusers/models/transformers/transformer_bria_fibo.py:99-108 | src/diffusers/models/transformers/transformer_flux.py:110-119 | src/diffusers/models/transformers/transformer_flux.py:215-224 | src/diffusers/models/transformers/transformer_flux2.py:361-370 | src/diffusers/models/transformers/transformer_flux2.py:441-450 | src/diffusers/models/transformers/transformer_longcat_image.py:100-109 | src/diffusers/models/transformers/transformer_ovis_image.py:100-109 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c013f92404a8b4ee791332e90b988ce27ac272bea325f260f09ee95fda4402d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 8): src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:548-556 | src/diffusers/pipelines/bria/pipeline_bria.py:580-589 | src/diffusers/pipelines/sana/pipeline_sana.py:840-848 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:903-911 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:712-720 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:792-800 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:877-885 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:909-917 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"405b4c82a32ca62bc834132db22f9eb2b5a29c832778d425a3a6e656f36d6392"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 8): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:240-248 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:264-272 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:417-425 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:268-276 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:419-427 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:375-383 | src/diffusers/pipelines/latte/pipeline_latte.py:273-282 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:211-217 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:240\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46eb4d9d1b233073a1a3cdb3dcea807e236b52d2a0f79a7f9f26a48f6f039d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 8): src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:877-886 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1029-1037 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1003-1010 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1037-1044 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1292-1299 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1230-1238 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1423-1431 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1636-1644 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 8 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:877\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd.py:1003\u0060 calls \u0060progress_bar\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:877\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa520e9db3d2f010b6d58ffb8790b3735e3937423644120d2e4e416e3ed8042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 8): src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1026-1035 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:837-845 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1001-1009 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:992-999 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1290-1298 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1227-1236 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1420-1429 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1633-1641 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_kolors.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:837\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:833\u0060 calls \u0060prepare_extra_step_kwargs\u0060, \u0060max\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd.py:1001\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":"src/diffusers/pipelines/pag/pipeline_pag_kolors.py"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20dee6dc584144dc8f2829691d493e567dc01e08fcaa409abf25e74244ecf91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): examples/community/llm_grounded_diffusion.py:1049-1058 | examples/community/pipeline_animatediff_img2video.py:951-960 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:524-533 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1006-1015 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:820-829 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:794-803 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:446-455 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 465 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/llm_grounded_diffusion.py:1049\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2aee2fdc5c8382f1df6acc52b31b196f95292386dcab75a0952af333239e15d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): examples/community/pipeline_hunyuandit_differential_img2img.py:497-506 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:428-437 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:389-398 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:500-509 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:542-551 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:400-409 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:410-419 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd4b17de09a742d8b7028a5912d99703123c9db1bea90a71aefb6bb6959afbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): examples/community/pipeline_sdxl_style_aligned.py:1797-1807 | examples/community/stable_diffusion_xl_reference.py:1061-1071 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1229-1239 | src/diffusers/pipelines/kolors/pipeline_kolors.py:971-981 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1151-1161 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1199-1208 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1386-1396 \u2014 before extracting anything, compare \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 and \u0060examples/community/stable_diffusion_xl_reference.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 413 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":1797}}}],"partialFingerprints":{"codehealthFindingId/v1":"305e571ca9e76deba7866816e93d440364cd71f99620b4ee7b204fd6d9d4d694"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:702-711 | examples/community/stable_diffusion_controlnet_reference.py:792-801 | src/diffusers/pipelines/allegro/pipeline_allegro.py:892-901 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:739-748 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:759-768 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:921-930 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:826-835 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:702\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, \u0060examples/community/stable_diffusion_controlnet_reference.py:805\u0060 calls \u0060update\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:932\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":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0231ffd6d241cdfa54d078c59d03bcb5fe72aaa03042a93d8b1049d5637335a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 7): examples/community/pipeline_stg_hunyuan_video.py:318-324 | src/diffusers/pipelines/chroma/pipeline_chroma.py:253-262 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:265-274 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:282-291 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:284-290 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:257-263 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:361-367 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"814396778ef1c329a81ae0bb87f56f816decb939116e9b2c43f884d592d984da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): examples/community/pipeline_z_image_differential_img2img.py:388-397 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:646-655 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:668-677 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:681-690 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:635-644 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:704-713 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:807-816 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_z_image_differential_img2img.py:388\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":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee3860e544e6e68590f3b376f035f96d91ff6245c958753d4c4a9600c006488"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): examples/research_projects/anytext/anytext.py:2303-2312 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1282-1291 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1301-1310 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:999-1008 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:854-863 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1110-1119 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1284-1293 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext.py\u0060 and \u0060examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/anytext/anytext.py:2303\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext.py"},"region":{"startLine":2303}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4c30e336e1f1c178cc2b6ee12ff5e851e950e43169294df35f6dc87e0aa9ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 7): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:414-423 | src/diffusers/pipelines/latte/pipeline_latte.py:298-306 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:287-295 | src/diffusers/pipelines/sana/pipeline_sana.py:369-377 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:384-392 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:392-400 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:390-398 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/latte/pipeline_latte.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 402 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb836a913968ba4c768aa0d3358dcb681d83f9d6b79a6e3f25fcff0c83a59de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:710-719 | scripts/convert_original_audioldm2_to_diffusers.py:505-514 | scripts/convert_original_audioldm_to_diffusers.py:489-498 | scripts/convert_original_musicldm_to_diffusers.py:485-494 | scripts/convert_svd_to_diffusers.py:628-637 | scripts/convert_zero123_to_diffusers.py:522-531 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:648-657 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be6023bc5395475f4dc89901f3a530c8a7d824997981febda80bb72b1f4c8cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:643-652 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:770-779 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:984-993 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:814-823 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:745-754 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:914-923 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:813-822 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 633 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:643\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f815f30780d63b6f056c783f245c7b8e4ddc61dc0ba6af9800f057eba6fb3ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): examples/community/fresco_v2v.py:2290-2299 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1251-1260 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:835-844 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1149-1158 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1403-1412 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1391-1400 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93310ddab19a89a2404804a5660e5dd13ebed81160a42400e42e18621430841"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): examples/community/lpw_stable_diffusion_xl.py:829-840 | examples/community/lpw_stable_diffusion_xl.py:884-893 | examples/community/pipeline_demofusion_sdxl.py:293-304 | examples/community/pipeline_demofusion_sdxl.py:348-357 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:331-342 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:386-395 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:829\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9241efca55346619abb36a2e7eeab7feb8bbf34b6701bb49e71b91ffc55343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): examples/community/pipeline_flux_rf_inversion.py:470-479 | src/diffusers/pipelines/flux/pipeline_flux_control.py:444-453 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:486-495 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:525-534 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:487-496 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:573-582 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_rf_inversion.py:470\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c92fb901f9882e13b49cbd8a3091a7d30aa22cff5f6ff3d9f3e821fb1ac394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): examples/community/pipeline_hunyuandit_differential_img2img.py:1090-1099 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:996-1005 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:730-739 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:966-975 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1185-1194 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:858-867 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:729\u0060 calls \u0060size\u0060 and \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:1088\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":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"27141d391f7312286a017206e15bc51f95eba5500fa6fc718424ce1a45503d8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): examples/community/pipeline_kolors_inpainting.py:1693-1702 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2283-2292 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1874-1883 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1886-1895 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1760-1769 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1722-1731 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1772\u0060 calls \u0060set_attn_processor\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1885\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":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fbd4d463f470ee94f96bda2a5a7b4a00b438378b5dd3491629ecb63b0fdd87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): examples/community/pipeline_stg_hunyuan_video.py:736-745 | examples/community/pipeline_stg_wan.py:566-575 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:713-722 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:665-674 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:541-550 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:669-678 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060examples/community/pipeline_stg_wan.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:707\u0060 calls \u0060to\u0060, \u0060tensor\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:538\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":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8486486a011ae0cb7ea7d41b4916fef79e57e2f17d923272f16876a0bd83ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 6): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:859-867 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:758-767 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:794-803 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:369-377 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:928-936 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:777-786 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10431c346a02537cc397e21ce92428af25727f4d089b806947c2dd20ae2e6d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): src/diffusers/models/transformers/transformer_chronoedit.py:48-57 | src/diffusers/models/transformers/transformer_helios.py:72-81 | src/diffusers/models/transformers/transformer_skyreels_v2.py:53-62 | src/diffusers/models/transformers/transformer_wan.py:47-56 | src/diffusers/models/transformers/transformer_wan_animate.py:59-68 | src/diffusers/models/transformers/transformer_wan_animate_2.py:94-103 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060attn\u0060 to \u0060\u0022WanAttention\u0022\u0060 in one and \u0060\u0022HeliosAttention\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"02460a4786082ac900171052891f0af9a6c010ae0204e5aacbce2d6b22a58020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:579-591 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:464-476 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:618-630 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:451-463 | src/diffusers/pipelines/prx/pipeline_prx.py:514-523 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:338-347 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:579\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e72eeb0050f971fa37bb54082a4a361eb8bc4ee1e32a79e3bbd7636bb09c65f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 6): src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:692-700 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:765-774 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:979-988 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:809-818 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:808-817 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:778-786 \u2014 \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.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 26 separate duplicated blocks between them, totalling at least 283 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:692\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"2256c6cfa78c001d417456b292ab99a2cb4d27c50350d093cc2da00c402f6797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 6): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:193-201 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:257-265 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:239-247 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:200-208 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:210-218 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:256-265 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:193\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ae621ddab2a7803c0a128d83d31a3b81c2cef1e7006cebf1c02f69ee9bab50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 6): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:199-206 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:201-208 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:202-209 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:166-175 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:169-178 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:208-215 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 786 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:199\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd4de02fbed0769f0162aad69ce4683f4f997c808038e281b30cc67d7fa13e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 5): examples/community/cogvideox_ddim_inversion.py:198-205 | examples/research_projects/sana/train_sana_sprint_diffusers.py:127-136 | src/diffusers/models/attention_processor.py:3025-3034 | src/diffusers/models/transformers/sana_transformer.py:141-150 | src/diffusers/models/transformers/transformer_sana_video.py:299-308 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/cogvideox_ddim_inversion.py:198\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/cogvideox_ddim_inversion.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"409db1814d27485d00746115228b5c41cf309e8bd43c0c30e526e49c77e9bc76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): examples/community/matryoshka.py:1131-1140 | src/diffusers/models/controlnets/controlnet_xs.py:1757-1766 | src/diffusers/models/unets/unet_2d_blocks.py:2416-2425 | src/diffusers/models/unets/unet_motion_model.py:665-674 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1951-1960 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"4358232eb81a5ec88ab7e179674ca247d2f3f1fac753b2eb3e79107d9f4aa3bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): examples/community/matryoshka.py:2280-2291 | src/diffusers/models/unets/unet_2d_condition.py:480-491 | src/diffusers/models/unets/unet_dreamlite.py:1893-1902 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:396-407 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:800-811 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2280}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff82f0199e3f0265de51f3e70a578b47c8770ddc7d9b5e819b3ddf341b172a70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 5): examples/community/pipeline_flux_differential_img2img.py:879-888 | examples/community/pipeline_flux_rf_inversion.py:849-858 | examples/community/pipeline_flux_rf_inversion.py:1019-1028 | examples/community/pipeline_flux_with_cfg.py:785-794 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:971-976 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 629 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/glm_image/pipeline_glm_image.py:971\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd9b3cdeb6cdf987b938c3c7d78546f11c36c0e0960542c25878f5046ce563c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): examples/community/pipeline_stg_hunyuan_video.py:112-121 | src/diffusers/models/transformers/transformer_hunyuan_video.py:633-642 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:477-486 | src/diffusers/models/transformers/transformer_hunyuanimage.py:584-593 | src/diffusers/models/transformers/transformer_motif_video.py:685-694 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_hunyuan_video.py:112\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":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"50aa9803c77483c810c92a3b42d26a5c3580cc99e5be7221bfa3164bedb147a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): examples/community/unclip_image_interpolation.py:141-150 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:141-150 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:337-346 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:295-304 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:330-339 \u2014 before extracting anything, compare \u0060examples/community/unclip_image_interpolation.py\u0060 and \u0060src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 238 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5488216aad76ea74830001b7f156319180af17df19a7bfc92b3f8a9e612bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 5): src/diffusers/models/transformers/transformer_anyflow.py:80-86 | src/diffusers/models/transformers/transformer_anyflow.py:137-146 | src/diffusers/models/transformers/transformer_anyflow_far.py:248-254 | src/diffusers/models/transformers/transformer_anyflow_far.py:306-315 | src/diffusers/models/transformers/transformer_sana_video.py:116-124 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f3e0b3a13c920c706f03129800b940ae2634538c8471ed138b270d7c4590d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:392-401 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:352-361 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:337-346 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:390-399 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:410-419 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 216 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"55265fc22eb408f143616640d2280319e513af8296a0d5e77d5cd978de3400d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 5): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:567-575 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:704-712 | src/diffusers/pipelines/helios/pipeline_helios.py:841-850 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:945-954 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:878-886 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 549 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"c450e622bf34e68c237fe13a16cfc77742beebccd3cd639a6cc159a0d14ec5b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:305-315 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:332-341 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py:363-372 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:636-646 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:927-936 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py\u0060 and \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:305\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64628d7876e616c121782a859eafb25d2244cfa49166d4dae48c5b8f956ec00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:544-553 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:671-680 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:731-740 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:637-646 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:781-790 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:633\u0060 calls \u0060preprocess\u0060, \u0060to\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:541\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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cdd198a3c0ebf3870886408e49c084c69e44b33ed29975ec91e6f305d867f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/community/composable_stable_diffusion.py:213-222 | examples/community/regional_prompting_stable_diffusion.py:1169-1178 | examples/community/sd_text2img_k_diffusion.py:164-173 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:238-247 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/regional_prompting_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"944530b94a6a2051314304bd1fd301a94d56916419ecae8ab9bb761c91a41392"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/community/matryoshka.py:633-642 | src/diffusers/schedulers/scheduling_ddim.py:462-471 | src/diffusers/schedulers/scheduling_ddim_parallel.py:461-470 | src/diffusers/schedulers/scheduling_ddim_parallel.py:593-602 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0fe22e7873c69fb2f811a2ccec70b8e551e3e94c7217226e9b750d4ff95c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/community/matryoshka.py:1544-1553 | src/diffusers/models/attention_processor.py:2746-2755 | src/diffusers/models/attention_processor.py:2950-2959 | src/diffusers/models/attention_processor.py:3726-3735 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:2746\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":"examples/community/matryoshka.py"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6307e2df188de1e2eed358173df905aaa1f698bc87477aaeed2a4bdcb2be69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/community/pipeline_flux_kontext_multiple_images.py:760-769 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:649-658 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:460-469 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:480-489 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060image\u0060 to \u0060PipelineImageInput\u0060 in one and \u0060torch.Tensor\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, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:491\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:471\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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"566f671e9dbeaccd743ecf93e5ea8968200105f60386da44e67337a543b839a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:1084-1093 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:865-874 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:970-979 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:896-905 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 736 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:877\u0060 calls \u0060set_attn_processor\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:981\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":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78fce16ecac95c3a0f070c6ab3e9b80c9b283b47c544ae049bee36ec94db840"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): scripts/convert_flux2_to_diffusers.py:152-159 | scripts/convert_flux2_to_diffusers.py:191-200 | src/diffusers/loaders/single_file_utils.py:1538-1545 | src/diffusers/loaders/single_file_utils.py:1577-1586 \u2014 before extracting anything, compare \u0060scripts/convert_flux2_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_flux2_to_diffusers.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd1681454fa6ba1d7b0381b28b14840d406ad02da7bab30a12c76ec64306f2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): scripts/convert_hunyuan_image_to_diffusers.py:691-700 | scripts/convert_hunyuan_video1_5_to_diffusers.py:457-466 | src/diffusers/loaders/lora_conversion_utils.py:1083-1091 | src/diffusers/loaders/lora_conversion_utils.py:1119-1127 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuan_image_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuan_video1_5_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 384 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_hunyuan_image_to_diffusers.py:691\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/convert_hunyuan_image_to_diffusers.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ec00768897e0b84b54ff7d566c7bc69416b20b9a25a35c824f70f87e0cd0fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/models/attention_processor.py:3131-3140 | src/diffusers/models/attention_processor.py:3232-3241 | src/diffusers/models/attention_processor.py:3335-3344 | src/diffusers/models/attention_processor.py:3458-3467 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/attention_processor.py:3348\u0060 calls \u0060chunk\u0060 and \u0060src/diffusers/models/attention_processor.py:3143\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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3131}}}],"partialFingerprints":{"codehealthFindingId/v1":"2160f309cfe4ab006208e515b51a67bc1482c5de5c765ef84b97c946253bc3fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl.py:129-138 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:141-150 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:579-588 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:156-165 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 342 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_kl.py:126\u0060 calls \u0060Conv2d\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:577\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f61b15c07a3f1e00423a95af258f6cc32f427dfb20b1359dbf4973c6135a21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:147-156 | src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:262-271 | src/diffusers/pipelines/ace_step/modeling_ace_step.py:171-180 | src/diffusers/pipelines/ace_step/modeling_ace_step.py:263-272 \u2014 before extracting anything, compare \u0060src/diffusers/models/condition_embedders/condition_embedder_ace_step.py\u0060 and \u0060src/diffusers/pipelines/ace_step/modeling_ace_step.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060ModelMixin\u0060 names \u0060...models.modeling_utils\u0060 in one and \u0060..modeling_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:272\u0060 calls \u0060Parameter\u0060, \u0060randn\u0060 and \u0060src/diffusers/models/condition_embedders/condition_embedder_ace_step.py:157\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/condition_embedders/condition_embedder_ace_step.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9e83093bd3d80f162342fcc36bc4f1945cf9c9fb3f23eb0d43a1d12dfddb54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/models/transformers/transformer_chronoedit.py:678-687 | src/diffusers/models/transformers/transformer_sana_video.py:642-651 | src/diffusers/models/transformers/transformer_skyreels_v2.py:673-682 | src/diffusers/models/transformers/transformer_wan.py:662-671 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_wan.py:674\u0060 calls \u0060contiguous\u0060 and \u0060src/diffusers/models/transformers/transformer_chronoedit.py:690\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbfe52cec95b8d44364e1eefb83ac951fd82f834c20c5dffd916f1b0d429aaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/models/transformers/transformer_hunyuan_video.py:1115-1124 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:796-805 | src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py:364-373 | src/diffusers/models/transformers/transformer_pan2.py:502-511 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"95acd28eb75564d7a8178a86163e9961cd74ee935a5f15d368b46d648bfe771c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): src/diffusers/models/unets/unet_2d_blocks.py:1355-1364 | src/diffusers/models/unets/unet_2d_blocks.py:1829-1838 | src/diffusers/models/unets/unet_dreamlite.py:907-915 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1586-1595 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"34afd80b776d5b847acf776d9023e7762f365fc75cdde266f86dbf8ebcbab797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/modular_pipelines/anima/before_denoise.py:317-326 | src/diffusers/modular_pipelines/flux2/inputs.py:163-172 | src/diffusers/modular_pipelines/qwenimage/inputs.py:233-242 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:351-360 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/anima/before_denoise.py:317\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b285759a031d18496d1828696ef513c46abc9d73e92d667e3858fb119795a12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1176-1185 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1335-1344 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:867-876 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:838-847 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1176\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:848\u0060 calls \u0060to\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1186\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c787981d448d9a6c2ff17c06008904a52636d31fb96f2cedcb18938d0c29f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:705-714 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:942-951 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1160-1169 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1030-1039 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 800 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf57d2a370c3956f7ce7d05ca625e7a3ac5add126c586c5248d0fc82b05dd29b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 4): src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:859-868 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:892-897 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:986-991 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1042-1051 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 742 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:859\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d6d7eb3ab22a62e5c95132cafbad0c1c5b13568d201c8f6007be04ffa411ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/pipelines/flux2/pipeline_flux2.py:595-604 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:452-461 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:531-540 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:460-469 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py:595\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a24d4c44c01356a240a7c5250f5837ad81d3d8061c648591ba73cedaf13f1bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:185-194 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:211-220 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:215-224 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:162-171 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:185\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: \u0060DiffusionPipeline\u0060 names \u0060...pipelines.pipeline_utils\u0060 in one and \u0060..pipeline_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"696dac9f05cdda7019597aa16afc3a61b2bb82c0cb9eafb9534a8dbb06d59957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/pipelines/prx/pipeline_prx.py:514-523 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:338-347 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:551-560 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:497-506 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/prx/pipeline_prx.py\u0060 and \u0060src/diffusers/pipelines/prx/pipeline_prx_pixel.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 262 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/prx/pipeline_prx.py:514\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"952e6bad21ad4d8169713655420a1b111c48b71e4ad78860ae89aaf620c7719b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:473-482 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:406-414 | src/diffusers/schedulers/scheduling_euler_discrete.py:460-469 | src/diffusers/schedulers/scheduling_unipc_multistep.py:455-463 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 704 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a2a930495cb11fcd36d4641421a3a9e8dc2ff770bbea30ce6fea3dd3d4a339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 4): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1006-1012 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:859-865 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:918-924 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1037-1046 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1006\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, \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1046\u0060 calls \u0060exp\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1012\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4de38de3b02df9ddc5523a904a970cf505d6f491bc62978f6b93a4f065ba452"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/community/matryoshka.py:2360-2369 | src/diffusers/models/unets/unet_2d_condition.py:558-567 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:494-503 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 1022 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2360}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0897748933d8b7a400b6efcab996fb5dbb750db968170a48b5246722efa1b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/community/pipeline_demofusion_sdxl.py:912-921 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1258-1267 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1013-1022 \u2014 before extracting anything, compare \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 509 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1013\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9902d4cca6ae202e06337cfedaf36fc4f53ea3dd4ffad107982c1d2ec008c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1255-1264 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:690-699 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:747-756 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0395f8b0881dbb1b8c1c52f262b87a6a003e3c210087520dd0791d4c637b75c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): examples/community/pipeline_stable_diffusion_pag.py:78-86 | src/diffusers/models/attention_processor.py:3339-3348 | src/diffusers/models/attention_processor.py:5053-5061 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94bb4c282ca6ee0ddbe194b9918406851fa8ed33abb33b70c71c9bc7e43f710"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:495-504 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:385-394 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:516-525 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:506\u0060 calls \u0060upcast_vae\u0060, \u0060deprecate\u0060, \u0060to\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:396\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8a76e75ce1267a1cd6f6068c6b4b204c0b3bebef29507e942ef8f231f6cc5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:678-687 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:576-585 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:735-744 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:678\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24ac1b777405633934f981cd2a2f4e5aa2076f4c0f315fcd381381e9c35a3c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201310 lines \u00D7 3): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:687-696 | examples/community/pipeline_zero1to3.py:752-756 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:744-753 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 and \u0060examples/community/pipeline_zero1to3.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 154 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:687\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"39605d1044151242832c97a9f236ed2910377070ebcda481855590d68641b990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1351-1360 | examples/community/stable_diffusion_reference.py:1427-1436 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:914-923 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_reference.py:1427\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1850e11c6bcc38939f2989439bc2dccd9c1710127f721cab3340f23fe58e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_ipex.py:1025-1033 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1324-1332 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1059-1068 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_ipex.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 452 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"45696afc2fa1b2fb44fbebfcfb71ec422abb24a190203dba0b058286f3b9dc66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): examples/community/pipeline_stg_mochi.py:126-135 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:123-131 | src/diffusers/pipelines/mochi/pipeline_mochi.py:64-73 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_mochi.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_condition.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 413 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:122\u0060 calls \u0060tensor\u0060 and \u0060examples/community/pipeline_stg_mochi.py:125\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceda0c06c6648d1045bc273aa32794ed821c901522b1b94435654f1bf1114294"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 3): examples/community/pipline_flux_fill_controlnet_Inpaint.py:776-785 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:380-389 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:688-693 \u2014 before extracting anything, compare \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_fill.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 733 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:776\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipline_flux_fill_controlnet_Inpaint.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a5d68b6285bab85226192ad8a186e87b211889cbe49842a2bccdbfcb463f63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:465-474 | scripts/convert_zero123_to_diffusers.py:314-323 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:463-472 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_zero123_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 877 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f382d38d2edd7ded098edd5ae94b42d8eadf46f81a1929a16ccedfe0a92aa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/loaders/single_file_utils.py:2507-2516 | src/diffusers/loaders/single_file_utils.py:2614-2623 | src/diffusers/loaders/single_file_utils.py:2686-2695 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":2507}}}],"partialFingerprints":{"codehealthFindingId/v1":"89682b31c010c8407902865bd4611173259ed493c024e8d673913279312e53ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/models/attention_processor.py:1454-1463 | src/diffusers/models/attention_processor.py:1943-1952 | src/diffusers/models/attention_processor.py:4949-4958 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f94c815471e43527bc6cf9a2f859c5af250d3e20346cc9940b4ee02d85e4b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:606-615 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:575-584 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:616-625 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad1badc9475892195fc6bf918118b9994bc04ebb68a5dd0a185222edb2882c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:984-993 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1450-1459 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1468-1477 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"537fcc4095a7a999acec53a721301276cc156fd90aaad5928b4d66e8ba4cdb68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:435-444 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:446-455 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:442-451 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:435\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3499839bf177e50ba34bab861d566972aaa2e02ed000e781d282a35a111093"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/models/condition_embedders/condition_embedder_ltx2.py:125-134 | src/diffusers/models/transformers/transformer_ltx2.py:1017-1026 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:602-611 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.py:1017\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/condition_embedders/condition_embedder_ltx2.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a18e7597b2ac3540edb5fe9410ae8a84dd3da9b64316ee9955a6cd0f28adb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:41-50 | src/diffusers/models/transformers/transformer_bria_fibo2.py:36-45 | src/diffusers/models/transformers/transformer_z_image.py:41-50 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb3ac74b714351a4a1afd51ca2115f9e40e17fe9930c8e660091c0a392dbb05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/models/transformers/transformer_chronoedit.py:349-358 | src/diffusers/models/transformers/transformer_skyreels_v2.py:362-371 | src/diffusers/models/transformers/transformer_wan.py:342-351 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f083d9b785c7af1e2970adb3655c1ad5a7c7cd37ebf489235d60b2c6964b6f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/models/transformers/transformer_ernie_image.py:176-185 | src/diffusers/models/transformers/transformer_flux2.py:516-525 | src/diffusers/models/transformers/transformer_flux2.py:752-761 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ernie_image.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4dd0d75e891a3fbb48f3b84b1aa2c81d03ce927b29c214bb9890f1c376daef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:2533-2542 | src/diffusers/models/unets/unet_motion_model.py:808-817 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1806-1815 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2533}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63d474c567ce9eb6948dbdeb2e1cbdab2d6fa0a46b7ea36d3c3c58167600fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): src/diffusers/modular_pipelines/anima/encoders.py:205-212 | src/diffusers/pipelines/lumina/pipeline_lumina.py:319-328 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:305-314 \u2014 \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py\u0060 and \u0060src/diffusers/pipelines/lumina2/pipeline_lumina2.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 28 separate duplicated blocks between them, totalling at least 362 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py:329\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/modular_pipelines/anima/encoders.py:213\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":"src/diffusers/modular_pipelines/anima/encoders.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a9e5bd901eb9c522f94fb43b833f96a5ed2c79e0aebe1ede71a23d6cede05d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): src/diffusers/modular_pipelines/flux2/denoise.py:448-457 | src/diffusers/modular_pipelines/flux3/denoise.py:301-310 | src/diffusers/modular_pipelines/qwenimage21/denoise.py:419-427 \u2014 \u0060src/diffusers/modular_pipelines/flux2/denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/flux3/denoise.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 5 separate duplicated blocks between them, totalling at least 47 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/denoise.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"834dd4742249871a637d281a9a944403f846f988a0cb6348066caa271125763d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): src/diffusers/modular_pipelines/ltx2/encoders.py:1265-1273 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:884-892 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1416-1425 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"097345041acb3dcef86262dbe8234719dc3674f3732584f792cc6ac118736b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/modular_pipelines/qwenimage21/decoders.py:171-180 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:766-775 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:842-851 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage21/decoders.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2c3a628e890e40852d2d75fead0ec25d7041ba5aaecced279d4e20ec0123a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/pipelines/allegro/pipeline_allegro.py:874-883 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:718-727 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:799-808 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 327 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:730\u0060 calls \u0060cache_context\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:886\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0faaf2d5b5ff2b356535ee6f99204ba8e34731c08762418200cb28021c8e293"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:122-132 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:139-149 | src/diffusers/pipelines/helios/pipeline_helios.py:142-151 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8135027c34563e8b86155800315552f5187d9d4d28a6502e1cfe94318d04c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1050-1059 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:605-614 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:699-708 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 527 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1050\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"317782f10c084832fb98991d5c54e61fe1725a285a378b18545937f86630d752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:637-646 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:643-652 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:704-713 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 562 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b0696b0b5f86f8d43eb6ac90ca43e43580ca0da9ef598ea6965b0fe8ea0fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:667-676 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:675-682 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1104-1113 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:684\u0060 calls \u0060cache_context\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:678\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07a2562c1e935a99220dff0ab85af772a3cfca29ce70449704fc0f90095e98e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:637-648 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:408-419 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:805-816 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 549 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"d194787bab06ea9c96df80ca0a448f8c7fe58ce347628f1678754c6d15cf404c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:346-355 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:150-157 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:218-227 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:346\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"29de31774ba79e89f9d0de5b0ac31ca4cc18c67679c23031157f348df4802927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:325-332 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:330-337 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:470-479 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py\u0060 and \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:470\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ced8aad9ea450053359812ce67d02fa19575e626456e9ca7d5f04e00ceb965a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 3): src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1033-1038 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1092-1101 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1117-1122 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1092\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e16b6edeef546338547e698fda185d8f00fad133fa32e62e127e43eb725adf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201310 lines \u00D7 5): src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:562-571 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:601-610 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:563-572 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:657-660 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:635-638 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py\u0060 as WHOLE FILES: this scan already matched 88 separate duplicated blocks between them, totalling at least 1179 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:562\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:562\u0060 calls \u0060_prepare_latent_image_ids\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_fill.py:657\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"946e640df4ab04d7fcde50067db066062135655410dbf550c3ff8553033d572f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201310 lines \u00D7 4): src/diffusers/pipelines/flux/pipeline_flux_fill.py:228-237 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:228-230 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:226-235 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:179-188 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_fill.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_img2img.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_img2img.py:228\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_fill.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cda935a8b9275399e55e40401186c0fbcf09bca9df419b328136403579f571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:924-933 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:940-950 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1106-1115 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:924\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video.py:951\u0060 calls \u0060to\u0060 and \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:934\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c127e39f1739f7e5d42845a64105c8f0da77b9ca438e1a598ddd37856cb1b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:230-239 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:288-297 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:422-431 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 188 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ed86ae027efd2521a9180d6c2191ea1075c0de80de52f379785deb78488210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:171-180 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:186-195 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:281-290 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 553 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:291\u0060 calls \u0060view\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:181\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"7441d9fd4f694f2ee49900e3f6d31a9faaa592cff5693f5995284568d0778719"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:465-474 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:472-480 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:494-502 \u2014 \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.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 26 separate duplicated blocks between them, totalling at least 283 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:491\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:469\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"433c25cba411853d1998204c8da9429967cad25f7066eda235789d56cd21a680"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1239-1248 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:930-942 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:1009-1021 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:928\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1236\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":"src/diffusers/pipelines/ltx/pipeline_ltx_condition.py"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca94dedfc6c0112a32ea90ad927ed1b8862d5e4f7c9d3ddd2f5826fd051c7cb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1540-1549 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1389-1398 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1765-1774 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 1004 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"951f886c8c86516a2ff0d484312bfcc53cdb001ff09fc1b74ef7ab57da68523e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/community/cogvideox_ddim_inversion.py:193-202 | src/diffusers/models/attention_processor.py:2352-2361 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/cogvideox_ddim_inversion.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"98dae05ba1c9aace1b3f8747ddee7e653df39011b418849add0a8750d64035a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): examples/community/llm_grounded_diffusion.py:981-998 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:731-747 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 644 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/llm_grounded_diffusion.py:981\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b019a4634c66c5bb760460925439c81d940af2895bd2801881822a7073d233f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/community/pipeline_demofusion_sdxl.py:1295-1304 | src/diffusers/loaders/textual_inversion.py:428-437 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0ad34d849daad17d68c4feb442001850663c5cc6831a50e6e1873aa2305ffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/community/pipeline_flux_rf_inversion.py:410-419 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1386-1395 \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 \u0060examples/community/pipeline_flux_rf_inversion.py:410\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e83f87416903c9f0304e6174c2d37c8f59637af33e7dc537ad343bff6024f8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/community/pipeline_prompt2prompt.py:732-741 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:917-926 \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, \u0060examples/community/pipeline_prompt2prompt.py:744\u0060 calls \u0060step_callback\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:929\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":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ece796594c29e088f5140f79098c2b7a599000a015e6381df8b98eb2a4c9198"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/community/pipeline_stg_mochi.py:757-766 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:818-827 \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 \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:818\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2853c02f11c16750621fc88a341d02c9f27037ebc2a3857f190c0ef917ab3dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 2): examples/community/rerender_a_video.py:1107-1116 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:930-935 \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 \u0060examples/community/rerender_a_video.py:1107\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/rerender_a_video.py"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f58a382fb5bddfbc045939744f6c3b605ab3a09afc8f5454aa373e93b92ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/configuration_utils.py:160-170 | src/diffusers/models/modeling_utils.py:270-279 \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":"src/diffusers/configuration_utils.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd538a1309d74cb5d0733683d86836d0d14b6e553b213d7475bb2a67fb2b14b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/guiders/auto_guidance.py:160-169 | src/diffusers/guiders/classifier_free_guidance.py:118-127 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/auto_guidance.py\u0060 and \u0060src/diffusers/guiders/classifier_free_guidance.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/auto_guidance.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"848f8b91e4b18faa6c1d4be569e2e2f415b6dc550caca2b868515fc4ff38b097"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/image_processor.py:1464-1473 | src/diffusers/video_processor.py:166-175 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"1659ebeb35828dd9851504800c61e07246fb4d8984c2cc19d437e394236605df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/loaders/ip_adapter.py:318-327 | src/diffusers/loaders/ip_adapter.py:860-869 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacce1d195e27ff81ad642b1c082ef7b47854193f21c38ec2fc2c8a011d024fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/loaders/single_file_utils.py:1242-1251 | src/diffusers/loaders/single_file_utils.py:1400-1409 \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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"df29d42d3b0838dd3ce3e95026a3887693baf9d7bacb5f94cf5cb08ec14edbaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:1485-1493 | src/diffusers/models/attention_dispatch.py:1845-1854 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_dispatch.py:1485\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb630cdba9eef7f8c7a72f061b34f6f674a841f0c7e15da6641693d9092e57e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:1535-1547 | src/diffusers/models/attention_dispatch.py:1893-1905 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bc8bc08a936b746f809f130e2e0d792016988423c84aae48e225d24bce297e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:3151-3170 | src/diffusers/models/attention_dispatch.py:3404-3423 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":3151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a497735768096a807ffd36026f03bedde431953ef8a9fa8a92fa262e7c54406"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/attention_processor.py:2459-2468 | src/diffusers/models/attention_processor.py:2548-2557 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2459}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc24ea88938858722133b7597ed11dfeb4bab2d79f584a2d72436a4ceab744f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl.py:159-168 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:171-180 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 342 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"50cae35abfae066ae7beba1bc6297ee338e15d88a2acda36c9f93674f0f9b0b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:525-538 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:660-673 \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":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9678fb008a29d4db3c92e1c35772e48e9ab5c76ac6bb5347ceb8d7486dad80c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:613-622 | src/diffusers/models/autoencoders/vae.py:268-277 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/vae.py:268\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1657f64f90a6e0012731e0d476e1f8b0141ab438f39bd38ac75a4705b52f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:109-118 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:189-198 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cef00fa751aa70db2d68dbba67953a69681ebc8fceedc6b14fb179330fa5912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:456-462 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:495-504 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed061a4738a3d1633c9b8d4987d4d31e36c3bec4f29185095e9a2a68aabc8f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:396-405 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:639-648 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49cc41c50294b17cac3172c136c318b5923c25205050111f67d4083049335bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:534-541 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:653-662 \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":"src/diffusers/models/autoencoders/autoencoder_kl_magvit.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb58cdbb9fe925dd7dc22600bc8822e9585bed414b1f34551bbb85a3de519ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:101-110 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:99-108 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db35c3ad12780587a966a1617b7ef12d046d2a34f17225e611da1569cef5e0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:477-486 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:465-474 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c01f88c24958e849e5e64792ad99d0a4cbabc7c83b700b5ff865cd0d66bf7fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_sparsectrl.py:272-281 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:275-284 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py:269\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:273\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_sparsectrl.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2365886c3586d7bef1e7c9f0b38490042bc66d63a2ba21d9b667fce6b1d47c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_xs.py:401-414 | src/diffusers/models/controlnets/controlnet_xs.py:673-682 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_xs.py:401\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"010fa80efa78499b8e5fea45c21d9da72809c93912b978ae50ea93c5ec107fde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/modeling_utils.py:1047-1056 | src/diffusers/pipelines/pipeline_utils.py:791-800 \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":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"a477f2bf26d0b5bfffa10e129383c8221c28cdafbe60f2c55b2daf312b14f7d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/transformers/transformer_2d.py:176-185 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:444-453 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_2d.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_2d.py:176\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad448e07243b031874a9c77eddbbedab3c6cf3e9b4191975fc7a0a09b645d643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow_far.py:885-893 | src/diffusers/models/transformers/transformer_anyflow_far.py:931-940 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow_far.py:885\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow_far.py"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"4108a6397f30adbd10a2cde6c13311598cb8f759578426d5cc2cd041726cb119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:572-581 | src/diffusers/models/transformers/transformer_glm_image.py:458-467 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_cogview4.py\u0060 and \u0060src/diffusers/models/transformers/transformer_glm_image.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de4627b10166edf0731b8e0c9d3c4f447ce6b5e51cd426211ab5418dd020459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/transformers/transformer_flux3.py:208-217 | src/diffusers/models/transformers/transformer_flux3.py:251-260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux3.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"40423e1ac4d9b31d994845fe0c6f791397d09326cb875bbc08d0deac4f0ed2e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3.py:61-74 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:39-52 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"2361104df0de953f9b3a971dfe93a910baa2c9950283fc8a3e0c36200ec333f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3.py:267-276 | src/diffusers/models/transformers/transformer_minimax_h3.py:338-347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6df2a74f8c84e5894d5758e3e0a6daeafd023aaa2cebe92fd2310cdc7d198db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3_image.py:251-260 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:324-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3_image.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a69f4b7c746111b7369f88f8e9cdd35df4e9477ad11b85f04b2b21d7b3fd30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:2851-2860 | src/diffusers/models/unets/unet_2d_blocks.py:2963-2972 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2851}}}],"partialFingerprints":{"codehealthFindingId/v1":"574e9db24d872c72b1def4bd7e5a2add9ade555f0363e957e945e12710b4ad58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/diffusers/modular_pipelines/ideogram4/encoders.py:315-324 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:378-386 \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":"src/diffusers/modular_pipelines/ideogram4/encoders.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"176e3dddcde7c4527a2ca8cc3cbaae624391e51450a9dc0bd6585dacaf4009eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/modular_pipelines/ltx/before_denoise.py:370-379 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:593-602 \u2014 \u0060src/diffusers/modular_pipelines/ltx/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/ltx2/before_denoise.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 9 separate duplicated blocks between them, totalling at least 110 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/ltx/before_denoise.py:370\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx/before_denoise.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"83493bd80651e3e48e72be68f9a044c3e430ce29cf99c3e7ab71955edbda67f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/before_encoder.py:405-422 | src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py:397-414 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_encoder.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.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 5 separate duplicated blocks between them, totalling at least 140 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":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c793a2332dd2d3ce46f52e225ed11e9542848bd1f9fcfda9093d0a29788145e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u201310 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/decoders.py:177-186 | src/diffusers/modular_pipelines/p_h3_image/decoders.py:176-176 | src/diffusers/modular_pipelines/pika_h3_flex/decoders.py:179-188 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/decoders.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/decoders.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 4 separate duplicated blocks between them, totalling at least 57 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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 before the matched lines, \u0060src/diffusers/modular_pipelines/p_h3_image/decoders.py:176\u0060 calls \u0060tensor\u0060, \u0060view\u0060 and \u0060src/diffusers/modular_pipelines/minimax_h3/decoders.py:177\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/decoders.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef32ffe84a7533614a0e8c2698bc89928ef8e74450162d7238ecef147879f181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/references.py:309-318 | src/diffusers/modular_pipelines/pika_h3_flex/references.py:316-325 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/references.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/references.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 5 separate duplicated blocks between them, totalling at least 106 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/references.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca7e698e54c0a51fccfe93417f054510f860ebc3b089fc569902e50dce08e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:292-301 | src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:402-411 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:413\u0060 calls \u0060tuple\u0060 and \u0060src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:303\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"d898273f34ff8e0c84f3fc6810bf4443ac20a956aab3df08e029851d1fd5bdaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:1107-1116 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:1219-1226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/qwenimage/before_denoise.py:1107\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, \u0060src/diffusers/modular_pipelines/qwenimage/before_denoise.py:1228\u0060 calls \u0060tensor\u0060, \u0060to\u0060 and \u0060src/diffusers/modular_pipelines/qwenimage/before_denoise.py:1118\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb0cdf431fef269dabce537ce890248d2254dfbc569be02b59b4292e997dcdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage/decoders.py:325-334 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:886-894 \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 \u0060src/diffusers/modular_pipelines/qwenimage/decoders.py:325\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/decoders.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dfc580ad42383a5e2d821c3b6f3407b8f459acc7b7642e96a3fefe0319f07c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): src/diffusers/pipelines/allegro/pipeline_allegro.py:873-880 | src/diffusers/pipelines/latte/pipeline_latte.py:797-806 \u2014 \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 and \u0060src/diffusers/pipelines/latte/pipeline_latte.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 38 separate duplicated blocks between them, totalling at least 495 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc203bf6af2124328fbe31c2e1c660e96a3ccf4bb20a521640a231dd0c528799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:408-417 | src/diffusers/pipelines/consisid/pipeline_consisid.py:510-519 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py\u0060 and \u0060src/diffusers/pipelines/consisid/pipeline_consisid.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e86ad1b731ed7761d728d0dd20de4e5dab31a02cde40cd15b81bd016345f60f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:743-752 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:637-646 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_video2video.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e348af792c8ad6f246639a0d851e91c44d5f398219bc34b3affa43998332402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1732-1741 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1742-1752 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 121 separate duplicated blocks between them, totalling at least 1970 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":1732}}}],"partialFingerprints":{"codehealthFindingId/v1":"213fa502a14c53fb269cd28da1f9bf1c1c73937160703897f26b794d080d74fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:537-546 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:749-758 \u2014 \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.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 17 separate duplicated blocks between them, totalling at least 167 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":"src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef6a134388c9c82e11676519cd1d269eeeab3505508e371da3f8cf4abd2f650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1248-1257 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1271-1280 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdbbd2d7b575fe1ef17f12c4187621025d169b34fd3d1e5376b34fd0633e829"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:780-788 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:963-972 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:791\u0060 calls \u0060enable_fuser\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:973\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":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d1cad1e0691594bc43026445fd427303e1257912cab3fab5bfb239dc973bc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1207-1216 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1553-1562 \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 \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da8d5f86961a9d3c83f29223030ab06dd5bc39b6a16211bbf6b0af78779ae5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py:403-411 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:618-627 \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 \u0060src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py:403\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b50b363731865bacf3686e3b5425b87e00dbc73a3650a81927f38c81f07724b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1254-1263 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:873-881 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1254\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f0c4927932d5add53309728db1a6e15ee9f2223b5d783c93176f0692c4558a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:253-262 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:209-216 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.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 25 separate duplicated blocks between them, totalling at least 336 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:253\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b5a9156efd63ee3a77ef58c667c8a8e0d4709ef70dec92a6f3c64cb2f70983"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:548-557 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:547-556 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.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 25 separate duplicated blocks between them, totalling at least 336 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. 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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06de3e64546cda02ce0a50df06db0ce41ab6ed0c36f36aa4e9f069e7b454a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:251-261 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:480-489 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:251\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"5580107c95023b041a9c2dfeda926f0294a383cef92b266c7c4beb3c856c27de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:130-139 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:102-111 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:130\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e65b0d1dd589dde353854d161c525dad1983b446a6d5bca689c949896f828d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 2): src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:385-390 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:392-401 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67667f2b65e6f3136ab484762aed76cbf795ed33a5141c7f8ba0b8e5a6e87b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/longcat_audio_dit/pipeline_longcat_audio_dit.py:340-349 | src/diffusers/pipelines/lumina/pipeline_lumina.py:910-919 \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":"src/diffusers/pipelines/longcat_audio_dit/pipeline_longcat_audio_dit.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2dd196b8aed7d7797ebf8029bc8b30ca7bf4133fc44b62ae79debeb0e3d4da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:720-729 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:848-858 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:720\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a41ffce897d58517f689fd4442bebca1e55c59226f27da4e32bb7c7fdf89004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1212-1221 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:858-867 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx/pipeline_ltx_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 45 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_condition.py"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7b827f0dc48ca5b1e491c2bd50f8cffcafd60aec7ba72fd00251619785df27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:52-61 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:112-121 \u2014 \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.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 13 separate duplicated blocks between them, totalling at least 239 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060latent_upsampler\u0060 to \u0060LTXLatentUpsamplerModel\u0060 in one and \u0060LTX2LatentUpsamplerModel\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":"src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c196f3c7e1d1b4d0938ddb69e073314b4368f7186f893058e0ce082d735d7d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:177-186 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:253-262 \u2014 \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.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 13 separate duplicated blocks between them, totalling at least 239 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:265\u0060 calls \u0060replace_example_docstring\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:189\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":"src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad725774378c3f9db413b6cbdd7cfa034426df325480f5a19989f35eb382272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:952-961 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:1038-1047 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:952\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"613941fb718a063f9e4488e210bea4c7563169ad06f1c566647897b4b5fa0b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:814-823 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1061-1070 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py\u0060 and \u0060src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 323 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a8881330350f028e5b94f1342c4d5febd53facd1d603323cff423df51287c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): src/diffusers/quantizers/nunchaku/utils.py:136-145 | src/diffusers/quantizers/nunchaku/utils.py:234-240 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/quantizers/nunchaku/utils.py:136\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/nunchaku/utils.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"017d6394e7d36fc0cbbd06a3fb4bbebda19318eeae7a61b59a2ad30bb604d780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/schedulers/scheduling_edm_euler.py:113-122 | src/diffusers/schedulers/scheduling_edm_euler.py:306-315 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_edm_euler.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa43a6aa54f6839183d725fc4fda3e0cc725379ad6db316c1471c79e05580658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 363): examples/community/gluegen.py:182-190 | examples/community/ip_adapter_face_id.py:119-127 | examples/community/lpw_stable_diffusion_xl.py:564-572 | examples/community/matryoshka.py:174-182 | examples/community/matryoshka.py:184-192 | examples/community/mixture_tiling_sdxl.py:258-266 | examples/community/mixture_tiling_sdxl.py:268-276 | examples/community/pipeline_animatediff_img2video.py:227-235 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:168-176 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:178-186 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1151-1159 | examples/community/pipeline_flux_differential_img2img.py:147-155 | examples/community/pipeline_flux_differential_img2img.py:157-165 | examples/community/pipeline_flux_kontext_multiple_images.py:164-172 | examples/community/pipeline_flux_kontext_multiple_images.py:174-182 | examples/community/pipeline_flux_rf_inversion.py:141-149 | examples/community/pipeline_flux_rf_inversion.py:151-159 | examples/community/pipeline_flux_semantic_guidance.py:138-146 | examples/community/pipeline_flux_semantic_guidance.py:148-156 | examples/community/pipeline_flux_with_cfg.py:117-125 | examples/community/pipeline_flux_with_cfg.py:127-135 | examples/community/pipeline_hunyuandit_differential_img2img.py:215-223 | examples/community/pipeline_hunyuandit_differential_img2img.py:225-233 | examples/community/pipeline_kolors_differential_img2img.py:117-125 | examples/community/pipeline_kolors_differential_img2img.py:127-135 | examples/community/pipeline_kolors_inpainting.py:289-297 | examples/community/pipeline_kolors_inpainting.py:299-307 | examples/community/pipeline_null_text_inversion.py:43-51 | examples/community/pipeline_sdxl_style_aligned.py:357-365 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:118-126 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:128-136 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:152-160 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:162-170 | examples/community/pipeline_stable_diffusion_boxdiff.py:350-358 | examples/community/pipeline_stable_diffusion_pag.py:320-328 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:480-488 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:146-154 | examples/community/pipeline_stable_diffusion_xl_ipex.py:142-150 | examples/community/pipeline_stg_cogvideox.py:176-184 | examples/community/pipeline_stg_cogvideox.py:186-194 | examples/community/pipeline_stg_hunyuan_video.py:180-188 | examples/community/pipeline_stg_hunyuan_video.py:190-198 | examples/community/pipeline_stg_ltx.py:171-179 | examples/community/pipeline_stg_ltx.py:181-189 | examples/community/pipeline_stg_ltx_image2video.py:176-184 | examples/community/pipeline_stg_ltx_image2video.py:186-194 | examples/community/pipeline_stg_mochi.py:175-183 | examples/community/pipeline_stg_mochi.py:185-193 | examples/community/pipeline_z_image_differential_img2img.py:131-139 | examples/community/pipeline_z_image_differential_img2img.py:141-149 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:162-170 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:172-180 | examples/community/regional_prompting_stable_diffusion.py:1642-1650 | examples/community/regional_prompting_stable_diffusion.py:1652-1660 | examples/community/stable_diffusion_xl_controlnet_reference.py:125-133 | examples/community/stable_diffusion_xl_controlnet_reference.py:135-143 | examples/community/stable_diffusion_xl_reference.py:114-122 | examples/community/stable_diffusion_xl_reference.py:124-132 | examples/research_projects/anytext/anytext.py:1162-1170 | examples/research_projects/anytext/anytext.py:1172-1180 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:223-231 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:233-241 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:130-138 | src/diffusers/modular_pipelines/anima/before_denoise.py:39-47 | src/diffusers/modular_pipelines/anima/before_denoise.py:49-57 | src/diffusers/modular_pipelines/flux/before_denoise.py:67-75 | src/diffusers/modular_pipelines/flux/before_denoise.py:77-85 | src/diffusers/modular_pipelines/flux2/before_denoise.py:86-94 | src/diffusers/modular_pipelines/flux2/before_denoise.py:96-104 | src/diffusers/modular_pipelines/flux3/before_denoise.py:67-75 | src/diffusers/modular_pipelines/flux3/before_denoise.py:77-85 | src/diffusers/modular_pipelines/hunyuan_video1_5/before_denoise.py:69-77 | src/diffusers/modular_pipelines/hunyuan_video1_5/before_denoise.py:79-87 | src/diffusers/modular_pipelines/ltx/before_denoise.py:80-88 | src/diffusers/modular_pipelines/ltx/before_denoise.py:90-98 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:88-96 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:98-106 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:77-85 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:87-95 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:81-89 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:91-99 | src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:79-87 | src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:89-97 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:81-89 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:91-99 | src/diffusers/modular_pipelines/wan/before_denoise.py:161-169 | src/diffusers/modular_pipelines/wan/before_denoise.py:171-179 | src/diffusers/modular_pipelines/z_image/before_denoise.py:161-169 | src/diffusers/modular_pipelines/z_image/before_denoise.py:171-179 | src/diffusers/pipelines/allegro/pipeline_allegro.py:119-127 | src/diffusers/pipelines/allegro/pipeline_allegro.py:129-137 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:185-193 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:195-203 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:156-164 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:166-174 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:174-182 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:184-192 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:98-106 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:108-116 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:146-154 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:156-164 | src/diffusers/pipelines/chroma/pipeline_chroma.py:125-133 | src/diffusers/pipelines/chroma/pipeline_chroma.py:135-143 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:137-145 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:147-155 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:144-152 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:154-162 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:122-130 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:132-140 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:129-137 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:139-147 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:121-129 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:131-139 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:130-138 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:140-148 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:93-101 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:103-111 | src/diffusers/pipelines/consisid/pipeline_consisid.py:211-219 | src/diffusers/pipelines/consisid/pipeline_consisid.py:221-229 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:137-145 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:147-155 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:155-163 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:165-173 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:150-158 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:160-168 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:118-126 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:128-136 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:141-149 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:151-159 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:118-126 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:128-136 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:123-131 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:133-141 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:115-123 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:125-133 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:142-150 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:152-160 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:128-136 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:138-146 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:156-164 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:166-174 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:138-146 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:148-156 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:133-141 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:143-151 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:130-138 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:140-148 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:109-117 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:119-127 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:161-169 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:171-179 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:263-271 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:273-281 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:305-313 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:315-323 | src/diffusers/pipelines/flux/pipeline_flux.py:121-129 | src/diffusers/pipelines/flux/pipeline_flux.py:131-139 | src/diffusers/pipelines/flux/pipeline_flux_control.py:134-142 | src/diffusers/pipelines/flux/pipeline_flux_control.py:144-152 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:153-161 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:163-171 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:179-187 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:189-197 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:152-160 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:162-170 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:147-155 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:157-165 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:149-157 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:159-167 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:128-136 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:138-146 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:144-152 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:154-162 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:141-149 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:151-159 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:151-159 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:161-169 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:175-183 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:185-193 | src/diffusers/pipelines/flux2/pipeline_flux2.py:212-220 | src/diffusers/pipelines/flux2/pipeline_flux2.py:222-230 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:116-124 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:126-134 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:151-159 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:161-169 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:116-124 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:126-134 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:134-142 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:144-152 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:135-143 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:145-153 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:99-107 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:109-117 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:130-138 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:140-148 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:119-127 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:129-137 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:213-221 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:223-231 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:181-189 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:191-199 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:141-149 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:151-159 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:168-176 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:178-186 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:104-112 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:114-122 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_sr.py:100-108 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_sr.py:110-118 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:139-147 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:149-157 | src/diffusers/pipelines/kolors/pipeline_kolors.py:98-106 | src/diffusers/pipelines/kolors/pipeline_kolors.py:108-116 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:117-125 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:127-135 | src/diffusers/pipelines/krea2/pipeline_krea2.py:109-117 | src/diffusers/pipelines/krea2/pipeline_krea2.py:119-127 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:103-111 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:113-121 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:108-116 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:118-126 | src/diffusers/pipelines/latte/pipeline_latte.py:115-123 | src/diffusers/pipelines/latte/pipeline_latte.py:125-133 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:180-188 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:190-198 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:179-187 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:189-197 | src/diffusers/pipelines/ltx/pipeline_ltx.py:118-126 | src/diffusers/pipelines/ltx/pipeline_ltx.py:128-136 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:186-194 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:196-204 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:123-131 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:133-141 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:157-165 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:167-175 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:214-222 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:224-232 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:191-199 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:201-209 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:209-217 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:219-227 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:177-185 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:187-195 | src/diffusers/pipelines/lumina/pipeline_lumina.py:110-118 | src/diffusers/pipelines/lumina/pipeline_lumina.py:120-128 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:111-119 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:121-129 | src/diffusers/pipelines/mochi/pipeline_mochi.py:113-121 | src/diffusers/pipelines/mochi/pipeline_mochi.py:123-131 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:123-131 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:133-141 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:132-140 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:142-150 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:107-115 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:117-125 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:94-102 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:104-112 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:104-112 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:114-122 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:143-151 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:153-161 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:160-168 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:170-178 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:103-111 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:113-121 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:119-127 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:129-137 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:122-130 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:132-140 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:132-140 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:142-150 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:111-119 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:121-129 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:127-135 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:137-145 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:127-135 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:137-145 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:159-167 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:169-177 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:147-155 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:157-165 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:166-174 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:176-184 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:179-187 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:189-197 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:216-224 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:226-234 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:160-168 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:170-178 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:107-115 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:117-125 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:167-175 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:177-185 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:140-148 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:150-158 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:116-124 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:126-134 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:117-125 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:127-135 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:119-127 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:129-137 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:109-117 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:119-127 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:112-120 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:122-130 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:124-132 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:134-142 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:109-117 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:119-127 | src/diffusers/pipelines/sana/pipeline_sana.py:164-172 | src/diffusers/pipelines/sana/pipeline_sana.py:174-182 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:171-179 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:181-189 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:115-123 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:125-133 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:121-129 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:131-139 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:161-169 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:171-179 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:137-145 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:147-155 | src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:81-89 | src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:91-99 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:150-158 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:160-168 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:129-137 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:139-147 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:157-165 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:167-175 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:103-111 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:113-121 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:123-131 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:133-141 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:143-151 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:153-161 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:142-150 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:152-160 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:145-153 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:155-163 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:163-171 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:173-181 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:190-198 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:200-208 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:108-116 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:118-126 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:166-174 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:176-184 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:188-196 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:198-206 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:135-143 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:145-153 | src/diffusers/pipelines/z_image/pipeline_z_image.py:112-120 | src/diffusers/pipelines/z_image/pipeline_z_image.py:122-130 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:163-171 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:173-181 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:163-171 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:173-181 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:124-132 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:134-142 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:140-148 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:150-158 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:113-121 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:123-131 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/matryoshka.py:172\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/gluegen.py:179\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f66858fd42a3915a0f6c3f6044f554673ae69e94d828151b153591a2a130c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 164): examples/community/adaptive_mask_inpainting.py:676-684 | examples/community/clip_guided_images_mixing_stable_diffusion.py:389-397 | examples/community/clip_guided_stable_diffusion.py:281-289 | examples/community/clip_guided_stable_diffusion_img2img.py:433-441 | examples/community/composable_stable_diffusion.py:301-309 | examples/community/fresco_v2v.py:1709-1717 | examples/community/gluegen.py:453-461 | examples/community/instaflow_one_step.py:420-428 | examples/community/ip_adapter_face_id.py:696-704 | examples/community/latent_consistency_interpolate.py:535-543 | examples/community/llm_grounded_diffusion.py:1463-1471 | examples/community/lpw_stable_diffusion.py:750-758 | examples/community/lpw_stable_diffusion_xl.py:950-958 | examples/community/matryoshka.py:4067-4075 | examples/community/mixture_tiling_sdxl.py:633-641 | examples/community/mod_controlnet_tile_sr_sdxl.py:640-648 | examples/community/pipeline_animatediff_controlnet.py:470-478 | examples/community/pipeline_animatediff_img2video.py:587-595 | examples/community/pipeline_animatediff_ipex.py:448-456 | examples/community/pipeline_controlnet_xl_kolors.py:464-472 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:507-515 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:558-566 | examples/community/pipeline_demofusion_sdxl.py:389-397 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1508-1516 | examples/community/pipeline_hunyuandit_differential_img2img.py:537-545 | examples/community/pipeline_kolors_differential_img2img.py:467-475 | examples/community/pipeline_kolors_inpainting.py:673-681 | examples/community/pipeline_prompt2prompt.py:455-463 | examples/community/pipeline_sdxl_style_aligned.py:777-785 | examples/community/pipeline_stable_diffusion_boxdiff.py:823-831 | examples/community/pipeline_stable_diffusion_pag.py:823-831 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:396-404 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:935-943 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:485-493 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:632-640 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:512-520 | examples/community/pipeline_stable_diffusion_xl_ipex.py:526-534 | examples/community/pipeline_stg_cogvideox.py:419-427 | examples/community/pipeline_zero1to3.py:470-478 | examples/community/regional_prompting_stable_diffusion.py:496-504 | examples/community/stable_diffusion_controlnet_img2img.py:346-354 | examples/community/stable_diffusion_controlnet_inpaint.py:445-453 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:430-438 | examples/community/stable_diffusion_ipex.py:481-489 | examples/community/stable_diffusion_reference.py:661-669 | examples/community/stable_diffusion_repaint.py:448-456 | examples/research_projects/anytext/anytext.py:1647-1655 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:467-475 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:562-570 | examples/research_projects/rdm/pipeline_rdm.py:298-306 | src/diffusers/pipelines/allegro/pipeline_allegro.py:357-365 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:432-440 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:478-486 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:658-666 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:481-489 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:543-551 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:575-583 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:712-720 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:365-373 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:404-412 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:444-452 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:424-432 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:325-333 | src/diffusers/pipelines/consisid/pipeline_consisid.py:546-554 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:585-593 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:563-571 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:569-577 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:609-617 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:617-625 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:609-617 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:598-606 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:609-617 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:628-636 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:463-471 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:342-350 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:367-375 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:520-528 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:371-379 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:522-530 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:478-486 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:563-571 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:591-599 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:268-276 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:448-456 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:470-478 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:392-400 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:304-312 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:242-250 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:443-451 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:136-144 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:512-520 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:626-634 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:423-431 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:455-463 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:587-595 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:596-604 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:366-374 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:486-494 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:528-536 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:475-483 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:408-416 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:393-401 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:623-631 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:360-368 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:396-404 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:804-812 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:443-451 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:160-168 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:321-329 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:180-188 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:237-245 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:410-418 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:521-529 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:563-571 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:435-443 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:305-313 | src/diffusers/pipelines/kolors/pipeline_kolors.py:441-449 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:461-469 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:613-621 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:554-562 | src/diffusers/pipelines/latte/pipeline_latte.py:362-370 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:445-453 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:626-634 | src/diffusers/pipelines/lumina/pipeline_lumina.py:377-385 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:347-355 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:550-558 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:526-534 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:624-632 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:614-622 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:445-453 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:458-466 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:332-340 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:340-348 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:579-587 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:444-452 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:574-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:609-617 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:611-619 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:558-566 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:648-656 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:445-453 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:389-397 | src/diffusers/pipelines/sana/pipeline_sana.py:417-425 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:432-440 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:324-332 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:332-340 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:440-448 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:438-446 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:292-300 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:614-622 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:420-428 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:203-211 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:645-653 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:587-595 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:751-759 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:406-414 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:516-524 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:460-468 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:601-609 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:548-556 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:652-660 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:428-436 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:527-535 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:629-637 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:522\u0060 calls \u0060prepare_extra_step_kwargs\u0060, \u0060set\u0060, \u0060signature\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:569\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aadcc2eb8ae3529e33dcaaa9d59308f425d35e8da202690331cc313a8831aac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 140): examples/community/fresco_v2v.py:1746-1756 | examples/community/ip_adapter_face_id.py:731-741 | examples/community/latent_consistency_interpolate.py:570-580 | examples/community/matryoshka.py:4104-4114 | examples/community/pipeline_animatediff_controlnet.py:511-521 | examples/community/pipeline_animatediff_img2video.py:623-633 | examples/community/pipeline_animatediff_ipex.py:480-490 | examples/community/pipeline_controlnet_xl_kolors.py:512-522 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:558-568 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:609-619 | examples/community/pipeline_hunyuandit_differential_img2img.py:571-581 | examples/community/pipeline_kolors_differential_img2img.py:512-522 | examples/community/pipeline_kolors_inpainting.py:719-729 | examples/community/pipeline_prompt2prompt.py:493-503 | examples/community/pipeline_stable_diffusion_boxdiff.py:860-870 | examples/community/pipeline_stable_diffusion_pag.py:860-870 | examples/community/pipeline_stg_cogvideox.py:449-458 | examples/community/pipeline_stg_ltx.py:411-421 | examples/community/pipeline_stg_ltx_image2video.py:435-445 | examples/community/pipeline_stg_mochi.py:418-428 | examples/community/regional_prompting_stable_diffusion.py:740-750 | examples/community/stable_diffusion_reference.py:328-338 | examples/research_projects/anytext/anytext.py:1684-1694 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:598-608 | src/diffusers/pipelines/allegro/pipeline_allegro.py:391-401 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:469-479 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:512-522 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:514-524 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:580-590 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:616-626 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:187-196 | src/diffusers/pipelines/bria/pipeline_bria.py:290-300 | src/diffusers/pipelines/chroma/pipeline_chroma.py:440-450 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:472-482 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:504-514 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:395-404 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:435-444 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:485-494 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:459-468 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:355-364 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:336-345 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:374-383 | src/diffusers/pipelines/consisid/pipeline_consisid.py:587-596 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:622-632 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:600-610 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:626-636 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:499-509 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:510-520 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:495-505 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:383-393 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:451-461 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:367-377 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:472-482 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:598-608 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:626-635 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:476-486 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:474-484 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:171-181 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:492-502 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:625-635 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:634-644 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:401-411 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:521-531 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:494-503 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:510-519 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:443-453 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:428-438 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:395-405 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:431-440 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:493-503 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:272-282 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:441-451 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:552-562 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:594-604 | src/diffusers/pipelines/flux2/pipeline_flux2.py:712-722 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:573-583 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:751-761 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:580-590 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:649-658 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:416-426 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:305-315 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:470-480 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:421-431 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:273-283 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:338-348 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:516-526 | src/diffusers/pipelines/kolors/pipeline_kolors.py:482-492 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:506-516 | src/diffusers/pipelines/krea2/pipeline_krea2.py:325-335 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:660-670 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:591-601 | src/diffusers/pipelines/latte/pipeline_latte.py:391-400 | src/diffusers/pipelines/ltx/pipeline_ltx.py:385-395 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:477-487 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:409-419 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:484-494 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:537-547 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:298-308 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:314-324 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:559-569 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:490-500 | src/diffusers/pipelines/lumina/pipeline_lumina.py:410-420 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:381-391 | src/diffusers/pipelines/mochi/pipeline_mochi.py:356-366 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:384-394 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:516-526 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:277-285 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:342-352 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:580-590 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:576-586 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:481-491 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:500-510 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:372-382 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:617-627 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:476-486 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:604-613 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:656-666 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:293-303 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:358-368 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:340-350 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:341-351 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:362-372 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:356-366 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:340-350 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:355-365 | src/diffusers/pipelines/sana/pipeline_sana.py:448-458 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:463-473 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:356-366 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:380-390 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:471-481 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:473-483 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:256-266 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:293-303 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:651-661 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:455-464 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:682-691 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:633-643 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:796-806 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:459-469 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:506-516 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1746\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:583\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/fresco_v2v.py:1757\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1746}}}],"partialFingerprints":{"codehealthFindingId/v1":"725ccac420af3d6b088330ad68a959f2176e621a510ab15c0ab57bbad65aa09e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 114): examples/community/adaptive_mask_inpainting.py:449-457 | examples/community/composable_stable_diffusion.py:161-169 | examples/community/fresco_v2v.py:1338-1346 | examples/community/gluegen.py:216-224 | examples/community/instaflow_one_step.py:181-189 | examples/community/ip_adapter_face_id.py:264-272 | examples/community/kohya_hires_fix.py:458-466 | examples/community/latent_consistency_img2img.py:64-72 | examples/community/latent_consistency_interpolate.py:268-276 | examples/community/latent_consistency_txt2img.py:62-70 | examples/community/llm_grounded_diffusion.py:409-417 | examples/community/lpw_stable_diffusion.py:567-575 | examples/community/mod_controlnet_tile_sr_sdxl.py:342-350 | examples/community/pipeline_animatediff_controlnet.py:183-191 | examples/community/pipeline_animatediff_img2video.py:303-311 | examples/community/pipeline_animatediff_ipex.py:157-165 | examples/community/pipeline_flux_kontext_multiple_images.py:257-265 | examples/community/pipeline_flux_rf_inversion.py:215-223 | examples/community/pipeline_flux_semantic_guidance.py:217-225 | examples/community/pipeline_prompt2prompt.py:204-212 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:198-206 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:242-250 | examples/community/pipeline_stable_diffusion_boxdiff.py:490-498 | examples/community/pipeline_stable_diffusion_pag.py:457-465 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:146-154 | examples/community/pipeline_zero1to3.py:180-188 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:237-246 | examples/community/regional_prompting_stable_diffusion.py:120-128 | examples/community/rerender_a_video.py:347-355 | examples/community/stable_diffusion_controlnet_img2img.py:174-182 | examples/community/stable_diffusion_controlnet_inpaint.py:272-281 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:258-266 | examples/community/stable_diffusion_ipex.py:177-185 | examples/community/stable_diffusion_reference.py:218-226 | examples/community/stable_diffusion_repaint.py:273-281 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:228-236 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:142-150 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:184-192 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:193-201 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:245-253 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:272-280 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:216-224 | src/diffusers/pipelines/chroma/pipeline_chroma.py:194-202 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:206-214 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:215-223 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:249-257 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:227-235 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:230-238 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:276-284 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:267-275 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:268-276 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:286-294 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:232-240 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:242-250 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:283-291 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:311-319 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:183-191 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:200-208 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:139-147 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:119-127 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:204-212 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:90-98 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:250-258 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:376-384 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:174-182 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:238-246 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:266-274 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:237-245 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:165-173 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:242-250 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:213-221 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:116-124 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:140-148 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:361-369 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:126-135 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py:71-79 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:89-97 | src/diffusers/pipelines/flux/pipeline_flux.py:200-208 | src/diffusers/pipelines/flux/pipeline_flux_control.py:208-216 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:222-230 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:253-261 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:232-240 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:223-231 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:225-234 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:216-224 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:217-225 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:214-222 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:244-252 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:268-276 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:202-210 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:213-221 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:397-405 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:257-265 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:231-239 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:282-290 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:270-278 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:289-297 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:195-203 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:211-219 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:151-159 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:284-292 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:316-324 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:288-296 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:159-167 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:312-320 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:263-271 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:160-168 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:154-162 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:157-166 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:158-167 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:211-219 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:231-239 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:230-238 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:265-273 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:449\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, \u0060examples/community/adaptive_mask_inpainting.py:446\u0060 calls \u0060info\u0060 and \u0060examples/community/composable_stable_diffusion.py:158\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabeb9a914c4dbc4e7b644f469702f3fa2fa117fcded88dd31769d355fd89420"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 111): examples/community/gluegen.py:509-517 | examples/community/instaflow_one_step.py:485-493 | examples/community/ip_adapter_face_id.py:766-774 | examples/community/latent_consistency_interpolate.py:485-493 | examples/community/llm_grounded_diffusion.py:1492-1500 | examples/community/lpw_stable_diffusion.py:783-791 | examples/community/lpw_stable_diffusion_xl.py:1108-1116 | examples/community/masked_stable_diffusion_xl_img2img.py:642-650 | examples/community/pipeline_animatediff_controlnet.py:677-685 | examples/community/pipeline_controlnet_xl_kolors.py:703-711 | examples/community/pipeline_controlnet_xl_kolors.py:723-731 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:862-870 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:938-946 | examples/community/pipeline_demofusion_sdxl.py:492-500 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1622-1630 | examples/community/pipeline_prompt2prompt.py:544-552 | examples/community/pipeline_sdxl_style_aligned.py:931-939 | examples/community/pipeline_stable_diffusion_boxdiff.py:904-912 | examples/community/pipeline_stable_diffusion_pag.py:900-908 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:762-770 | examples/community/pipeline_zero1to3.py:510-518 | examples/community/regional_prompting_stable_diffusion.py:515-523 | examples/community/stable_diffusion_controlnet_inpaint.py:644-652 | examples/community/stable_diffusion_ipex.py:546-554 | examples/community/stable_diffusion_reference.py:627-635 | examples/community/stable_diffusion_repaint.py:534-542 | examples/community/stable_diffusion_tensorrt_txt2img.py:776-784 | examples/research_projects/anytext/anytext.py:1864-1872 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:772-780 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:811-819 | examples/research_projects/rdm/pipeline_rdm.py:132-140 | src/diffusers/modular_pipelines/flux2/before_denoise.py:285-292 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1024-1032 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:752-760 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:635-643 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:829-837 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:397-405 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:303-311 | src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py:96-104 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:834-842 | src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:160-168 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:894-902 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:871-879 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:559-567 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:633-641 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:345-353 | src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py:149-157 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:603-611 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:652-660 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:495-503 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:382-390 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:296-304 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:574-582 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:207-215 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:604-612 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:762-770 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:497-505 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:535-543 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:675-683 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:685-693 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:437-445 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:557-565 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:479-487 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:464-472 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:672-680 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:433-441 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:529-537 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:490-498 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:669-677 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:706-714 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:728-736 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:357-365 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:222-230 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:308-316 | src/diffusers/pipelines/flux2/pipeline_flux2.py:638-645 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:497-504 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:505-512 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:530-538 | src/diffusers/pipelines/kolors/pipeline_kolors.py:546-554 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:502-510 | src/diffusers/pipelines/latte/pipeline_latte.py:575-583 | src/diffusers/pipelines/lumina/pipeline_lumina.py:603-611 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:438-446 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:794-802 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:902-910 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:541-549 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:564-572 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:559-567 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:668-676 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:727-735 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:671-679 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:616-624 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:680-688 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:680-688 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:418-426 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:395-403 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:405-413 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:348-355 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:348-355 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:351-358 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:701-709 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:244-252 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:847-855 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:562-570 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:716-724 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:495-503 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:354-362 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:605-613 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:745-753 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:705-713 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:415-423 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_stable_diffusion_boxdiff.py:902\u0060 calls \u0060prepare_latents\u0060 and \u0060examples/community/llm_grounded_diffusion.py:1491\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":"examples/community/gluegen.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b3a015c77f270117d98dbf8ab6524fcc66c4f5e6548d1e5f088626490b0554"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 75): examples/community/adaptive_mask_inpainting.py:820-826 | examples/community/adaptive_mask_inpainting.py:828-834 | examples/community/lpw_stable_diffusion_xl.py:1271-1277 | examples/community/lpw_stable_diffusion_xl.py:1292-1300 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1070-1076 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1091-1099 | examples/community/pipeline_flux_differential_img2img.py:627-633 | examples/community/pipeline_flux_differential_img2img.py:635-641 | examples/community/pipeline_kolors_inpainting.py:875-881 | examples/community/pipeline_kolors_inpainting.py:896-904 | examples/community/pipeline_sdxl_style_aligned.py:1071-1077 | examples/community/pipeline_sdxl_style_aligned.py:1092-1100 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1147-1153 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1168-1176 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1015-1021 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1030-1038 | examples/community/pipeline_z_image_differential_img2img.py:407-413 | examples/community/pipeline_z_image_differential_img2img.py:415-421 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:665-671 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:673-679 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:766-772 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:774-780 | examples/community/stable_diffusion_controlnet_inpaint.py:668-674 | examples/community/stable_diffusion_controlnet_inpaint.py:700-706 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:655-661 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:687-693 | examples/community/stable_diffusion_controlnet_reference.py:83-89 | examples/community/stable_diffusion_reference.py:779-785 | examples/community/stable_diffusion_repaint.py:583-589 | examples/community/stable_diffusion_repaint.py:591-597 | examples/community/stable_diffusion_xl_controlnet_reference.py:214-220 | examples/community/stable_diffusion_xl_reference.py:160-166 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:796-802 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:815-823 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:798-804 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:817-825 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:689-695 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:697-703 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:926-932 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:934-940 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1010-1016 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1025-1033 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:989-995 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1004-1012 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:331-337 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:339-345 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:700-706 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:708-714 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:654-660 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:662-668 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:370-376 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:378-384 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:725-731 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:733-739 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:828-834 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:836-842 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:686-692 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:877-883 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:885-891 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:810-816 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:818-824 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:868-874 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:889-897 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:580-586 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:588-594 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:535-541 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:543-549 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:784-790 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:792-798 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:790-796 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:798-804 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:868-874 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:889-897 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:367-373 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:375-381 \u2014 there are 75 copies across 39 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 75 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1292\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/adaptive_mask_inpainting.py:816\u0060 calls \u0060to\u0060, \u0060_encode_vae_image\u0060 and \u0060examples/community/lpw_stable_diffusion_xl.py:1268\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d60c470e5895c4edb519e042b16843beede763b6f4c0b66d2261d4a979d6107"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 72): examples/community/adaptive_mask_inpainting.py:547-555 | examples/community/composable_stable_diffusion.py:191-199 | examples/community/fresco_v2v.py:1481-1489 | examples/community/gluegen.py:310-318 | examples/community/instaflow_one_step.py:280-288 | examples/community/ip_adapter_face_id.py:548-556 | examples/community/latent_consistency_interpolate.py:345-353 | examples/community/llm_grounded_diffusion.py:1296-1304 | examples/community/pipeline_animatediff_controlnet.py:262-270 | examples/community/pipeline_animatediff_img2video.py:379-387 | examples/community/pipeline_animatediff_ipex.py:233-241 | examples/community/pipeline_fabric.py:244-252 | examples/community/pipeline_prompt2prompt.py:314-322 | examples/community/pipeline_stable_diffusion_boxdiff.py:651-659 | examples/community/pipeline_stable_diffusion_pag.py:617-625 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:257-265 | examples/community/pipeline_zero1to3.py:234-242 | examples/community/regional_prompting_stable_diffusion.py:595-603 | examples/community/regional_prompting_stable_diffusion.py:1131-1139 | examples/community/stable_diffusion_controlnet_img2img.py:226-234 | examples/community/stable_diffusion_controlnet_inpaint.py:325-333 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:310-318 | examples/community/stable_diffusion_ipex.py:357-365 | examples/community/stable_diffusion_reference.py:476-484 | examples/community/stable_diffusion_repaint.py:330-338 | examples/research_projects/anytext/anytext.py:1424-1432 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:386-394 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:218-226 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:263-271 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:272-280 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:320-328 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:351-359 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:362-370 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:340-348 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:346-354 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:391-399 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:419-427 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:296-304 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:207-215 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:280-288 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:360-368 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:486-494 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:284-292 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:315-323 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:376-384 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:347-355 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:275-283 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:352-360 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:323-331 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:256-264 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:253-261 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:471-479 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:223-231 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:258-266 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:880-888 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:305-313 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:290-298 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:339-347 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:315-323 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:368-376 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:229-237 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:363-371 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:398-406 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:396-404 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:268-276 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:422-430 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:376-384 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:542-550 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:281-289 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:361-369 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:323-331 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:375-383 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/adaptive_mask_inpainting.py:544\u0060 calls \u0060isinstance\u0060, \u0060maybe_convert_prompt\u0060 and \u0060examples/community/gluegen.py:309\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f374c738970883ec95b72ac30ec42ded85de2fc671e1ff97d734438d815b96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 64): examples/community/adaptive_mask_inpainting.py:586-594 | examples/community/fresco_v2v.py:1531-1539 | examples/community/gluegen.py:367-375 | examples/community/instaflow_one_step.py:319-327 | examples/community/ip_adapter_face_id.py:598-606 | examples/community/latent_consistency_interpolate.py:395-403 | examples/community/llm_grounded_diffusion.py:1348-1356 | examples/community/pipeline_animatediff_controlnet.py:312-320 | examples/community/pipeline_animatediff_img2video.py:429-437 | examples/community/pipeline_animatediff_ipex.py:283-291 | examples/community/pipeline_fabric.py:283-291 | examples/community/pipeline_prompt2prompt.py:366-374 | examples/community/pipeline_stable_diffusion_boxdiff.py:701-709 | examples/community/pipeline_stable_diffusion_pag.py:667-675 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:307-315 | examples/community/regional_prompting_stable_diffusion.py:645-653 | examples/community/stable_diffusion_reference.py:526-534 | examples/research_projects/anytext/anytext.py:1474-1482 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:436-444 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:268-276 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:313-321 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:322-330 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:370-378 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:401-409 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:412-420 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:390-398 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:396-404 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:441-449 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:469-477 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:346-354 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:330-338 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:410-418 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:536-544 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:334-342 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:365-373 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:426-434 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:397-405 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:325-333 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:402-410 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:373-381 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:306-314 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:303-311 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:521-529 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:273-281 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:308-316 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:930-938 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:478-486 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:355-363 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:340-348 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:389-397 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:365-373 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:418-426 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:279-287 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:413-421 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:448-456 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:446-454 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:318-326 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:472-480 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:426-434 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:576-584 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:331-339 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:411-419 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:373-381 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:425-433 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 64 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 64 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"6caa8fd458892691714b0274c10bac3171528ec3e18855a979adf508b8bd8276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 54): examples/community/adaptive_mask_inpainting.py:1228-1237 | examples/community/fresco_v2v.py:2495-2504 | examples/community/gluegen.py:799-808 | examples/community/hd_painter.py:870-879 | examples/community/instaflow_one_step.py:676-685 | examples/community/ip_adapter_face_id.py:1112-1121 | examples/community/latent_consistency_img2img.py:375-384 | examples/community/latent_consistency_txt2img.py:290-299 | examples/community/llm_grounded_diffusion.py:1070-1079 | examples/community/masked_stable_diffusion_img2img.py:219-228 | examples/community/pipeline_hunyuandit_differential_img2img.py:1127-1136 | examples/community/pipeline_prompt2prompt.py:757-767 | examples/community/pipeline_stable_diffusion_boxdiff.py:1710-1719 | examples/community/pipeline_stable_diffusion_pag.py:1467-1476 | examples/community/regional_prompting_stable_diffusion.py:1096-1104 | examples/community/stable_diffusion_controlnet_reference.py:820-829 | examples/community/stable_diffusion_reference.py:1451-1460 | examples/research_projects/anytext/anytext.py:2343-2352 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1322-1331 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1344-1353 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1319-1328 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1505-1514 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1033-1042 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:977-986 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:1032-1041 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:909-918 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:619-628 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:718-727 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1031-1040 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1531-1540 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:844-853 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:1036-1045 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1185-1194 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:861-870 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:938-947 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:772-781 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:815-824 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:781-790 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1092-1101 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:895-904 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:979-988 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:908-917 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1204-1213 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1323-1332 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1529-1538 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:948-957 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1062-1071 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1092-1101 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1378-1387 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:423-432 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1146-1155 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1343-1352 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:477-486 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:796-805 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 54 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 54 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:1228\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, \u0060examples/community/hd_painter.py:882\u0060 calls \u0060apply_overlay\u0060 and \u0060examples/community/fresco_v2v.py:2507\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd60d15f48c3bd0f6901096d0bd9cc9e6fbcab7ec7b60c6bb238877ce08b45c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 47): examples/community/lpw_stable_diffusion_xl.py:1016-1024 | examples/community/pipeline_demofusion_sdxl.py:446-454 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1591-1599 | examples/community/pipeline_flux_kontext_multiple_images.py:547-555 | examples/community/pipeline_flux_semantic_guidance.py:612-620 | examples/community/pipeline_flux_with_cfg.py:436-444 | examples/community/pipeline_sdxl_style_aligned.py:839-847 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:558-566 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:633-641 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1005-1013 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:586-594 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:733-741 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:580-588 | examples/community/pipeline_stable_diffusion_xl_ipex.py:588-596 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:713-721 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:724-732 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:680-688 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:684-692 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:715-723 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:704-712 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:704-712 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:617-625 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:689-697 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:524-532 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:556-564 | src/diffusers/pipelines/flux/pipeline_flux.py:485-493 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:519-527 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:541-549 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:549-557 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:536-544 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:589-597 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:596-604 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:645-653 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:688-696 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:690-698 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:594-602 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:614-622 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:676-684 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:627-635 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:719-727 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:602-610 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:632-640 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:639-647 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:665-673 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:616-624 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:722-730 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:694-702 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py:558\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:701\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"51391fb57a4288621718b1e553132f6fb2893c2f51acdb98f59ab60db745559e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 44): examples/community/pipeline_flux_differential_img2img.py:1002-1011 | examples/community/pipeline_flux_rf_inversion.py:933-942 | examples/community/pipeline_flux_semantic_guidance.py:1341-1350 | examples/community/pipeline_flux_with_cfg.py:853-862 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:954-965 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1244-1253 | examples/community/pipeline_stg_ltx.py:838-846 | examples/community/pipeline_stg_ltx_image2video.py:937-945 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1298-1307 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1103-1112 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:1009-1018 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1053-1062 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1341-1350 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:652-660 | src/diffusers/pipelines/bria/pipeline_bria.py:725-734 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1230-1242 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1389-1401 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:722-731 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:944-953 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:572-581 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:549-558 | src/diffusers/pipelines/flux/pipeline_flux_control.py:843-851 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:926-935 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1095-1104 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1181-1190 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:996-1004 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1191-1200 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:992-1002 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1040-1049 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1208-1217 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:970-979 | src/diffusers/pipelines/ltx/pipeline_ltx.py:808-816 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:906-914 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:885-893 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:974-986 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1042-1054 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:860-869 | src/diffusers/pipelines/sana/pipeline_sana.py:950-958 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:1046-1054 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:983-991 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:1036-1044 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1131-1140 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1149-1161 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:917-926 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 629 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1230\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, \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1308\u0060 calls \u0060_unpack_latents\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1243\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cd5afb8d20b226aed159be53a46461157d0735a4f16e9d124ca82ca820f8fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 32): examples/community/adaptive_mask_inpainting.py:701-709 | examples/community/composable_stable_diffusion.py:316-324 | examples/community/img2img_inpainting.py:229-237 | examples/community/instaflow_one_step.py:441-449 | examples/community/interpolate_stable_diffusion.py:202-210 | examples/community/llm_grounded_diffusion.py:502-510 | examples/community/multilingual_stable_diffusion.py:218-226 | examples/community/pipeline_demofusion_sdxl.py:415-423 | examples/community/pipeline_zero1to3.py:492-500 | examples/community/sd_text2img_k_diffusion.py:250-258 | examples/community/seed_resize_stable_diffusion.py:154-162 | examples/community/speech_to_image_diffusion.py:102-110 | examples/community/stable_diffusion_controlnet_img2img.py:409-417 | examples/community/stable_diffusion_controlnet_inpaint.py:506-514 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:455-463 | examples/community/stable_diffusion_ipex.py:502-510 | examples/community/stable_diffusion_repaint.py:479-487 | examples/community/wildcard_stable_diffusion.py:256-264 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:491-499 | examples/research_projects/rdm/pipeline_rdm.py:240-248 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:277-285 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:534-542 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:446-454 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:338-346 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:203-211 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:356-364 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:468-476 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:413-421 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:225-233 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:538-546 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:484-492 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:549-557 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:701\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/adaptive_mask_inpainting.py:699\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/instaflow_one_step.py:440\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f8158db454f0c793c676ec4d91cb7a751f5a6ff8c8ed98ba5fa37d16678f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 32): examples/community/masked_stable_diffusion_xl_img2img.py:471-479 | examples/community/pipeline_kolors_inpainting.py:1649-1657 | examples/community/pipeline_sdxl_style_aligned.py:1866-1874 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2242-2250 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1394-1402 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1122-1130 | examples/community/regional_prompting_stable_diffusion.py:1083-1091 | examples/community/stable_diffusion_xl_reference.py:1146-1154 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1550-1558 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1019-1028 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1520-1528 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:833-841 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:1025-1033 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:1021-1029 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:850-858 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:614-623 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:855-863 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:960-968 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:886-894 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:712-721 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1076-1084 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:878-886 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1133-1141 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1323-1331 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:466-474 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:654-662 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:772-780 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1254-1262 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1439-1447 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1678-1686 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:922-930 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1272-1280 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 358 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1030\u0060 calls \u0060run_safety_checker\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:888\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0cfbc5af4a8d6266394daa93bbfcf8de79f0437cc64cdcc86791a8ee09cb28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 32): examples/community/pipeline_flux_kontext_multiple_images.py:515-523 | examples/community/pipeline_flux_semantic_guidance.py:580-588 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:484-492 | src/diffusers/pipelines/bria/pipeline_bria.py:281-288 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:1052-1060 | src/diffusers/pipelines/chroma/pipeline_chroma.py:430-438 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:462-470 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:494-502 | src/diffusers/pipelines/flux/pipeline_flux.py:453-461 | src/diffusers/pipelines/flux/pipeline_flux_control.py:416-424 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:458-466 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:497-505 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:487-495 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:459-467 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:474-482 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:545-553 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:509-517 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:517-525 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:504-512 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:557-565 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:406-414 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:295-303 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:332-340 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:283-291 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:348-356 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:330-338 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:331-339 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:352-360 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:346-354 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:330-338 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:345-353 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:368-376 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:515\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:482\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py:514\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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54ba5be98e35d700a392a19de2c02c69e0bb13573d072eba817f1d6f6201a37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 31): examples/community/pipeline_flux_differential_img2img.py:878-886 | examples/community/pipeline_flux_kontext_multiple_images.py:1081-1089 | examples/community/pipeline_flux_rf_inversion.py:848-856 | examples/community/pipeline_flux_rf_inversion.py:1018-1026 | examples/community/pipeline_flux_semantic_guidance.py:1054-1062 | examples/community/pipeline_flux_with_cfg.py:784-792 | examples/community/pipeline_stg_ltx.py:752-760 | examples/community/pipeline_stg_ltx_image2video.py:824-832 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1113-1121 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:842-850 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:993-1001 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:474-482 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:471-479 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:969-977 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1228-1236 | src/diffusers/pipelines/krea2/pipeline_krea2.py:620-628 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:606-614 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:658-666 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:657-665 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:806-814 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:545-553 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:616-624 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:602-610 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:815-823 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:793-801 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:724-732 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:885-893 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:768-776 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:681-689 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:825-833 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:738-743 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1081\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ca6f11b3e01d94215f0b8f3aa72b6e9612d5d5e064e10999ab5d7a9b08bd3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 30): examples/community/lpw_stable_diffusion_xl.py:788-796 | examples/community/mixture_tiling_sdxl.py:469-477 | examples/community/mod_controlnet_tile_sr_sdxl.py:476-484 | examples/community/pipeline_demofusion_sdxl.py:252-260 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1348-1356 | examples/community/pipeline_sdxl_style_aligned.py:589-597 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:775-783 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:322-330 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:469-477 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:349-357 | examples/community/pipeline_stable_diffusion_xl_ipex.py:349-357 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:408-416 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:372-380 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:380-388 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:372-380 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:361-369 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:372-380 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:391-399 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:304-312 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:666-674 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:387-395 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:377-385 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:374-382 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:392-400 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:482-490 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:364-372 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:382-390 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:486-494 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:290-298 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:392-400 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/mixture_tiling_sdxl.py:481\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/lpw_stable_diffusion_xl.py:801\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7f2c2aee25160cfee5c655a2f0d20d5c8e84eb5e793dcb1ddabdc9653b19ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 29): examples/community/fresco_v2v.py:2419-2427 | examples/community/mod_controlnet_tile_sr_sdxl.py:1692-1700 | examples/community/pipeline_controlnet_xl_kolors.py:1222-1230 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1426-1434 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1746-1754 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1321-1329 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1738-1746 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:983-991 | examples/community/pipeline_stable_diffusion_xl_instantid.py:972-980 | examples/community/rerender_a_video.py:853-861 | examples/community/rerender_a_video.py:1031-1039 | examples/community/stable_diffusion_xl_controlnet_reference.py:1224-1232 | examples/research_projects/anytext/anytext.py:2266-2274 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1245-1253 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1048-1056 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1286-1294 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1264-1272 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1239-1247 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1407-1415 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1758-1766 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1479-1487 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1538-1546 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1772-1780 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1496-1504 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1588-1596 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1242-1250 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1425-1433 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1499-1507 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1562-1570 \u2014 there are 29 copies across 28 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 29 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2419}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30da2f436dfac4a3ae9433469f7c336bdea7ae072d609b158dd019abd0c7f8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 29): examples/community/latent_consistency_img2img.py:788-796 | examples/community/latent_consistency_img2img.py:807-815 | examples/community/latent_consistency_txt2img.py:696-704 | examples/community/latent_consistency_txt2img.py:715-723 | examples/community/matryoshka.py:732-740 | examples/community/matryoshka.py:752-760 | examples/community/scheduling_ufogen.py:471-479 | examples/community/scheduling_ufogen.py:490-498 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:282-290 | src/diffusers/schedulers/scheduling_ddim.py:546-554 | src/diffusers/schedulers/scheduling_ddim.py:581-589 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:457-465 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:492-500 | src/diffusers/schedulers/scheduling_ddim_parallel.py:656-664 | src/diffusers/schedulers/scheduling_ddim_parallel.py:691-699 | src/diffusers/schedulers/scheduling_ddpm.py:598-606 | src/diffusers/schedulers/scheduling_ddpm.py:632-640 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:697-705 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:732-740 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:551-559 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:586-594 | src/diffusers/schedulers/scheduling_euler_discrete.py:892-900 | src/diffusers/schedulers/scheduling_lcm.py:696-704 | src/diffusers/schedulers/scheduling_lcm.py:731-739 | src/diffusers/schedulers/scheduling_pndm.py:490-498 | src/diffusers/schedulers/scheduling_sasolver.py:1409-1417 | src/diffusers/schedulers/scheduling_tcd.py:731-739 | src/diffusers/schedulers/scheduling_tcd.py:766-774 | src/diffusers/schedulers/scheduling_unclip.py:385-393 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0b84d25391498f33e06face1707522a9d59ceebc8b3375b7dc26473064a826"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 27): examples/community/pipeline_flux_differential_img2img.py:366-374 | examples/community/pipeline_flux_kontext_multiple_images.py:408-416 | examples/community/pipeline_flux_rf_inversion.py:363-371 | examples/community/pipeline_flux_semantic_guidance.py:367-375 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:446-454 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:396-404 | src/diffusers/modular_pipelines/flux/encoders.py:420-428 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:436-444 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:458-466 | src/diffusers/pipelines/flux/pipeline_flux.py:349-357 | src/diffusers/pipelines/flux/pipeline_flux_control.py:363-371 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:374-382 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:413-421 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:381-389 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:375-383 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:386-394 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:458-466 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:372-380 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:376-384 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:397-405 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:430-438 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:336-344 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:406-414 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:422-430 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:415-423 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:441-449 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:447-455 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b40aecedeb904a6e2635db76f395ac766e3b544c19787527a09e21f974cfd3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 27): examples/community/pipeline_stg_cogvideox.py:854-862 | examples/community/pipeline_stg_hunyuan_video.py:797-805 | examples/community/pipeline_stg_wan.py:631-639 | src/diffusers/pipelines/allegro/pipeline_allegro.py:914-922 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:718-726 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:776-784 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:831-839 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:886-894 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:857-865 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:665-673 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:717-725 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:835-843 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:638-646 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:757-765 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:628-636 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:796-804 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:765-773 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:717-725 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:938-946 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:815-824 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:939-947 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:707-715 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:587-595 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:720-728 | src/diffusers/pipelines/wan/pipeline_wan.py:654-662 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:1016-1024 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:713-721 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 27 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 27 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:910\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:759\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fcea1d7cc14910d4ef264505be143479ddc4c8c46494e13325395affafcdf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 25): examples/community/fresco_v2v.py:1022-1030 | examples/community/hd_painter.py:44-52 | examples/community/hd_painter.py:144-152 | examples/community/llm_grounded_diffusion.py:186-194 | examples/community/pipeline_sdxl_style_aligned.py:220-226 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:192-200 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:278-286 | examples/community/pipeline_stable_diffusion_xl_instantid.py:192-200 | examples/community/pipeline_stable_diffusion_xl_instantid.py:278-286 | examples/community/regional_prompting_stable_diffusion.py:319-327 | src/diffusers/models/attention_processor.py:1127-1135 | src/diffusers/models/attention_processor.py:2019-2027 | src/diffusers/models/attention_processor.py:2510-2518 | src/diffusers/models/attention_processor.py:2600-2608 | src/diffusers/models/attention_processor.py:2711-2719 | src/diffusers/models/attention_processor.py:2808-2816 | src/diffusers/models/attention_processor.py:3018-3026 | src/diffusers/models/attention_processor.py:3137-3145 | src/diffusers/models/attention_processor.py:3238-3246 | src/diffusers/models/attention_processor.py:3689-3697 | src/diffusers/models/attention_processor.py:4010-4018 | src/diffusers/models/attention_processor.py:4265-4273 | src/diffusers/models/attention_processor.py:4470-4478 | src/diffusers/models/attention_processor.py:4710-4718 | src/diffusers/models/unets/unet_dreamlite.py:311-319 \u2014 there are 25 copies across 9 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 25 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/fresco_v2v.py:1036\u0060 calls \u0060view\u0060 and \u0060examples/community/llm_grounded_diffusion.py:199\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fb613deb76d64b99ad78196156c1722b85f866a9da5dceafd875b938e52088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 24): examples/community/fresco_v2v.py:1176-1184 | examples/community/pipeline_sdxl_style_aligned.py:268-276 | examples/community/pipeline_stable_diffusion_pag.py:119-127 | examples/community/pipeline_stable_diffusion_pag.py:146-154 | examples/community/pipeline_stable_diffusion_pag.py:234-242 | examples/community/pipeline_stable_diffusion_pag.py:258-266 | examples/community/regional_prompting_stable_diffusion.py:368-376 | src/diffusers/models/attention_processor.py:2069-2077 | src/diffusers/models/attention_processor.py:2666-2674 | src/diffusers/models/attention_processor.py:2760-2768 | src/diffusers/models/attention_processor.py:2876-2884 | src/diffusers/models/attention_processor.py:3094-3102 | src/diffusers/models/attention_processor.py:3192-3200 | src/diffusers/models/attention_processor.py:3295-3303 | src/diffusers/models/attention_processor.py:3400-3408 | src/diffusers/models/attention_processor.py:3415-3423 | src/diffusers/models/attention_processor.py:3524-3532 | src/diffusers/models/attention_processor.py:3539-3547 | src/diffusers/models/attention_processor.py:3740-3748 | src/diffusers/models/attention_processor.py:5092-5100 | src/diffusers/models/attention_processor.py:5109-5117 | src/diffusers/models/attention_processor.py:5194-5202 | src/diffusers/models/attention_processor.py:5212-5220 | src/diffusers/models/unets/unet_dreamlite.py:373-381 \u2014 there are 24 copies across 6 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 24 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stable_diffusion_pag.py:157\u0060 calls \u0060cat\u0060 and \u0060examples/community/fresco_v2v.py:1186\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b3934c65421d75f74fd4d37ddfe13e5a0815dad79c6071c636924b2445bbab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20139 lines \u00D7 23): examples/community/lpw_stable_diffusion_xl.py:1920-1928 | examples/community/masked_stable_diffusion_xl_img2img.py:661-663 | examples/community/mixture_tiling_sdxl.py:1187-1195 | examples/community/mod_controlnet_tile_sr_sdxl.py:1813-1821 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2231-2239 | examples/community/pipeline_kolors_inpainting.py:1673-1681 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2263-2271 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1421-1429 | examples/community/stable_diffusion_xl_controlnet_reference.py:1336-1344 | examples/community/stable_diffusion_xl_reference.py:1170-1178 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1570-1578 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1634-1642 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1580-1588 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1681-1689 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1583-1591 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1651-1659 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1314-1322 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1507-1515 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1740-1748 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1278-1286 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1463-1471 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1702-1710 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:946-954 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:661\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1289\u0060 calls \u0060to\u0060, \u0060get_module_execution_device\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:1824\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9d2e217b75dbf6083cbf20d45f94c9dd8243d0e07f20d11f5628423593e620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 23): examples/community/pipeline_flux_kontext_multiple_images.py:574-582 | examples/community/pipeline_flux_rf_inversion.py:493-501 | examples/community/pipeline_flux_semantic_guidance.py:647-655 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:541-549 | src/diffusers/pipelines/bria/pipeline_bria.py:436-439 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:361-369 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:525-533 | src/diffusers/pipelines/chroma/pipeline_chroma.py:475-483 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:507-515 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:561-569 | src/diffusers/pipelines/flux/pipeline_flux.py:511-519 | src/diffusers/pipelines/flux/pipeline_flux_control.py:460-468 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:502-510 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:541-549 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:554-562 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:503-511 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:531-539 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:597-605 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:576-584 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:597-605 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:563-571 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:637-645 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:368-376 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:574\u0060 calls \u0060arange\u0060 and \u0060src/diffusers/pipelines/bria/pipeline_bria.py:436\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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"2160a8928e7be9f19543593270e903824ca6f8e1477e7ea4d99357f79789bf7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 22): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:762-768 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:795-801 | scripts/convert_gligen_to_diffusers.py:138-144 | scripts/convert_gligen_to_diffusers.py:171-177 | scripts/convert_original_audioldm2_to_diffusers.py:557-563 | scripts/convert_original_audioldm2_to_diffusers.py:590-596 | scripts/convert_original_audioldm_to_diffusers.py:541-547 | scripts/convert_original_audioldm_to_diffusers.py:574-580 | scripts/convert_original_musicldm_to_diffusers.py:537-543 | scripts/convert_original_musicldm_to_diffusers.py:570-576 | scripts/convert_svd_to_diffusers.py:682-688 | scripts/convert_svd_to_diffusers.py:716-722 | scripts/convert_unidiffuser_to_diffusers.py:407-415 | scripts/convert_unidiffuser_to_diffusers.py:458-466 | scripts/convert_vae_pt_to_diffusers.py:79-85 | scripts/convert_vae_pt_to_diffusers.py:119-125 | scripts/convert_versatile_diffusion_to_diffusers.py:629-635 | scripts/convert_versatile_diffusion_to_diffusers.py:662-668 | scripts/convert_zero123_to_diffusers.py:574-580 | scripts/convert_zero123_to_diffusers.py:607-613 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:700-706 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:733-739 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_unidiffuser_to_diffusers.py:407\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb78d1452fa9c3b7f1ccc7b7c17b0a7ad1dff54a5ff3ffadf5d33fd9dded044b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 19): src/diffusers/schedulers/scheduling_consistency_models.py:484-490 | src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:712-718 | src/diffusers/schedulers/scheduling_deis_multistep.py:1020-1026 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1326-1332 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:1141-1147 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:799-805 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1300-1306 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:831-837 | src/diffusers/schedulers/scheduling_edm_euler.py:559-565 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:502-508 | src/diffusers/schedulers/scheduling_euler_discrete.py:825-831 | src/diffusers/schedulers/scheduling_euler_discrete.py:880-888 | src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:212-218 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:233-239 | src/diffusers/schedulers/scheduling_heun_discrete.py:685-691 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:717-723 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:689-695 | src/diffusers/schedulers/scheduling_lms_discrete.py:649-655 | src/diffusers/schedulers/scheduling_unipc_multistep.py:1273-1279 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_consistency_models.py\u0060 and \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_euler_discrete.py:880\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_consistency_models.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa20b0a789db7587da4c90783c8e7374b12d985809d9d897ed04465958ec9846"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 17): examples/community/clip_guided_stable_diffusion_img2img.py:214-222 | examples/community/fresco_v2v.py:1994-2002 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1777-1785 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:723-731 | examples/community/rerender_a_video.py:570-578 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:853-861 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:695-703 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:808-816 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:762-770 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:586-594 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:640-648 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:550-558 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:699-707 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:535-543 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:775-783 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:881-889 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:539-547 \u2014 there are 17 copies across 16 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 17 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4acbf51bd5d5b00832b0f716e8a719fc66bcb8c1497aa6b44498c8c5a8b66c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 17): examples/community/fresco_v2v.py:2236-2244 | examples/community/pipeline_animatediff_controlnet.py:935-943 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:789-797 | examples/community/pipeline_stable_diffusion_xl_instantid.py:781-789 | examples/community/rerender_a_video.py:754-762 | examples/community/stable_diffusion_controlnet_reference.py:264-272 | examples/community/stable_diffusion_xl_controlnet_reference.py:625-633 | examples/research_projects/anytext/anytext.py:2142-2150 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1097-1105 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:896-904 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1197-1205 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1107-1115 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1105-1113 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1227-1235 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1264-1272 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1355-1363 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1054-1062 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/anytext/anytext.py:2152\u0060 calls \u0060modify_prompt\u0060 and \u0060examples/community/fresco_v2v.py:2247\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":"examples/community/fresco_v2v.py"},"region":{"startLine":2236}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bdb752d4c8feecdf152a07590817f52beead6b22e5e5584fea07a4122ecf745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 17): examples/community/latent_consistency_img2img.py:634-642 | examples/community/latent_consistency_txt2img.py:546-554 | examples/community/matryoshka.py:472-479 | examples/community/scheduling_ufogen.py:361-368 | src/diffusers/schedulers/scheduling_ddim.py:320-327 | src/diffusers/schedulers/scheduling_ddim_parallel.py:323-330 | src/diffusers/schedulers/scheduling_ddpm.py:447-454 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:464-471 | src/diffusers/schedulers/scheduling_deis_multistep.py:386-393 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:529-536 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:404-411 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:471-478 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:415-422 | src/diffusers/schedulers/scheduling_lcm.py:388-395 | src/diffusers/schedulers/scheduling_sasolver.py:384-391 | src/diffusers/schedulers/scheduling_tcd.py:418-425 | src/diffusers/schedulers/scheduling_unipc_multistep.py:565-572 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46f68ce6fd5681499f78e3071d2740d3d3ba37032383c7673b362139943a5be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 17): examples/community/lpw_stable_diffusion_xl.py:666-674 | examples/community/mixture_tiling_sdxl.py:357-365 | examples/community/pipeline_demofusion_sdxl.py:160-168 | examples/community/pipeline_kolors_differential_img2img.py:202-210 | examples/community/pipeline_sdxl_style_aligned.py:480-488 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:220-228 | examples/community/pipeline_stable_diffusion_xl_ipex.py:243-251 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:308-316 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:411-419 | src/diffusers/pipelines/kolors/pipeline_kolors.py:181-189 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:200-208 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:364-372 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:195-203 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:265-273 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:258-266 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:188-196 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:293-301 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:666\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b13b3914847b9b94dffafd05991963f95941093a29e28f02f730887e8a441f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 17): examples/community/pipeline_hunyuandit_differential_img2img.py:587-595 | examples/community/pipeline_stg_ltx.py:423-431 | examples/community/pipeline_stg_ltx_image2video.py:447-455 | examples/community/pipeline_stg_mochi.py:430-438 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:515-523 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:486-494 | src/diffusers/pipelines/ltx/pipeline_ltx.py:397-405 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:489-497 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:421-429 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:496-504 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:549-557 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:310-318 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:326-334 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:571-579 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:502-510 | src/diffusers/pipelines/mochi/pipeline_mochi.py:368-376 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:497-505 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57ebca78999c4c16868e8e6b4081967465e8b2bca8221b13a6f712358c55195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20139 lines \u00D7 16): examples/community/lpw_stable_diffusion.py:1009-1017 | examples/community/masked_stable_diffusion_img2img.py:174-182 | examples/community/pipeline_animatediff_img2video.py:939-947 | examples/community/pipeline_prompt2prompt.py:722-726 | examples/community/stable_diffusion_ipex.py:708-712 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1037-1045 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:512-520 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:592-600 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1493-1501 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:727-735 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:783-791 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:995-1003 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:603-611 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:658-666 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:435-443 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:391-395 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 16 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 16 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion.py:1009\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":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"534e7784657627d0e43fe20a9062b4827ad37e7b5226203adb530d7f3b80b52e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 16): examples/community/mixture_tiling_sdxl.py:1171-1179 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2215-2223 | examples/community/pipeline_kolors_differential_img2img.py:1234-1242 | examples/community/pipeline_kolors_inpainting.py:1657-1665 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1402-1410 | examples/community/stable_diffusion_xl_reference.py:1154-1162 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1031-1039 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1211-1219 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1094-1102 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1298-1306 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1491-1499 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1724-1732 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1262-1270 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1447-1455 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1686-1694 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:930-938 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"6515d452f200c3e69cde90fb27572ab71534e6f12bc0046815d44279fbe2537a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 15): examples/community/lpw_stable_diffusion_xl.py:1171-1179 | examples/community/masked_stable_diffusion_xl_img2img.py:623-631 | examples/community/mod_controlnet_tile_sr_sdxl.py:940-948 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:841-849 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:917-925 | examples/community/pipeline_kolors_differential_img2img.py:676-684 | examples/community/pipeline_sdxl_style_aligned.py:994-1002 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:701-709 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:181-189 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:973-981 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:964-972 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:673-681 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:979-987 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:771-779 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:758-766 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e6f5e66db4776927320e1005cb7a080d613e6574ffe90dacf52c825d21bace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 15): examples/community/mixture_tiling_sdxl.py:1068-1076 | examples/community/pipeline_controlnet_xl_kolors.py:1160-1168 | examples/community/pipeline_kolors_differential_img2img.py:1098-1106 | examples/community/pipeline_stable_diffusion_xl_instantid.py:926-934 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1015-1023 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1314-1322 | examples/community/stable_diffusion_xl_controlnet_reference.py:1160-1168 | examples/community/stable_diffusion_xl_reference.py:1009-1017 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1169-1177 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1416-1424 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1411-1419 | src/diffusers/pipelines/kolors/pipeline_kolors.py:919-927 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1093-1101 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1145-1153 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1202-1210 \u2014 there are 15 copies across 14 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 15 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py:926\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1179\u0060 calls \u0060repeat_interleave\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py:936\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":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6dfb4036a9b6f3b80310d2ba15cf968481747c983b927b36671c4a239c9b408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 15): examples/community/pipeline_flux_kontext_multiple_images.py:750-757 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:582-589 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:623-631 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:663-670 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:641-648 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:659-667 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:639-646 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:716-723 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:735-742 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:450-457 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:510-517 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:470-477 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:439-446 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:466-473 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:482-489 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 493 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060image\u0060 to \u0060PipelineImageInput\u0060 in one and \u0060torch.Tensor\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 before the matched lines, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:749\u0060 calls \u0060enumerate\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py:638\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"8715e04a5526ca8cad151d42a95deaebe819b05bc3a663d6fdb817e6185b7515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 14): examples/community/mod_controlnet_tile_sr_sdxl.py:902-916 | examples/community/pipeline_kolors_differential_img2img.py:638-652 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:144-158 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:827-841 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:935-949 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:926-940 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:635-649 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:524-538 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:941-955 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:673-687 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:733-747 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:509-523 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:749-763 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:720-734 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 14 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 14 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:902\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:900\u0060 calls \u0060to\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:826\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"032ce3717dcb5ea6d73e4578e0cbecfd24cf3ae7604a84433d6547d7df7be0c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 14): examples/community/pipeline_stg_wan.py:615-623 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:637-645 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:702-710 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:750-758 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:702-710 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:691-699 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:462-470 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:571-579 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:704-712 | src/diffusers/pipelines/wan/pipeline_wan.py:638-646 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1143-1151 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:795-803 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:1000-1008 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:697-705 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"98691af4474f9c56a87b31b6e5a32c63c7c407c1479f00cbca3a81fa18a71102"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 14): src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:708-716 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1021-1029 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1522-1529 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:835-842 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:1027-1034 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:1023-1030 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:852-859 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:857-864 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:962-969 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:880-887 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:468-475 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:656-663 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:933-940 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:838-846 \u2014 \u0060src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.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 26 separate duplicated blocks between them, totalling at least 304 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:717\u0060 calls \u0060run_safety_checker\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:888\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"3911ba8de877b6efb10dc3ab1e77c570774233315623dca1762e5ce15314ddfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 13): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:503-511 | scripts/convert_gligen_to_diffusers.py:268-276 | scripts/convert_i2vgen_to_diffusers.py:276-283 | scripts/convert_if.py:355-363 | scripts/convert_if.py:947-955 | scripts/convert_ms_text_to_video_to_diffusers.py:232-239 | scripts/convert_original_audioldm_to_diffusers.py:384-392 | scripts/convert_original_musicldm_to_diffusers.py:380-388 | scripts/convert_svd_to_diffusers.py:354-361 | scripts/convert_vae_pt_to_diffusers.py:60-68 | scripts/convert_versatile_diffusion_to_diffusers.py:442-450 | scripts/convert_zero123_to_diffusers.py:352-360 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:501-509 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:503\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d7d1dbbe47dc503ac7dde6f327cc5a4c703357192ff5168fc699972afd7f3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): examples/community/gluegen.py:757-765 | examples/community/ip_adapter_face_id.py:1056-1064 | examples/community/regional_prompting_stable_diffusion.py:1037-1045 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:949-957 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:975-983 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:704-712 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:941-949 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1159-1167 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:828-836 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1029-1037 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1091-1099 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1260-1268 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1038\u0060 calls \u0060hasattr\u0060 and \u0060examples/community/gluegen.py:766\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":"examples/community/gluegen.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"fede2d612eed2cf7155f3d66340a19b14d2125fdb68660a32aeaf3c14d5c4717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:506-514 | scripts/convert_gligen_to_diffusers.py:271-279 | scripts/convert_i2vgen_to_diffusers.py:278-286 | scripts/convert_if.py:358-366 | scripts/convert_if.py:950-958 | scripts/convert_ms_text_to_video_to_diffusers.py:234-242 | scripts/convert_original_audioldm2_to_diffusers.py:386-394 | scripts/convert_original_audioldm_to_diffusers.py:387-395 | scripts/convert_original_musicldm_to_diffusers.py:383-391 | scripts/convert_svd_to_diffusers.py:356-364 | scripts/convert_zero123_to_diffusers.py:355-363 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:504-512 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb87abe7b8e493e432a046aee39697ffd1dd451aba202464afd4a31f36e331c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): examples/community/llm_grounded_diffusion.py:1050-1058 | examples/community/pipeline_animatediff_img2video.py:952-960 | examples/community/stable_diffusion_controlnet_img2img.py:857-865 | examples/community/stable_diffusion_controlnet_inpaint.py:1010-1018 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:987-995 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:525-533 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1007-1015 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:821-829 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:795-803 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1007-1015 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:447-455 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 465 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/llm_grounded_diffusion.py:1050\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"35130c93c3d95caf86175281442ea3e5cc54cd9c85d18c7019082379bc8ffd77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 11): examples/community/masked_stable_diffusion_xl_img2img.py:391-398 | examples/community/pipeline_kolors_differential_img2img.py:1160-1167 | examples/community/pipeline_kolors_inpainting.py:1566-1573 | examples/community/pipeline_sdxl_style_aligned.py:1791-1799 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2149-2157 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1316-1323 | examples/community/stable_diffusion_xl_reference.py:1056-1063 | src/diffusers/pipelines/kolors/pipeline_kolors.py:966-973 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1146-1153 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1381-1388 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1600-1607 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 264 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:391\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"092a7e60dbcf9b52c402175206eadf30df332aca4976dfe6b6b21e1d8bdc87e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): examples/community/mod_controlnet_tile_sr_sdxl.py:674-682 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-545 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-596 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:538-546 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:681-689 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:641-649 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:672-680 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:661-669 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:647-655 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:585-593 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:574-582 \u2014 before extracting anything, compare \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 337 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"2961f54e37fb52d37b76d2633b5de1fd4595bb9df0b7d0e4008d28216c8f76f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): examples/community/pipeline_flux_differential_img2img.py:888-898 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:824-833 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:973-982 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:892-901 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:917-926 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1050-1059 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1238-1246 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1109-1118 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:895-905 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:691-699 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:835-844 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 698 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:824\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4248b51550a5116ff522bca49bf819d1dc78150098102d9f3db9b82bcee00ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): examples/community/pipeline_flux_rf_inversion.py:618-626 | examples/community/pipeline_flux_semantic_guidance.py:749-757 | examples/community/pipeline_flux_with_cfg.py:573-581 | src/diffusers/pipelines/bria/pipeline_bria.py:396-404 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:417-425 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:581-589 | src/diffusers/pipelines/chroma/pipeline_chroma.py:530-538 | src/diffusers/pipelines/flux/pipeline_flux.py:565-573 | src/diffusers/pipelines/flux/pipeline_flux_control.py:517-525 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:611-619 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:422-430 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 667 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"2150f5f3962bed38a48bf5831da3edbaddee905066ba133d833183b4b70598ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): examples/community/pipeline_stg_wan.py:176-184 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:228-236 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:199-207 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:187-195 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:206-214 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:143-151 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:164-172 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:169-177 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:225-233 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:172-180 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:210-218 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_wan.py:176\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"810c3b78d906e2ea451c2d8c4d54ad839bb351f595174689a033239c92ded24a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:538-546 | scripts/convert_gligen_to_diffusers.py:302-310 | scripts/convert_i2vgen_to_diffusers.py:356-364 | scripts/convert_if.py:427-435 | scripts/convert_ms_text_to_video_to_diffusers.py:312-320 | scripts/convert_original_audioldm_to_diffusers.py:418-426 | scripts/convert_original_musicldm_to_diffusers.py:414-422 | scripts/convert_svd_to_diffusers.py:432-440 | scripts/convert_versatile_diffusion_to_diffusers.py:487-495 | scripts/convert_zero123_to_diffusers.py:386-394 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:536-544 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"811c663e17da18e7c60c0a577d1f14b1193a6b6b7da00021bd1dd8d323af6033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 11): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1471-1479 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1740-1748 | src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:515-523 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:970-978 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1100-1106 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:823-831 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:954-960 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:882-890 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1002-1008 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:570-578 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:644-650 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:515\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, \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1099\u0060 calls \u0060_sigma_to_alpha_sigma_t\u0060 and \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:515\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69c66e5e311862721861656a18391907aafb17acc93150cc726cad089b68a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): examples/community/imagic_stable_diffusion.py:436-444 | examples/community/img2img_inpainting.py:398-406 | examples/community/interpolate_stable_diffusion.py:336-344 | examples/community/multilingual_stable_diffusion.py:371-379 | examples/community/seed_resize_stable_diffusion.py:303-311 | examples/community/speech_to_image_diffusion.py:226-234 | examples/community/wildcard_stable_diffusion.py:380-388 | examples/research_projects/rdm/pipeline_rdm.py:314-322 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:594-602 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:398-406 \u2014 before extracting anything, compare \u0060examples/community/imagic_stable_diffusion.py\u0060 and \u0060examples/community/img2img_inpainting.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/interpolate_stable_diffusion.py:349\u0060 calls \u0060callback\u0060 and \u0060examples/community/imagic_stable_diffusion.py:446\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e27224ec5bf18dda20e7f3bd9640717e157254958cfd3b243d9c4de18804c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 10): examples/community/img2img_inpainting.py:254-260 | examples/community/multilingual_stable_diffusion.py:251-257 | examples/community/seed_resize_stable_diffusion.py:174-180 | examples/community/speech_to_image_diffusion.py:122-128 | examples/community/stable_unclip.py:89-95 | examples/community/wildcard_stable_diffusion.py:276-282 | examples/research_projects/rdm/pipeline_rdm.py:96-102 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:409-415 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:435-443 | src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py:112-118 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/multilingual_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 373 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/stable_unclip.py:87\u0060 calls \u0060to\u0060 and \u0060examples/community/img2img_inpainting.py:252\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":"examples/community/img2img_inpainting.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50796e6fedf965b0085bffc6c8a7f9c8319fde9a63f752d101d2d788bc8c679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): examples/community/matryoshka.py:4488-4496 | examples/community/pipeline_stable_diffusion_pag.py:1317-1325 | examples/community/regional_prompting_stable_diffusion.py:1025-1033 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1039-1047 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:983-991 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1015-1023 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1271-1279 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1017-1025 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1079-1087 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1248-1256 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_pag.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 503 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:4488\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":4488}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f37eb8b8d4c079642c2a533e1316419d7d9d63a527b6648b36450dcd7d0b1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): examples/community/pipeline_hunyuandit_differential_img2img.py:1094-1102 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1810-1818 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1823-1831 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1000-1008 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:734-742 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:970-978 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1189-1197 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:862-870 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:915-923 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1260-1268 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:1090\u0060 calls \u0060chunk\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1806\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":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b8deb324c447b29eceed7ef5dfc6b5380155b1d11d00647d4b141af435e463"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): examples/community/pipeline_stg_wan.py:563-574 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:584-592 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:684-692 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:567-575 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:704-712 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:665-673 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:944-953 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:875-886 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:538-549 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:666-677 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:944\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:581\u0060 calls \u0060new_zeros\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:538\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":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"90be71c79816489ef362dadfb87a73fc4ec34df899fefc7fc24075958b749e04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:409-417 | src/diffusers/pipelines/allegro/pipeline_allegro.py:299-307 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:322-330 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:172-180 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:187-195 | src/diffusers/pipelines/latte/pipeline_latte.py:293-301 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:274-282 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:282-290 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:387-395 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:331-339 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:409\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, \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:418\u0060 calls \u0060view\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:181\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc35b83d924cafc3dec0f26ffe8cb3325b20d31251117811aa93d4d0d0e84453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): scripts/convert_hunyuan_image_to_diffusers.py:830-838 | scripts/convert_hunyuan_video1_5_to_diffusers.py:596-604 | scripts/convert_pixart_alpha_to_diffusers.py:124-132 | scripts/convert_pixart_sigma_to_diffusers.py:136-144 | scripts/convert_sana_to_diffusers.py:216-224 | scripts/convert_sana_video_to_diffusers.py:185-193 | scripts/convert_sd3_to_diffusers.py:222-230 | src/diffusers/loaders/single_file_utils.py:2193-2201 | src/diffusers/loaders/single_file_utils.py:3197-3205 | src/diffusers/loaders/single_file_utils.py:3618-3626 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuan_image_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuan_video1_5_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 384 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_hunyuan_image_to_diffusers.py:830\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/convert_hunyuan_image_to_diffusers.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"020eb6f720ca4addb17f6f047add98b45daa6b2471c91382b411170111273dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 10): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:101-108 | src/diffusers/pipelines/deprecated/repaint/pipeline_repaint.py:34-41 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:171-178 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:44-51 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:183-190 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:72-79 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:102-109 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:49-56 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:63-71 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:57-65 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:63\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9042868b6db6b6cafe6aaa690b341086baf59b1f40d391d91d2f57e6101ad985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): examples/community/pipeline_sdxl_style_aligned.py:1797-1807 | examples/community/stable_diffusion_xl_reference.py:1061-1071 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1229-1239 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1733-1743 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1515-1523 | src/diffusers/pipelines/kolors/pipeline_kolors.py:971-981 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1151-1161 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1199-1208 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1386-1396 \u2014 before extracting anything, compare \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 and \u0060examples/community/stable_diffusion_xl_reference.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 413 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":1797}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7406208f5eb136b35615e742cca605aad4446ae6232446b711631168fbffd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): examples/community/pipeline_z_image_differential_img2img.py:387-395 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:645-653 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:667-675 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:680-688 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:634-642 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:703-711 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:806-814 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:557-565 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:512-520 \u2014 before extracting anything, compare \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 280 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_z_image_differential_img2img.py:387\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":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78807eb3a2d5b275bf52afa53e3c411b90185b42fe779119108b7f96ad22153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:227-235 | scripts/convert_flux2_to_diffusers.py:95-103 | scripts/convert_original_audioldm_to_diffusers.py:202-210 | scripts/convert_svd_to_diffusers.py:545-553 | scripts/convert_unidiffuser_to_diffusers.py:97-105 | scripts/convert_versatile_diffusion_to_diffusers.py:248-256 | scripts/convert_zero123_to_diffusers.py:671-679 | src/diffusers/loaders/single_file_utils.py:882-890 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:225-233 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 674 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40afa55cb190ed40426220baa19ba5c48157caeb78ef44516098e8548c5fee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): src/diffusers/models/controlnets/controlnet.py:675-684 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:604-613 | src/diffusers/models/controlnets/controlnet_union.py:620-629 | src/diffusers/models/controlnets/controlnet_xs.py:1013-1022 | src/diffusers/models/unets/unet_2d_condition.py:853-862 | src/diffusers/models/unets/unet_3d_condition.py:547-556 | src/diffusers/models/unets/unet_i2vgen_xl.py:499-508 | src/diffusers/models/unets/unet_motion_model.py:1951-1960 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:335-344 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 317 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/unets/unet_3d_condition.py:543\u0060 calls \u0060to\u0060, \u0060unsqueeze\u0060 and \u0060src/diffusers/models/unets/unet_spatio_temporal_condition.py:332\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc81dfcbe0a778a377cc00701ac74b711f934976a9e55d0c3c54e50b88e6e7b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): src/diffusers/pipelines/chroma/pipeline_chroma.py:370-378 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:397-405 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:399-407 | src/diffusers/pipelines/flux/pipeline_flux.py:392-400 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:425-433 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:416-424 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:420-428 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:441-449 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:474-482 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 792 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da6ba0c4abe97effff70c0b1815cab96c1f60e9aaf710def25883140ca32df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): examples/community/cogvideox_ddim_inversion.py:132-140 | src/diffusers/models/attention_processor.py:1452-1460 | src/diffusers/models/attention_processor.py:2302-2310 | src/diffusers/models/attention_processor.py:2373-2381 | src/diffusers/models/attention_processor.py:3172-3180 | src/diffusers/models/attention_processor.py:3275-3283 | src/diffusers/models/attention_processor.py:3380-3388 | src/diffusers/models/attention_processor.py:3504-3512 \u2014 there are 8 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 8 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/cogvideox_ddim_inversion.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a580377e9f2c3784b292ec269880ebb32a1a473f077326a313bc017d6ac270d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): examples/community/matryoshka.py:2654-2662 | src/diffusers/models/controlnets/controlnet.py:592-600 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:524-532 | src/diffusers/models/controlnets/controlnet_union.py:531-539 | src/diffusers/models/unets/unet_2d_condition.py:780-788 | src/diffusers/models/unets/unet_3d_condition.py:345-353 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:484-492 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:956-964 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060slice_size\u0060 to \u0060List[int]\u0060 in one and \u0060list[int]\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, \u0060src/diffusers/models/controlnets/controlnet.py:602\u0060 calls \u0060apply_lora_scale\u0060 and \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py:534\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":"examples/community/matryoshka.py"},"region":{"startLine":2654}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3d4413db1c527eae8d16ac1b670bbb58d2054cd44bea606f169f2df13e8e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): examples/community/pipeline_z_image_differential_img2img.py:188-196 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:186-194 | src/diffusers/pipelines/z_image/pipeline_z_image.py:157-165 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:212-220 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:216-224 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:186-194 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:202-210 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:163-171 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_z_image_differential_img2img.py:188\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: \u0060DiffusionPipeline\u0060 names \u0060...pipelines.pipeline_utils\u0060 in one and \u0060..pipeline_utils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_z_image_differential_img2img.py:197\u0060 calls \u0060getattr\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:225\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb240f57c490c4ec4c5ee936660e77743fd2c907f0f0318b209be9cfcae04ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:304-313 | examples/research_projects/rdm/pipeline_rdm.py:72-81 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:98-106 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:208-216 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:76-84 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:225-234 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:251-260 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:132-140 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:302\u0060 calls \u0060PixArtControlNetTransformerModel\u0060 and \u0060examples/research_projects/rdm/pipeline_rdm.py:71\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6777b59110ea63e11406b2ead8755132b01dfd7506ae51a251fb24f20eff9ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:712-720 | scripts/convert_gligen_to_diffusers.py:88-96 | scripts/convert_original_audioldm2_to_diffusers.py:507-515 | scripts/convert_original_audioldm_to_diffusers.py:491-499 | scripts/convert_original_musicldm_to_diffusers.py:487-495 | scripts/convert_svd_to_diffusers.py:630-638 | scripts/convert_zero123_to_diffusers.py:524-532 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:650-658 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_original_audioldm2_to_diffusers.py:506\u0060 calls \u0060startswith\u0060 and \u0060scripts/convert_gligen_to_diffusers.py:87\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2a496ac89e426cfbcba80b6a3effb1a9fdd2706f69f8c1d11d65eecba2a80b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1467-1475 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1736-1744 | src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:511-519 | src/diffusers/schedulers/scheduling_deis_multistep.py:743-751 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:966-974 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:819-827 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:878-886 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:566-574 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b12a0ac7a2feb099b4f6c8b57c29000d70294472e05e2f892ea1eb7f9a70681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:668-676 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:911-919 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:882-890 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:797-805 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1011-1019 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:841-849 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:770-778 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:939-947 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:796\u0060 calls \u0060size\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:667\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad944a2468533f6016c03e9a23382d16aec5546af956c9c504b4edf889d4f48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): examples/community/clip_guided_stable_diffusion.py:187-195 | examples/community/clip_guided_stable_diffusion_img2img.py:324-332 | examples/community/img2img_inpainting.py:222-230 | examples/community/multilingual_stable_diffusion.py:211-219 | examples/community/seed_resize_stable_diffusion.py:147-155 | examples/community/speech_to_image_diffusion.py:95-103 | src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:147-155 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 311 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08ddeacba52dfb02d6989f970b7bb09b9814d21550eaca2cdb1caaf0876765b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1531-1539 | examples/community/pipeline_kolors_inpainting.py:1408-1416 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1963-1971 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1307-1315 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1269-1277 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1432-1440 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1439-1447 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 1028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_inpaint.py"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61374b65b300737395fecdc71cf299e5052dad501004df921aa4196a34858a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 7): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:309-316 | src/diffusers/models/autoencoders/autoencoder_kl.py:271-279 | src/diffusers/models/autoencoders/autoencoder_kl.py:328-336 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:283-291 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:340-348 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:700-708 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:301-309 \u2014 there are 7 copies across 5 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 7 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060x\u0060 to \u0060torch.FloatTensor\u0060 in one and \u0060torch.Tensor\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, \u0060src/diffusers/models/autoencoders/consistency_decoder_vae.py:312\u0060 calls \u0060quant_conv\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:711\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b67cf8f85f1d998e09c2cb98c371287c6be2ebe878c868eb36ff0e8478d2a84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): examples/community/pipeline_flux_with_cfg.py:796-804 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:918-926 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:618-626 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:645-653 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:602-612 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:807-817 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:621-629 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:918\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b156077e5a6c0196c381e5a9be69eb43e77566b29b7a88d35643b9e38d5ec57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1168-1178 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1165-1173 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1324-1332 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:923-931 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1061-1069 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1105-1113 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1295-1303 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 914 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1103\u0060 calls \u0060max\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1162\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":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"58351901687e1cda343561473b6f9746e85de136b1c80f7470a3a0e3ca98b250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:445-453 | scripts/convert_i2vgen_to_diffusers.py:223-231 | scripts/convert_if.py:871-879 | scripts/convert_ms_text_to_video_to_diffusers.py:179-187 | scripts/convert_svd_to_diffusers.py:292-300 | scripts/convert_zero123_to_diffusers.py:299-307 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:443-451 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 322 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b1fad7a9c24e257e423d55efb9392928cfc03f0c87faca46a0ef0751781ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 7): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:125-133 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:142-150 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:173-181 | src/diffusers/pipelines/helios/pipeline_helios.py:145-152 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:193-201 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:203-211 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:212-220 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"88346a73702a80a29579d2f7e8a98863b8a4bf3ca88d0fa0e02c1125a9655b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): src/diffusers/pipelines/flux2/pipeline_flux2.py:957-965 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:833-841 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:745-753 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:637-645 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:635-643 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:856-864 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:827-835 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71a4eef83c38505a0349492ae6b9432e34be31424d535f8893af010e9c0053f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): src/diffusers/pipelines/ltx/pipeline_ltx.py:757-765 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:829-837 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1397-1405 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1824-1832 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1354-1362 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2228-2236 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1472-1480 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 953 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:841\u0060 calls \u0060unsqueeze\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:770\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":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a0bfd40cfc1a3bd85c4ed704b381b8cb3c77db4986a653f938e3bd7563d4a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:714-723 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:957-966 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:928-937 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:843-852 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:887-896 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:817-826 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:853-861 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060QwenImagePipelineOutput\u0060 names \u0060..qwenimage.pipeline_output\u0060 in one and \u0060.pipeline_output\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89468a37e8036a5b24e9970005cd4ece6010f2a3f831d93950c142acede4933"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): src/diffusers/schedulers/scheduling_euler_discrete.py:225-233 | src/diffusers/schedulers/scheduling_heun_discrete.py:167-175 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:163-171 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:162-170 | src/diffusers/schedulers/scheduling_lms_discrete.py:159-167 | src/diffusers/schedulers/scheduling_sasolver.py:191-199 | src/diffusers/schedulers/scheduling_unipc_multistep.py:233-241 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_euler_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_heun_discrete.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_euler_discrete.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2135df50a937fbbd61b5d1404e11dc348d5692c821c846487fbbb873f8e59c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1168-1178 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:923-931 | src/diffusers/pipelines/sana/pipeline_sana.py:905-913 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:989-997 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:939-947 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1105-1113 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video.py:951\u0060 calls \u0060to\u0060 and \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:934\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"871dff23851d65f57c13c5d9216308d34ea64ae3f85f26e477b6e952b7a997ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): examples/community/pipeline_stable_diffusion_pag.py:89-97 | examples/community/pipeline_stable_diffusion_pag.py:130-138 | examples/community/pipeline_stable_diffusion_pag.py:204-212 | examples/community/pipeline_stable_diffusion_pag.py:245-253 | src/diffusers/models/attention_processor.py:5064-5072 | src/diffusers/models/attention_processor.py:5164-5172 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bbcb966dbbee1fde1008c3445ffed65c950e10a720fc092665a09ddec781d4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2207-2215 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1457-1465 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1820-1828 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1485-1493 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1294-1302 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1325-1333 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 299 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1815\u0060 calls \u0060rescale_noise_cfg\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1452\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"c772c673e3f8e12aa0fd9cc4008fc245cac0fdc1caeb5bd93faf697800be1d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 6): examples/community/pipeline_stg_ltx.py:748-754 | examples/community/pipeline_stg_ltx_image2video.py:820-826 | src/diffusers/pipelines/ltx/pipeline_ltx.py:725-731 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:797-803 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:651-659 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:800-808 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py:725\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":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec03f1ea7cb8183bf18cdb6e6a15b1cb0d09cdacd0766e61867a1c8cfc33675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): examples/community/stable_diffusion_tensorrt_inpaint.py:845-853 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:957-965 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:362-370 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:908-916 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:780-788 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:755-763 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_tensorrt_inpaint.py:845\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":"examples/community/stable_diffusion_tensorrt_inpaint.py"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"6397f75fefe6cd1eba17ca39a07a0615d31d252aaa5c75209e5b592f87d0f89d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 6): src/diffusers/models/attention_processor.py:1015-1022 | src/diffusers/models/transformers/transformer_glm_image.py:285-292 | src/diffusers/models/transformers/transformer_hunyuan_video.py:69-77 | src/diffusers/models/transformers/transformer_hunyuanimage.py:70-78 | src/diffusers/models/transformers/transformer_motif_video.py:77-84 | src/diffusers/models/transformers/transformer_motif_video.py:134-142 \u2014 there are 6 copies across 5 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 6 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"315e7780cbfbc20a483452d107035a40a184f5b3ddf72952073553a5523ce522"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:372-380 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:344-352 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:302-310 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:321-329 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:287-295 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:331-339 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:372\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a012f14ccbef7b1987b064c3f92ff215cfcb8d51318db805f6fcdd94b1f4d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:203-212 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:267-276 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:249-258 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:210-219 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:220-229 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:268-277 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f859abe31a4b69f7bd2c3808ccecd3dab6600487025f3fe3dd6e91e0fa95a86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 6): src/diffusers/schedulers/scheduling_deis_multistep.py:217-222 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:303-311 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:239-247 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:218-223 | src/diffusers/schedulers/scheduling_sasolver.py:220-225 | src/diffusers/schedulers/scheduling_unipc_multistep.py:265-270 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:303\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"524045aff954cd3175601f1473515054c74bb0cb1bc57553540aa531cf4924bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 5): examples/community/adaptive_mask_inpainting.py:257-265 | examples/community/stable_diffusion_repaint.py:82-90 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:103-109 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:182-190 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:180-188 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/stable_diffusion_repaint.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7150f7595cbf2e4a07bd4e63be6128fda5f06d57750a62b90c32bb2465bfcee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): examples/community/pipeline_demofusion_sdxl.py:929-937 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1275-1283 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1287-1295 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:867-875 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1219-1227 \u2014 before extracting anything, compare \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 509 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"403b587857009dc1d28fe25ad8a8f8e5202c74fd846f4aecf115b8749503070a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 5): examples/community/pipeline_sdxl_style_aligned.py:234-241 | examples/community/pipeline_stable_diffusion_pag.py:97-105 | examples/community/pipeline_stable_diffusion_pag.py:212-220 | src/diffusers/models/attention_processor.py:5072-5080 | src/diffusers/models/attention_processor.py:5172-5180 \u2014 before extracting anything, compare \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_pag.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29518a36f0f4e04926444014c5917bccfdb565eef0c4191410e3f7753b9dd87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:251-259 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:241-249 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:204-212 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:220-228 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:220-228 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 914 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:261\u0060 calls \u0060hasattr\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:252\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e941ae43d7f48125e57c57e3e650e456fd500b9616485313312f130f2e88f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): examples/community/pipeline_stg_cogvideox.py:246-254 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:192-200 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:199-207 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:209-217 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:215-223 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060VideoProcessor\u0060 names \u0060...video_processor\u0060 in one and \u0060diffusers.video_processor\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"c971ca61ff79e2358e0966279af1f37e0e67447e14b7c37d12d1c97a5bd820ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): src/diffusers/loaders/single_file_utils.py:3996-4004 | src/diffusers/loaders/single_file_utils.py:4113-4121 | src/diffusers/loaders/single_file_utils.py:4203-4211 | src/diffusers/loaders/single_file_utils.py:4264-4272 | src/diffusers/loaders/single_file_utils.py:4296-4304 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/loaders/single_file_utils.py:4110\u0060 calls \u0060update_state_dict\u0060, \u0060pop\u0060 and \u0060src/diffusers/loaders/single_file_utils.py:4201\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":3996}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e69ad22bf24a052c5b02162d324c1afee6290e3e39cccce93632c264dd58462"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): src/diffusers/models/transformers/hunyuan_transformer_2d.py:507-515 | src/diffusers/models/transformers/transformer_sd3.py:206-214 | src/diffusers/models/unets/unet_3d_condition.py:385-393 | src/diffusers/models/unets/unet_i2vgen_xl.py:348-356 | src/diffusers/models/unets/unet_motion_model.py:1790-1798 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/hunyuan_transformer_2d.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa19647c993be54df20c055ee5a40676d2ea0fb98e6cd6997b4955a8cfaff58b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): src/diffusers/models/transformers/transformer_ltx.py:66-74 | src/diffusers/models/transformers/transformer_ltx2.py:165-173 | src/diffusers/models/transformers/transformer_ltx2.py:245-253 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:149-157 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:230-238 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx.py\u0060 and \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx.py:66\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, \u0060src/diffusers/models/transformers/transformer_ltx2.py:177\u0060 calls \u0060to_gate_logits\u0060 and \u0060src/diffusers/models/transformers/transformer_ltx.py:76\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":"src/diffusers/models/transformers/transformer_ltx.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e80a9ad45f5f9a4045f0c845d09782f2ade50b9a3d7147e8dc6ab86297e8a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 5): src/diffusers/models/transformers/transformer_ltx2.py:214-222 | src/diffusers/models/transformers/transformer_ltx2.py:307-315 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:198-206 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:292-300 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:877-884 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"8612dff0013a841827faa0873ae4c11230ea65b651fa6b9604783e211d26ecb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:735-747 | src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:291-299 | src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:401-409 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:562-570 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:741-753 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.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 4 separate duplicated blocks between them, totalling at least 58 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060MiniMaxH3ImageModularPipeline\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, \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:748\u0060 calls \u0060video_latent_num_frames\u0060 and \u0060src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:300\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17d56ad391516a5dfced165897462bb55cc21cfa8be0863af82b7a00a116574"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 5): src/diffusers/modular_pipelines/qwenimage/encoders.py:740-748 | src/diffusers/modular_pipelines/qwenimage/encoders.py:876-884 | src/diffusers/modular_pipelines/qwenimage/encoders.py:1006-1014 | src/diffusers/modular_pipelines/qwenimage21/encoders.py:369-376 | src/diffusers/modular_pipelines/qwenimage21/encoders.py:505-512 \u2014 \u0060src/diffusers/modular_pipelines/qwenimage/encoders.py\u0060 and \u0060src/diffusers/modular_pipelines/qwenimage21/encoders.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 4 separate duplicated blocks between them, totalling at least 58 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/qwenimage/encoders.py:751\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/modular_pipelines/qwenimage/encoders.py:886\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":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"586fa9a13cf5aaf85355bf200e2a069c76bc2335fa91f730f7122a5351d893af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1342-1350 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1767-1775 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1302-1310 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2173-2181 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1420-1428 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1342\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3a6e2e9a70359259ffe2cc0a7cfc615caa754830bce55fe31b0ad9d47ad038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:646-654 | src/diffusers/schedulers/scheduling_deis_multistep.py:953-961 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1243-1251 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:1062-1070 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:769-777 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:646\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca2709527e590800a2a202d83ddf7510df854153ff540216c9ac978b64fe436"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 5): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:992-998 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:845-851 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:904-910 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1022-1030 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:592-598 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:992\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, \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1030\u0060 calls \u0060exp\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:998\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":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1aad62c83ef9d767fafcb66fd83399df527285f210900f54da1c0d16329645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:207-215 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:173-181 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:172-180 | src/diffusers/schedulers/scheduling_lms_discrete.py:169-177 | src/diffusers/schedulers/scheduling_pndm.py:139-147 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 200 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b884c0a2f76572247336a38efa1677b7816f74e488e863b8bb1cca4d7638c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): examples/community/composable_stable_diffusion.py:423-431 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:378-386 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:625-633 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:657-665 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 209 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac22cbfc96e6177faf231d33f3443eab00a15a8e26810712b4f03035f3612e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): examples/community/hd_painter.py:879-887 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1514-1522 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1352-1360 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1376-1384 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fb68d959db9f4e3b8cdd6fc2629e6e34c4aae9de775615687b50fac75cf4f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): examples/community/masked_stable_diffusion_xl_img2img.py:261-269 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1041-1051 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1281-1290 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1273-1282 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1041\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"520d809941ce13b3e84dd5c89be01d199c14cde779b580ffaf412cb7fd50ef11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): examples/community/pipeline_flux_kontext_multiple_images.py:614-622 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:603-611 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:677-685 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:395-402 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:614\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:405\u0060 calls \u0060do_classifier_free_guidance\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py:613\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b206f712f4e0a21136c115649d79e2f2e15c5eabb213f771143da27e97cfe27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:733-741 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:596-604 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:891-899 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:549-557 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ade4dccdc3bb3360736d366001f0f18902c27ec16f59486cfeb5c1f82bd83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): examples/community/pipeline_stg_mochi.py:758-766 | src/diffusers/pipelines/allegro/pipeline_allegro.py:867-876 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:690-699 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:818-827 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py:867\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb58ee17dd29ceadda59d0c90b4240385ce327b28c34184ef1e497471a105f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20139 lines \u00D7 11): src/diffusers/loaders/lora_conversion_utils.py:1191-1194 | src/diffusers/loaders/lora_conversion_utils.py:1198-1201 | src/diffusers/loaders/lora_conversion_utils.py:1206-1209 | src/diffusers/loaders/lora_conversion_utils.py:1302-1305 | src/diffusers/loaders/lora_conversion_utils.py:1317-1320 | src/diffusers/loaders/lora_conversion_utils.py:1421-1429 | src/diffusers/loaders/lora_conversion_utils.py:1432-1440 | src/diffusers/loaders/lora_conversion_utils.py:1444-1450 | src/diffusers/loaders/lora_conversion_utils.py:1454-1460 | src/diffusers/loaders/lora_conversion_utils.py:1536-1537 | src/diffusers/loaders/lora_conversion_utils.py:1553-1554 \u2014 all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/lora_conversion_utils.py:1191\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/loaders/lora_conversion_utils.py:1194\u0060 calls \u0060chunk\u0060, \u0060pop\u0060 and \u0060src/diffusers/loaders/lora_conversion_utils.py:1429\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e191048b002be7ba544c74d19d55b4dd0c3c516e2daeaa7494ffd58fb6087447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/diffusers/loaders/lora_conversion_utils.py:1752-1760 | src/diffusers/loaders/single_file_utils.py:2506-2514 | src/diffusers/loaders/single_file_utils.py:2613-2621 | src/diffusers/loaders/single_file_utils.py:2685-2693 \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. 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":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb8d80d1e320794ccc676315ad6026a239c71f92cfb429ec90249704decba93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:581-589 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:703-711 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:530-538 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:662-670 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:715\u0060 calls \u0060upsampler\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:591\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15fabbcda08ad0d9cfdba21597ec4f63268ec75d9a0114d3d4b0c668adb86a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20139 lines \u00D7 6): src/diffusers/models/transformers/transformer_bria.py:142-150 | src/diffusers/models/transformers/transformer_bria_fibo.py:88-96 | src/diffusers/models/transformers/transformer_flux.py:212-213 | src/diffusers/models/transformers/transformer_longcat_image.py:89-97 | src/diffusers/models/transformers/transformer_ovis_image.py:89-97 | src/diffusers/models/transformers/transformer_pan2.py:104-105 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_bria.py:151\u0060 calls \u0060unflatten\u0060 and \u0060src/diffusers/models/transformers/transformer_flux.py:215\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50829e96ebb0f84cc1d43723fce428b3e0517831cac51f552be154cc07723e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/models/transformers/transformer_chronoedit.py:218-227 | src/diffusers/models/transformers/transformer_helios.py:199-208 | src/diffusers/models/transformers/transformer_wan.py:213-222 | src/diffusers/models/transformers/transformer_wan_animate.py:687-696 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaabbd6a1bd829c88d0cf96bc4a90cfd8b29cd4ef98c92c11348f16d8f6fcbc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/diffusers/models/transformers/transformer_chronoedit.py:292-300 | src/diffusers/models/transformers/transformer_skyreels_v2.py:288-296 | src/diffusers/models/transformers/transformer_wan.py:286-294 | src/diffusers/models/transformers/transformer_wan_animate.py:761-769 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"334a91fd78bc75c5376bb27f39f2a1730c57a79a65d2b742d9136de6f28d235e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/diffusers/models/transformers/transformer_chronoedit.py:303-311 | src/diffusers/models/transformers/transformer_skyreels_v2.py:299-307 | src/diffusers/models/transformers/transformer_wan.py:297-305 | src/diffusers/models/transformers/transformer_wan_animate.py:772-780 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"365057387f68ead139a9e0b9e14b5efe9896e20afad4b542d3a4abb58ab2c5d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 4): src/diffusers/models/transformers/transformer_easyanimate.py:132-138 | src/diffusers/models/transformers/transformer_hunyuan_video.py:63-71 | src/diffusers/models/transformers/transformer_hunyuanimage.py:64-72 | src/diffusers/models/transformers/transformer_motif_video.py:128-136 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_easyanimate.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f94bedda62ed7af0543be484cd9bfa424d49f51ce799bf081678ff9d00c53e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): src/diffusers/modular_pipelines/anima/encoders.py:303-311 | src/diffusers/modular_pipelines/flux/encoders.py:70-77 | src/diffusers/modular_pipelines/qwenimage/encoders.py:234-242 | src/diffusers/modular_pipelines/qwenimage21/encoders.py:175-183 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/anima/encoders.py:303\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/encoders.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"656102a247615a2fc49b5e7e932cffb237ddf6c961724b32f51820ed131a3fc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 4): src/diffusers/modular_pipelines/ernie_image/denoise.py:220-226 | src/diffusers/modular_pipelines/ideogram4/denoise.py:292-300 | src/diffusers/modular_pipelines/krea2/denoise.py:275-283 | src/diffusers/modular_pipelines/pan2/denoise.py:225-233 \u2014 \u0060src/diffusers/modular_pipelines/krea2/denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/pan2/denoise.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 3 separate duplicated blocks between them, totalling at least 35 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. 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 \u0060components\u0060 to \u0060ErnieImageModularPipeline\u0060 in one and \u0060Ideogram4ModularPipeline\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":"src/diffusers/modular_pipelines/ernie_image/denoise.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4fa37c6cd082a612fb006d72e45692bac1252c6684ed4c608250c136d9e0d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): src/diffusers/modular_pipelines/flux2/inputs.py:227-235 | src/diffusers/pipelines/flux2/pipeline_flux2.py:894-901 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:773-780 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:723-730 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/flux2/inputs.py:227\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/inputs.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"061075570eec7fbe8f4b1668a313a65099e4e887aa1935dabcb37b6ef4ef0f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1221-1229 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1389-1397 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1513-1521 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1560-1568 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 114 separate duplicated blocks between them, totalling at least 1756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"702b51b61977e8a45d3e0037cf3268be2808d575d28e3fb4412ed118e0557732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:725-736 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:839-850 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:669-680 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1101-1109 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:725\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/wan/pipeline_wan_animate.py:1098\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:725\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7bbbf6a0cf8a72b6a5808ea3967a27804181b7a9fd0457d62b7bfbabfa28a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 4): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:404-412 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:296-301 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:297-304 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:552-557 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:404\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, \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:294\u0060 calls \u0060cat\u0060, \u0060to\u0060, \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:297\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2c9d7f841d6a2d8ad99fcf3af1928b388c5ed7a66c913c5c3ed8157b8c5e75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/diffusers/pipelines/krea2/pipeline_krea2.py:411-419 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:378-386 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:446-454 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:428-436 \u2014 \u0060src/diffusers/pipelines/krea2/pipeline_krea2.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.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 35 separate duplicated blocks between them, totalling at least 384 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcc67846e508e8b782bc22a07d32d16a8167ade843f4d317509f7820cb67dd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 4): src/diffusers/schedulers/scheduling_dpmsolver_sde.py:722-730 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:437-443 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:644-652 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:623-631 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_sde.py\u0060 and \u0060src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 155 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_sde.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25eb50ffb7ba2799e07f508a65db098421291054509cc7eddf882d379e8bd57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/diffusers/schedulers/scheduling_unipc_multistep.py:387-395 | src/diffusers/schedulers/scheduling_unipc_multistep.py:403-411 | src/diffusers/schedulers/scheduling_unipc_multistep.py:419-427 | src/diffusers/schedulers/scheduling_unipc_multistep.py:442-450 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_unipc_multistep.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2b7f60f836c6887ebbee00c0657b594fa037926a49de1f763a529920c1e223"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): examples/community/latent_consistency_img2img.py:104-112 | examples/community/latent_consistency_txt2img.py:102-110 | src/diffusers/pipelines/shap_e/pipeline_shap_e.py:153-161 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f9ddedd9def7740ab00c4b01c9d5f68f29bd996d3e6e571091a2ce1d5273f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): examples/community/pipeline_controlnet_xl_kolors.py:1201-1207 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1063-1071 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1229-1236 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_ipex.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b024162929ec9570d102016a59f7f57cd3f6492c133ec6e360505d8aa8097f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): examples/community/pipeline_flux_with_cfg.py:796-804 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:918-926 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:988-996 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:918\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbff269ab0c0e394a4cf456cf0623a58e28df999e5d5f2c0d716d05f838680af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:256-265 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:297-306 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:289-298 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1088 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060StableDiffusionXLWatermarker\u0060 names \u0060..stable_diffusion_xl.watermark\u0060 in one and \u0060.watermark\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:308\u0060 calls \u0060set_pag_applied_layers\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:268\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":"examples/community/pipeline_stable_diffusion_xl_differential_img2img.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8dbb019e52858c284c63e5af6bba8a5a18de629c5517d0691da4228356f12c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:99-106 | examples/community/pipeline_stable_diffusion_xl_instantid.py:99-106 | src/diffusers/models/transformers/consisid_transformer_3d.py:54-62 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9cbca2258f675132b31f397aa4bac21b1aaa5fee5757729ed297bd41a901ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): examples/research_projects/anytext/anytext_controlnet.py:58-66 | examples/research_projects/anytext/anytext_controlnet.py:79-87 | src/diffusers/models/embeddings.py:1650-1658 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f910e5b1604787d6eb126801ed8e2daf838f5f343975a1e00dede53e440896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/loaders/single_file_utils.py:1294-1302 | src/diffusers/loaders/single_file_utils.py:1344-1352 | src/diffusers/loaders/single_file_utils.py:1425-1433 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae808c2d34ee52db12918968bd962fdda1ed927e03325627061983ce5f76ba1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:348-359 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:357-368 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:353-364 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aef9814d25d33a9f35951d05e5f8aabf67bd3716bb254d377301210e35331d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:453-461 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:615-623 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:601-609 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af54be6afb219127f821fd280a854f8e5eb130b98e99e21d6db8886b1bfa43a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/models/controlnets/controlnet.py:481-489 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:424-432 | src/diffusers/models/controlnets/controlnet_union.py:425-433 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 317 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e582e7a7ea1835fcf520e9ee6380efbc54eb66b35052ab9d0607bbcbe728eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:66-74 | src/diffusers/models/transformers/transformer_bria_fibo2.py:61-69 | src/diffusers/models/transformers/transformer_z_image.py:66-74 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"82723260b4c2eae9046709bec70c9160b4180f17735e815d797b4a7218dd2848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/models/transformers/transformer_anyflow.py:373-381 | src/diffusers/models/transformers/transformer_anyflow_far.py:738-746 | src/diffusers/models/transformers/transformer_sana_wm.py:484-492 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow.py:373\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6c7f2101e50d2374dfd82ad395895826670e4955d1baf64c17684d7d50171a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/models/transformers/transformer_chronoedit.py:631-639 | src/diffusers/models/transformers/transformer_skyreels_v2.py:616-624 | src/diffusers/models/transformers/transformer_wan.py:615-623 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_chronoedit.py:631\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b32d86ccf97d1465f552ebbf343f237474d11a99e9300bd2c041d19abd6c843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): src/diffusers/models/transformers/transformer_ltx.py:575-582 | src/diffusers/models/transformers/transformer_ltx2.py:1661-1669 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1532-1539 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx.py\u0060 and \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx.py:575\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, \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1531\u0060 calls \u0060get\u0060 and \u0060src/diffusers/models/transformers/transformer_ltx.py:574\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx.py"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef93f63f8b350aa221d370cc3cb971705388e295dd407faef9788c4a51a70aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:2850-2858 | src/diffusers/models/unets/unet_2d_blocks.py:2962-2970 | src/diffusers/models/unets/unet_2d_blocks.py:3069-3077 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"f098eba1e85ec785e2194cd346afb808652f3a53972df15071cd1bdb6c625c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/models/unets/unet_3d_condition.py:663-671 | src/diffusers/models/unets/unet_i2vgen_xl.py:642-650 | src/diffusers/models/unets/unet_motion_model.py:2102-2110 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_condition.py\u0060 and \u0060src/diffusers/models/unets/unet_i2vgen_xl.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"235e44dad6f57f3e7e298a5905e2fd0df93d103e21feebc0cc1b543fc384d678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py:38-46 | src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py:40-49 | src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py:115-124 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4ce26bc403d92426db4f2346eb5c03ba4ead515bad1fb67b79008cee3d6220"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/modular_pipelines/flux2/denoise.py:326-341 | src/diffusers/modular_pipelines/krea2/denoise.py:126-143 | src/diffusers/modular_pipelines/pan2/denoise.py:127-135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060Flux2KleinModularPipeline\u0060 in one and \u0060Krea2ModularPipeline\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":"src/diffusers/modular_pipelines/flux2/denoise.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2e90e31d288bc30a5492964c078f4876f168c6bfd2c3b173b781b6fdafb455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:90-98 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:87-95 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:93-101 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61eac4d53f380a75c1f41648a71a58292bd4e2955ced1048982b12872017396"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/modular_pipelines/wan/before_denoise.py:532-540 | src/diffusers/modular_pipelines/wan/encoders.py:522-530 | src/diffusers/modular_pipelines/wan/encoders.py:983-991 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/wan/before_denoise.py:532\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/before_denoise.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c52e5f2ff220be16cf5a2746075f575c87adc87372ecc9197f3a5868591c269"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:433-441 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:388-396 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:398-406 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd08c939e14ea6887605e7b0aaf0e9c64c747421bbbcd38972c660d023ef1246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:363-373 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:441-451 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:809-817 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 216 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:363\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9e1e8abbc284d169337cf692deca0706afe4f3d5e7194164a203f779803f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/pipelines/helios/pipeline_helios.py:761-769 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:837-845 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:898-906 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios.py\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4912198586fd133ea520f0ff4d1d94b73331e2a8a866ee0a373c82c70ea9c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:160-169 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:184-193 | src/diffusers/pipelines/wan/pipeline_wan.py:146-155 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 and \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 229 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:160\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios_pyramid.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ec43ba5186cc4e7c1a16714f12bbfb72d263c96d4a39c15073647764846154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:377-385 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:398-406 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:486-494 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3da21bbe41a25d3f784e3ae8ad72ca0475535910cab56dc8529bd027f7d5ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:181-188 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:312-319 | src/diffusers/pipelines/latte/pipeline_latte.py:264-272 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 318 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:181\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"d618da211ceda5adf59c7a11d02042b5117deb3186e44738c9253c9f6e83c5b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:547-555 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:546-554 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:559-567 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.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 25 separate duplicated blocks between them, totalling at least 336 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b855cdc5cee24a015795a56203c07d6f1ed9b641acd4b65c077b10b09ce1382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:136-144 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:108-116 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:78-86 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:136\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"48933b0d9a99a091681e3b196150319b0b9cffe9976315ea54aebc6b2bb9d373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:547-555 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:586-594 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:415-423 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:547\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:583\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:546\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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"678cdf864b8f7c60766e88e7f0c3c92aa8c09dff2fab3702ce69897ff6a4e066"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:506-517 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:406-414 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:491-499 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:506\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da0db757c3f73f8f84eb9d62e15f3df340ca981c5d4c2af32ee961cf5241361"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/pipelines/lumina/pipeline_lumina.py:796-804 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:763-771 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:805-813 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 464 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py:796\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"f138de38c6303cd766ef4ebb5d468a66d3fda532312d825d428e50f1584b23bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_sana.py:801-809 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:890-898 | src/diffusers/pipelines/sana/pipeline_sana.py:872-880 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:801\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sana.py"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"995dc644a3ff9749f14e652962d38dc377b4d177de2d446f49b03e369ec52969"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:274-282 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:297-305 | src/diffusers/schedulers/scheduling_edm_euler.py:300-308 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 484 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0465a535f4d327a218ae535bafad55bf4db609292f50cda13a1e7b259465524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/schedulers/scheduling_deis_multistep.py:341-349 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:484-492 | src/diffusers/schedulers/scheduling_unipc_multistep.py:465-473 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2a993b410da6481001de70f7d7dc879c0fb1ef7175dc216f50d77504aefb76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 3): src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:298-303 | src/diffusers/schedulers/scheduling_euler_discrete.py:411-419 | src/diffusers/schedulers/scheduling_lms_discrete.py:309-314 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_euler_discrete.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 282 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_euler_discrete.py:411\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3313028a3c34928d3f562af6afa8c5884a503fb10504c21603aa33d50cf497"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/community/llm_grounded_diffusion.py:1016-1024 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:786-794 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 644 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/llm_grounded_diffusion.py:1013\u0060 calls \u0060tensor\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:783\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":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"d472e656d9e1d8d122072677652e123730817c690ab7f92edefda99e18edac52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): examples/community/pipeline_flux_with_cfg.py:308-316 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:194-201 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfc63cfb91c33b76a38dd85235577fc4dbf47e8143661cfbf8e41de190c3621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1285-1293 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:899-906 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py\u0060 as WHOLE FILES: this scan already matched 62 separate duplicated blocks between them, totalling at least 828 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b340a41a1c8206171992f08139235b64a7282b58ba114c2bd5dccd9e213a5a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1362-1370 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:910-918 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_differential_img2img.py"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"8787aa740f853e0239a8b4eea7422340f8ea387ef05b24d82d21075c0684cbb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): examples/community/pipeline_stg_ltx_image2video.py:547-555 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:519-526 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 808 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:519\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx_image2video.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9771f022d6a4eda43a69bf8169a64a201da91ba4e4441c1a29c90646eaf597c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/community/stable_diffusion_controlnet_inpaint_img2img.py:517-525 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:581-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py:517\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint_img2img.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5c6ac10453997cbd3df5e85587626ceb36b24695c7a0ba0cdb2dd8d56e9070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20139 lines \u00D7 3): examples/research_projects/anytext/anytext_controlnet.py:383-385 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:312-320 | src/diffusers/models/controlnets/controlnet.py:728-736 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext_controlnet.py\u0060 and \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:312\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/anytext/anytext_controlnet.py:383\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"719ec8dabbe7b7b330a187f1f1d020d15ed617d33c14b4b8d76b62366ccf5e12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/loaders/single_file_utils.py:3896-3909 | src/diffusers/loaders/single_file_utils.py:3942-3950 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":3896}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a670a58612934e5f1b8f50fbf6147a0bd9bac293442bd513321c7933a691176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:1240-1248 | src/diffusers/models/attention_dispatch.py:1365-1373 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacda98ba017a17f6ac32ea7be5454ead663e82ee650814fe2e094830b0450fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/attention_processor.py:2544-2552 | src/diffusers/models/attention_processor.py:3850-3858 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2544}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d09dfb780ac846899ec974b42104d9c28bf00d2de76032932d3c726752bf3e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/attention_processor.py:3626-3634 | src/diffusers/models/transformers/transformer_lumina2.py:120-128 \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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3626}}}],"partialFingerprints":{"codehealthFindingId/v1":"7022f42056880b802b2951a9f5d61e4f453f941d418f45e09f3a556564de739b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:196-206 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:231-241 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"417459c4279314ca25d98d8be367f17ed02a098100898c16fe9ebf8b4885efda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:235-243 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:276-284 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5667dc2fddcc7f002813b1c66646d1ac13a962306e6799a9726fc91e152334f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1009-1022 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:999-1012 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"0618dfdc2356eb0081e232cac34c647c4feca79b83292d671f314ef5b69385de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:362-370 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:352-360 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b0d4786b92e9379ade65792df4329beead99a0e439fe083588f4049b62ba85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_tiny.py:182-190 | src/diffusers/models/autoencoders/autoencoder_tiny.py:230-238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_tiny.py:182\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_tiny.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ae3085abb8f7e3ef3af37e9f7baff09e2343a2f27a118bad0bc746e1c86e1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/diffusers/models/controlnets/controlnet.py:82-96 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:70-83 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 317 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a29ec068bacb840d433a04c27939d4ecaed65d1cb9c9c8b4f49e4b42d76ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_xs.py:327-335 | src/diffusers/models/controlnets/controlnet_xs.py:569-577 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_xs.py:327\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"960e819691a71db79679f2316d111da87197839d53489924341327a142026ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/diffusers/models/resnet.py:122-130 | src/diffusers/models/resnet.py:282-289 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/resnet.py:280\u0060 calls \u0060GroupNorm\u0060 and \u0060src/diffusers/models/resnet.py:120\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/resnet.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fedf54d93b2f75cd47a9543d69ad22feaf976e3f4a8841da842596f609c907"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/sana_transformer.py:101-109 | src/diffusers/models/transformers/transformer_sana_video.py:256-264 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/sana_transformer.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_video.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd2fe7c9a346981a123cd66d7d623824726b75c7135de88c68f8f1f49be6596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_2d.py:202-210 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:474-482 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_2d.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_2d.py:202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54c8a30fabea4b8e8fdb70bcfddd191b12e1e4d26fb03cce32c0a332ed389b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/diffusers/models/transformers/transformer_helios.py:746-754 | src/diffusers/models/transformers/transformer_helios.py:766-773 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_helios.py:746\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, \u0060src/diffusers/models/transformers/transformer_helios.py:764\u0060 calls \u0060pad_for_3d_conv\u0060, \u0060center_down_sample_3d\u0060, \u0060flatten\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py:746\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":"src/diffusers/models/transformers/transformer_helios.py"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a90a6d4f667e0f4719e55e45c49c2aca383162512b096620c77deb6cdc2c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video.py:532-540 | src/diffusers/models/transformers/transformer_hunyuanimage.py:482-490 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:532\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89e80206c5c7c99559f7ac2a8df21465bf1105e0cbd864d5efed42e5a56185c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/models/transformers/transformer_joyimage.py:200-218 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:160-178 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_joyimage.py\u0060 and \u0060src/diffusers/models/transformers/transformer_joyimage_edit_plus.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d05fefb71f4f99fc0eab33d91d0c535f9d600e068138c9e401ecac16af08ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky.py:353-361 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:230-238 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf3dafa1892ba6566ad8da6438dbf688cb598a48ffb39ab4021ec41cc3dcda0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_longcat_image.py:452-460 | src/diffusers/models/transformers/transformer_sd3.py:164-172 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_longcat_image.py:452\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_longcat_image.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"324a6e9c1b63bba7bb8729e5527f05996048363a71cb9eb5d212828bceee334e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:389-397 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:375-383 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cc1ae7aefc0b3e79d62e8b8eab5211edf92922c436cd82bdc08e7cd8ca8743"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:1233-1243 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1253-1261 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx2.py:1233\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a2a4f38337198e8194d67736fd908f79978da10718ccc019b11c4951372ac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/diffusers/models/transformers/transformer_lumina2.py:102-110 | src/diffusers/models/unets/unet_dreamlite.py:344-351 \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":"src/diffusers/models/transformers/transformer_lumina2.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9908ee14899e8c86a36c779db0d658f00f2dba28dedb06d4083c10cb485deca0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_video.py:642-650 | src/diffusers/models/transformers/transformer_wan_animate.py:1208-1220 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_wan_animate.py:1208\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_video.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"995a3fb7b2818049ae1d6ddec55914261728c24ea3ea355f4ce8e8bead2a5240"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm.py:1072-1080 | src/diffusers/models/transformers/transformer_sana_wm.py:1215-1223 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa1d092231248b694e64c94a93741ada37994fd5346e1ecb25e7190af5dd531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm.py:1120-1128 | src/diffusers/models/transformers/transformer_sana_wm.py:1252-1260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1db38f63cf7af8416bae5a7d3ec058ca3cd6f1a0c97d2d5f3f14da207d8f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm.py:1592-1603 | src/diffusers/models/transformers/transformer_sana_wm.py:2153-2164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5c2edf6e95e65599d5174926d893c6c60639017ddf680c28c60abb4db0aa38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_temporal.py:189-197 | src/diffusers/models/unets/unet_motion_model.py:202-210 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_temporal.py\u0060 and \u0060src/diffusers/models/unets/unet_motion_model.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_temporal.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e9213ef153e3f6430aaf14a2a16783da33b01920d19a2e3c775de367abe5fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_z_image.py:794-802 | src/diffusers/models/transformers/transformer_z_image.py:880-888 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_z_image.py"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d156d2a66be847a0d36d5483711a916062eba6e19e2c10b89f2f65c0ee3471"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/unets/unet_1d_blocks.py:54-62 | src/diffusers/models/unets/unet_1d_blocks.py:116-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_1d_blocks.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca1057adde5bb7ade80884a745ed61a2cac8d1a7e45b752cad3ab98eb2b4fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/modular_pipelines/flux/decoders.py:152-161 | src/diffusers/modular_pipelines/stable_diffusion_3/decoders.py:72-80 \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":"src/diffusers/modular_pipelines/flux/decoders.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc13b09b661080fbc44deda6aae494e8d20a2e8c5b30e38813617c3684203f05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/diffusers/modular_pipelines/flux/denoise.py:182-189 | src/diffusers/modular_pipelines/flux2/denoise.py:118-126 \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 \u0060src/diffusers/modular_pipelines/flux/denoise.py:182\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060FluxModularPipeline\u0060 in one and \u0060Flux2ModularPipeline\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":"src/diffusers/modular_pipelines/flux/denoise.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bec670405fd397dad7467f8fe9b478e8d7093a019e80c7cbbec4a4b5bd6b96c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/modular_pipelines/flux/encoders.py:73-81 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:62-70 \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 \u0060src/diffusers/modular_pipelines/flux/encoders.py:73\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":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fb982c78cb40b7a3016780042e9dc4e7e3ce58d6d084da70a657aafecd31ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/modular_pipelines/flux3/denoise.py:109-117 | src/diffusers/modular_pipelines/flux3/denoise.py:186-194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux3/denoise.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"984c65e5f12f3ff4e394558c3c4734cc243424e5c9bf2edbe1c509f01b2c80f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/modular_pipelines/helios/before_denoise.py:417-425 | src/diffusers/modular_pipelines/helios/before_denoise.py:524-532 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8496e09130db36bd9407a1fbedd052d271d56b79dc36d4f055ed1302779c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/diffusers/modular_pipelines/ltx2/denoise.py:489-497 | src/diffusers/modular_pipelines/ltx2/denoise.py:626-633 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/ltx2/denoise.py:489\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":"src/diffusers/modular_pipelines/ltx2/denoise.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c88173895ed5e633ef57622668d4603f229d6c8360dea98b278227d94ce11f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:222-228 | src/diffusers/modular_pipelines/qwenimage21/before_denoise.py:197-205 \u2014 \u0060src/diffusers/modular_pipelines/qwenimage/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/qwenimage21/before_denoise.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 7 separate duplicated blocks between them, totalling at least 109 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060QwenImageModularPipeline\u0060 in one and \u0060QwenImage21ModularPipeline\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":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce340250fd337d17fac0c881813c8114876c653be689b893b9d25f841acd4d75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:525-531 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:637-645 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"4155f94147e2dab7a08f558185281e96ebdacd8f6472a01093736698d4868d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:756-764 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:1055-1065 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:1055\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ec8d1ac7207e693eed224f5904a98431767cf5f5917a4aaa4917ffe7eb438b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:365-373 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:375-383 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"473617e91b57a288b08c987072c4c3ef23050496aea0cec886bd76e103eecbbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:360-372 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:367-379 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py\u0060 and \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"681520ef36155a4b6eae34edf48d4701b8d795b71b582a0311ab2f00fbf6c342"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:624-632 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:661-669 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 742 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d3641c25a87190e0822abeda3c4cb62c4fd63ff9334d8a27d33490ffd5cc5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py:360-368 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:606-614 \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":"src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"404ebf84dcfe057d3d7d0065cf1566917fb284f919660dda51abdad4f2ceb7c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:849-856 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:719-727 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:848\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:718\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f78b131d4631d544e8421713c7f5e692666e2a1ec24dd0f488a918a0ea55451"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:233-241 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:231-239 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"1008c3731038ad28303227556cbe58fa0725e9e8fc9ffca9998e44a0726f5a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:975-983 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1123-1131 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"034a9e31401283518231abe7621e65b3817e5e06de4bdb0b760a258a7d022aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx.py:785-793 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:1331-1340 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 258 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:1331\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c331d1dd54631999718b58e95894298a314b01caddd184c5c6d5bce423d3466"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1533-1540 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2468-2476 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 903 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"06048685b0806252eb078da209a097c4f82b67fba944dc2c3e662e90312c3bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/ltx2/vocoder.py:239-247 | src/diffusers/pipelines/ltx2/vocoder.py:258-266 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/vocoder.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"2453930647b9a57b6b1b7de3a14a172f42a2fbdfc0da86d8f71b13dd28b5ed6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:163-171 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:161-170 \u2014 \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.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 32 separate duplicated blocks between them, totalling at least 343 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":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e909b96822451b9020542728e33202c00bd705c8bc14f705150f8dfd68dfbf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1194-1202 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1391-1399 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f40c93db3db9fcd4a4400f85ea13f7d400d50768baa1e3fccc9d0c5ce8fd6c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1363-1371 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1328-1336 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py\u0060 as WHOLE FILES: this scan already matched 92 separate duplicated blocks between them, totalling at least 1303 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1326\u0060 calls \u0060callback\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1361\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"754dad6263be7a2e248247f67f41ef0b48d9140c425926269100f63f3fcbdb66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:408-416 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:432-440 \u2014 \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_i2v.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 49 separate duplicated blocks between them, totalling at least 572 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":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1a60167ffbc3ee8bba18e59b3a1e22c73711e1c62aaa30dd1d4c2e8021bde5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/schedulers/scheduling_amused.py:157-165 | src/diffusers/schedulers/scheduling_amused.py:214-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_amused.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"31df41653df4d2d043c9e9e1bc5ff13acbf66f000956ffa2a94f73a8da94ed8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_sde.py:288-296 | src/diffusers/schedulers/scheduling_heun_discrete.py:183-191 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_sde.py\u0060 and \u0060src/diffusers/schedulers/scheduling_heun_discrete.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_sde.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"6947510a7b87deb87ddb5f75a26aef815d104b560a6998e89d0aabae912fa606"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:245-256 | src/diffusers/schedulers/scheduling_helios_dmd.py:222-233 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_helios.py\u0060 and \u0060src/diffusers/schedulers/scheduling_helios_dmd.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"400043d560a3f90301cf92e45cd802cdda9bdad25da70abc9f9540c02d5c69cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:349-357 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:334-342 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bae02d93aa3ded9c3ac133fff0d66b83857ba3c140cb145cbdabb224aa68e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/utils/state_dict_utils.py:339-347 | src/diffusers/utils/state_dict_utils.py:384-392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/utils/state_dict_utils.py:339\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/state_dict_utils.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddf4cd59c7353ec6aa06cc444c37fee051cdfd09a5cb76bbd2c200fa40155f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 156): examples/community/adaptive_mask_inpainting.py:715-722 | examples/community/fresco_v2v.py:1751-1758 | examples/community/gluegen.py:479-486 | examples/community/instaflow_one_step.py:455-462 | examples/community/ip_adapter_face_id.py:736-743 | examples/community/lpw_stable_diffusion.py:691-698 | examples/community/matryoshka.py:4109-4116 | examples/community/pipeline_animatediff_controlnet.py:516-523 | examples/community/pipeline_animatediff_img2video.py:628-635 | examples/community/pipeline_animatediff_ipex.py:485-492 | examples/community/pipeline_controlnet_xl_kolors.py:517-524 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:563-570 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:614-621 | examples/community/pipeline_hunyuandit_differential_img2img.py:580-587 | examples/community/pipeline_kolors_differential_img2img.py:517-524 | examples/community/pipeline_kolors_inpainting.py:724-731 | examples/community/pipeline_prompt2prompt.py:498-505 | examples/community/pipeline_stable_diffusion_boxdiff.py:865-872 | examples/community/pipeline_stable_diffusion_pag.py:865-872 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:429-436 | examples/community/pipeline_stg_cogvideox.py:453-460 | examples/community/pipeline_stg_ltx.py:416-423 | examples/community/pipeline_stg_ltx_image2video.py:440-447 | examples/community/pipeline_stg_mochi.py:423-430 | examples/community/regional_prompting_stable_diffusion.py:745-752 | examples/community/rerender_a_video.py:413-420 | examples/community/stable_diffusion_controlnet_img2img.py:423-430 | examples/community/stable_diffusion_controlnet_inpaint.py:520-527 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:469-476 | examples/community/stable_diffusion_ipex.py:516-523 | examples/community/stable_diffusion_reference.py:333-340 | examples/community/stable_diffusion_repaint.py:493-500 | examples/research_projects/anytext/anytext.py:1689-1696 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:505-512 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:603-610 | src/diffusers/pipelines/allegro/pipeline_allegro.py:396-403 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:519-526 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:191-198 | src/diffusers/pipelines/bria/pipeline_bria.py:295-302 | src/diffusers/pipelines/chroma/pipeline_chroma.py:445-452 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:477-484 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:509-516 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:399-406 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:439-446 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:489-496 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:463-470 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:359-366 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:340-347 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:378-385 | src/diffusers/pipelines/consisid/pipeline_consisid.py:591-598 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:627-634 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:605-612 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:631-638 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:508-515 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:500-507 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:372-379 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:399-406 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:553-560 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:404-411 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:556-563 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:511-518 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:603-610 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:630-637 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:314-321 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:481-488 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:419-426 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:351-358 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:479-486 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:176-183 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:548-555 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:674-681 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:707-716 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:460-467 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:497-504 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:630-637 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:639-646 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:406-413 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:526-533 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:498-505 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:514-521 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:448-455 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:433-440 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:400-407 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:435-442 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:498-505 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:983-990 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:277-284 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:248-255 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:446-453 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:557-564 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:599-606 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:421-428 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:310-317 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:439-446 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:524-531 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:479-486 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:426-433 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:278-285 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:343-350 | src/diffusers/pipelines/kolors/pipeline_kolors.py:487-494 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:511-518 | src/diffusers/pipelines/krea2/pipeline_krea2.py:330-337 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:665-672 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:596-603 | src/diffusers/pipelines/latte/pipeline_latte.py:395-402 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:456-463 | src/diffusers/pipelines/ltx/pipeline_ltx.py:390-397 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:482-489 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:414-421 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:489-496 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:542-549 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:303-310 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:319-326 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:564-571 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:495-502 | src/diffusers/pipelines/lumina/pipeline_lumina.py:415-422 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:386-393 | src/diffusers/pipelines/mochi/pipeline_mochi.py:361-368 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:347-354 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:585-592 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:581-588 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:490-497 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:505-512 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:370-377 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:377-384 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:622-629 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:481-488 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:608-615 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:661-668 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:482-489 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:427-434 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:298-305 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:363-370 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:345-352 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:346-353 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:367-374 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:361-368 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:345-352 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:360-367 | src/diffusers/pipelines/sana/pipeline_sana.py:453-460 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:468-475 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:361-368 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:385-392 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:476-483 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:478-485 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:261-268 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:298-305 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:656-663 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:459-466 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:686-693 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:638-645 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:801-808 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:450-457 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:464-471 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:563-570 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:511-518 \u2014 there are 156 copies across 155 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 156 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:715\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:579\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:714\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"360e5959904a40d4444bbb3fdebd54618c7b708f6d396517c8c6530b4ca595eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 136): examples/community/fresco_v2v.py:1213-1220 | examples/community/lpw_stable_diffusion_xl.py:524-531 | examples/community/mod_controlnet_tile_sr_sdxl.py:248-255 | examples/community/pipeline_animatediff_img2video.py:187-194 | examples/community/pipeline_controlnet_xl_kolors.py:116-123 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:136-143 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:123-130 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1111-1118 | examples/community/pipeline_flux_differential_img2img.py:102-109 | examples/community/pipeline_flux_kontext_multiple_images.py:193-200 | examples/community/pipeline_hunyuandit_differential_img2img.py:170-177 | examples/community/pipeline_kolors_differential_img2img.py:72-79 | examples/community/pipeline_kolors_inpainting.py:244-251 | examples/community/pipeline_sdxl_style_aligned.py:376-383 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:73-80 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:107-114 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:440-447 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:106-113 | examples/community/pipeline_stg_ltx_image2video.py:205-212 | examples/community/pipeline_z_image_differential_img2img.py:86-93 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:104-111 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:117-124 | examples/research_projects/anytext/anytext.py:1023-1030 | src/diffusers/modular_pipelines/anima/encoders.py:272-279 | src/diffusers/modular_pipelines/flux/before_denoise.py:110-117 | src/diffusers/modular_pipelines/flux/encoders.py:59-66 | src/diffusers/modular_pipelines/flux2/encoders.py:52-59 | src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py:318-325 | src/diffusers/modular_pipelines/ltx/encoders.py:181-188 | src/diffusers/modular_pipelines/ltx2/encoders.py:770-777 | src/diffusers/modular_pipelines/qwenimage/encoders.py:203-210 | src/diffusers/modular_pipelines/qwenimage21/encoders.py:144-151 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:40-47 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:110-117 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:48-55 | src/diffusers/modular_pipelines/wan/encoders.py:108-115 | src/diffusers/modular_pipelines/z_image/encoders.py:86-93 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:122-129 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:111-118 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:129-136 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:92-99 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:99-106 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:118-125 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:150-157 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:159-166 | src/diffusers/pipelines/consisid/pipeline_consisid.py:240-247 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:106-113 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:118-125 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:76-83 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:151-158 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:81-88 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:178-185 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:77-84 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:68-75 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:152-159 | src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:403-410 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:171-178 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:87-94 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:48-55 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:68-75 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:95-102 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:72-79 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:50-57 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:108-115 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:134-141 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:107-114 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:102-109 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:104-111 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:157-164 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:99-106 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:96-103 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:180-187 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:204-211 | src/diffusers/pipelines/flux2/pipeline_flux2.py:241-248 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:145-152 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:180-187 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:145-152 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:151-158 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:128-135 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:159-166 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:210-217 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:123-130 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:168-175 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:72-79 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:58-65 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:208-215 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:215-222 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:152-159 | src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:34-41 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:155-162 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:112-119 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:141-148 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:132-139 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:150-157 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:118-125 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:94-101 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:124-131 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:124-131 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:153-160 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:82-89 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:82-89 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:87-94 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:121-128 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:134-141 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:122-129 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:95-102 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:145-152 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:146-153 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:148-155 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:50-57 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:53-60 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:153-160 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:138-145 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:166-173 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:118-125 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:123-130 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:179-186 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:117-124 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:58-65 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:89-96 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:58-65 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:73-80 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:47-54 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:98-105 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:97-104 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:118-125 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:145-152 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:89-96 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:140-147 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:117-124 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:131-138 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:164-171 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:118-125 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:118-125 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:79-86 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:95-102 \u2014 there are 136 copies across 135 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 136 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/flux2/encoders.py:62\u0060 calls \u0060Flux2TextEncoderStep\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:78\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e89d5b7599d0e65709e636bf071a539d2092177fca21d87391f45516e8fbba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 91): examples/community/adaptive_mask_inpainting.py:450-457 | examples/community/fresco_v2v.py:1339-1346 | examples/community/gluegen.py:217-224 | examples/community/instaflow_one_step.py:182-189 | examples/community/ip_adapter_face_id.py:265-272 | examples/community/kohya_hires_fix.py:459-466 | examples/community/latent_consistency_img2img.py:65-72 | examples/community/latent_consistency_interpolate.py:269-276 | examples/community/latent_consistency_txt2img.py:63-70 | examples/community/llm_grounded_diffusion.py:410-417 | examples/community/lpw_stable_diffusion.py:568-575 | examples/community/mod_controlnet_tile_sr_sdxl.py:343-350 | examples/community/pipeline_animatediff_controlnet.py:184-191 | examples/community/pipeline_animatediff_img2video.py:304-311 | examples/community/pipeline_flux_rf_inversion.py:216-223 | examples/community/pipeline_flux_semantic_guidance.py:218-225 | examples/community/pipeline_prompt2prompt.py:205-212 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:199-206 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:243-250 | examples/community/pipeline_stable_diffusion_boxdiff.py:491-498 | examples/community/pipeline_stable_diffusion_pag.py:458-465 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:147-154 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:238-246 | examples/community/regional_prompting_stable_diffusion.py:121-128 | examples/community/rerender_a_video.py:348-355 | examples/community/stable_diffusion_reference.py:219-226 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:305-313 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:229-236 | examples/research_projects/rdm/pipeline_rdm.py:73-81 | src/diffusers/pipelines/chroma/pipeline_chroma.py:195-202 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:250-257 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:228-235 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:231-238 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:277-284 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:268-275 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:269-276 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:287-294 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:233-240 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:243-250 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:284-291 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:312-319 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:184-191 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:201-208 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:209-216 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:91-98 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:251-258 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:377-384 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:175-182 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:239-246 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:267-274 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:238-245 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:166-173 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:243-250 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:214-221 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:117-124 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:141-148 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:362-369 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:127-135 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:90-97 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:77-84 | src/diffusers/pipelines/flux/pipeline_flux.py:201-208 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:223-230 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:254-261 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:233-240 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:224-231 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:226-234 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:203-210 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:214-221 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:398-405 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:226-234 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:252-260 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:258-265 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:232-239 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:283-290 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:271-278 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:290-297 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:196-203 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:212-219 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:285-292 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:317-324 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:289-296 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:160-167 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:133-140 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:313-320 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:264-271 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:161-168 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:155-162 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:158-166 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:159-167 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:212-219 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:266-273 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 91 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 91 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:450\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: \u0060DiffusionPipeline\u0060 names \u0060...pipelines.pipeline_utils\u0060 in one and \u0060diffusers\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/instaflow_one_step.py:191\u0060 calls \u0060register_to_config\u0060 and \u0060examples/community/latent_consistency_img2img.py:75\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"08018d6f54a28a38d5dd4e79431ff2c5452518e771c7c243e9bf9d27c6f92ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 85): examples/community/gluegen.py:508-515 | examples/community/instaflow_one_step.py:484-491 | examples/community/ip_adapter_face_id.py:765-772 | examples/community/latent_consistency_interpolate.py:484-491 | examples/community/llm_grounded_diffusion.py:1491-1498 | examples/community/lpw_stable_diffusion.py:782-789 | examples/community/lpw_stable_diffusion_xl.py:1107-1114 | examples/community/matryoshka.py:4155-4162 | examples/community/pipeline_animatediff_controlnet.py:676-683 | examples/community/pipeline_demofusion_sdxl.py:491-498 | examples/community/pipeline_prompt2prompt.py:543-550 | examples/community/pipeline_sdxl_style_aligned.py:930-937 | examples/community/pipeline_stable_diffusion_pag.py:899-906 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:761-768 | examples/community/pipeline_zero1to3.py:509-516 | examples/community/regional_prompting_stable_diffusion.py:514-521 | examples/community/stable_diffusion_controlnet_inpaint.py:643-650 | examples/community/stable_diffusion_ipex.py:545-552 | examples/community/stable_diffusion_reference.py:626-633 | examples/community/stable_diffusion_repaint.py:533-540 | examples/research_projects/anytext/anytext.py:1863-1870 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:771-778 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:810-817 | examples/research_projects/rdm/pipeline_rdm.py:131-138 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1023-1030 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:751-758 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:634-641 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:828-835 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:302-309 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:833-840 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:893-900 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:870-877 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:558-565 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:632-639 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:344-351 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:602-609 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:651-658 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:494-501 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:381-388 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:295-302 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:573-580 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:206-213 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:603-610 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:761-768 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:496-503 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:534-541 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:674-681 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:684-691 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:436-443 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:556-563 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:478-485 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:463-470 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:671-678 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:432-439 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:528-535 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:489-496 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:705-712 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:356-363 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:221-228 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:307-314 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:529-536 | src/diffusers/pipelines/kolors/pipeline_kolors.py:545-552 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:501-508 | src/diffusers/pipelines/latte/pipeline_latte.py:574-581 | src/diffusers/pipelines/lumina/pipeline_lumina.py:602-609 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:793-800 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:901-908 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:540-547 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:563-570 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:558-565 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:667-674 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:726-733 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:670-677 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:615-622 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:679-686 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:679-686 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:700-707 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:243-250 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:846-853 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:561-568 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:715-722 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:494-501 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:353-360 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:604-611 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:744-751 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:508\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d39443d5c79b0815d164497bda47e7f8ba015720427e52cbbfa0a9aed367dad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 84): examples/community/gluegen.py:508-515 | examples/community/instaflow_one_step.py:484-491 | examples/community/ip_adapter_face_id.py:765-772 | examples/community/latent_consistency_interpolate.py:484-491 | examples/community/llm_grounded_diffusion.py:1491-1498 | examples/community/lpw_stable_diffusion.py:782-789 | examples/community/lpw_stable_diffusion_xl.py:1107-1114 | examples/community/pipeline_animatediff_controlnet.py:676-683 | examples/community/pipeline_animatediff_ipex.py:533-540 | examples/community/pipeline_demofusion_sdxl.py:491-498 | examples/community/pipeline_prompt2prompt.py:543-550 | examples/community/pipeline_sdxl_style_aligned.py:930-937 | examples/community/pipeline_stable_diffusion_pag.py:899-906 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:761-768 | examples/community/pipeline_stable_diffusion_xl_ipex.py:623-630 | examples/community/pipeline_zero1to3.py:509-516 | examples/community/regional_prompting_stable_diffusion.py:514-521 | examples/community/stable_diffusion_controlnet_inpaint.py:643-650 | examples/community/stable_diffusion_ipex.py:545-552 | examples/community/stable_diffusion_reference.py:626-633 | examples/community/stable_diffusion_repaint.py:533-540 | examples/research_projects/anytext/anytext.py:1863-1870 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:771-778 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:810-817 | examples/research_projects/rdm/pipeline_rdm.py:131-138 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1023-1030 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:751-758 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:634-641 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:828-835 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:302-309 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:833-840 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:893-900 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:870-877 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:558-565 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:632-639 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:344-351 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:602-609 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:651-658 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:494-501 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:381-388 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:295-302 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:573-580 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:206-213 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:603-610 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:761-768 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:496-503 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:534-541 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:674-681 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:684-691 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:436-443 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:556-563 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:478-485 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:463-470 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:671-678 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:432-439 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:528-535 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:489-496 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:705-712 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:356-363 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:221-228 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:307-314 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:529-536 | src/diffusers/pipelines/kolors/pipeline_kolors.py:545-552 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:501-508 | src/diffusers/pipelines/latte/pipeline_latte.py:574-581 | src/diffusers/pipelines/lumina/pipeline_lumina.py:602-609 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:793-800 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:901-908 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:540-547 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:563-570 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:558-565 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:667-674 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:726-733 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:670-677 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:615-622 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:700-707 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:243-250 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:846-853 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:561-568 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:715-722 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:494-501 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:353-360 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:604-611 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:744-751 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:508\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3a0f022304b2cc03162c65e8c875ed43503775ad21691ed76ee04bf80dbc67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 77): examples/community/lpw_stable_diffusion_xl.py:1004-1011 | examples/community/pipeline_demofusion_sdxl.py:434-441 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1579-1586 | examples/community/pipeline_flux_differential_img2img.py:472-479 | examples/community/pipeline_flux_kontext_multiple_images.py:535-542 | examples/community/pipeline_flux_rf_inversion.py:462-469 | examples/community/pipeline_flux_semantic_guidance.py:600-607 | examples/community/pipeline_flux_with_cfg.py:424-431 | examples/community/pipeline_sdxl_style_aligned.py:827-834 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:539-546 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:614-621 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:993-1000 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:574-581 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:721-728 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:568-575 | examples/community/pipeline_stable_diffusion_xl_ipex.py:576-583 | examples/community/pipeline_stg_hunyuan_video.py:429-436 | examples/community/pipeline_stg_wan.py:337-345 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:504-511 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:701-708 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:294-302 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:313-321 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:365-373 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:712-719 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:668-675 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:672-679 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:703-710 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:692-699 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:692-699 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:598-605 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:670-677 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:512-519 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:544-551 | src/diffusers/pipelines/flux/pipeline_flux.py:473-480 | src/diffusers/pipelines/flux/pipeline_flux_control.py:436-443 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:478-485 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:517-524 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:507-514 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:479-486 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:494-501 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:565-572 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:529-536 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:537-544 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:524-531 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:577-584 | src/diffusers/pipelines/helios/pipeline_helios.py:307-315 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:326-334 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:570-577 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:398-405 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:368-375 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:488-495 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:526-533 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:351-359 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:676-683 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:678-685 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:575-582 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:595-602 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:664-671 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:615-622 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:707-714 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:307-315 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:331-339 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:349-357 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:394-402 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:363-371 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:583-590 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:613-620 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:620-627 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:653-660 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:604-611 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:710-717 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:682-689 | src/diffusers/pipelines/wan/pipeline_wan.py:310-318 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:436-444 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:377-385 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:371-379 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:376-384 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1004\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"d855bea3db7475799e183d9501df15320b465dd8fc7f6bc55d6675d5b1c35f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 69): examples/community/masked_stable_diffusion_xl_img2img.py:451-459 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2186-2194 | examples/community/pipeline_flux_differential_img2img.py:990-998 | examples/community/pipeline_flux_kontext_multiple_images.py:1190-1198 | examples/community/pipeline_flux_rf_inversion.py:921-929 | examples/community/pipeline_flux_semantic_guidance.py:1329-1337 | examples/community/pipeline_flux_with_cfg.py:841-849 | examples/community/pipeline_kolors_differential_img2img.py:1210-1218 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:941-949 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1227-1235 | examples/community/pipeline_stg_mochi.py:816-824 | examples/community/pipeline_z_image_differential_img2img.py:812-820 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1283-1292 | examples/community/stable_diffusion_xl_reference.py:1126-1134 | src/diffusers/pipelines/bria/pipeline_bria.py:712-720 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:694-702 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:941-949 | src/diffusers/pipelines/chroma/pipeline_chroma.py:891-899 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:974-982 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1167-1175 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1217-1225 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1376-1384 | src/diffusers/pipelines/flux/pipeline_flux.py:938-946 | src/diffusers/pipelines/flux/pipeline_flux_control.py:831-839 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:914-922 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1083-1091 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1168-1176 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:984-992 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1176-1185 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:980-988 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1028-1036 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1196-1204 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1078-1086 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1397-1405 | src/diffusers/pipelines/flux2/pipeline_flux2.py:994-1002 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:886-894 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1229-1237 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:846-854 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:956-964 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:836-844 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:726-734 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1007-1015 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1187-1195 | src/diffusers/pipelines/krea2/pipeline_krea2.py:675-683 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:713-721 | src/diffusers/pipelines/mochi/pipeline_mochi.py:675-683 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:606-613 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:678-686 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1070-1078 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:961-969 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1029-1037 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1274-1282 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1466-1474 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:681-689 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:924-932 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:895-903 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:810-818 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1036-1044 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:854-862 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:783-791 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:964-972 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:858-866 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:820-827 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1118-1126 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1136-1144 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1343-1351 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1239-1247 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1424-1432 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:875-883 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 69 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 69 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/masked_stable_diffusion_xl_img2img.py:462\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1228\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0af4d48b7ea9e9e6b85013985fe069bade52b69ce19ddab83c1a7bcb1da6b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 56): examples/community/fresco_v2v.py:1627-1634 | examples/community/matryoshka.py:4022-4029 | examples/community/pipeline_animatediff_controlnet.py:408-415 | examples/community/pipeline_animatediff_img2video.py:525-532 | examples/community/pipeline_animatediff_ipex.py:380-387 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:461-468 | examples/community/pipeline_kolors_differential_img2img.py:421-428 | examples/community/pipeline_kolors_inpainting.py:444-451 | examples/community/pipeline_stable_diffusion_pag.py:761-768 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:645-652 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:746-753 | examples/research_projects/anytext/anytext.py:1574-1581 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:151-158 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:368-375 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:413-420 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:599-606 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:422-429 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:470-477 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:501-508 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:512-519 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:490-497 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:496-503 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:563-570 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:571-578 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:563-570 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:552-559 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:563-570 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:582-589 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:524-531 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:526-533 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:497-504 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:421-428 | src/diffusers/pipelines/kolors/pipeline_kolors.py:395-402 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:415-422 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:455-462 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:440-447 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:489-496 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:465-472 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:578-585 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:568-575 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:412-419 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:518-525 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:379-386 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:513-520 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:548-555 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:565-572 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:819-826 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:361-368 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:544-551 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:572-579 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:526-533 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:673-680 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:555-562 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:806-813 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:365-372 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:583-590 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 56 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 56 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c75fae4aa42e67c8ab7e53e37475eda3e5f2897d90343f95255992f59e8131"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 48): examples/community/matryoshka.py:4028-4035 | examples/community/pipeline_controlnet_xl_kolors.py:413-420 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:467-474 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:518-525 | examples/community/pipeline_kolors_differential_img2img.py:427-434 | examples/research_projects/anytext/anytext.py:1580-1587 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:157-164 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:374-381 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:419-426 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:605-612 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:428-435 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:476-483 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:507-514 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:518-525 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:496-503 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:502-509 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:569-576 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:577-584 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:569-576 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:558-565 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:569-576 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:588-595 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:530-537 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:532-539 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:503-510 | src/diffusers/pipelines/kolors/pipeline_kolors.py:401-408 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:421-428 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:461-468 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:446-453 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:495-502 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:471-478 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:584-591 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:574-581 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:418-425 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:524-531 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:385-392 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:519-526 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:554-561 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:571-578 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:825-832 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:367-374 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:550-557 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:578-585 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:532-539 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:561-568 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:812-819 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:371-378 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:589-596 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 48 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 48 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:4028\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":4028}}}],"partialFingerprints":{"codehealthFindingId/v1":"601fad6abe59e9a0d17a2a7444b272e9441b8259076062e070c1aa81c922afa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 40): examples/community/ip_adapter_face_id.py:278-283 | src/diffusers/loaders/lora_pipeline.py:296-301 | src/diffusers/loaders/lora_pipeline.py:718-723 | src/diffusers/loaders/lora_pipeline.py:990-995 | src/diffusers/loaders/lora_pipeline.py:1274-1279 | src/diffusers/loaders/lora_pipeline.py:1468-1473 | src/diffusers/loaders/lora_pipeline.py:2375-2380 | src/diffusers/loaders/lora_pipeline.py:2560-2565 | src/diffusers/loaders/lora_pipeline.py:2748-2753 | src/diffusers/loaders/lora_pipeline.py:2941-2946 | src/diffusers/loaders/lora_pipeline.py:3157-3162 | src/diffusers/loaders/lora_pipeline.py:3345-3350 | src/diffusers/loaders/lora_pipeline.py:3535-3540 | src/diffusers/loaders/lora_pipeline.py:3727-3732 | src/diffusers/loaders/lora_pipeline.py:3921-3926 | src/diffusers/loaders/lora_pipeline.py:4109-4114 | src/diffusers/loaders/lora_pipeline.py:4373-4378 | src/diffusers/loaders/lora_pipeline.py:4639-4644 | src/diffusers/loaders/lora_pipeline.py:4827-4832 | src/diffusers/loaders/lora_pipeline.py:5019-5024 | src/diffusers/loaders/lora_pipeline.py:5214-5219 | src/diffusers/loaders/lora_pipeline.py:5408-5413 | src/diffusers/loaders/lora_pipeline.py:5607-5612 | src/diffusers/loaders/lora_pipeline.py:5794-5799 | src/diffusers/loaders/lora_pipeline.py:5996-6001 | src/diffusers/loaders/lora_pipeline.py:6188-6193 | src/diffusers/loaders/lora_pipeline.py:6376-6381 | src/diffusers/loaders/lora_pipeline.py:6572-6577 | src/diffusers/loaders/lora_pipeline.py:6774-6779 | src/diffusers/loaders/lora_pipeline.py:6960-6965 | src/diffusers/loaders/lora_pipeline.py:7170-7175 | src/diffusers/loaders/lora_pipeline.py:7554-7559 | src/diffusers/loaders/peft.py:174-179 | src/diffusers/loaders/single_file_model.py:368-375 | src/diffusers/loaders/textual_inversion.py:48-53 | src/diffusers/loaders/unet.py:121-126 | src/diffusers/models/modeling_utils.py:1040-1045 | src/diffusers/models/modeling_utils.py:2258-2263 | src/diffusers/pipelines/pipeline_utils.py:783-788 | src/diffusers/pipelines/pipeline_utils.py:1568-1573 \u2014 there are 40 copies across 8 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 40 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/single_file_model.py:368\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, \u0060src/diffusers/loaders/single_file_model.py:366\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/ip_adapter_face_id.py:278\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"442cdc99dc1bb21aa4e8b0736ff52a3daf9bd3ea82df28742e8036acdedfce74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 40): examples/community/lpw_stable_diffusion_xl.py:1242-1249 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1041-1048 | examples/community/pipeline_flux_differential_img2img.py:410-417 | examples/community/pipeline_kolors_inpainting.py:846-853 | examples/community/pipeline_sdxl_style_aligned.py:1118-1125 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1117-1124 | examples/community/pipeline_z_image_differential_img2img.py:346-353 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:440-447 | examples/community/stable_diffusion_tensorrt_inpaint.py:842-849 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:700-707 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:639-646 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:762-769 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:278-285 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:448-455 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:954-961 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:981-988 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:959-966 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:359-366 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:593-600 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:418-425 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:457-464 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:419-426 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:430-437 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:502-509 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:465-472 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:469-476 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:905-912 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:777-784 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:838-845 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:441-448 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:233-240 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:244-251 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:752-759 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:744-751 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:839-846 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:384-391 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:320-327 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:354-361 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:417-424 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:433-440 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/lpw_stable_diffusion_xl.py:1252\u0060 calls \u0060to\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py:851\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a8165ca0d9efe2f70a1a94ac069881c55e7cfc0946fa8b84a6ab56e82c45e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 40): examples/community/pipeline_stg_wan.py:641-648 | src/diffusers/modular_pipelines/anima/decoders.py:55-62 | src/diffusers/modular_pipelines/qwenimage/decoders.py:321-328 | src/diffusers/modular_pipelines/wan/decoders.py:116-123 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:636-643 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:799-806 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:414-421 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:728-735 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:647-654 | src/diffusers/pipelines/krea2/pipeline_krea2.py:701-708 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:717-724 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:629-636 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:705-712 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:948-955 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:919-926 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:834-841 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:450-457 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1060-1067 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:878-885 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:242-249 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:807-814 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:253-260 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:988-995 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:882-889 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:597-604 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:959-966 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:439-446 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:1041-1048 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:1045-1052 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:419-426 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:730-737 | src/diffusers/pipelines/wan/pipeline_wan.py:664-671 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:521-528 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:621-628 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:675-682 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1167-1174 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:443-450 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:824-831 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:1027-1034 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:723-730 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 323 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:716\u0060 calls \u0060to\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:646\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":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62c6a47ffbd4941076c1ce008e8116154e16eb3cf15f6c89337aae0ed875189"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 37): examples/community/lpw_stable_diffusion_xl.py:818-825 | examples/community/mixture_tiling_sdxl.py:501-508 | examples/community/mod_controlnet_tile_sr_sdxl.py:508-515 | examples/community/pipeline_demofusion_sdxl.py:282-289 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1380-1387 | examples/community/pipeline_hunyuandit_differential_img2img.py:437-444 | examples/community/pipeline_sdxl_style_aligned.py:621-628 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:807-814 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1443-1450 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:354-361 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:501-508 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:381-388 | examples/community/pipeline_stable_diffusion_xl_ipex.py:381-388 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:822-829 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:415-422 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:440-447 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:404-411 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:412-419 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:404-411 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:393-400 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:404-411 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:423-430 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:368-375 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:336-343 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:698-705 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:340-347 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:419-426 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:409-416 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:350-357 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:406-413 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:424-431 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:514-521 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:396-403 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:414-421 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:518-525 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:320-327 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:424-431 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:446\u0060 calls \u0060to\u0060 and \u0060examples/community/lpw_stable_diffusion_xl.py:827\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66f7430f2105a6bc60aec07fedc3261812b7c8f0e0e473f95f880d6163825bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 32): examples/community/fresco_v2v.py:1949-1956 | examples/community/mod_controlnet_tile_sr_sdxl.py:860-867 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:778-785 | examples/community/pipeline_hunyuandit_differential_img2img.py:626-633 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:450-457 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:803-810 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:583-590 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1049-1056 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:893-900 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1028-1035 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:884-891 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:630-637 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:712-719 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:720-727 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:798-805 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:643-650 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:569-576 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:461-468 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:631-638 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:566-573 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:627-634 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:540-547 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:899-906 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:649-656 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:839-846 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:664-671 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:913-920 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:485-492 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:726-733 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:813-820 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:652-659 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:913-920 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 32 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 32 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:624\u0060 calls \u0060get_timesteps\u0060, \u0060min\u0060 and \u0060src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:530\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"56dbdd1619b53f8538a012c57841f06008ec8affb807740771c154013bba0e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 32): src/diffusers/loaders/ip_adapter.py:915-967 | src/diffusers/loaders/lora_pipeline.py:250-299 | src/diffusers/loaders/lora_pipeline.py:672-721 | src/diffusers/loaders/lora_pipeline.py:984-993 | src/diffusers/loaders/lora_pipeline.py:1268-1277 | src/diffusers/loaders/lora_pipeline.py:1462-1471 | src/diffusers/loaders/lora_pipeline.py:2369-2378 | src/diffusers/loaders/lora_pipeline.py:2554-2563 | src/diffusers/loaders/lora_pipeline.py:2742-2751 | src/diffusers/loaders/lora_pipeline.py:2935-2944 | src/diffusers/loaders/lora_pipeline.py:3151-3160 | src/diffusers/loaders/lora_pipeline.py:3339-3348 | src/diffusers/loaders/lora_pipeline.py:3529-3538 | src/diffusers/loaders/lora_pipeline.py:3721-3730 | src/diffusers/loaders/lora_pipeline.py:3915-3924 | src/diffusers/loaders/lora_pipeline.py:4103-4112 | src/diffusers/loaders/lora_pipeline.py:4367-4376 | src/diffusers/loaders/lora_pipeline.py:4633-4642 | src/diffusers/loaders/lora_pipeline.py:4821-4830 | src/diffusers/loaders/lora_pipeline.py:5013-5022 | src/diffusers/loaders/lora_pipeline.py:5208-5217 | src/diffusers/loaders/lora_pipeline.py:5402-5411 | src/diffusers/loaders/lora_pipeline.py:5603-5610 | src/diffusers/loaders/lora_pipeline.py:5788-5797 | src/diffusers/loaders/lora_pipeline.py:6182-6191 | src/diffusers/loaders/lora_pipeline.py:6370-6379 | src/diffusers/loaders/lora_pipeline.py:6566-6575 | src/diffusers/loaders/lora_pipeline.py:6768-6777 | src/diffusers/loaders/lora_pipeline.py:6956-6963 | src/diffusers/loaders/lora_pipeline.py:7166-7173 | src/diffusers/loaders/lora_pipeline.py:7550-7557 | src/diffusers/pipelines/pipeline_utils.py:1486-1571 \u2014 there are 32 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 32 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/ip_adapter.py:915\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"638edb82e807ceecb79698194de3d8abcfc16709159a5d77bad34463b9178097"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 30): examples/community/composable_stable_diffusion.py:227-234 | examples/community/interpolate_stable_diffusion.py:253-260 | examples/community/multilingual_stable_diffusion.py:272-279 | examples/community/pipeline_zero1to3.py:276-283 | examples/community/sd_text2img_k_diffusion.py:178-185 | examples/community/speech_to_image_diffusion.py:143-150 | examples/community/stable_diffusion_controlnet_img2img.py:268-275 | examples/community/stable_diffusion_controlnet_inpaint.py:367-374 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:352-359 | examples/community/stable_diffusion_ipex.py:399-406 | examples/community/stable_diffusion_repaint.py:372-379 | examples/community/wildcard_stable_diffusion.py:297-304 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:552-559 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:193-200 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:211-218 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:461-468 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:252-259 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:168-175 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:160-167 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:195-202 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:177-184 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:210-217 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:341-348 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:348-355 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:306-313 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:341-348 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:190-197 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:209-216 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:586-593 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:247-254 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/interpolate_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dbcdd88c1ea1748214d90d3994ed772e150be48fe760767321688c41086832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 30): examples/community/pipeline_flux_kontext_multiple_images.py:1202-1210 | examples/community/pipeline_stg_mochi.py:828-836 | src/diffusers/pipelines/chroma/pipeline_chroma.py:903-911 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:986-994 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1179-1187 | src/diffusers/pipelines/flux/pipeline_flux.py:950-958 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1090-1098 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1409-1417 | src/diffusers/pipelines/flux2/pipeline_flux2.py:1006-1014 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:848-855 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:738-745 | src/diffusers/pipelines/krea2/pipeline_krea2.py:687-696 | src/diffusers/pipelines/latte/pipeline_latte.py:857-865 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:675-683 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:732-740 | src/diffusers/pipelines/mochi/pipeline_mochi.py:687-695 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:762-770 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:886-894 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:616-624 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:690-698 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:693-700 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:936-943 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:907-914 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:822-829 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1048-1055 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:866-873 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:795-802 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:976-983 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:870-877 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:830-837 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_stg_mochi.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/latte/pipeline_latte.py:853\u0060 calls \u0060pop\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1196\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b48379b9ada9a252e001121c3a1cff31997b6253f5ff28c8763c69561dfd55a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 26): examples/community/adaptive_mask_inpainting.py:1119-1126 | examples/community/composable_stable_diffusion.py:491-496 | examples/community/lpw_stable_diffusion.py:1008-1013 | examples/community/masked_stable_diffusion_img2img.py:173-178 | examples/community/pipeline_animatediff_img2video.py:938-943 | examples/community/pipeline_prompt2prompt.py:721-726 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:685-692 | examples/community/pipeline_zero1to3.py:750-755 | examples/community/stable_diffusion_controlnet_img2img.py:820-826 | examples/community/stable_diffusion_controlnet_reference.py:727-732 | examples/community/stable_diffusion_ipex.py:707-712 | examples/community/stable_diffusion_reference.py:1389-1394 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1036-1041 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:511-516 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:591-596 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:583-590 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1492-1497 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:726-731 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:782-787 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:994-999 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1036-1041 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:602-607 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:657-662 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:685-690 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:390-395 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:742-749 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/composable_stable_diffusion.py:482\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/lpw_stable_diffusion.py:1002\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"da39199b3cf529c5ffa3ce50c6c7101413b78780cf3e9095077294fdb215a957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 24): examples/community/pipeline_flux_differential_img2img.py:426-433 | examples/community/pipeline_z_image_differential_img2img.py:298-305 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:456-463 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:544-551 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:464-471 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:434-441 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:473-480 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:435-442 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:446-453 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:518-525 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:481-488 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:485-492 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:524-531 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:703-710 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:648-655 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:466-473 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:258-265 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:269-276 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:346-353 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:665-672 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:673-680 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:400-407 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:287-294 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:309-316 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de37e0041f5b8b82ab7181b83438ec0542c30efb4dcd67213a48b25a1cc3d90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 24): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:89-97 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:156-164 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:43-50 | scripts/convert_i2vgen_to_diffusers.py:119-127 | scripts/convert_if.py:556-564 | scripts/convert_if.py:586-594 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:42-50 | scripts/convert_ms_text_to_video_to_diffusers.py:124-132 | scripts/convert_original_audioldm2_to_diffusers.py:72-80 | scripts/convert_original_audioldm2_to_diffusers.py:141-149 | scripts/convert_original_audioldm_to_diffusers.py:63-71 | scripts/convert_original_audioldm_to_diffusers.py:133-141 | scripts/convert_original_musicldm_to_diffusers.py:64-72 | scripts/convert_original_musicldm_to_diffusers.py:133-141 | scripts/convert_svd_to_diffusers.py:232-240 | scripts/convert_svd_to_diffusers.py:577-586 | scripts/convert_svd_to_diffusers.py:608-616 | scripts/convert_unidiffuser_to_diffusers.py:80-88 | scripts/convert_versatile_diffusion_to_diffusers.py:113-121 | scripts/convert_versatile_diffusion_to_diffusers.py:180-188 | scripts/convert_zero123_to_diffusers.py:215-223 | scripts/convert_zero123_to_diffusers.py:655-663 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:87-95 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:154-162 \u2014 there are 24 copies across 14 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 24 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_svd_to_diffusers.py:229\u0060 calls \u0060replace\u0060 and \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:87\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"249bcfc3358af9feb8ac0b74098399d5ed0abee92e8c2e8cd12858db3bea2dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 23): examples/community/pipeline_hunyuandit_differential_img2img.py:583-590 | examples/community/pipeline_stg_ltx.py:419-426 | examples/community/pipeline_stg_ltx_image2video.py:443-450 | examples/community/pipeline_stg_mochi.py:426-433 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:511-518 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:449-456 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:560-567 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:602-609 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:482-489 | src/diffusers/pipelines/ltx/pipeline_ltx.py:393-400 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:485-492 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:417-424 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:492-499 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:545-552 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:306-313 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:322-329 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:548-555 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:567-574 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:498-505 | src/diffusers/pipelines/mochi/pipeline_mochi.py:364-371 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:493-500 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:364-371 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:388-395 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 23 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 23 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:593\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:458\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":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b3acb7af2f5a55336bee74cdf1f31f9d141fcd9c4301b0fce22c1b87aaaed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 21): examples/community/pipeline_flux_differential_img2img.py:1008-1014 | examples/community/pipeline_flux_kontext_multiple_images.py:1210-1215 | examples/community/pipeline_flux_rf_inversion.py:939-945 | examples/community/pipeline_flux_semantic_guidance.py:1347-1353 | examples/community/pipeline_flux_with_cfg.py:859-865 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1305-1310 | src/diffusers/pipelines/chroma/pipeline_chroma.py:911-916 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:994-999 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1187-1192 | src/diffusers/pipelines/flux/pipeline_flux_control.py:849-854 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:932-938 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1101-1107 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1187-1194 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:1002-1007 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1198-1203 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:999-1005 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1046-1052 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1214-1220 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1098-1103 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1417-1422 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:698-703 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"51742e533e899b6ad0286d34bf5f96cc257550e0cb5371073018b1a873e90f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 21): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:714-721 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:103-111 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:239-247 | scripts/convert_gligen_to_diffusers.py:90-97 | scripts/convert_gligen_to_diffusers.py:226-234 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:134-142 | scripts/convert_lumina_to_diffusers.py:14-25 | scripts/convert_original_audioldm2_to_diffusers.py:330-338 | scripts/convert_original_audioldm2_to_diffusers.py:509-516 | scripts/convert_original_audioldm_to_diffusers.py:339-347 | scripts/convert_original_audioldm_to_diffusers.py:493-500 | scripts/convert_original_musicldm_to_diffusers.py:335-343 | scripts/convert_original_musicldm_to_diffusers.py:489-496 | scripts/convert_svd_to_diffusers.py:632-639 | scripts/convert_unidiffuser_to_diffusers.py:355-362 | scripts/convert_unidiffuser_to_diffusers.py:546-554 | scripts/convert_vae_pt_to_diffusers.py:22-29 | scripts/convert_versatile_diffusion_to_diffusers.py:400-408 | scripts/convert_versatile_diffusion_to_diffusers.py:581-588 | scripts/convert_zero123_to_diffusers.py:526-533 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:652-659 \u2014 there are 21 copies across 14 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 21 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_original_audioldm2_to_diffusers.py:506\u0060 calls \u0060startswith\u0060 and \u0060scripts/convert_gligen_to_diffusers.py:87\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1dbd9559cc4ac29705c263ad87a0cd46977c89d55c1e28ab9e2bd19c500194f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 20): examples/community/lpw_stable_diffusion_xl.py:1170-1177 | examples/community/masked_stable_diffusion_xl_img2img.py:622-629 | examples/community/mod_controlnet_tile_sr_sdxl.py:939-946 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:840-847 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:916-923 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1786-1793 | examples/community/pipeline_kolors_differential_img2img.py:675-682 | examples/community/pipeline_sdxl_style_aligned.py:993-1000 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:732-739 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:700-707 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:180-187 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:972-979 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:963-970 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:595-602 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:672-679 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:978-985 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:770-777 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:890-897 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:757-764 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:548-555 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1170\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0c9bb3e1624d9cb665af7a8a587bb8b2e3f5dc3681353a072f150b5cf5bd91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 20): examples/community/pipeline_stg_cogvideox.py:274-279 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:383-390 | src/diffusers/pipelines/allegro/pipeline_allegro.py:273-280 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:220-225 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:228-233 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:238-243 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:244-249 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:186-191 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:194-199 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:197-202 | src/diffusers/pipelines/consisid/pipeline_consisid.py:330-335 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:232-239 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:256-263 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:409-416 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:260-267 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:411-418 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:367-374 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:248-255 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:361-368 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:305-312 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 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 20 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_cogvideox.py:274\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8fa421efcc1ebfd36b1164f5de01f59e1d32dbfbbe2b2be344fe15ed3f2b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 20): examples/community/stable_unclip.py:172-179 | examples/community/unclip_image_interpolation.py:119-126 | examples/community/unclip_text_interpolation.py:113-120 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:118-125 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:120-127 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:113-120 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:132-139 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:125-132 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:289-296 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:289-296 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:109-116 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:150-157 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:280-287 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:245-252 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:243-250 | src/diffusers/pipelines/shap_e/pipeline_shap_e.py:132-139 | src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py:133-140 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:127-134 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:146-153 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:590-597 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 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 20 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/stable_unclip.py:181\u0060 calls \u0060to\u0060, \u0060super\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:159\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_unclip.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2700e1bb2c8feb1a83fe08194a8eeb0d10df618589558c7ae20668405911061"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 19): examples/community/lpw_stable_diffusion_xl.py:668-675 | examples/community/mixture_tiling_sdxl.py:359-366 | examples/community/pipeline_demofusion_sdxl.py:162-169 | examples/community/pipeline_kolors_differential_img2img.py:204-211 | examples/community/pipeline_sdxl_style_aligned.py:482-489 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:222-229 | examples/community/pipeline_stable_diffusion_xl_ipex.py:245-252 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:310-317 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:413-420 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:191-200 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:226-235 | src/diffusers/pipelines/kolors/pipeline_kolors.py:183-190 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:202-209 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:366-373 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:197-204 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:267-274 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:260-267 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:190-197 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:295-302 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:668\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f20bd94affee6dc20eca52f42ca154fa0e5edc2015f17b512f77166543177c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 19): examples/community/pipeline_sdxl_style_aligned.py:265-273 | examples/community/pipeline_stable_diffusion_pag.py:116-124 | examples/community/pipeline_stable_diffusion_pag.py:231-239 | examples/research_projects/sana/train_sana_sprint_diffusers.py:160-168 | src/diffusers/models/attention_processor.py:2066-2074 | src/diffusers/models/attention_processor.py:2663-2671 | src/diffusers/models/attention_processor.py:2757-2765 | src/diffusers/models/attention_processor.py:2873-2881 | src/diffusers/models/attention_processor.py:3091-3099 | src/diffusers/models/attention_processor.py:3189-3197 | src/diffusers/models/attention_processor.py:3292-3300 | src/diffusers/models/attention_processor.py:3397-3405 | src/diffusers/models/attention_processor.py:3521-3529 | src/diffusers/models/attention_processor.py:3737-3745 | src/diffusers/models/attention_processor.py:5090-5097 | src/diffusers/models/attention_processor.py:5191-5199 | src/diffusers/models/transformers/sana_transformer.py:175-183 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:184-192 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:203-211 \u2014 before extracting anything, compare \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_pag.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_sdxl_style_aligned.py:265\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cdb2a45a38d9236ecdf29149b3a3f1c5cd6407908af228918b272cc78abaa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 18): examples/community/clip_guided_stable_diffusion_img2img.py:214-221 | examples/community/fresco_v2v.py:1994-2001 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1777-1784 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:723-730 | examples/community/rerender_a_video.py:570-577 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:853-860 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:695-702 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:808-815 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:606-613 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:762-769 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:586-593 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:640-647 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:550-557 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:699-706 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:535-542 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:775-782 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:881-888 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:539-546 \u2014 there are 18 copies across 17 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 18 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"d777ff00b6e9b47d4831ee96bff87046695bb68f281152edd78c208826de33a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 18): examples/community/pipeline_flux_kontext_multiple_images.py:1078-1085 | examples/community/pipeline_flux_semantic_guidance.py:1051-1058 | examples/community/pipeline_flux_with_cfg.py:781-788 | src/diffusers/pipelines/chroma/pipeline_chroma.py:778-785 | src/diffusers/pipelines/flux/pipeline_flux.py:826-833 | src/diffusers/pipelines/flux/pipeline_flux_control.py:772-779 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1018-1025 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:966-973 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:603-610 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:655-662 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:642-649 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:542-549 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:613-620 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:599-606 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:812-819 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:790-797 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:721-728 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:765-772 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1074\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py:774\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"1883b18a7c9b7f49705ab76e16304c7bcd950adcbe4f882b4c916312d526c5f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 17): examples/community/clip_guided_stable_diffusion_img2img.py:224-231 | examples/community/latent_consistency_img2img.py:228-235 | examples/community/pipeline_hunyuandit_differential_img2img.py:688-695 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:630-637 | examples/community/rerender_a_video.py:580-587 | examples/community/stable_diffusion_controlnet_img2img.py:559-566 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:632-639 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:863-870 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:705-712 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:497-504 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:274-281 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:560-567 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:693-700 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:709-716 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:545-552 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:785-792 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:709-716 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 17 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 17 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:510\u0060 calls \u0060reshape\u0060, \u0060permute\u0060 and \u0060examples/community/rerender_a_video.py:593\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"560dd92d923536ce897a9a7721e84770343e6c40dcdd6b240109504dadd7a41a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 17): examples/community/gluegen.py:759-766 | examples/community/ip_adapter_face_id.py:1058-1065 | examples/community/pipeline_sdxl_style_aligned.py:1796-1804 | examples/community/regional_prompting_stable_diffusion.py:1039-1046 | examples/community/stable_diffusion_xl_reference.py:1060-1068 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1732-1741 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1514-1521 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1744-1752 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1561-1568 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:951-958 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:977-984 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:830-837 | src/diffusers/pipelines/kolors/pipeline_kolors.py:970-978 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1150-1158 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1093-1100 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1198-1205 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1385-1393 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1196\u0060 calls \u0060hasattr\u0060, \u0060set_begin_index\u0060 and \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:969\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":"examples/community/gluegen.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b44bfcae82f45739c5b259f412de86248fbc05c97928dc8716a02f151cf06ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 17): examples/community/regional_prompting_stable_diffusion.py:1084-1091 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:707-715 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1020-1028 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1521-1528 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:834-841 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:1026-1033 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:1022-1029 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:851-858 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:856-863 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:961-968 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1077-1084 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:879-886 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1134-1141 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:467-474 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:655-662 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:932-939 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:837-845 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 17 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 17 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:717\u0060 calls \u0060run_safety_checker\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:888\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/regional_prompting_stable_diffusion.py"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2cb03115757efa0f01a0f6f13d6da293e6430cd84145603e1ca0eb4c2bc98d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 16): examples/community/pipeline_flux_kontext_multiple_images.py:752-758 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:584-590 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:625-632 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:665-671 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:643-649 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:661-668 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:641-647 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:718-724 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:737-743 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:432-437 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:452-458 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:512-518 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:472-478 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:441-447 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:468-474 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:484-490 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 493 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060image\u0060 to \u0060PipelineImageInput\u0060 in one and \u0060torch.Tensor\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 before the matched lines, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:749\u0060 calls \u0060enumerate\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py:638\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"18fbbf171da32b6f68e520b59c3987bd6a8ef7b885ffc7a967e50aead6df31ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 16): examples/community/pipeline_flux_rf_inversion.py:845-850 | examples/community/pipeline_flux_rf_inversion.py:1015-1020 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1108-1115 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:839-844 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:990-995 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:807-812 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:956-961 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:875-880 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1016-1023 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:875-880 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:900-905 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1033-1038 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1225-1230 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:882-887 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:678-683 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:822-827 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 602 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1108\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":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"834b44d13fc18e32c1a36f5fb409d0ca682977aa7e5c3a754113b8c0955f81f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 15): examples/community/pipeline_controlnet_xl_kolors.py:976-983 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1162-1169 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1374-1381 | examples/community/stable_diffusion_xl_controlnet_reference.py:563-570 | examples/research_projects/anytext/anytext.py:2095-2102 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1059-1066 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1057-1064 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1166-1173 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1404-1411 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1211-1218 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1301-1308 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1006-1013 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1131-1138 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1202-1209 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1295-1302 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d85da35d9769312363300541446bf98c3f640a7896411c0936163e60155a08c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 15): examples/community/pipeline_stg_ltx.py:299-306 | examples/community/pipeline_stg_ltx_image2video.py:322-329 | examples/community/pipeline_stg_mochi.py:306-313 | src/diffusers/pipelines/ltx/pipeline_ltx.py:273-280 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:359-366 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:542-549 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:296-303 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:358-365 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:409-416 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:520-527 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:460-467 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:419-426 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:431-438 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:362-369 | src/diffusers/pipelines/mochi/pipeline_mochi.py:244-251 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5c0a7fcdff0d9afa3638cc77354180816a09b21a1b92d32326cfeab12e7e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 14): examples/community/latent_consistency_img2img.py:561-568 | examples/community/latent_consistency_txt2img.py:473-480 | src/diffusers/schedulers/scheduling_ddim.py:216-223 | src/diffusers/schedulers/scheduling_ddim_parallel.py:222-229 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:205-212 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:194-201 | src/diffusers/schedulers/scheduling_euler_discrete.py:233-240 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:171-178 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:170-177 | src/diffusers/schedulers/scheduling_lcm.py:228-235 | src/diffusers/schedulers/scheduling_lms_discrete.py:167-174 | src/diffusers/schedulers/scheduling_pndm.py:137-144 | src/diffusers/schedulers/scheduling_tcd.py:229-236 | src/diffusers/schedulers/scheduling_unipc_multistep.py:241-248 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_ddim.py:216\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, \u0060src/diffusers/schedulers/scheduling_ddim.py:227\u0060 calls \u0060rescale_zero_terminal_snr\u0060 and \u0060src/diffusers/schedulers/scheduling_pndm.py:146\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":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"558774070b4484e22ac62ff66adc61c5b2122d28f748d2f9f03ed06ab762a651"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 14): examples/community/mod_controlnet_tile_sr_sdxl.py:914-921 | examples/community/pipeline_animatediff_img2video.py:698-705 | examples/community/pipeline_kolors_differential_img2img.py:650-657 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:839-846 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:947-954 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:938-945 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:647-654 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:536-543 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:953-960 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:685-692 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:745-752 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:521-528 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:761-768 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:732-739 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 14 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 14 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:914\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"2987a4a14330c9d6ff10ebfeeac91271b4be1932b9d573bc0ce39f2a1fa886cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 14): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:570-577 | scripts/convert_gligen_to_diffusers.py:334-341 | scripts/convert_i2vgen_to_diffusers.py:399-406 | scripts/convert_if.py:463-470 | scripts/convert_if.py:1066-1073 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:270-277 | scripts/convert_ms_text_to_video_to_diffusers.py:355-362 | scripts/convert_original_audioldm2_to_diffusers.py:461-468 | scripts/convert_original_audioldm_to_diffusers.py:450-457 | scripts/convert_original_musicldm_to_diffusers.py:446-453 | scripts/convert_svd_to_diffusers.py:486-493 | scripts/convert_versatile_diffusion_to_diffusers.py:517-524 | scripts/convert_zero123_to_diffusers.py:418-425 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:568-575 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_original_audioldm2_to_diffusers.py:470\u0060 calls \u0060remove\u0060 and \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:580\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"4add3bdd3db5cc10e3e6839f80886cabad277c3c523fc58884700bc3636fa6d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 13): examples/community/matryoshka.py:2324-2331 | examples/community/matryoshka.py:2339-2346 | src/diffusers/models/controlnets/controlnet.py:240-247 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:217-224 | src/diffusers/models/controlnets/controlnet_union.py:215-222 | src/diffusers/models/unets/unet_2d_condition.py:522-529 | src/diffusers/models/unets/unet_2d_condition.py:537-544 | src/diffusers/models/unets/unet_motion_model.py:1280-1287 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:119-126 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:191-198 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:206-213 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:459-466 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:474-481 \u2014 before extracting anything, compare \u0060examples/community/matryoshka.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/controlnets/controlnet.py:249\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:216\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2324}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec68ba5d1d045f7ed7baac1599666c7eebf816569cd16f6eefdf989efdf517b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 13): src/diffusers/loaders/lora_pipeline.py:1020-1029 | src/diffusers/loaders/lora_pipeline.py:1304-1313 | src/diffusers/loaders/lora_pipeline.py:2405-2414 | src/diffusers/loaders/lora_pipeline.py:2590-2599 | src/diffusers/loaders/lora_pipeline.py:3187-3196 | src/diffusers/loaders/lora_pipeline.py:3381-3388 | src/diffusers/loaders/lora_pipeline.py:3951-3960 | src/diffusers/loaders/lora_pipeline.py:4145-4152 | src/diffusers/loaders/lora_pipeline.py:4409-4416 | src/diffusers/loaders/lora_pipeline.py:4669-4678 | src/diffusers/loaders/lora_pipeline.py:6218-6227 | src/diffusers/loaders/lora_pipeline.py:6804-6813 | src/diffusers/loaders/lora_pipeline.py:7584-7593 \u2014 all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/lora_pipeline.py:1020\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":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"916af21823d6bbfd984400e19fa9d8a300d99b65a19221071fe1836a691548c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 12): examples/community/clip_guided_images_mixing_stable_diffusion.py:34-41 | examples/community/clip_guided_stable_diffusion_img2img.py:86-93 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:111-118 | src/diffusers/pipelines/deprecated/repaint/pipeline_repaint.py:44-51 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:181-188 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:54-61 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:193-200 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:82-89 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:112-119 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:59-66 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:74-81 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:68-75 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"392ceea0aa550d2c1cc65cde0e756139b036d2d792dfcf76012324f714626157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 12): examples/community/masked_stable_diffusion_xl_img2img.py:390-396 | examples/community/pipeline_kolors_differential_img2img.py:1159-1165 | examples/community/pipeline_kolors_inpainting.py:1565-1571 | examples/community/pipeline_sdxl_style_aligned.py:1790-1797 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2148-2155 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1315-1321 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1058-1064 | examples/community/stable_diffusion_xl_reference.py:1055-1061 | src/diffusers/pipelines/kolors/pipeline_kolors.py:965-971 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1145-1151 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1380-1386 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1599-1605 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 264 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cb8de8de41286182601fcc67213b8317a22baf1280e964ec63e678b0265273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 12): src/diffusers/models/autoencoders/autoencoder_kl.py:231-238 | src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1224-1231 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:1064-1071 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:243-250 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:840-847 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:555-562 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:660-667 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:927-934 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:881-888 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1352-1359 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1237-1244 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:506-513 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f16e5d46bd861443dedb6f95094455cf9a53be137be49dbced639ff077a26e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 12): src/diffusers/models/transformers/transformer_chronoedit.py:741-748 | src/diffusers/models/transformers/transformer_cosmos.py:834-840 | src/diffusers/models/transformers/transformer_helios.py:852-859 | src/diffusers/models/transformers/transformer_hunyuan_video.py:1119-1126 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:800-807 | src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py:368-374 | src/diffusers/models/transformers/transformer_pan2.py:506-513 | src/diffusers/models/transformers/transformer_sana_video.py:712-719 | src/diffusers/models/transformers/transformer_skyreels_v2.py:784-791 | src/diffusers/models/transformers/transformer_wan.py:728-735 | src/diffusers/models/transformers/transformer_wan_animate.py:1299-1306 | src/diffusers/models/transformers/transformer_wan_vace.py:394-401 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_chronoedit.py:741\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c0a4c72b676484d78b716dbc5f531d61a6e61ebf4df5aa9d118abbc93a0058"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 11): examples/community/pipeline_controlnet_xl_kolors.py:1113-1120 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:887-894 | examples/community/pipeline_stable_diffusion_xl_instantid.py:877-884 | examples/community/stable_diffusion_xl_controlnet_reference.py:735-742 | examples/research_projects/anytext/anytext.py:2181-2188 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1200-1207 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1210-1217 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1367-1374 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1363-1370 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1152-1159 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1352-1359 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 423 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:887\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"097e0ac4d34db551a784aa85b2321af54addafc4bef1ea0d60d35246961ddf6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 11): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:743-747 | scripts/convert_gligen_to_diffusers.py:119-123 | scripts/convert_original_audioldm2_to_diffusers.py:538-542 | scripts/convert_original_audioldm_to_diffusers.py:522-526 | scripts/convert_original_musicldm_to_diffusers.py:518-522 | scripts/convert_svd_to_diffusers.py:663-667 | scripts/convert_unidiffuser_to_diffusers.py:384-388 | scripts/convert_vae_pt_to_diffusers.py:51-58 | scripts/convert_versatile_diffusion_to_diffusers.py:610-614 | scripts/convert_zero123_to_diffusers.py:555-559 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:681-685 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_vae_pt_to_diffusers.py:51\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"af351b23f6e22aca25dc5d9f99ee00077caff5031cd63e2aabcfacb3109bb2ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 11): src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:101-108 | src/diffusers/pipelines/deprecated/repaint/pipeline_repaint.py:34-41 | src/diffusers/pipelines/deprecated/repaint/pipeline_repaint.py:55-62 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:171-178 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:44-51 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:183-190 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:72-79 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:102-109 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:49-56 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:64-71 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:58-65 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"337f1f1ef259d775108ffac8fb95a25eb251e8f6c76b0ba39081ce71298dfdfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 10): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:309-316 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:354-361 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:154-161 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:343-350 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:365-372 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:313-320 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:329-336 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:323-330 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:348-355 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:354-361 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 772 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py:309\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a08799783bf98176e8f9f4a5fc0d869d8d48928c0592a81ad152c8af5c0390b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 10): examples/community/pipeline_stg_ltx.py:858-865 | src/diffusers/pipelines/ltx/pipeline_ltx.py:828-835 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1266-1273 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1635-1642 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:2089-2096 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1922-1929 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:1719-1726 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1581-1588 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2522-2529 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1739-1746 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 759 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb29a8f8c06f34edeaeb2162e40cfcea987c637cf87e4bdbd4adb15685d61f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): examples/cogvideo/train_cogvideox_image_to_video_lora.py:792-799 | examples/cogvideo/train_cogvideox_lora.py:814-821 | examples/community/pipeline_stg_cogvideox.py:289-296 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:235-242 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:243-250 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:253-260 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:259-266 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:201-208 | src/diffusers/pipelines/consisid/pipeline_consisid.py:345-352 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc13e448ca44d8c2e6dcbe7d1cf7ea0c7e9ce31fea0e8a58d063416b03463213"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): examples/community/latent_consistency_img2img.py:581-588 | examples/community/latent_consistency_txt2img.py:493-500 | examples/community/matryoshka.py:413-420 | src/diffusers/schedulers/scheduling_ddim.py:236-243 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:241-248 | src/diffusers/schedulers/scheduling_ddim_parallel.py:242-249 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:243-250 | src/diffusers/schedulers/scheduling_lcm.py:248-255 | src/diffusers/schedulers/scheduling_tcd.py:249-256 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2c162a79834826d8203311865d2990ec134b64bccd3c4cac2071d32ade86a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 9): examples/community/mixture_tiling_sdxl.py:1159-1166 | examples/community/mod_controlnet_tile_sr_sdxl.py:1782-1789 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:568-573 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:545-550 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:809-816 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:933-940 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:669-676 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:726-733 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:915-922 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:925\u0060 calls \u0060callback\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:1791\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"78527db77d9f3c9d56d44e45d2a18d973e407cd4f9d62b0410253e9c86cc1218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): examples/community/pipeline_flux_kontext_multiple_images.py:611-618 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:600-607 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:674-681 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:406-413 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:392-399 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:407-414 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:423-430 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:432-439 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:430-437 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db69afb85f0093019c796970eb733141f7d5688befb20a38e04f3f81db78718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:517-524 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:452-459 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:573-580 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:597-604 | src/diffusers/pipelines/prx/pipeline_prx.py:543-552 | src/diffusers/pipelines/prx/pipeline_prx_pixel.py:367-376 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:591-598 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:598-605 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:499-506 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:449\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py:515\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dad4eef8666550b310800d635fe2319aa5aedd67ab6e8521b14aaeb6727e2eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 9): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:494-500 | src/diffusers/modular_pipelines/z_image/before_denoise.py:463-470 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:644-651 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:384-390 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:515-521 | src/diffusers/pipelines/z_image/pipeline_z_image.py:267-274 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:322-329 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:329-336 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:288-295 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b9aa04171ef6d6fead9b8b90dca65f890b61f3b809650512d276a3fc167a15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 9): examples/community/pipeline_stg_wan.py:130-134 | src/diffusers/models/transformers/transformer_anyflow.py:495-501 | src/diffusers/models/transformers/transformer_anyflow_far.py:608-614 | src/diffusers/models/transformers/transformer_chronoedit.py:510-516 | src/diffusers/models/transformers/transformer_helios.py:488-495 | src/diffusers/models/transformers/transformer_skyreels_v2.py:506-512 | src/diffusers/models/transformers/transformer_wan.py:495-501 | src/diffusers/models/transformers/transformer_wan_animate.py:974-980 | src/diffusers/models/transformers/transformer_wan_vace.py:120-127 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_helios.py:488\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b83447fc1fe1df3e096f050eaada5ed547f9b077fff5be2017ff08a9596857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:420-428 | scripts/convert_gligen_to_diffusers.py:210-218 | scripts/convert_i2vgen_to_diffusers.py:150-158 | scripts/convert_ms_text_to_video_to_diffusers.py:155-163 | scripts/convert_original_audioldm2_to_diffusers.py:311-319 | scripts/convert_original_audioldm_to_diffusers.py:321-329 | scripts/convert_original_musicldm_to_diffusers.py:317-325 | scripts/convert_svd_to_diffusers.py:267-275 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:418-426 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:420\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b605ee909c9727ee90b50d84dc79f93334ddc3c6012c9bc48de95286084655d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:272-279 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:296-303 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:449-456 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:300-307 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:451-458 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:407-414 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:184-192 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:199-207 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:577-584 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:272\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:181\u0060 calls \u0060repeat\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:268\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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb273bc5e39ddaf52114a39b591b6348091fb71d4dafa546f7ac61d2a39ec85c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): src/diffusers/schedulers/scheduling_deis_multistep.py:189-196 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:267-274 | src/diffusers/schedulers/scheduling_euler_discrete.py:226-233 | src/diffusers/schedulers/scheduling_heun_discrete.py:168-175 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:164-171 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:163-170 | src/diffusers/schedulers/scheduling_lms_discrete.py:160-167 | src/diffusers/schedulers/scheduling_sasolver.py:192-199 | src/diffusers/schedulers/scheduling_unipc_multistep.py:234-241 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_sde.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0577854d585fe91f64084306116a0fead74087d36679714b2db5c7eabe06db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): examples/community/edict_pipeline.py:28-36 | examples/community/pipeline_fabric.py:179-186 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:201-208 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:72-79 | src/diffusers/pipelines/flux2/pipeline_flux2.py:284-291 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:194-202 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:166-173 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:119-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/edict_pipeline.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6e47bd163109261a3b34ef388c3c3bafeef55f295608e69fce58518cc1fe46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 8): examples/community/pipeline_sdxl_style_aligned.py:237-243 | examples/community/pipeline_stable_diffusion_pag.py:100-107 | examples/community/pipeline_stable_diffusion_pag.py:215-222 | src/diffusers/models/attention_processor.py:1443-1450 | src/diffusers/models/attention_processor.py:2293-2300 | src/diffusers/models/attention_processor.py:4935-4942 | src/diffusers/models/attention_processor.py:5075-5082 | src/diffusers/models/attention_processor.py:5175-5182 \u2014 before extracting anything, compare \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_pag.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_sdxl_style_aligned.py:235\u0060 calls \u0060group_norm\u0060, \u0060transpose\u0060 and \u0060src/diffusers/models/attention_processor.py:2291\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":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b750bbc93a87a67f59a212b15755a7025035c8e36fdb778abd45f3dc72214af4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): examples/community/pipeline_stg_cogvideox.py:844-851 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:766-773 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:821-828 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:876-883 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:847-854 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:654-661 | src/diffusers/pipelines/consisid/pipeline_consisid.py:950-957 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:712-720 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:712\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f708fb68283b11be344bcf9e75942024312d2e3242f46753a23492110bca7c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:447-454 | scripts/convert_i2vgen_to_diffusers.py:225-232 | scripts/convert_if.py:311-318 | scripts/convert_if.py:873-880 | scripts/convert_ms_text_to_video_to_diffusers.py:181-188 | scripts/convert_svd_to_diffusers.py:294-301 | scripts/convert_zero123_to_diffusers.py:301-308 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:445-452 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 322 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:447\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"68290490d5332ac121d29341150ac34b68ab2e60fb382c6c8c86d09a1f51485d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): examples/community/clip_guided_stable_diffusion_img2img.py:196-203 | examples/community/pipeline_zero1to3.py:558-565 | examples/community/stable_diffusion_controlnet_img2img.py:542-549 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:615-622 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:789-796 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:743-750 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:566-573 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_stable_diffusion_img2img.py:196\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":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c6a611805ab483dccf814ff8ed55e9b912f89a6ef312b26183e85b0fb53e85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): examples/community/dps_pipeline.py:150-157 | examples/community/iadb.py:142-149 | src/diffusers/pipelines/deprecated/latent_diffusion_uncond/pipeline_latent_diffusion_uncond.py:125-132 | src/diffusers/pipelines/deprecated/pndm/pipeline_pndm.py:112-119 | src/diffusers/pipelines/deprecated/repaint/pipeline_repaint.py:222-229 | src/diffusers/pipelines/deprecated/stochastic_karras_ve/pipeline_stochastic_karras_ve.py:119-126 | src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py:294-302 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/dps_pipeline.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"100e91ebea0e5b8703b97e3ef78997a6d97a38aa2b19d2c298b1f4f3b1c93de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): examples/community/pipeline_hunyuandit_differential_img2img.py:452-459 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:383-390 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:336-343 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:447-454 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:489-496 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:355-362 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:365-372 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e7c309cf1d98eef0f67edd0e2ecdd2c53924cc7072f927d510e031f943a077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 7): examples/community/pipeline_stg_mochi.py:296-300 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:236-243 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:255-262 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:222-229 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:265-272 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:349-353 | src/diffusers/pipelines/mochi/pipeline_mochi.py:234-238 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_mochi.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 191 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:236\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5b46f6398f9fdfe078883fbb1bc3204fec479b099f3c5684e0b453b4d1a60f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): scripts/convert_joyimage_edit_to_diffusers.py:123-130 | scripts/convert_skyreelsv2_to_diffusers.py:473-480 | scripts/convert_wan_to_diffusers.py:751-758 | scripts/convert_wan_to_diffusers.py:1073-1080 | scripts/convert_wan_to_diffusers.py:1114-1121 | src/diffusers/loaders/single_file_utils.py:3466-3473 | src/diffusers/utils/state_dict_utils.py:504-511 \u2014 before extracting anything, compare \u0060scripts/convert_joyimage_edit_to_diffusers.py\u0060 and \u0060scripts/convert_skyreelsv2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_wan_to_diffusers.py:1065\u0060 calls \u0060replace\u0060 and \u0060scripts/convert_joyimage_edit_to_diffusers.py:121\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/convert_joyimage_edit_to_diffusers.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1478e57faf6c5a4063a015c4c5dbb5c33d6f60e5540c3fa5ff96cd1b0352f49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): src/diffusers/models/attention_processor.py:5346-5353 | src/diffusers/models/transformers/transformer_anyflow.py:79-86 | src/diffusers/models/transformers/transformer_anyflow.py:136-143 | src/diffusers/models/transformers/transformer_anyflow_far.py:116-123 | src/diffusers/models/transformers/transformer_anyflow_far.py:247-254 | src/diffusers/models/transformers/transformer_anyflow_far.py:305-312 | src/diffusers/models/transformers/transformer_sana_video.py:115-122 \u2014 there are 7 copies across 4 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 7 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_anyflow_far.py:127\u0060 calls \u0060to\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow.py:89\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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":5346}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf5310b570cec4397a55473f8fd9b0a431aa9ef426819ec6387317f0df6e1a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): src/diffusers/models/transformers/transformer_hunyuan_video.py:127-135 | src/diffusers/models/transformers/transformer_hunyuanimage.py:122-130 | src/diffusers/models/transformers/transformer_joyimage.py:147-154 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:118-125 | src/diffusers/models/transformers/transformer_motif_video.py:183-191 | src/diffusers/models/transformers/transformer_pan2.py:110-117 | src/diffusers/models/transformers/transformer_qwenimage.py:556-563 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:127\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1be0cb877553bca92f85c9efce3574a123b9ac23cf21f901216ba3d9fca8e6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:289-296 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:330-337 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:217-224 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:231-238 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:337-344 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:352-359 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:292-299 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:289\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, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:288\u0060 calls \u0060getattr\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:216\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebc9b9bc98f7c8acdeabf0061ef0beb796a2f8615f9aed3deb0eff502eb215f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1649-1656 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:2103-2110 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1937-1944 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:1734-1741 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1595-1602 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2536-2543 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1753-1760 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff938e2faa986484a0a0ca53f697b559651fbe6097137825eec2eede6c690bd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:614-621 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:736-743 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:951-958 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:780-787 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:717-724 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:886-893 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:778-785 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 633 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"968509055d18551158b4e14b766cf2ce4a437d9d842c5be5a1fb7d7c313fc4f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): scripts/convert_flux_to_diffusers.py:214-221 | scripts/convert_hunyuan_image_to_diffusers.py:426-433 | scripts/convert_ovis_image_to_diffusers.py:182-189 | src/diffusers/loaders/lora_conversion_utils.py:1271-1278 | src/diffusers/loaders/single_file_utils.py:2434-2441 | src/diffusers/loaders/single_file_utils.py:3695-3702 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuan_image_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.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":"scripts/convert_flux_to_diffusers.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"6566a308506e132ed1e056aa7397ce09e4bb7752edb885547ba1834611c5b4a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): scripts/convert_hunyuan_image_to_diffusers.py:610-619 | scripts/convert_hunyuan_video1_5_to_diffusers.py:186-203 | scripts/convert_hunyuan_video1_5_to_diffusers.py:274-285 | scripts/convert_mochi_to_diffusers.py:59-66 | scripts/convert_sana_video_to_diffusers.py:73-86 | src/diffusers/loaders/single_file_utils.py:2719-2726 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuan_image_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuan_video1_5_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 384 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_hunyuan_video1_5_to_diffusers.py:186\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/convert_sana_video_to_diffusers.py:72\u0060 calls \u0060pop\u0060 and \u0060scripts/convert_hunyuan_video1_5_to_diffusers.py:182\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/convert_hunyuan_image_to_diffusers.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"3844a047822419098c1fc8e33baef19e06bf9798a9725ae539419f89506da39d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:592-599 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:574-581 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:613-620 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:575-582 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:673-680 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:651-658 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 398 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabe0f79de88f4506d2914283c15e8895d2d9bcbee8cac98251fa2e245b13953"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:470-477 | src/diffusers/schedulers/scheduling_deis_multistep.py:686-693 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:891-898 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:743-750 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:523-530 | src/diffusers/schedulers/scheduling_sasolver.py:1000-1007 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"b408768e7bb2ea35b1c9bc6a89bfbb8b06eff834218e815ef3184708aa25e27d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): examples/community/hd_painter.py:704-711 | examples/community/pipeline_stable_diffusion_boxdiff.py:1544-1551 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:913-920 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:972-979 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:964-971 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/hd_painter.py:704\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":"examples/community/hd_painter.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"079adfe37892e2b2021e337204715ba45ec04bd1f528e209ab8b245e93452506"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): examples/community/pipeline_flux_kontext_multiple_images.py:673-680 | src/diffusers/modular_pipelines/flux/encoders.py:198-205 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:938-945 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1112-1119 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1156-1165 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f89626603c51ba85b631141bdf237f4a5fc568d75758ded97990748a6d94cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): examples/community/pipeline_flux_kontext_multiple_images.py:759-766 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:648-655 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:459-466 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:479-486 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:491-498 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:759\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 \u0060image\u0060 to \u0060PipelineImageInput\u0060 in one and \u0060torch.Tensor\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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52b83365dc899f7592f047a02d051ddea030084c0d955018ef8b30336f6dfe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): examples/community/pipeline_kolors_inpainting.py:1570-1578 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1222-1229 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1390-1397 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1262-1271 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1604-1612 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"e958b9d872b530cefe64145ee53211a3377db9ccd8bddccb020c4af33d9041d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 5): examples/community/stable_diffusion_xl_controlnet_reference.py:1168-1175 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1424-1431 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1419-1426 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1020-1027 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1214-1220 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 1253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac761be66a7174e98869b1c8a36f2f05622567863c7b02c5e60c6dff67456f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): examples/research_projects/anytext/anytext_controlnet.py:445-452 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:375-382 | src/diffusers/models/controlnets/controlnet.py:790-797 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:703-710 | src/diffusers/models/controlnets/controlnet_union.py:768-775 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext_controlnet.py\u0060 and \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfbd68bd24b9738567c772a518f311d23845392055f5954bce49d0dcbcde8d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:1039-1046 | src/diffusers/pipelines/latte/pipeline_latte.py:816-823 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:819-826 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:925-932 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:854-861 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/latte/pipeline_latte.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 402 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/latte/pipeline_latte.py:816\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":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"d466c39c56ea65ea080e4385e98bcd2d0aeb5c350bb72d56b9b5afd7460a78b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 5): scripts/convert_flux_to_diffusers.py:144-151 | scripts/convert_ovis_image_to_diffusers.py:96-103 | scripts/convert_pixart_alpha_to_diffusers.py:74-80 | scripts/convert_pixart_sigma_to_diffusers.py:74-79 | src/diffusers/loaders/single_file_utils.py:2372-2377 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_ovis_image_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.py:144\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_flux_to_diffusers.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b258b5885e535628baac238f848a49d42c48446882dea4605a3b8f2d1b47ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): src/diffusers/pipelines/animatediff/pipeline_animatediff.py:815-822 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1032-1039 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1228-1236 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1016-1023 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1270-1277 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"51890693a3efb2980d38e1b541eca593baa01b7f33d625546c16fef1f901524f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:851-859 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:659-667 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:780-788 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:655-663 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:823-831 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 242 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"709bb040311cbbda0655f94e800bde02bcc6973eaae566733504834b67304b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): src/diffusers/pipelines/marigold/marigold_image_processing.py:434-441 | src/diffusers/pipelines/marigold/marigold_image_processing.py:470-477 | src/diffusers/pipelines/marigold/marigold_image_processing.py:526-533 | src/diffusers/pipelines/marigold/marigold_image_processing.py:611-618 | src/diffusers/pipelines/marigold/marigold_image_processing.py:658-665 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/marigold_image_processing.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"a421b5574f1e7428e407ccd8d9c38d7f30d002414ca2233815e839ca7e01e7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): src/diffusers/pipelines/sana/pipeline_sana.py:901-908 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:779-786 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:869-876 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:935-942 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:981-988 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 604 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"264e4b545bd2b6ecfcf399847e6c660f5005d90b237af59cdbfddba33ee74b46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): examples/community/pipeline_flux_kontext_multiple_images.py:1178-1185 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1066-1073 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1374-1381 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1206-1213 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1178\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4446502f734c0c28d8bfc1d90a1747eb896f888fa858d34eb752140785ebc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): scripts/convert_flux2_to_diffusers.py:158-165 | src/diffusers/loaders/single_file_utils.py:1302-1310 | src/diffusers/loaders/single_file_utils.py:1433-1441 | src/diffusers/loaders/single_file_utils.py:1544-1551 \u2014 before extracting anything, compare \u0060scripts/convert_flux2_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux2_to_diffusers.py:158\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/convert_flux2_to_diffusers.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"90edc6e8ef8e417a4c03821c4b0e2f3404c3298baadf23d15dd908ed6555cb66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:999-1006 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:1032-1039 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1464-1471 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1482-1489 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ed04bb4dae9372d128731b9de67aa9d931386369501b013866ee632c36a321"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1437-1447 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1455-1465 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:1034-1044 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:1077-1087 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9212707d7be4ba7135d0acb000f1db324fc49b9cb6c6f66392390e980d910e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 4): src/diffusers/models/controlnets/controlnet_z_image.py:267-274 | src/diffusers/models/controlnets/controlnet_z_image.py:406-413 | src/diffusers/models/transformers/transformer_bria_fibo2.py:349-354 | src/diffusers/models/transformers/transformer_z_image.py:263-270 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ff18f4a19da13488e33ee8797637a1142ac7b0ec3f1b3e38b8af40aca375b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/diffusers/models/transformers/dit_transformer_2d.py:214-221 | src/diffusers/models/transformers/transformer_2d.py:543-550 | src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py:815-822 | src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py:1183-1190 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/dit_transformer_2d.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61959071ceb5073288b1c6aebad1f8ece1ec49c0961469d750bf2d8ab02c02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/diffusers/models/transformers/transformer_easyanimate.py:192-199 | src/diffusers/models/transformers/transformer_hunyuan_video.py:150-157 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:128-135 | src/diffusers/models/transformers/transformer_hunyuanimage.py:145-152 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_easyanimate.py:192\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_easyanimate.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7850966bedaa5a9fdfe65fee254a2272c19f37968e35e2660abc7a622e0a0c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/diffusers/models/transformers/transformer_hunyuan_video.py:612-620 | src/diffusers/models/transformers/transformer_hunyuan_video.py:771-779 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:456-464 | src/diffusers/models/transformers/transformer_hunyuanimage.py:563-571 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:612\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd33779fb229cc13bf469e0b48a9ff624198d4d9743e59cca3c67350dad06691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/models/transformers/transformer_sana_video.py:217-226 | src/diffusers/models/transformers/transformer_skyreels_v2.py:415-424 | src/diffusers/models/transformers/transformer_wan.py:396-405 | src/diffusers/models/transformers/transformer_wan_animate.py:875-884 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_video.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8ab72897b73d2c57fd017dbbf1475003f2cddc758d9c9eac4dda32219edfe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/diffusers/models/unets/unet_3d_condition.py:152-159 | src/diffusers/models/unets/unet_i2vgen_xl.py:167-174 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:119-126 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:206-213 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_3d_condition.py\u0060 and \u0060src/diffusers/models/unets/unet_i2vgen_xl.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff86a31104cc7cd8a0f18fdef130ca8925e2b9d49c8a3814ca6261e2eb5e7e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:242-249 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:268-275 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:406-413 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:432-439 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de924933d990d7112a16d9fb08803051aa3ae76ac789cd491cdcfd4290d9021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/diffusers/pipelines/chroma/pipeline_chroma.py:216-223 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:230-237 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:247-254 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:257-264 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 792 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a37a35ce80ba6536390c5af5da3cd4f17a47191b2632d9a3cc2c69c00c888b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1485-1492 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1919-1926 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1447-1454 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1562-1569 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1485\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1483\u0060 calls \u0060convert_velocity_to_x0\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1444\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49b08e9ba47ff5b1e7d3f9196eddf7449abd61770ef20f475850b4c737d786c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:165-172 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:164-173 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:226-235 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:199-208 \u2014 \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.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 32 separate duplicated blocks between them, totalling at least 343 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"854a57581b852d2cdb5581207ff86ee2a9935ae524212de39d3388e7cadbc9ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20138 lines \u00D7 5): examples/community/hd_painter.py:918-925 | examples/community/pipeline_stable_diffusion_boxdiff.py:91-98 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1076-1083 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:164-165 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:194-195 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"c076e1447e53a42baed2a28942417244bf932bfc856ce143d120a6e950ce595d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/community/lpw_stable_diffusion_xl.py:896-903 | examples/community/pipeline_demofusion_sdxl.py:360-367 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:399-406 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2863efbf673f6fb8421300c4fecb49bee30dae13ab8b6f69e5f257d9b4a3c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/community/lpw_stable_diffusion_xl.py:1760-1767 | examples/community/pipeline_sdxl_style_aligned.py:1720-1727 | src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py:126-133 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 1530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7943e0071274b91b19c2dcab458ac19cf4847a50e8f98fd57b06896d32aba05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/community/pipeline_hunyuandit_differential_img2img.py:671-682 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:721-728 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:584-591 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:671\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"65469521d1585167cc9c49942f215424bd2441b8f262e5c7ae755b396bcf5d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1373-1383 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:928-935 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:1025-1032 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1373\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, \u0060src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:1033\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:938\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":"examples/community/pipeline_stable_diffusion_xl_differential_img2img.py"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cc4bbe5860291f7dd81ec2f05892a6d7c5acc6a1296ef82eae35f223086585"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/research_projects/anytext/anytext.py:2239-2246 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1218-1225 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1235-1242 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext.py\u0060 and \u0060examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/anytext/anytext.py:2239\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, \u0060examples/research_projects/anytext/anytext.py:2247\u0060 calls \u0060is_torch_version\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1243\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext.py"},"region":{"startLine":2239}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ca4198d0df93421dbd83787ef54da016160f84c8c3c8f7e44606a98c51fcf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl.py:353-360 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:365-372 | src/diffusers/models/autoencoders/consistency_decoder_vae.py:325-332 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 342 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1f637f02746a5833a4cba5bb907083ee603c539bf643701aa44c050ff1bbff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl.py:404-411 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:416-423 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:767-774 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 342 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ba7b7a3604f3bed91d744fc8ef3a72f5ff244e6e12f6a8c9e14f7c6127b22c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:1041-1048 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1508-1515 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1526-1533 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:1041\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80717a5145230b97918c161e9f970365cd4b8b002abb7c6d5dc70b7d2469692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:119-126 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:122-129 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:118-125 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56b51666b3f7ad050eaa63278fff80b339cf905baf40aa096870b2a5a46e2a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:175-182 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:284-291 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:274-281 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e719c8534db2aa8aaa7d4a773107c5ffbfe78c4728f186dff7316375400005"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:282-291 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:391-400 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:381-390 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae9806e26e4b209d7eac87dae29f3fa05042319850279e66367911e41416ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/models/controlnets/controlnet.py:354-361 | src/diffusers/models/controlnets/controlnet_union.py:314-321 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:275-282 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_union.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb67052353dcbd4a1ff65ccbc2b921763b5084bfd88dd2d028be35e04200afe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/models/transformers/transformer_anyflow_far.py:1378-1385 | src/diffusers/models/transformers/transformer_anyflow_far.py:1598-1605 | src/diffusers/models/transformers/transformer_skyreels_v2.py:769-776 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_anyflow_far.py:1594\u0060 calls \u0060block\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py:1374\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow_far.py"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d083de7da71801185701e9c963a1cc1b3c38f45d36316ab41b731bda3c26a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/models/transformers/transformer_chronoedit.py:328-335 | src/diffusers/models/transformers/transformer_wan.py:321-328 | src/diffusers/models/transformers/transformer_wan_animate.py:797-804 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_wan.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 632 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d8156bc56d7b022ae06449a216ba38a5e5e4cd6c97ff675c39198b3b63c6e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/modular_pipelines/flux2/denoise.py:110-120 | src/diffusers/modular_pipelines/flux2/denoise.py:199-209 | src/diffusers/modular_pipelines/flux2/denoise.py:314-324 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060Flux2ModularPipeline\u0060 in one and \u0060Flux2KleinModularPipeline\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":"src/diffusers/modular_pipelines/flux2/denoise.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"006589859cb745cb1def42d9a2f479b3ed6b367ed0b198ae4035e4919e5bc877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/modular_pipelines/ltx2/encoders.py:451-458 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1650-1657 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2034-2041 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d4121beb13286408e7cff20aa0f0512ae6babdc8245289449a76fd068bb745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:834-841 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:820-827 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:961-969 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"18588b81e17a7aa2d5ed7b3e92f96e6915525231faabaaf1a672a4aa3b597ffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:838-845 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:716-723 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:467-475 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:848\u0060 calls \u0060mark_step\u0060 and \u0060src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:726\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":"src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8162055b1b32cc7f176c278166d3288a36475b2883d371a967eecf15ae2f4e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/pipelines/cogview4/pipeline_cogview4.py:580-587 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:634-642 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:955-962 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py\u0060 and \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py:580\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4.py:579\u0060 calls \u0060repeat\u0060 and \u0060src/diffusers/pipelines/glm_image/pipeline_glm_image.py:953\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"264db1d2c94980f2f7b2185cc15e699bca58929d584991611d7dd0d634fd1c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:232-239 | src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:56-62 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:116-122 \u2014 \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.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 13 separate duplicated blocks between them, totalling at least 239 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:232\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 \u0060vae\u0060 to \u0060AutoencoderKLLTXVideo\u0060 in one and \u0060AutoencoderKLLTX2Video\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":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"de595c11ba83de8963ac4ecc36ae273e9775e96cb226ad8b3219c55fa509ece6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/pipelines/helios/pipeline_helios.py:616-623 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:692-699 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:458-465 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios.py\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8975063b95e6d5f7e254fafb815ac318c3349852227a25a5afe915f9857c533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/pipelines/krea2/pipeline_krea2.py:631-638 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:660-669 | src/diffusers/pipelines/mochi/pipeline_mochi.py:630-640 \u2014 \u0060src/diffusers/pipelines/krea2/pipeline_krea2.py\u0060 and \u0060src/diffusers/pipelines/lumina2/pipeline_lumina2.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 22 separate duplicated blocks between them, totalling at least 264 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/krea2/pipeline_krea2.py:631\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a03cb4396aefd09432fd5f36df6483da25ac1fae8359c382a8b94ad10dd81af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:515-522 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1104-1111 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1149-1156 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 403 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"33da77207d3b201cc1cd0ff48de321b51381cea1ab8454b0229ae6d9a1a5fedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1418-1425 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1555-1562 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:803-809 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 925 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1418\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b32c9e3ec57d86d1f9440a37b734d49f71f4b3e779d3fa8218f123220fa81dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py:262-269 | src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py:549-556 | src/diffusers/quantizers/torchao/torchao_quantizer.py:422-429 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py:272\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/quantizers/torchao/torchao_quantizer.py:430\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f68f1e23c1fb1e96ab75347439f2817dbef47ce16a56a40d39a5aeacebdf65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/community/fresco_v2v.py:496-503 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1242-1249 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd868987328d820128cf576e9e0ae3f6c8e921c1f7aa93147d4143d16a7fd2fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/community/stable_diffusion_xl_reference.py:1066-1073 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1232-1239 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_xl_reference.py"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c5c0cf730cd5e4e4e61ee2c7f55863acf4c992bd7e01504598584dd1bd925d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): scripts/convert_aura_flow_to_diffusers.py:75-82 | src/diffusers/loaders/single_file_utils.py:2995-3002 \u2014 before extracting anything, compare \u0060scripts/convert_aura_flow_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_aura_flow_to_diffusers.py:75\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/convert_aura_flow_to_diffusers.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdf051e36a882ea75a4d2724a81c836a43fe508784e672f38f0cbc83c05f788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/guiders/adaptive_projected_guidance.py:89-96 | src/diffusers/guiders/adaptive_projected_guidance_mix.py:93-100 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/adaptive_projected_guidance.py\u0060 and \u0060src/diffusers/guiders/adaptive_projected_guidance_mix.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/adaptive_projected_guidance.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b950ac2398bda1b57c25d122556351da2018daef9f1308670bae5c88aaea025a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/guiders/adaptive_projected_guidance.py:102-109 | src/diffusers/guiders/adaptive_projected_guidance_mix.py:106-113 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/adaptive_projected_guidance.py\u0060 and \u0060src/diffusers/guiders/adaptive_projected_guidance_mix.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/adaptive_projected_guidance.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f963e1392029f047e8e4f8c48401437cd7ea1bf3cdca5be049d7dcc8628b25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/hooks/faster_cache.py:593-600 | src/diffusers/hooks/pyramid_attention_broadcast.py:244-251 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/hooks/faster_cache.py:593\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060FasterCacheConfig\u0060 in one and \u0060PyramidAttentionBroadcastConfig\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":"src/diffusers/hooks/faster_cache.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"8791c8ef2b01c393755205e199eb38ecf8ae783bde9b17060ff709bff708473d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/loaders/ip_adapter.py:192-199 | src/diffusers/loaders/ip_adapter.py:1013-1020 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c786fc654819c904fd4181925b0ee709ccf7fc3550b23c0c102dbfb31bf4307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/diffusers/loaders/single_file.py:517-524 | src/diffusers/pipelines/pipeline_utils.py:1065-1071 \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":"src/diffusers/loaders/single_file.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43869cc7a404d93bd5f1e5cfa30ed2e68d2634ce4c04a34ab95c4a48778bf4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 4): src/diffusers/loaders/single_file_utils.py:1169-1171 | src/diffusers/loaders/single_file_utils.py:1174-1181 | src/diffusers/loaders/single_file_utils.py:1190-1192 | src/diffusers/loaders/single_file_utils.py:1195-1202 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb7c64d193938acf0caa302bd1bb5291f553fea868b3445a6c5d1bc8ddf3403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/attention_processor.py:1294-1301 | src/diffusers/models/attention_processor.py:1367-1374 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"78455002ca3e07182418ad624618d8a6b9a6f5bf9324925616f8bcfc42d553ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/attention_processor.py:4811-4818 | src/diffusers/models/attention_processor.py:4833-4840 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4811}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa687b56fb7cd0886b4bd153a6ea1c67450c151c7075d8e4dd75ee652e53ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl.py:120-127 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:124-131 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_flux2.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 342 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl.py:120\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c262c439846bc61572eb9c035a7d151c8936186fe5d0cea269aa5e87b088a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:578-585 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:694-701 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"03eced51829e39a6352f49e1d5f286e57a92004ed35aa23c2e39a58a69458bf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:444-451 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:486-493 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"968dbf267783412fcc9a1df2f35b94eeaae9c29908164ffc643b093490679c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:537-544 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:578-585 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b60aa7e1f5fdd426f9bbede8d10cf7075ac3d4874c47cc5a61a8ef4b6062bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:364-371 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:527-534 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"2339faf52aa6db8e49a1730b044fefdf90bca99095e5fc4fe4ad98e57b55181f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:519-526 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:627-634 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_mochi.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bf77f4ca59363ddbe309bc52aa98e04f336f650b48ef1eb1f5c94d4d968fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:124-137 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:741-754 \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":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd82cf0924827dc1960222a426d2870b1658e56fec62e0b1976e6c2fc30a3d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_same.py:94-104 | src/diffusers/models/transformers/transformer_stable_audio3.py:118-128 \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":"src/diffusers/models/autoencoders/autoencoder_same.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0882fb0741f6f62d184f0f3dd81aadc4b299b52d60b0bc8f36f26dc8390a9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_same.py:228-235 | src/diffusers/models/transformers/transformer_stable_audio3.py:250-257 \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":"src/diffusers/models/autoencoders/autoencoder_same.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87d484b36aed0d7468355778eef6a9ebec7eaeae6c89cea10d85cd7c5d64ccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/vae.py:273-280 | src/diffusers/models/autoencoders/vae.py:493-500 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/vae.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c07404a70a964434ce3bd175b9926c0b83a40a706a2de9c4fd339094c7a866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_cosmos.py:202-209 | src/diffusers/models/controlnets/controlnet_cosmos.py:214-218 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/controlnets/controlnet_cosmos.py:202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_cosmos.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"063263200830b81d65545ed6dac0bc53f5edb4fe9a11d0cf0dd1ee0e7413fbdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_z_image.py:758-765 | src/diffusers/models/controlnets/controlnet_z_image.py:853-862 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd15235b3188af7dae9a12dc34981ba7579c84a4c953387225681f08a892119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/downsampling.py:104-111 | src/diffusers/models/upsampling.py:112-119 \u2014 before extracting anything, compare \u0060src/diffusers/models/downsampling.py\u0060 and \u0060src/diffusers/models/upsampling.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/downsampling.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"24da021f234c262c7fa0905114f68ccd2f802de1bd6ec070715d06e77ba804f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/diffusers/models/downsampling.py:131-137 | src/diffusers/models/upsampling.py:140-147 \u2014 before extracting anything, compare \u0060src/diffusers/models/downsampling.py\u0060 and \u0060src/diffusers/models/upsampling.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/downsampling.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86e6ab279c5df70890423b1cba41a3a5075cbf453191a6b2bddc02a80976e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/embeddings.py:2049-2056 | src/diffusers/models/embeddings.py:2121-2128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":2049}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7b053da0ee199efe3447dbe5d07f2f1b1fef1a2506545a39b04d51902a337f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py:23-33 | src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py:35-45 \u2014 before extracting anything, compare \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py\u0060 and \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf58f55afd80ce747eef545cde75d2bdee72fc6bdebaf1b3444c17fdfa5ab862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/lora.py:130-137 | src/diffusers/models/lora.py:414-421 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/lora.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2281eee557779c549043f19ee207b84ad2684eefeb9f5e430e3dec96032a1c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/resnet.py:268-275 | src/diffusers/models/unets/unet_dreamlite.py:169-176 \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":"src/diffusers/models/resnet.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7ecea6d5c1a5d72b3462580d639296b8718db6964f55af90352d1b0412b940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/minimax_music3_rvq_depth_decoder.py:33-40 | src/diffusers/models/transformers/transformer_minimax_music3.py:84-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_minimax_music3.py:94\u0060 calls \u0060_apply_partial_rotary_emb\u0060 and \u0060src/diffusers/models/transformers/minimax_music3_rvq_depth_decoder.py:43\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/minimax_music3_rvq_depth_decoder.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b124f97c6db699a8f458f479a83960c4d79ff50f5cbc84e5041c4c8f03370123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/pixart_transformer_2d.py:155-162 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:455-462 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/pixart_transformer_2d.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"048707a7aa7689cf8f571bbeb9aa7e2b144a455e0a3dcf8fee6e98b0ecd84248"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/models/transformers/sana_transformer.py:47-60 | src/diffusers/models/transformers/transformer_sana_video.py:46-59 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/sana_transformer.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_video.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_sana_video.py:61\u0060 calls \u0060Conv2d\u0060 and \u0060src/diffusers/models/transformers/sana_transformer.py:62\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a80cb839c109b6ba69e8466b3fbfa5b0cf6c12df265a53ab77fb25ae9ba13c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/sana_transformer.py:114-121 | src/diffusers/models/transformers/transformer_sana_video.py:269-276 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/sana_transformer.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_video.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c8e28fc63e64757276a151d5feb4a3c495e79b10c60927906b170c1f9bcd9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow.py:709-716 | src/diffusers/models/transformers/transformer_anyflow_far.py:1384-1390 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow.py:709\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"e957bcb9c3851e1b1cef88e641e4d3dfd595e90b286b5ce10b521e26676b9ed3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/transformer_bria_fibo2.py:105-112 | src/diffusers/models/transformers/transformer_z_image.py:287-294 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_z_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria_fibo2.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ac7ab292627bbfc4c7ea91f1308d6e55e22663be7b8f6fab4b15b39abe4e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:141-148 | src/diffusers/models/transformers/transformer_easyanimate.py:133-140 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9664ba45c66f0e6327371e39aec3cebd6e78721babbc55995b244e6f44b3a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:153-160 | src/diffusers/models/transformers/transformer_glm_image.py:292-299 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_cogview4.py\u0060 and \u0060src/diffusers/models/transformers/transformer_glm_image.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"202077cf19353dde569af19f5f6deba8f0ea84265c349a74ec19fbb86e1d1d34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/transformer_flux2.py:588-595 | src/diffusers/models/transformers/transformer_flux2.py:661-668 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_flux2.py:661\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b588313b9c06f7b7ee71032d3fa9aebd0778bd0f366144d86de404c32733145"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/transformer_flux2.py:603-610 | src/diffusers/models/transformers/transformer_flux2.py:676-683 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d9bef6037c708b0fe362c4b0f191589fba8449094fef0871ffbd849f846cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video.py:419-426 | src/diffusers/models/transformers/transformer_hunyuanimage.py:354-361 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 440 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3c656f3b352ce69876572cbbb71e52797ebb471633b3cb939e9203a3243824"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/transformer_joyimage.py:357-364 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:307-314 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_joyimage.py\u0060 and \u0060src/diffusers/models/transformers/transformer_joyimage_edit_plus.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"13104436bda795ea0ee316121d8424328792ea622eb2d882d07b1b647e79bd7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky6.py:288-295 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:225-232 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_kandinsky6.py\u0060 and \u0060src/diffusers/models/transformers/transformer_kandinsky6_sr.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe27374eb322f549529c756f066178926dc305487b54c660418b4a16db1061b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/transformer_longcat_image.py:450-457 | src/diffusers/models/transformers/transformer_nucleusmoe_image.py:823-830 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_longcat_image.py:450\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_longcat_image.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e841d3c0fb283b8e3ceb2f89cf30f89e090356d190fdc0fdc8520a431a8290"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3.py:227-242 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:210-225 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2fe1cd2c3e69a55d19b043df69f2ed4dec594153837e941e4d60bd01191106"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/transformer_stable_audio3.py:257-264 | src/diffusers/models/transformers/transformer_stable_audio3.py:301-308 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_stable_audio3.py:299\u0060 calls \u0060Linear\u0060 and \u0060src/diffusers/models/transformers/transformer_stable_audio3.py:255\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_stable_audio3.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c185675743bd4b1b3b782df761aa7a241a91e102072a13dbaf4d07abd9ce88da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/unets/unet_stable_cascade.py:477-484 | src/diffusers/models/unets/unet_stable_cascade.py:527-534 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_stable_cascade.py:477\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"928d493b8d294480c83ea5c5d801c123d7e1a19ff1146d14b16a3781b287490d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/upsampling.py:296-304 | src/diffusers/models/upsampling.py:497-504 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/upsampling.py:296\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/diffusers/models/upsampling.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"a914b0103a2ac1982267c963a94c74876abf3daaecbe10db8ac9007c34f33778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): src/diffusers/modular_pipelines/anima/decoders.py:54-59 | src/diffusers/modular_pipelines/qwenimage21/decoders.py:168-175 \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 \u0060src/diffusers/modular_pipelines/qwenimage21/decoders.py:168\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 \u0060components\u0060 to \u0060AnimaModularPipeline\u0060 in one and \u0060QwenImage21ModularPipeline\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":"src/diffusers/modular_pipelines/anima/decoders.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b091e5f4f8465951a4f4c249223e13875f74b60ee11b7bf299aa04cd641bdf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/diffusers/modular_pipelines/anima/denoise.py:159-166 | src/diffusers/modular_pipelines/ernie_image/denoise.py:169-175 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060AnimaModularPipeline\u0060 in one and \u0060ErnieImageModularPipeline\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":"src/diffusers/modular_pipelines/anima/denoise.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9cb95cef912e7eb3708ea6e336c60230ebc32fd3dd22e04a637dc7c1496ffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/modular_pipelines/components_manager.py:671-678 | src/diffusers/modular_pipelines/components_manager.py:683-690 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"d326de4ce176bbdabd8b60178ae7feae852fd58058e1bb8a4bb5ac239c8cf04c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/modular_pipelines/flux/before_denoise.py:384-391 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:473-480 \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 \u0060src/diffusers/modular_pipelines/flux/before_denoise.py:384\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":"src/diffusers/modular_pipelines/flux/before_denoise.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7f0de28035da9f8edddc3f977786035f8c187adade31056bc2ef718b2f739e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/modular_pipelines/flux/before_denoise.py:405-412 | src/diffusers/modular_pipelines/flux2/before_denoise.py:301-308 \u2014 \u0060src/diffusers/modular_pipelines/flux/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/flux2/before_denoise.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 5 separate duplicated blocks between them, totalling at least 79 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060FluxModularPipeline\u0060 in one and \u0060Flux2ModularPipeline\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":"src/diffusers/modular_pipelines/flux/before_denoise.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"223f81e3681808611520f37e6d52a97a89af480c655a6e39f987cd5f1599aa46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/modular_pipelines/helios/before_denoise.py:554-561 | src/diffusers/modular_pipelines/helios/encoders.py:391-398 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"087a0df90e2a702ab80abb460ba5c45863d10abc1485bebc7eda3da9ae642f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/modular_pipelines/ideogram4/encoders.py:306-313 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:362-369 \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":"src/diffusers/modular_pipelines/ideogram4/encoders.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a980f56d776d87a4132ce390b0cc4dcb2a972645abf5303da881af1f4572e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/modular_pipelines/krea2/encoders.py:180-187 | src/diffusers/modular_pipelines/krea2/encoders.py:276-283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/krea2/encoders.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"9435e609c0ec9c92613ccebc4398711b986d121da2254761de63e6fca9601482"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/modular_pipelines/ltx2/before_denoise.py:1079-1086 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:1412-1419 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/ltx2/before_denoise.py:1420\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/modular_pipelines/ltx2/before_denoise.py:1087\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf1b8d5e615fb92634c20780d9985307cda4572dc89cd2a1c18614499da4964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/modular_pipelines/ltx2/encoders.py:809-816 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1592-1609 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12b4e785d3f75ac8635d5ac7b830348f6af82fc18ddd897ba3aa341d8cb1070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:829-836 | src/diffusers/pipelines/consisid/pipeline_consisid.py:896-903 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py\u0060 and \u0060src/diffusers/pipelines/consisid/pipeline_consisid.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:839\u0060 calls \u0060cache_context\u0060 and \u0060src/diffusers/pipelines/consisid/pipeline_consisid.py:906\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e29e5b9a23542865c2d9c81a17f25b8a6058e75dd8664a847d6f3588d9f2492"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:665-672 | src/diffusers/pipelines/latte/pipeline_latte.py:795-802 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py\u0060 and \u0060src/diffusers/pipelines/latte/pipeline_latte.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bd516d1335b6c79afa65904a241b2e0924b91d11d68cb29ffa98e2b7a9982c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:239-246 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:240-247 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 as WHOLE FILES: this scan already matched 121 separate duplicated blocks between them, totalling at least 1758 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d99c62758513339770c66f468388af2c927cac2c3e09f0d402d0d797a4b4e32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1238-1245 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1261-1268 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e44520757dfd1b9b3100e0f9ab2a7f3ef6563d10e7c7ac4b210c3e0ad450b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:658-664 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:673-680 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:673\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb0ae1f3e2b3822de5fad481818cc64dbebdfd17164d3e4e85193d094cc03e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:280-288 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:211-218 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 541 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e5dd54bef1b596016ffc3834a3aa6ddc362222fe8780d9f2c6170c33f4dbc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1144-1151 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1029-1037 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 329 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1144\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e9a28f529cec1ba4dfd5a133784e469b882cf7fefe0a4311c096c819b67f52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:239-247 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:286-294 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93643875158258fed3bd98738d58ec43bc697b96496f26a27c7631463a07b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/shap_e/renderer.py:971-978 | src/diffusers/pipelines/shap_e/renderer.py:1024-1031 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/shap_e/renderer.py"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb9994bc03517a62debc3b092be97d3be6a1022b778ce37c79b50a72ee5abfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:570-577 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:580-587 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_omni.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcffa74197ecf2cc78901a2e63f224b2055a2d98dc2c6707641e9b8bc91473b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 4): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1123-1130 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:977-984 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1031-1033 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:666-668 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"3670b0370e5e99a11ad348702398ab2bc73519cff8e67fd67ce80dc67ba69e6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): utils/check_inits.py:145-152 | utils/check_inits.py:175-181 \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 \u0060utils/check_inits.py:145\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":"utils/check_inits.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd7f5453ff6f3aeff24b72042358a8292cda7894a98b8d1b4af1da7f142c82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 148): examples/community/pipeline_flux_differential_img2img.py:999-1006 | examples/community/pipeline_flux_kontext_multiple_images.py:1199-1206 | examples/community/pipeline_flux_rf_inversion.py:930-937 | examples/community/pipeline_flux_semantic_guidance.py:1338-1345 | examples/community/pipeline_flux_with_cfg.py:850-857 | examples/community/pipeline_hunyuandit_differential_img2img.py:1114-1122 | examples/community/pipeline_kolors_differential_img2img.py:1226-1232 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:952-960 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1240-1248 | examples/community/pipeline_stg_cogvideox.py:852-858 | examples/community/pipeline_stg_hunyuan_video.py:794-801 | examples/community/pipeline_stg_ltx.py:835-842 | examples/community/pipeline_stg_ltx_image2video.py:934-941 | examples/community/pipeline_stg_mochi.py:825-832 | examples/community/pipeline_stg_wan.py:628-635 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1296-1302 | src/diffusers/pipelines/allegro/pipeline_allegro.py:912-918 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1100-1107 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:1006-1013 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1050-1057 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1338-1345 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:649-656 | src/diffusers/pipelines/bria/pipeline_bria.py:722-729 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:704-711 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:951-958 | src/diffusers/pipelines/chroma/pipeline_chroma.py:900-907 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:983-990 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1176-1183 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:715-722 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:774-780 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:829-835 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:884-890 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:855-861 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:662-668 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:663-669 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:715-721 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1559-1566 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1020-1028 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1228-1237 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1387-1396 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:832-839 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:635-642 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:754-761 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:625-632 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:793-800 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:889-895 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1074-1081 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:941-948 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:752-758 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:988-994 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1223-1229 | src/diffusers/pipelines/flux/pipeline_flux.py:947-954 | src/diffusers/pipelines/flux/pipeline_flux_control.py:840-847 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:923-930 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1092-1099 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1178-1185 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:994-1000 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1189-1195 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:989-996 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1037-1044 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1205-1212 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1087-1094 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1406-1413 | src/diffusers/pipelines/flux2/pipeline_flux2.py:1003-1010 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:895-902 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1238-1245 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:855-861 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:1044-1050 | src/diffusers/pipelines/helios/pipeline_helios.py:906-912 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:1082-1092 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:967-974 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:845-852 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:735-742 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:762-769 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:714-721 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:1006-1013 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:935-942 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:882-890 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:927-936 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:815-824 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:1001-1010 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:769-778 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1023-1029 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1203-1209 | src/diffusers/pipelines/krea2/pipeline_krea2.py:684-691 | src/diffusers/pipelines/latte/pipeline_latte.py:855-861 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1189-1196 | src/diffusers/pipelines/ltx/pipeline_ltx.py:805-812 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1239-1246 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:903-910 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1605-1612 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:2055-2062 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1555-1561 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2490-2496 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1709-1716 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:704-711 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:722-729 | src/diffusers/pipelines/mochi/pipeline_mochi.py:684-691 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:614-620 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:687-694 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1302-1309 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1508-1515 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1562-1569 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1623-1630 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:935-943 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1086-1092 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:883-889 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1048-1055 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:972-981 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1040-1049 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:857-864 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1079-1085 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1357-1364 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1290-1296 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1482-1489 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1715-1722 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:690-697 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:933-940 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:904-911 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:819-826 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1045-1052 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:863-870 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:792-799 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:973-980 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:867-874 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:828-834 | src/diffusers/pipelines/sana/pipeline_sana.py:947-954 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:1043-1050 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:828-835 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:918-925 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:980-987 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:1033-1040 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:584-591 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:930-939 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:1009-1018 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:1019-1028 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:717-724 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1128-1135 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1147-1156 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1358-1365 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:614-620 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:884-892 | src/diffusers/pipelines/wan/pipeline_wan.py:651-658 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1156-1163 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:808-815 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:1013-1020 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:710-717 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:914-921 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:927\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, \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:1114\u0060 calls \u0060pop\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1199\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"539d603384bd32657ec8ba17b3b61972ded5ad232734f91aa6916ee3296d07ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 116): examples/community/gluegen.py:508-516 | examples/community/instaflow_one_step.py:484-492 | examples/community/ip_adapter_face_id.py:765-773 | examples/community/latent_consistency_interpolate.py:484-492 | examples/community/llm_grounded_diffusion.py:1491-1499 | examples/community/lpw_stable_diffusion.py:782-790 | examples/community/lpw_stable_diffusion_xl.py:1107-1115 | examples/community/masked_stable_diffusion_xl_img2img.py:642-649 | examples/community/matryoshka.py:4155-4163 | examples/community/pipeline_animatediff_controlnet.py:676-684 | examples/community/pipeline_controlnet_xl_kolors.py:703-710 | examples/community/pipeline_controlnet_xl_kolors.py:723-730 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:862-869 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:938-945 | examples/community/pipeline_demofusion_sdxl.py:491-499 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1622-1629 | examples/community/pipeline_prompt2prompt.py:543-551 | examples/community/pipeline_sdxl_style_aligned.py:930-938 | examples/community/pipeline_stable_diffusion_boxdiff.py:904-911 | examples/community/pipeline_stable_diffusion_pag.py:899-907 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:761-769 | examples/community/pipeline_zero1to3.py:509-517 | examples/community/regional_prompting_stable_diffusion.py:514-522 | examples/community/stable_diffusion_controlnet_inpaint.py:643-651 | examples/community/stable_diffusion_ipex.py:545-553 | examples/community/stable_diffusion_reference.py:626-634 | examples/community/stable_diffusion_repaint.py:533-541 | examples/community/stable_diffusion_tensorrt_txt2img.py:776-783 | examples/research_projects/anytext/anytext.py:1863-1871 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:771-779 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:810-818 | examples/research_projects/rdm/pipeline_rdm.py:131-139 | src/diffusers/modular_pipelines/flux2/before_denoise.py:285-291 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1023-1031 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:751-759 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:634-642 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:828-836 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:397-404 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:302-310 | src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py:96-103 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:833-841 | src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:160-167 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:893-901 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:870-878 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:558-566 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:632-640 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:344-352 | src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py:149-156 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:602-610 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:651-659 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:494-502 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:381-389 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:295-303 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:573-581 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:206-214 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:603-611 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:761-769 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:496-504 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:534-542 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:674-682 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:684-692 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:436-444 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:556-564 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:478-486 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:463-471 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:671-679 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:432-440 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:528-536 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:489-497 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:669-676 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:705-713 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:728-735 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:356-364 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:221-229 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:307-315 | src/diffusers/pipelines/flux2/pipeline_flux2.py:638-644 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:497-503 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:505-511 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:529-537 | src/diffusers/pipelines/kolors/pipeline_kolors.py:545-553 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:501-509 | src/diffusers/pipelines/latte/pipeline_latte.py:574-582 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:464-471 | src/diffusers/pipelines/lumina/pipeline_lumina.py:602-610 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:438-445 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:793-801 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:901-909 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:540-548 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:563-571 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:558-566 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:667-675 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:726-734 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:670-678 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:615-623 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:469-477 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:493-499 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:502-510 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:679-687 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:679-687 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:418-425 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:395-402 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:405-412 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:348-354 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:348-354 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:351-357 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:700-708 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:243-251 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:846-854 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:561-569 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:715-723 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:494-502 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:353-361 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:604-612 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:744-752 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:705-712 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:415-422 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:508\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, \u0060examples/community/pipeline_stable_diffusion_boxdiff.py:902\u0060 calls \u0060prepare_latents\u0060, \u0060isinstance\u0060 and \u0060examples/community/llm_grounded_diffusion.py:1491\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":"examples/community/gluegen.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d2555ec41e708fd7b526e9fc168546ac08467b92d200e24aef72044949fc15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 93): examples/community/adaptive_mask_inpainting.py:451-457 | examples/community/edict_pipeline.py:29-36 | examples/community/fresco_v2v.py:1340-1346 | examples/community/gluegen.py:218-224 | examples/community/instaflow_one_step.py:183-189 | examples/community/ip_adapter_face_id.py:266-272 | examples/community/kohya_hires_fix.py:460-466 | examples/community/latent_consistency_img2img.py:66-72 | examples/community/latent_consistency_interpolate.py:270-276 | examples/community/latent_consistency_txt2img.py:64-70 | examples/community/llm_grounded_diffusion.py:411-417 | examples/community/lpw_stable_diffusion.py:569-575 | examples/community/mod_controlnet_tile_sr_sdxl.py:344-350 | examples/community/pipeline_animatediff_controlnet.py:185-191 | examples/community/pipeline_animatediff_img2video.py:305-311 | examples/community/pipeline_fabric.py:180-186 | examples/community/pipeline_flux_rf_inversion.py:217-223 | examples/community/pipeline_flux_semantic_guidance.py:219-225 | examples/community/pipeline_prompt2prompt.py:206-212 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:200-207 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:244-250 | examples/community/pipeline_stable_diffusion_boxdiff.py:492-498 | examples/community/pipeline_stable_diffusion_pag.py:459-465 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:239-246 | examples/community/regional_prompting_stable_diffusion.py:122-128 | examples/community/rerender_a_video.py:349-355 | examples/community/stable_diffusion_reference.py:220-226 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:230-236 | examples/research_projects/rdm/pipeline_rdm.py:74-81 | src/diffusers/pipelines/chroma/pipeline_chroma.py:196-202 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:251-257 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:229-235 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:232-238 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:278-284 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:269-275 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:270-276 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:288-294 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:234-240 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:244-251 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:285-291 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:313-319 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:185-191 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:202-208 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:210-216 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:92-98 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:252-258 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:378-384 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:176-182 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:240-246 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:239-245 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:167-173 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:244-250 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:215-221 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:118-124 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:142-148 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:363-369 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:128-135 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:91-97 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:73-79 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:78-84 | src/diffusers/pipelines/flux/pipeline_flux.py:202-208 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:224-230 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:255-261 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:234-240 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:225-231 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:227-234 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:204-210 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:215-221 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:399-405 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:227-234 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:253-260 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:167-173 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:259-265 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:233-239 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:284-290 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:272-278 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:291-297 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:197-203 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:213-219 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:286-292 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:318-324 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:290-296 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:161-167 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:134-140 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:314-320 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:265-271 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:162-168 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:120-126 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:156-162 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:159-166 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:160-167 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:213-219 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:267-273 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 93 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 93 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:451\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: \u0060DiffusionPipeline\u0060 names \u0060...pipelines.pipeline_utils\u0060 in one and \u0060diffusers\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/instaflow_one_step.py:191\u0060 calls \u0060register_to_config\u0060 and \u0060examples/community/latent_consistency_img2img.py:75\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e86a91bff5373cb49ec1ea27b15d70ca1cd96a2fe98ec80ac31898f2b6afc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 79): examples/community/pipeline_animatediff_ipex.py:473-479 | examples/community/pipeline_flux_differential_img2img.py:455-461 | examples/community/pipeline_flux_with_cfg.py:407-413 | examples/community/pipeline_hunyuandit_differential_img2img.py:565-570 | examples/community/pipeline_kolors_differential_img2img.py:505-511 | examples/community/pipeline_stg_cogvideox.py:442-448 | examples/community/pipeline_stg_hunyuan_video.py:412-418 | examples/community/pipeline_stg_ltx.py:404-410 | examples/community/pipeline_stg_ltx_image2video.py:428-434 | examples/community/pipeline_stg_mochi.py:411-417 | examples/community/pipeline_stg_wan.py:320-326 | src/diffusers/pipelines/allegro/pipeline_allegro.py:384-390 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:505-511 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:684-690 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:507-513 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:573-579 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:609-615 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:754-760 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:348-354 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:388-394 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:428-434 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:478-484 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:348-354 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:329-335 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:367-373 | src/diffusers/pipelines/consisid/pipeline_consisid.py:580-586 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:492-498 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:576-582 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:503-509 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:376-382 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:444-450 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:360-366 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:465-471 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:467-473 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:434-440 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:545-551 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:587-593 | src/diffusers/pipelines/helios/pipeline_helios.py:290-296 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:309-315 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:381-387 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:351-357 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:471-477 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:509-515 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:463-469 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:550-556 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:589-595 | src/diffusers/pipelines/kolors/pipeline_kolors.py:475-481 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:499-505 | src/diffusers/pipelines/latte/pipeline_latte.py:384-390 | src/diffusers/pipelines/ltx/pipeline_ltx.py:378-384 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:470-476 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:402-408 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:477-483 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:530-536 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:291-297 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:307-313 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:532-538 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:552-558 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:483-489 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:334-340 | src/diffusers/pipelines/mochi/pipeline_mochi.py:349-355 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:569-575 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:474-480 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:493-499 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:365-371 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:469-475 | src/diffusers/pipelines/sana/pipeline_sana.py:441-447 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:456-462 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:349-355 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:373-379 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:464-470 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:290-296 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:314-320 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:332-338 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:377-383 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:346-352 | src/diffusers/pipelines/wan/pipeline_wan.py:293-299 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:360-366 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:359-365 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 79 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 79 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:473\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_flux_differential_img2img.py:452\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py:471\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"093b8a2cdea1c4a613937e34827960447f11e491522e5cb219f6d24c9123b786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 75): examples/community/adaptive_mask_inpainting.py:551-559 | examples/community/composable_stable_diffusion.py:195-201 | examples/community/fresco_v2v.py:1485-1493 | examples/community/gluegen.py:314-322 | examples/community/instaflow_one_step.py:284-292 | examples/community/ip_adapter_face_id.py:552-560 | examples/community/latent_consistency_img2img.py:108-116 | examples/community/latent_consistency_interpolate.py:349-357 | examples/community/latent_consistency_txt2img.py:106-114 | examples/community/llm_grounded_diffusion.py:1300-1308 | examples/community/pipeline_animatediff_controlnet.py:266-274 | examples/community/pipeline_animatediff_img2video.py:383-391 | examples/community/pipeline_animatediff_ipex.py:237-245 | examples/community/pipeline_fabric.py:248-256 | examples/community/pipeline_prompt2prompt.py:318-326 | examples/community/pipeline_stable_diffusion_boxdiff.py:655-663 | examples/community/pipeline_stable_diffusion_pag.py:621-629 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:261-269 | examples/community/pipeline_zero1to3.py:238-246 | examples/community/regional_prompting_stable_diffusion.py:599-607 | examples/community/regional_prompting_stable_diffusion.py:1135-1141 | examples/community/stable_diffusion_controlnet_img2img.py:230-238 | examples/community/stable_diffusion_controlnet_inpaint.py:329-337 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:314-322 | examples/community/stable_diffusion_ipex.py:361-369 | examples/community/stable_diffusion_reference.py:480-488 | examples/community/stable_diffusion_repaint.py:334-342 | examples/research_projects/anytext/anytext.py:1428-1436 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:390-398 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:222-230 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:267-275 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:276-284 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:324-332 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:355-363 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:366-374 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:344-352 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:350-358 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:395-403 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:423-431 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:300-308 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:211-219 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:284-292 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:364-372 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:490-498 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:288-296 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:319-327 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:380-388 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:351-359 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:279-287 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:356-364 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:327-335 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:260-268 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:257-265 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:475-483 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:227-235 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:262-270 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:884-892 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:309-317 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:294-302 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:343-351 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:319-327 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:372-380 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:233-241 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:367-375 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:402-410 | src/diffusers/pipelines/shap_e/pipeline_shap_e.py:157-163 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:400-408 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:272-280 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:426-434 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:380-388 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:546-554 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:285-293 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:365-373 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:327-335 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:379-387 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:551\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"95177239b64b90a2ca474adefb41dda68f51966c300b51df775d223a5d6f58c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 74): examples/community/masked_stable_diffusion_xl_img2img.py:453-460 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2188-2195 | examples/community/pipeline_flux_differential_img2img.py:992-999 | examples/community/pipeline_flux_kontext_multiple_images.py:1192-1199 | examples/community/pipeline_flux_rf_inversion.py:923-930 | examples/community/pipeline_flux_semantic_guidance.py:1331-1338 | examples/community/pipeline_flux_with_cfg.py:843-850 | examples/community/pipeline_kolors_differential_img2img.py:1212-1219 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:943-950 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1229-1236 | examples/community/pipeline_stg_mochi.py:818-825 | examples/community/pipeline_z_image_differential_img2img.py:814-821 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1286-1293 | examples/community/stable_diffusion_xl_reference.py:1128-1135 | src/diffusers/pipelines/bria/pipeline_bria.py:714-721 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:696-703 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:943-950 | src/diffusers/pipelines/chroma/pipeline_chroma.py:893-900 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:976-983 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1169-1176 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1219-1226 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1378-1385 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1159-1166 | src/diffusers/pipelines/flux/pipeline_flux.py:940-947 | src/diffusers/pipelines/flux/pipeline_flux_control.py:833-840 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:916-923 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1085-1092 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1170-1177 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:986-993 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1179-1186 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:982-989 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1030-1037 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1198-1205 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1080-1087 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1399-1406 | src/diffusers/pipelines/flux2/pipeline_flux2.py:996-1003 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:888-895 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1231-1238 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:848-855 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:958-965 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:838-845 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:728-735 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1009-1016 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1189-1196 | src/diffusers/pipelines/krea2/pipeline_krea2.py:677-684 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1182-1189 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1325-1332 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:1347-1355 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:715-722 | src/diffusers/pipelines/mochi/pipeline_mochi.py:677-684 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:608-614 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:680-687 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1072-1079 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:963-970 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1031-1038 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1276-1283 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1468-1475 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:683-690 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:926-933 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:897-904 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:812-819 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1038-1045 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:856-863 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:785-792 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:966-973 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:860-867 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:822-828 | src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:632-638 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1120-1127 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1138-1145 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1345-1352 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1241-1248 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1426-1433 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:877-884 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 74 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 74 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:1347\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, \u0060examples/community/masked_stable_diffusion_xl_img2img.py:462\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1228\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":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6094e4c9c5ea310e959f29b7dec6234002996f7469f21adbff1f23404347d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 61): examples/community/pipeline_flux_differential_img2img.py:992-999 | examples/community/pipeline_flux_kontext_multiple_images.py:1192-1199 | examples/community/pipeline_flux_rf_inversion.py:923-930 | examples/community/pipeline_flux_semantic_guidance.py:1331-1338 | examples/community/pipeline_flux_with_cfg.py:843-850 | examples/community/pipeline_stg_hunyuan_video.py:787-794 | examples/community/pipeline_stg_ltx.py:828-835 | examples/community/pipeline_stg_ltx_image2video.py:927-934 | examples/community/pipeline_stg_mochi.py:818-825 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:642-649 | src/diffusers/pipelines/chroma/pipeline_chroma.py:893-900 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:976-983 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1169-1176 | src/diffusers/pipelines/flux/pipeline_flux.py:940-947 | src/diffusers/pipelines/flux/pipeline_flux_control.py:833-840 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:916-923 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1085-1092 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:982-989 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1030-1037 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1198-1205 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1080-1087 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1399-1406 | src/diffusers/pipelines/flux2/pipeline_flux2.py:996-1003 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:888-895 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1231-1238 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:848-855 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:838-845 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:728-735 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:755-762 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:707-714 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:999-1006 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:928-935 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:714-720 | src/diffusers/pipelines/krea2/pipeline_krea2.py:677-684 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1182-1189 | src/diffusers/pipelines/longcat_audio_dit/pipeline_longcat_audio_dit.py:342-349 | src/diffusers/pipelines/ltx/pipeline_ltx.py:798-805 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1232-1239 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:896-903 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1598-1605 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:2048-2055 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1548-1555 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2483-2490 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1702-1709 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:715-722 | src/diffusers/pipelines/mochi/pipeline_mochi.py:677-684 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:608-614 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:680-687 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:683-690 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:926-933 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:897-904 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:812-819 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1038-1045 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:856-863 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:785-792 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:966-973 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:860-867 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:822-828 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:821-828 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:911-918 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:877-884 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1700\u0060 calls \u0060step\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:894\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"beaf4c928704187b701d46cd03968c460c876bd43044b87c942a31b5353ffe1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 59): examples/community/clip_guided_stable_diffusion_img2img.py:222-228 | examples/community/fresco_v2v.py:2002-2008 | examples/community/latent_consistency_img2img.py:226-232 | examples/community/lpw_stable_diffusion_xl.py:1169-1175 | examples/community/masked_stable_diffusion_xl_img2img.py:621-627 | examples/community/mod_controlnet_tile_sr_sdxl.py:938-944 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:839-845 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:915-921 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1785-1791 | examples/community/pipeline_flux_differential_img2img.py:574-580 | examples/community/pipeline_flux_kontext_multiple_images.py:758-764 | examples/community/pipeline_hunyuandit_differential_img2img.py:686-692 | examples/community/pipeline_kolors_differential_img2img.py:674-680 | examples/community/pipeline_sdxl_style_aligned.py:992-998 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:628-634 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:731-737 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:699-705 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:609-615 | examples/community/rerender_a_video.py:578-584 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:179-185 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:590-596 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:632-638 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:861-867 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:971-977 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:962-968 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:703-709 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:594-600 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:648-654 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:572-578 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:611-617 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:573-579 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:599-605 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:671-677 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:649-655 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:668-674 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:647-653 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:724-730 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:743-749 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:272-278 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:671-677 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:558-564 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:437-443 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:977-983 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:691-697 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:707-713 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:769-775 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:458-464 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:518-524 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:478-484 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:447-453 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:474-480 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:490-496 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:594-600 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:543-549 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:783-789 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:889-895 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:707-713 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:756-762 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:547-553 \u2014 there are 59 copies across 57 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 59 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060image\u0060 to \u0060PipelineImageInput\u0060 in one and \u0060torch.Tensor\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 before the matched lines, \u0060examples/community/clip_guided_stable_diffusion_img2img.py:220\u0060 calls \u0060deprecate\u0060 and \u0060examples/community/latent_consistency_img2img.py:223\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc9b6786816b913098ced9f45c9f54c62800bce097f62e0322c4a33f674ba54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 59): examples/community/masked_stable_diffusion_xl_img2img.py:471-477 | examples/community/matryoshka.py:4555-4561 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2205-2211 | examples/community/pipeline_kolors_inpainting.py:1649-1655 | examples/community/pipeline_sdxl_style_aligned.py:1866-1872 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2242-2248 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1394-1400 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1122-1128 | examples/community/regional_prompting_stable_diffusion.py:1083-1089 | examples/community/stable_diffusion_xl_reference.py:1146-1152 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1063-1069 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1325-1331 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1299-1305 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1485-1491 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1848-1854 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1550-1556 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1607-1613 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1860-1866 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1654-1660 | src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:305-312 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:332-338 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py:363-369 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:537-543 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:618-624 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:606-612 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1019-1025 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1520-1526 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:833-839 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:1025-1031 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:1021-1027 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1171-1177 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:749-755 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:850-856 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:636-642 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:691-697 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:459-465 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:1358-1364 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:549-555 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:614-620 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:967-973 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:896-902 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:855-861 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:960-966 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:886-892 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:712-718 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1076-1082 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:878-884 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:410-416 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1133-1139 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1323-1329 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:466-472 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:654-660 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:772-778 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1254-1260 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1439-1445 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1678-1684 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:922-928 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:927-933 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1272-1278 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 59 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 59 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused.py:305\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, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1858\u0060 calls \u0060upcast_vae\u0060, \u0060to\u0060, \u0060next\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1334\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"5168441644f1d3651f738f68fb841dca37d926c8a83239fab2b7d3b33f40cecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 50): examples/community/pipeline_flux_differential_img2img.py:992-999 | examples/community/pipeline_flux_kontext_multiple_images.py:1192-1199 | examples/community/pipeline_flux_rf_inversion.py:923-930 | examples/community/pipeline_flux_semantic_guidance.py:1331-1338 | examples/community/pipeline_flux_with_cfg.py:843-850 | examples/community/pipeline_stg_ltx_image2video.py:925-934 | examples/community/pipeline_stg_mochi.py:818-825 | src/diffusers/pipelines/chroma/pipeline_chroma.py:893-900 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:976-983 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1169-1176 | src/diffusers/pipelines/flux/pipeline_flux.py:940-947 | src/diffusers/pipelines/flux/pipeline_flux_control.py:833-840 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:916-923 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1085-1092 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:982-989 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1030-1037 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1198-1205 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1080-1087 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1399-1406 | src/diffusers/pipelines/flux2/pipeline_flux2.py:996-1003 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:888-895 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1231-1238 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:848-855 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:838-845 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:728-735 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:928-935 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:712-720 | src/diffusers/pipelines/krea2/pipeline_krea2.py:677-684 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1182-1189 | src/diffusers/pipelines/longcat_audio_dit/pipeline_longcat_audio_dit.py:342-349 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:1347-1355 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:894-903 | src/diffusers/pipelines/lumina/pipeline_lumina.py:912-919 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:715-722 | src/diffusers/pipelines/mochi/pipeline_mochi.py:677-684 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:608-614 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:680-687 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:683-690 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:926-933 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:897-904 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:812-819 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1038-1045 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:856-863 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:785-792 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:966-973 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:860-867 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:822-828 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:819-828 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:909-918 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:877-884 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py:712\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, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1203\u0060 calls \u0060update\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:1357\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbde714715fcd8bca24f70c78ba8b516baa955b91e6ca13f13c1004d663dc2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 44): examples/community/latent_consistency_interpolate.py:928-938 | examples/community/masked_stable_diffusion_xl_img2img.py:453-460 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2188-2195 | examples/community/pipeline_kolors_differential_img2img.py:1212-1219 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:943-950 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1229-1236 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1374-1383 | examples/community/pipeline_stg_cogvideox.py:844-851 | examples/community/pipeline_z_image_differential_img2img.py:814-821 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1286-1293 | examples/community/stable_diffusion_xl_reference.py:1128-1135 | src/diffusers/pipelines/bria/pipeline_bria.py:714-721 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:696-703 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:943-950 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:766-773 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:821-828 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:876-883 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:847-854 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:654-661 | src/diffusers/pipelines/consisid/pipeline_consisid.py:950-957 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1219-1226 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1378-1385 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1159-1166 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1170-1177 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:986-993 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1179-1186 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:958-965 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1009-1016 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1189-1196 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:954-961 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:883-890 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1325-1332 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1072-1079 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:963-970 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1031-1038 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1276-1283 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1468-1475 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:1025-1032 | src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:632-638 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1120-1127 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1138-1145 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1345-1352 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1241-1248 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1426-1433 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 44 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 44 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/latent_consistency_interpolate.py:928\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, \u0060examples/community/masked_stable_diffusion_xl_img2img.py:462\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1228\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":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"095ac6ad91577de8b416f9c8cafcf6129d95aa3bdaeb3e52f49ec86528c8b350"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 44): examples/community/lpw_stable_diffusion_xl.py:811-820 | examples/community/mixture_tiling_sdxl.py:494-503 | examples/community/mod_controlnet_tile_sr_sdxl.py:501-510 | examples/community/pipeline_demofusion_sdxl.py:275-284 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1373-1382 | examples/community/pipeline_sdxl_style_aligned.py:614-623 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:298-304 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:343-349 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:800-809 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1436-1445 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:347-356 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:494-503 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:374-383 | examples/community/pipeline_stable_diffusion_xl_ipex.py:374-383 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:816-824 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:143-149 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:408-417 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:433-442 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:397-406 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:405-414 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:397-406 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:386-395 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:397-406 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:416-425 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:332-338 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:354-360 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:329-338 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:691-700 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:257-263 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:412-421 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:402-411 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:302-308 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:318-324 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:399-408 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:417-426 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:507-516 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:312-318 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:337-343 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:343-349 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:389-398 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:407-416 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:511-520 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:313-322 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:417-426 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:811\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, \u0060src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:149\u0060 calls \u0060equal\u0060, \u0060batch_decode\u0060, \u0060warning\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:449\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c92d3146be4f5b76ce906d8de61a2b56fc8a5794c5daf6607d3210c5192a06c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 44): examples/community/pipeline_flux_differential_img2img.py:876-882 | examples/community/pipeline_flux_kontext_multiple_images.py:1079-1085 | examples/community/pipeline_flux_rf_inversion.py:846-852 | examples/community/pipeline_flux_rf_inversion.py:1016-1022 | examples/community/pipeline_flux_semantic_guidance.py:1052-1058 | examples/community/pipeline_flux_with_cfg.py:782-788 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1132-1138 | examples/community/pipeline_stg_ltx.py:750-756 | examples/community/pipeline_stg_ltx_image2video.py:822-828 | examples/community/pipeline_z_image_differential_img2img.py:652-658 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1111-1117 | src/diffusers/modular_pipelines/helios/denoise.py:569-575 | src/diffusers/modular_pipelines/helios/denoise.py:907-913 | src/diffusers/modular_pipelines/ltx/before_denoise.py:232-238 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:402-408 | src/diffusers/pipelines/chroma/pipeline_chroma.py:779-785 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:840-846 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:991-997 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:472-478 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:469-475 | src/diffusers/pipelines/flux/pipeline_flux.py:827-833 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:967-973 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1226-1232 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:934-940 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:934-940 | src/diffusers/pipelines/krea2/pipeline_krea2.py:618-624 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:604-610 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:656-662 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:655-661 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:804-810 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:543-549 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:614-620 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:600-606 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:813-819 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:791-797 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:722-728 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:883-889 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:766-772 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:679-685 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:823-829 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1021-1027 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1055-1061 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1163-1169 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:803-809 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060HeliosModularPipeline\u0060 in one and \u0060LTXModularPipeline\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, \u0060src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:812\u0060 calls \u0060linspace\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py:1086\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9064e0ff44f6c4e285543ad7d83bb202986026b28b1dde231bd43fff56251b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 40): examples/community/pipeline_flux_differential_img2img.py:876-882 | examples/community/pipeline_flux_rf_inversion.py:846-852 | examples/community/pipeline_flux_rf_inversion.py:1016-1022 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1131-1138 | examples/community/pipeline_stg_ltx.py:750-756 | examples/community/pipeline_stg_ltx_image2video.py:822-828 | examples/community/pipeline_z_image_differential_img2img.py:652-658 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1110-1117 | src/diffusers/modular_pipelines/helios/denoise.py:568-575 | src/diffusers/modular_pipelines/helios/denoise.py:906-913 | src/diffusers/modular_pipelines/ltx/before_denoise.py:232-238 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:401-408 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:840-846 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:991-997 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:808-814 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:957-963 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:876-882 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1018-1025 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:876-882 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:901-907 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1034-1040 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1226-1232 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:933-940 | src/diffusers/pipelines/ltx/pipeline_ltx.py:727-733 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:799-805 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:655-661 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:804-810 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:883-889 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:679-685 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:823-829 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1020-1027 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1054-1061 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1162-1169 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:800-809 | src/diffusers/pipelines/z_image/pipeline_z_image.py:474-480 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:602-608 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:629-635 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:564-570 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:751-757 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:605-611 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 629 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1110\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 \u0060components\u0060 to \u0060HeliosModularPipeline\u0060 in one and \u0060LTXModularPipeline\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, \u0060src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:812\u0060 calls \u0060linspace\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1118\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9553e18d0d4987932099e147bfa55a7f8ae8ce7d9a8337e0b4b67ce7d99564f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 38): examples/community/fresco_v2v.py:2421-2427 | examples/community/mod_controlnet_tile_sr_sdxl.py:1694-1700 | examples/community/pipeline_animatediff_controlnet.py:1058-1064 | examples/community/pipeline_controlnet_xl_kolors.py:1224-1230 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1428-1434 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1748-1754 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1323-1329 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1740-1746 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:985-991 | examples/community/pipeline_stable_diffusion_xl_instantid.py:974-980 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1217-1223 | examples/community/rerender_a_video.py:855-861 | examples/community/rerender_a_video.py:1033-1039 | examples/community/stable_diffusion_xl_controlnet_reference.py:1226-1232 | examples/research_projects/anytext/anytext.py:2268-2274 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1247-1253 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1050-1056 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1288-1294 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1266-1272 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1241-1247 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1409-1415 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1760-1766 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1481-1487 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1540-1546 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1774-1780 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1498-1504 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1590-1596 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1175-1181 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1334-1340 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1098-1104 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:936-942 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1113-1119 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1244-1250 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1427-1433 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1501-1507 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1564-1570 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:866-872 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:837-843 \u2014 there are 38 copies across 37 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 38 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_animatediff_controlnet.py:1056\u0060 calls \u0060repeat_interleave\u0060 and \u0060examples/community/fresco_v2v.py:2419\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":"examples/community/fresco_v2v.py"},"region":{"startLine":2421}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b73cf5a74bfdd45538327528e3a23f847993ac37ee9d59425625485fa46899c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 36): examples/community/pipeline_flux_kontext_multiple_images.py:516-523 | examples/community/pipeline_flux_semantic_guidance.py:581-588 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:485-492 | src/diffusers/pipelines/bria/pipeline_bria.py:282-288 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:1053-1060 | src/diffusers/pipelines/chroma/pipeline_chroma.py:431-438 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:463-470 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:495-502 | src/diffusers/pipelines/flux/pipeline_flux.py:454-461 | src/diffusers/pipelines/flux/pipeline_flux_control.py:417-424 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:459-466 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:498-505 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:488-495 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:460-467 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:475-482 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:546-553 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:510-517 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:518-525 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:505-512 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:558-565 | src/diffusers/pipelines/flux2/pipeline_flux2.py:703-710 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:564-571 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:742-749 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:571-578 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:407-414 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:296-303 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:333-340 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:284-291 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:349-356 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:331-338 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:332-339 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:353-360 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:347-354 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:331-338 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:346-353 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:369-376 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:516\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:482\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py:514\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f2df740148b1a0135b1bdbb044ab926b575b6b7408185d2861002536971166"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 34): examples/community/lpw_stable_diffusion_xl.py:1893-1899 | examples/community/masked_stable_diffusion_xl_img2img.py:461-467 | examples/community/pipeline_controlnet_xl_kolors.py:1285-1291 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1488-1494 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2195-2201 | examples/community/pipeline_hunyuandit_differential_img2img.py:1110-1116 | examples/community/pipeline_kolors_differential_img2img.py:1220-1226 | examples/community/pipeline_kolors_inpainting.py:1639-1645 | examples/community/pipeline_sdxl_style_aligned.py:1856-1862 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1235-1241 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2232-2238 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1384-1390 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1112-1118 | examples/community/stable_diffusion_xl_controlnet_reference.py:1309-1315 | examples/community/stable_diffusion_xl_reference.py:1136-1142 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1540-1546 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1597-1603 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1016-1022 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:878-884 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:922-930 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:810-818 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:996-1004 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:764-772 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1017-1023 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1197-1203 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1332-1338 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1556-1562 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1617-1623 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:931-937 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1080-1086 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1284-1290 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1476-1482 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1709-1715 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1352-1358 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/masked_stable_diffusion_xl_img2img.py:459\u0060 calls \u0060pop\u0060 and \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:1108\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1893}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d0d993d94f4a609f5d4ac0313238fcd8e6ee7a27d46882874d9f0cf361f349"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 33): examples/community/adaptive_mask_inpainting.py:704-710 | examples/community/composable_stable_diffusion.py:319-325 | examples/community/img2img_inpainting.py:232-238 | examples/community/instaflow_one_step.py:444-450 | examples/community/interpolate_stable_diffusion.py:205-211 | examples/community/llm_grounded_diffusion.py:505-511 | examples/community/multilingual_stable_diffusion.py:221-227 | examples/community/pipeline_demofusion_sdxl.py:418-424 | examples/community/pipeline_zero1to3.py:495-501 | examples/community/sd_text2img_k_diffusion.py:253-259 | examples/community/seed_resize_stable_diffusion.py:157-163 | examples/community/speech_to_image_diffusion.py:105-111 | examples/community/stable_diffusion_controlnet_img2img.py:412-418 | examples/community/stable_diffusion_controlnet_inpaint.py:509-515 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:458-464 | examples/community/stable_diffusion_ipex.py:505-511 | examples/community/stable_diffusion_repaint.py:482-488 | examples/community/wildcard_stable_diffusion.py:259-265 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:494-500 | examples/research_projects/rdm/pipeline_rdm.py:243-249 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:280-286 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:537-543 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:449-455 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:969-977 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:341-347 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:206-212 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:359-365 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:471-477 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:416-422 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:228-234 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:541-547 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:487-493 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:552-558 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:969\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, \u0060examples/community/img2img_inpainting.py:241\u0060 calls \u0060check_size\u0060 and \u0060examples/community/seed_resize_stable_diffusion.py:166\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"3799a3c4eeebf8c8bf61cfefbe456f41246dda05d8e38020bcb7cd49e1c217c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 29): examples/community/lpw_stable_diffusion_xl.py:1793-1798 | examples/community/mixture_tiling_sdxl.py:1074-1079 | examples/community/pipeline_controlnet_xl_kolors.py:1166-1171 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1363-1368 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1651-1656 | examples/community/pipeline_demofusion_sdxl.py:917-922 | examples/community/pipeline_kolors_differential_img2img.py:1104-1109 | examples/community/pipeline_sdxl_style_aligned.py:1750-1755 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1263-1268 | examples/community/pipeline_stable_diffusion_xl_instantid.py:932-937 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1021-1026 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1320-1325 | examples/community/stable_diffusion_xl_controlnet_reference.py:1166-1171 | examples/community/stable_diffusion_xl_reference.py:1015-1020 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1422-1427 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1417-1422 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1018-1023 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1212-1217 | src/diffusers/pipelines/kolors/pipeline_kolors.py:925-930 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1099-1104 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1558-1564 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1448-1453 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1533-1539 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:963-968 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1164-1169 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1352-1358 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1566-1572 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1151-1156 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1208-1213 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:931\u0060 calls \u0060to\u0060, \u0060repeat\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1574\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1793}}}],"partialFingerprints":{"codehealthFindingId/v1":"791014f21ba431c1565c1cf3eaf41e8b8e6aff1bf8fadd870002447772981af2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 29): examples/community/pipeline_flux_rf_inversion.py:470-476 | examples/community/pipeline_hunyuandit_differential_img2img.py:584-590 | examples/community/pipeline_stg_ltx.py:420-426 | examples/community/pipeline_stg_ltx_image2video.py:444-450 | examples/community/pipeline_stg_mochi.py:427-433 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:512-518 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:450-456 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:561-567 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:603-609 | src/diffusers/pipelines/flux/pipeline_flux_control.py:444-450 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:486-492 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:525-531 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:487-493 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:573-579 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:483-489 | src/diffusers/pipelines/ltx/pipeline_ltx.py:394-400 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:486-492 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:418-424 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:493-499 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:546-552 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:307-313 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:323-329 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:549-555 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:568-574 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:499-505 | src/diffusers/pipelines/mochi/pipeline_mochi.py:365-371 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:494-500 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:365-371 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:389-395 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 29 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 29 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_rf_inversion.py:470\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:593\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:458\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":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"8660462ae6bfc261f72eda30e62d72677461a89775bd798a59e93bad3a366dc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 28): examples/community/fresco_v2v.py:1019-1026 | examples/community/hd_painter.py:41-48 | examples/community/hd_painter.py:141-148 | examples/community/hd_painter.py:284-293 | examples/community/llm_grounded_diffusion.py:183-190 | examples/community/pipeline_stable_diffusion_pag.py:77-83 | examples/community/pipeline_stable_diffusion_pag.py:191-197 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:189-196 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:275-282 | examples/community/pipeline_stable_diffusion_xl_instantid.py:189-196 | examples/community/pipeline_stable_diffusion_xl_instantid.py:275-282 | src/diffusers/models/attention_processor.py:1124-1131 | src/diffusers/models/attention_processor.py:2016-2023 | src/diffusers/models/attention_processor.py:2507-2514 | src/diffusers/models/attention_processor.py:2597-2604 | src/diffusers/models/attention_processor.py:2708-2715 | src/diffusers/models/attention_processor.py:2805-2812 | src/diffusers/models/attention_processor.py:3134-3141 | src/diffusers/models/attention_processor.py:3235-3242 | src/diffusers/models/attention_processor.py:3338-3345 | src/diffusers/models/attention_processor.py:3461-3468 | src/diffusers/models/attention_processor.py:3686-3693 | src/diffusers/models/attention_processor.py:4262-4269 | src/diffusers/models/attention_processor.py:4467-4474 | src/diffusers/models/attention_processor.py:4707-4714 | src/diffusers/models/attention_processor.py:5052-5058 | src/diffusers/models/attention_processor.py:5151-5157 | src/diffusers/models/unets/unet_dreamlite.py:308-315 \u2014 there are 28 copies across 8 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 28 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/attention_processor.py:3348\u0060 calls \u0060chunk\u0060 and \u0060examples/community/fresco_v2v.py:1028\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":"examples/community/fresco_v2v.py"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde9131cce95dd3b11f81fde528aa48361e3566c02a87ef5a002f8c55d5edcdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 27): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:88-95 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:149-156 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:42-48 | scripts/convert_i2vgen_to_diffusers.py:118-125 | scripts/convert_if.py:555-562 | scripts/convert_if.py:585-592 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:41-48 | scripts/convert_ms_text_to_video_to_diffusers.py:123-130 | scripts/convert_original_audioldm2_to_diffusers.py:71-78 | scripts/convert_original_audioldm2_to_diffusers.py:134-141 | scripts/convert_original_audioldm_to_diffusers.py:62-69 | scripts/convert_original_audioldm_to_diffusers.py:126-133 | scripts/convert_original_musicldm_to_diffusers.py:63-70 | scripts/convert_original_musicldm_to_diffusers.py:126-133 | scripts/convert_svd_to_diffusers.py:229-236 | scripts/convert_svd_to_diffusers.py:565-573 | scripts/convert_svd_to_diffusers.py:601-608 | scripts/convert_unidiffuser_to_diffusers.py:73-80 | scripts/convert_versatile_diffusion_to_diffusers.py:112-119 | scripts/convert_versatile_diffusion_to_diffusers.py:173-180 | scripts/convert_zero123_to_diffusers.py:214-221 | scripts/convert_zero123_to_diffusers.py:648-655 | src/diffusers/loaders/lora_conversion_utils.py:270-277 | src/diffusers/loaders/unet.py:536-542 | src/diffusers/loaders/unet.py:565-571 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:86-93 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:147-154 \u2014 there are 27 copies across 16 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 27 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_svd_to_diffusers.py:238\u0060 calls \u0060replace\u0060 and \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:97\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef7d71217c662a3d51fab6b11adb985db57b2f3022097a91bb4fa12cff812da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 26): examples/community/cogvideox_ddim_inversion.py:197-203 | examples/community/fresco_v2v.py:1028-1036 | examples/community/pipeline_sdxl_style_aligned.py:224-232 | examples/community/regional_prompting_stable_diffusion.py:325-331 | examples/research_projects/sana/train_sana_sprint_diffusers.py:126-134 | src/diffusers/models/attention_processor.py:2025-2033 | src/diffusers/models/attention_processor.py:2356-2362 | src/diffusers/models/attention_processor.py:2606-2614 | src/diffusers/models/attention_processor.py:2717-2725 | src/diffusers/models/attention_processor.py:2814-2822 | src/diffusers/models/attention_processor.py:2913-2921 | src/diffusers/models/attention_processor.py:3024-3032 | src/diffusers/models/attention_processor.py:3143-3151 | src/diffusers/models/attention_processor.py:3244-3252 | src/diffusers/models/attention_processor.py:3351-3359 | src/diffusers/models/attention_processor.py:3475-3483 | src/diffusers/models/attention_processor.py:3695-3703 | src/diffusers/models/attention_processor.py:4476-4484 | src/diffusers/models/transformers/sana_transformer.py:140-148 | src/diffusers/models/transformers/transformer_ltx.py:65-71 | src/diffusers/models/transformers/transformer_ltx2.py:164-170 | src/diffusers/models/transformers/transformer_ltx2.py:244-250 | src/diffusers/models/transformers/transformer_sana_video.py:298-306 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:148-154 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:229-235 | src/diffusers/models/unets/unet_dreamlite.py:317-323 \u2014 there are 26 copies across 12 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 26 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_sdxl_style_aligned.py:235\u0060 calls \u0060group_norm\u0060, \u0060transpose\u0060 and \u0060examples/community/cogvideox_ddim_inversion.py:205\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":"examples/community/cogvideox_ddim_inversion.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae263bed7319dc183c96e1eaa0df1afa4f0e84d8a487a3ac3edf94424c1815a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 26): examples/community/fresco_v2v.py:2202-2209 | examples/community/pipeline_animatediff_controlnet.py:889-896 | examples/community/pipeline_controlnet_xl_kolors.py:984-991 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1170-1177 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1382-1389 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1078-1085 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1416-1423 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:744-751 | examples/community/pipeline_stable_diffusion_xl_instantid.py:740-747 | examples/community/rerender_a_video.py:717-724 | examples/community/stable_diffusion_xl_controlnet_reference.py:571-578 | examples/research_projects/anytext/anytext.py:2103-2110 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1059-1066 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:850-857 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1054-1061 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1067-1074 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1065-1072 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1174-1181 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1412-1419 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1428-1435 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1219-1226 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1309-1316 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1014-1021 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1139-1146 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1210-1217 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1303-1310 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2202}}}],"partialFingerprints":{"codehealthFindingId/v1":"42abd91588ed7099886bd14b6c6f9c0e00bbbc2c02a6f28adbb19d5ce078c340"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 25): examples/community/pipeline_stg_hunyuan_video.py:785-791 | examples/community/pipeline_stg_ltx.py:826-832 | examples/community/pipeline_stg_wan.py:618-624 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:640-646 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:836-842 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:705-711 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:822-828 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:963-970 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:625-631 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:744-750 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:753-759 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:705-711 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:841-847 | src/diffusers/pipelines/ltx/pipeline_ltx.py:796-802 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:694-700 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:749-755 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:873-879 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:465-471 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:574-580 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:707-713 | src/diffusers/pipelines/wan/pipeline_wan.py:641-647 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1146-1152 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:798-804 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:1003-1009 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:700-706 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060examples/community/pipeline_stg_ltx.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:649\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:845\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab809f622a8b9e864d182f1ee477b1199e35a8ba9a562f27690553ff6a899234"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 24): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:506-512 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:750-756 | scripts/convert_gligen_to_diffusers.py:126-132 | scripts/convert_gligen_to_diffusers.py:271-277 | scripts/convert_i2vgen_to_diffusers.py:278-284 | scripts/convert_if.py:358-364 | scripts/convert_if.py:950-956 | scripts/convert_ms_text_to_video_to_diffusers.py:234-240 | scripts/convert_original_audioldm2_to_diffusers.py:386-392 | scripts/convert_original_audioldm2_to_diffusers.py:545-551 | scripts/convert_original_audioldm_to_diffusers.py:387-393 | scripts/convert_original_audioldm_to_diffusers.py:529-535 | scripts/convert_original_musicldm_to_diffusers.py:383-389 | scripts/convert_original_musicldm_to_diffusers.py:525-531 | scripts/convert_svd_to_diffusers.py:356-362 | scripts/convert_svd_to_diffusers.py:670-676 | scripts/convert_unidiffuser_to_diffusers.py:391-397 | scripts/convert_vae_pt_to_diffusers.py:63-69 | scripts/convert_versatile_diffusion_to_diffusers.py:445-451 | scripts/convert_versatile_diffusion_to_diffusers.py:617-623 | scripts/convert_zero123_to_diffusers.py:355-361 | scripts/convert_zero123_to_diffusers.py:562-568 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:504-510 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:688-694 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"6800c2c64f2cf74a0bfec78c4041c1b732500e8bd0b5c25ed271bfb87c920804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 24): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:717-723 | scripts/convert_cogview4_to_diffusers_megatron.py:175-186 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:106-113 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:242-249 | scripts/convert_gligen_to_diffusers.py:93-99 | scripts/convert_gligen_to_diffusers.py:229-236 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:137-144 | scripts/convert_lumina_to_diffusers.py:19-26 | scripts/convert_original_audioldm2_to_diffusers.py:333-340 | scripts/convert_original_audioldm2_to_diffusers.py:512-518 | scripts/convert_original_audioldm_to_diffusers.py:342-349 | scripts/convert_original_audioldm_to_diffusers.py:496-502 | scripts/convert_original_musicldm_to_diffusers.py:338-345 | scripts/convert_original_musicldm_to_diffusers.py:492-498 | scripts/convert_svd_to_diffusers.py:305-312 | scripts/convert_svd_to_diffusers.py:635-641 | scripts/convert_unidiffuser_to_diffusers.py:358-364 | scripts/convert_unidiffuser_to_diffusers.py:550-556 | scripts/convert_unidiffuser_to_diffusers.py:561-572 | scripts/convert_vae_pt_to_diffusers.py:25-31 | scripts/convert_versatile_diffusion_to_diffusers.py:403-410 | scripts/convert_versatile_diffusion_to_diffusers.py:584-590 | scripts/convert_zero123_to_diffusers.py:529-535 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:655-661 \u2014 there are 24 copies across 15 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 24 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"2105bcd3a4d518b1aceae579943270c7dd09f28d493c985d632246b79256854a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 21): examples/community/stable_unclip.py:172-178 | examples/community/unclip_image_interpolation.py:119-125 | examples/community/unclip_text_interpolation.py:113-119 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:118-124 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:120-126 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:113-119 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:132-138 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:125-131 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:153-159 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:289-295 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:289-295 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:109-115 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:150-156 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:280-286 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:245-251 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:243-249 | src/diffusers/pipelines/shap_e/pipeline_shap_e.py:132-138 | src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py:133-139 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:127-133 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:146-152 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:590-596 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 21 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 21 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:108\u0060 calls \u0060register_to_config\u0060 and \u0060examples/community/unclip_image_interpolation.py:114\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_unclip.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f9644377bd2a26666246cd42c860841113bcc779157e672fb30bccbad77614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 21): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:727-733 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:110-116 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:249-255 | scripts/convert_gligen_to_diffusers.py:103-109 | scripts/convert_gligen_to_diffusers.py:233-239 | scripts/convert_if.py:320-326 | scripts/convert_if.py:899-905 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:141-147 | scripts/convert_original_audioldm2_to_diffusers.py:337-343 | scripts/convert_original_audioldm2_to_diffusers.py:522-528 | scripts/convert_original_audioldm_to_diffusers.py:349-355 | scripts/convert_original_audioldm_to_diffusers.py:506-512 | scripts/convert_original_musicldm_to_diffusers.py:345-351 | scripts/convert_original_musicldm_to_diffusers.py:502-508 | scripts/convert_svd_to_diffusers.py:309-315 | scripts/convert_unidiffuser_to_diffusers.py:368-374 | scripts/convert_vae_pt_to_diffusers.py:35-41 | scripts/convert_versatile_diffusion_to_diffusers.py:407-413 | scripts/convert_versatile_diffusion_to_diffusers.py:594-600 | scripts/convert_zero123_to_diffusers.py:539-545 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:665-671 \u2014 there are 21 copies across 14 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 21 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_if.py:318\u0060 calls \u0060NotImplementedError\u0060 and \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:726\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76a1dfd2dddb34d866cc4baf78aba60d4bafffaf88773ef96082d059ff4dd89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 20): examples/community/pipeline_stg_cogvideox.py:282-286 | examples/community/pipeline_stg_ltx.py:289-293 | examples/community/pipeline_stg_ltx_image2video.py:312-316 | examples/community/pipeline_stg_mochi.py:296-300 | src/diffusers/modular_pipelines/flux/encoders.py:391-395 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:228-232 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:236-240 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:246-250 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:252-256 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:194-198 | src/diffusers/pipelines/consisid/pipeline_consisid.py:338-342 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:236-242 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:255-261 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:222-228 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:265-271 | src/diffusers/pipelines/ltx/pipeline_ltx.py:263-267 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:349-353 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:532-536 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:286-290 | src/diffusers/pipelines/mochi/pipeline_mochi.py:234-238 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060examples/community/pipeline_stg_ltx.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:236\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:232\u0060 calls \u0060to\u0060 and \u0060examples/community/pipeline_stg_cogvideox.py:278\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a03c2edacbdbae7e9c4ab59b7015c3f2b875637924c7d8e634f0f392316eb59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 19): examples/community/mixture_tiling_sdxl.py:1165-1171 | examples/community/pipeline_hunyuandit_differential_img2img.py:1116-1124 | examples/community/pipeline_kolors_differential_img2img.py:1228-1234 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:664-670 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1562-1568 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1022-1030 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:884-892 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1025-1031 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1205-1211 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1192-1199 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1565-1571 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:937-945 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1088-1094 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1051-1057 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1081-1087 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1292-1298 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1485-1491 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1718-1724 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1361-1367 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 19 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 19 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:1116\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, \u0060src/diffusers/pipelines/kolors/pipeline_kolors.py:1022\u0060 calls \u0060pop\u0060 and \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:1116\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":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ff3999ae4bfe0151664c8fdd6737d7b4cf23faa2d050478ceec834b74fe01d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 18): examples/community/pipeline_flux_differential_img2img.py:454-460 | examples/community/pipeline_kolors_differential_img2img.py:502-510 | src/diffusers/pipelines/allegro/pipeline_allegro.py:383-389 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:572-578 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:608-614 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:347-353 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:475-483 | src/diffusers/pipelines/consisid/pipeline_consisid.py:577-585 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:549-555 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:588-594 | src/diffusers/pipelines/kolors/pipeline_kolors.py:472-480 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:496-504 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:490-498 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:372-378 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:331-337 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:345-351 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:417-423 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:359-365 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 18 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 18 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:454\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:583\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:546\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7ada5d46a759cbeac25802b46af980a1c8b1962c58cade17fda5b41ef428df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 18): src/diffusers/pipelines/flux/pipeline_flux_control.py:773-779 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:808-814 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:957-963 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1019-1025 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:876-882 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1019-1025 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:876-882 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:901-907 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1034-1040 | src/diffusers/pipelines/ltx/pipeline_ltx.py:727-733 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:799-805 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:643-649 | src/diffusers/pipelines/z_image/pipeline_z_image.py:474-480 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:602-608 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:629-635 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:564-570 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:751-757 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:605-611 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux/pipeline_flux_control.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py\u0060 as WHOLE FILES: this scan already matched 70 separate duplicated blocks between them, totalling at least 906 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"6506de54830c4b955f70911b5bef2bd7bff090fb95b0ef22dc757ad279bceca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 17): examples/community/fresco_v2v.py:1804-1810 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:627-633 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:678-684 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:674-680 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:821-827 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:656-662 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:658-664 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:697-703 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:795-801 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:738-744 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:742-748 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:775-781 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:751-757 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:751-757 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:647-653 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:746-752 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:748-754 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"245c8556ed795436dea9ded6791cd4240e260f24d8610b218f0fc1abca05813c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 17): examples/community/latent_consistency_img2img.py:557-563 | examples/community/latent_consistency_txt2img.py:469-475 | examples/community/matryoshka.py:386-392 | examples/community/scheduling_ufogen.py:206-212 | src/diffusers/schedulers/scheduling_ddim.py:212-218 | src/diffusers/schedulers/scheduling_ddim_parallel.py:218-224 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:201-207 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:190-196 | src/diffusers/schedulers/scheduling_euler_discrete.py:229-235 | src/diffusers/schedulers/scheduling_heun_discrete.py:171-177 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:167-173 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:166-172 | src/diffusers/schedulers/scheduling_lcm.py:224-230 | src/diffusers/schedulers/scheduling_lms_discrete.py:163-169 | src/diffusers/schedulers/scheduling_pndm.py:133-139 | src/diffusers/schedulers/scheduling_tcd.py:225-231 | src/diffusers/schedulers/scheduling_unipc_multistep.py:237-243 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/scheduling_ufogen.py:181\u0060 calls \u0060ceil\u0060 and \u0060examples/community/latent_consistency_img2img.py:532\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":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea713896e3ff4ddec579372dbc4df7b02af5f1077a4fdf4e2c6087cc49e9cb55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 17): examples/community/pipeline_flux_rf_inversion.py:620-626 | examples/community/pipeline_flux_semantic_guidance.py:751-757 | examples/community/pipeline_flux_with_cfg.py:575-581 | examples/community/pipeline_stg_ltx.py:521-528 | src/diffusers/pipelines/bria/pipeline_bria.py:398-404 | src/diffusers/pipelines/chroma/pipeline_chroma.py:532-538 | src/diffusers/pipelines/flux/pipeline_flux.py:567-573 | src/diffusers/pipelines/flux/pipeline_flux_control.py:519-525 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:613-619 | src/diffusers/pipelines/krea2/pipeline_krea2.py:410-416 | src/diffusers/pipelines/ltx/pipeline_ltx.py:495-502 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:801-808 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:349-355 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:424-430 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:377-383 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:445-451 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:427-433 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 667 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_ltx.py:521\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dc198ae43a3fe8bf72b7e3d7d2c0e94ec0adb223e3f96e333ee82ece9a8fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 16): examples/community/clip_guided_stable_diffusion_img2img.py:224-230 | examples/community/fresco_v2v.py:2004-2010 | examples/community/latent_consistency_img2img.py:228-234 | examples/community/pipeline_hunyuandit_differential_img2img.py:688-694 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:630-636 | examples/community/rerender_a_video.py:580-586 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:863-869 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:705-711 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:497-503 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:274-280 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:560-566 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:693-699 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:709-715 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:545-551 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:785-791 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:709-715 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75e1e48a21e91e3f31b0d45afbf7958628dbafb05e18e823ff3facca1a18051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 16): examples/community/pipeline_stg_hunyuan_video.py:469-476 | examples/community/pipeline_stg_wan.py:372-379 | src/diffusers/modular_pipelines/wan/before_denoise.py:568-575 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:330-337 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:349-356 | src/diffusers/pipelines/helios/pipeline_helios.py:345-352 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:367-374 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:408-415 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:542-548 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:498-505 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:584-591 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:463-471 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:591-599 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:343-350 | src/diffusers/pipelines/wan/pipeline_wan.py:348-355 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:656-663 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060examples/community/pipeline_stg_wan.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_hunyuan_video.py:469\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, \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py:473\u0060 calls \u0060to\u0060 and \u0060examples/community/pipeline_stg_wan.py:380\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d8455b8ab3c19519d32a12edabb947067f41022791c3bc425f1de5b5e084ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 15): examples/community/mod_controlnet_tile_sr_sdxl.py:1801-1807 | examples/community/pipeline_controlnet_xl_kolors.py:1312-1318 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1514-1520 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1828-1834 | examples/community/pipeline_sdxl_style_aligned.py:1874-1880 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1130-1136 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1558-1564 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1622-1628 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1568-1574 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1669-1675 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1347-1353 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1571-1577 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1639-1645 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:780-788 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1280-1286 \u2014 before extracting anything, compare \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"501f09086eb93808eb166ff0fd1430b8cae5628f5c9a9f0ffb7814f92a8636ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): examples/community/instaflow_one_step.py:594-604 | examples/community/lpw_stable_diffusion.py:939-949 | examples/community/masked_stable_diffusion_img2img.py:118-124 | examples/community/stable_diffusion_ipex.py:659-669 | examples/community/stable_diffusion_reference.py:947-957 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:610-617 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:675-685 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:667-674 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:724-734 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:592-602 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:543-553 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:608-615 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:502-509 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:540-547 \u2014 before extracting anything, compare \u0060examples/community/instaflow_one_step.py\u0060 and \u0060examples/community/lpw_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 379 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/instaflow_one_step.py:594\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, \u0060examples/community/lpw_stable_diffusion.py:954\u0060 calls \u0060get\u0060 and \u0060examples/community/stable_diffusion_ipex.py:676\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":"examples/community/instaflow_one_step.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1676be73d55b1c0e84d8f0b70037827c186ca473da034f37517dda8194e9ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): examples/community/pipeline_stg_ltx.py:521-527 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:648-654 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:731-737 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:738-744 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:817-823 | src/diffusers/pipelines/krea2/pipeline_krea2.py:410-416 | src/diffusers/pipelines/ltx/pipeline_ltx.py:495-501 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:801-807 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:841-847 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:895-901 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:349-355 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:377-383 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:445-451 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:427-433 \u2014 there are 14 copies across 13 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 14 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be9115a2901a285b0329649ff595eee57dc0353e13079cebc85b6a23513e8e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): examples/community/pipeline_stg_ltx.py:521-527 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:357-363 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:342-348 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:397-403 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:648-654 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:731-737 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:738-744 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:817-823 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:571-577 | src/diffusers/pipelines/krea2/pipeline_krea2.py:410-416 | src/diffusers/pipelines/ltx/pipeline_ltx.py:495-501 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:801-807 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:841-847 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:895-901 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 205 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9061fb5428974b310179809b3375169a5b5a96b5ffdba0e5609684668019238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): examples/community/fresco_v2v.py:1975-1982 | examples/community/lpw_stable_diffusion_xl.py:1145-1152 | examples/community/masked_stable_diffusion_xl_img2img.py:595-603 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:814-821 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:890-897 | examples/community/pipeline_hunyuandit_differential_img2img.py:656-662 | examples/community/pipeline_sdxl_style_aligned.py:968-975 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:610-616 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:675-682 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:676-683 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:480-486 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:671-678 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:687-694 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 13 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 13 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1975\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/lpw_stable_diffusion_xl.py:1143\u0060 calls \u0060to\u0060 and \u0060examples/community/fresco_v2v.py:1974\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddd44ba5079aab473d4493f21e4c83108ecf0eb0b45c4bf62a5bb758ec4ecb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): scripts/convert_amused.py:203-209 | scripts/convert_cogview3_to_diffusers.py:85-99 | scripts/convert_cogview4_to_diffusers.py:94-108 | scripts/convert_flux_to_diffusers.py:116-126 | scripts/convert_hunyuan_image_to_diffusers.py:192-208 | scripts/convert_hunyuan_image_to_diffusers.py:794-802 | scripts/convert_hunyuan_video1_5_to_diffusers.py:560-568 | scripts/convert_ovis_image_to_diffusers.py:72-78 | scripts/convert_pixart_alpha_to_diffusers.py:58-69 | scripts/convert_pixart_sigma_to_diffusers.py:58-69 | scripts/convert_sd3_to_diffusers.py:68-82 | src/diffusers/loaders/single_file_utils.py:2048-2054 | src/diffusers/loaders/single_file_utils.py:2344-2354 \u2014 before extracting anything, compare \u0060scripts/convert_amused.py\u0060 and \u0060scripts/convert_pixart_alpha_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_sd3_to_diffusers.py:67\u0060 calls \u0060pop\u0060 and \u0060scripts/convert_cogview3_to_diffusers.py:85\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":"scripts/convert_amused.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"321e90e3fdfbf925ef0d079b87d9321f0b1f75164b0cbed7e67cda6e4882451e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): src/diffusers/schedulers/scheduling_consistency_models.py:498-504 | src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:726-732 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:813-819 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:845-851 | src/diffusers/schedulers/scheduling_edm_euler.py:573-579 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:516-522 | src/diffusers/schedulers/scheduling_euler_discrete.py:839-845 | src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:226-232 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:247-253 | src/diffusers/schedulers/scheduling_heun_discrete.py:699-705 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:731-737 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:703-709 | src/diffusers/schedulers/scheduling_lms_discrete.py:663-669 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_consistency_models.py\u0060 and \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_consistency_models.py:498\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_consistency_models.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f85c3366e3baee2de4ffa7efba9caa02711064ee04ca498de19ba37a9f916d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 12): examples/community/fresco_v2v.py:413-419 | examples/community/matryoshka.py:2742-2748 | examples/research_projects/anytext/anytext_controlnet.py:339-345 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:267-273 | src/diffusers/models/controlnets/controlnet.py:683-689 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:612-618 | src/diffusers/models/controlnets/controlnet_union.py:628-634 | src/diffusers/models/unets/unet_2d_condition.py:861-867 | src/diffusers/models/unets/unet_i2vgen_xl.py:507-512 | src/diffusers/models/unets/unet_kandinsky3.py:176-180 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:590-596 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1160-1166 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:413\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbf6d2b498276980ffa44c4b48147298a2f9a6478e8517618adbe57d8879435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): examples/community/gluegen.py:752-758 | examples/community/hd_painter.py:710-716 | examples/community/ip_adapter_face_id.py:1051-1057 | examples/community/matryoshka.py:4495-4501 | examples/community/regional_prompting_stable_diffusion.py:1032-1038 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:919-925 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:978-984 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:970-976 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1046-1054 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1024-1030 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1086-1092 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1255-1261 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4f39e4d08b3870bdd0e236032689b22ecfb87e8c726747aac4b766b953e6a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): examples/community/masked_stable_diffusion_xl_img2img.py:338-344 | examples/community/mod_controlnet_tile_sr_sdxl.py:1611-1617 | examples/community/pipeline_kolors_inpainting.py:1514-1520 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2072-2078 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1254-1260 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:937-943 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1694-1700 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1498-1504 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1688-1694 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1527-1533 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1328-1334 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1548-1554 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:338\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"608558a9074721462e1b556b9c5850a16b560f6b06cfdc0f2bcef65607e45b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 12): examples/community/masked_stable_diffusion_xl_img2img.py:344-350 | examples/community/mod_controlnet_tile_sr_sdxl.py:1617-1623 | examples/community/pipeline_kolors_inpainting.py:1520-1526 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1663-1669 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1260-1266 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:943-948 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1700-1706 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1504-1510 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1694-1700 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1533-1539 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1334-1340 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1554-1560 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"0117882462898221068e0b88c1e811b77cfb31d25250df0b1137971aa39503ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): examples/community/pipeline_flux_rf_inversion.py:618-624 | examples/community/pipeline_flux_semantic_guidance.py:749-755 | examples/community/pipeline_flux_with_cfg.py:573-579 | src/diffusers/pipelines/bria/pipeline_bria.py:396-402 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:417-423 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:581-587 | src/diffusers/pipelines/chroma/pipeline_chroma.py:530-536 | src/diffusers/pipelines/flux/pipeline_flux.py:565-571 | src/diffusers/pipelines/flux/pipeline_flux_control.py:517-523 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:611-617 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:411-417 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:422-428 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 667 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e9a45c1f469621475b79b9dd430a7698230e1ed0f3205c2044b78b1d162c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 11): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:589-595 | scripts/convert_gligen_to_diffusers.py:353-359 | scripts/convert_i2vgen_to_diffusers.py:428-434 | scripts/convert_if.py:501-507 | scripts/convert_if.py:1105-1111 | scripts/convert_ms_text_to_video_to_diffusers.py:384-390 | scripts/convert_original_audioldm_to_diffusers.py:469-475 | scripts/convert_original_musicldm_to_diffusers.py:465-471 | scripts/convert_versatile_diffusion_to_diffusers.py:560-566 | scripts/convert_zero123_to_diffusers.py:437-443 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:587-593 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc579992ec75dc2a7d6f0a803dd4c53465b112e8285afdcc533c97ca4b763083"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10): examples/community/lpw_stable_diffusion_xl.py:1912-1918 | examples/community/mod_controlnet_tile_sr_sdxl.py:1805-1811 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2255-2261 | examples/community/stable_diffusion_xl_controlnet_reference.py:1328-1334 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1562-1568 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1626-1632 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1572-1578 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1673-1679 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1575-1581 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1643-1649 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1912}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a13d0b0484bd94a14e09e83abbd28b645731261775376850d437d35f05029a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10): examples/community/masked_stable_diffusion_xl_img2img.py:440-446 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2169-2179 | examples/community/pipeline_kolors_inpainting.py:1602-1608 | examples/community/stable_diffusion_xl_reference.py:1116-1122 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1264-1270 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1456-1462 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1672-1678 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1229-1235 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1414-1420 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1636-1642 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"852651bca7f661f8994832933eec09802ebf5cbd80048a2d646803ab492f953f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10): examples/community/pipeline_stg_ltx.py:247-253 | examples/community/pipeline_stg_ltx_image2video.py:266-272 | src/diffusers/pipelines/ltx/pipeline_ltx.py:221-227 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:303-309 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:240-246 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:283-289 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:324-330 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:331-337 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:346-352 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:286-292 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_ltx.py:247\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c3ea7822ac4c0e15ffce92cbe577be518d944bcc6835aafd52b32c861b174a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:515-521 | scripts/convert_gligen_to_diffusers.py:280-286 | scripts/convert_i2vgen_to_diffusers.py:304-310 | scripts/convert_ms_text_to_video_to_diffusers.py:260-266 | scripts/convert_original_audioldm2_to_diffusers.py:395-401 | scripts/convert_original_audioldm_to_diffusers.py:396-402 | scripts/convert_original_musicldm_to_diffusers.py:392-398 | scripts/convert_versatile_diffusion_to_diffusers.py:465-471 | scripts/convert_zero123_to_diffusers.py:364-370 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:513-519 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3ef3bd9e5e7f26e6633121d820ba2db715348747284b6c77c1ba813dfae418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): examples/community/pipeline_stable_diffusion_pag.py:110-116 | examples/community/pipeline_stable_diffusion_pag.py:225-231 | src/diffusers/models/attention_processor.py:3963-3969 | src/diffusers/models/attention_processor.py:4505-4511 | src/diffusers/models/attention_processor.py:5084-5090 | src/diffusers/models/attention_processor.py:5185-5191 | src/diffusers/models/transformers/sana_transformer.py:169-175 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:178-184 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:197-203 \u2014 there are 9 copies across 5 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 9 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf0a575dc93f4b03db4586fb5f04cd16a3403756f6fd41af34ef204551d3dbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 9): examples/community/unclip_text_interpolation.py:141-147 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:230-234 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:249-253 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:216-220 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:259-263 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:145-151 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:323-327 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:281-285 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:316-320 \u2014 before extracting anything, compare \u0060examples/community/unclip_text_interpolation.py\u0060 and \u0060src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 292 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/unclip_text_interpolation.py:141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_text_interpolation.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1158bec59403074285bf2c72c51e34e16a382f504786b5f9cb34e3b6a45b33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): src/diffusers/models/transformers/transformer_bria.py:154-160 | src/diffusers/models/transformers/transformer_bria_fibo.py:100-106 | src/diffusers/models/transformers/transformer_easyanimate.py:163-169 | src/diffusers/models/transformers/transformer_flux.py:111-117 | src/diffusers/models/transformers/transformer_flux.py:216-222 | src/diffusers/models/transformers/transformer_flux2.py:362-368 | src/diffusers/models/transformers/transformer_flux2.py:442-448 | src/diffusers/models/transformers/transformer_longcat_image.py:101-107 | src/diffusers/models/transformers/transformer_ovis_image.py:101-107 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e89c277b90848c8aafd4a6a895694c787b3f6f540f3e3f5867ef66a223af28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): src/diffusers/modular_pipelines/flux/denoise.py:286-293 | src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:239-245 | src/diffusers/modular_pipelines/ltx/denoise.py:230-236 | src/diffusers/modular_pipelines/ltx2/denoise.py:671-677 | src/diffusers/modular_pipelines/qwenimage/denoise.py:497-504 | src/diffusers/modular_pipelines/stable_diffusion_3/denoise.py:222-228 | src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py:715-722 | src/diffusers/modular_pipelines/wan/denoise.py:462-469 | src/diffusers/modular_pipelines/z_image/denoise.py:288-295 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060QwenImageModularPipeline\u0060 in one and \u0060StableDiffusion3ModularPipeline\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":"src/diffusers/modular_pipelines/flux/denoise.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e30106f93e889523405697bbad1fffaae193f807613fa2336cf93931f0fb38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): examples/community/fresco_v2v.py:1984-1990 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:843-849 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:685-691 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:488-494 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:540-546 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:689-695 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:525-531 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:765-771 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 123 separate duplicated blocks between them, totalling at least 1589 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1984\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, \u0060examples/community/fresco_v2v.py:1981\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:839\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89435a3f004070531e74de9499581e1fb2bfc1c0e553bc59ab68619d49c6812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): examples/community/lpw_stable_diffusion_xl.py:1160-1166 | examples/community/masked_stable_diffusion_xl_img2img.py:612-618 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:829-836 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:905-912 | examples/community/pipeline_sdxl_style_aligned.py:983-989 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:690-696 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:682-688 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:814-820 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c669f0849cd7d9d92776d3264b4f2150d6e452c265badc9f32fe7782c3d4c2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 11): examples/community/mod_controlnet_tile_sr_sdxl.py:874-880 | examples/community/pipeline_kolors_differential_img2img.py:610-616 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:689-691 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:628-630 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:751-753 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:907-913 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:898-904 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:607-613 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:913-919 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:705-711 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:692-698 \u2014 there are 11 copies across 10 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 11 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"df53f018c1fe63575a4f8158547c8a1389fb84aa3608664db8f4158708e8179a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): examples/community/pipeline_animatediff_ipex.py:159-165 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:144-150 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:195-201 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:206-212 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:116-122 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:151-157 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:153-159 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:182-188 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 631 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:159\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, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:162\u0060 calls \u0060set_pag_applied_layers\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py:169\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":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da0cdea0f2a4ef2c5ac0ccf3420aaed7605a425fe5bb59745a49f8a157a4bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): examples/community/pipeline_stg_mochi.py:523-529 | src/diffusers/modular_pipelines/flux/before_denoise.py:386-393 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:475-482 | src/diffusers/pipelines/mochi/pipeline_mochi.py:408-414 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:346-353 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:374-381 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:442-449 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:424-431 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:356\u0060 calls \u0060_pack_latents\u0060 and \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:486\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b81d2764f0a72b3d795ec7b27c7277b665263c33aecb0a132f21fc0dc49fc3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:941-947 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1407-1413 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1423-1429 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:987-993 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:1027-1033 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:988-994 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1469-1475 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1350-1356 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c04fa6dc177a094936131325b7e41d6c2653319e4b6e8da7b1c4be076fb696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): src/diffusers/modular_pipelines/flux/denoise.py:278-284 | src/diffusers/modular_pipelines/flux2/denoise.py:438-445 | src/diffusers/modular_pipelines/flux3/denoise.py:291-298 | src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:230-237 | src/diffusers/modular_pipelines/ltx/denoise.py:221-228 | src/diffusers/modular_pipelines/ltx2/denoise.py:662-669 | src/diffusers/modular_pipelines/wan/denoise.py:453-460 | src/diffusers/modular_pipelines/z_image/denoise.py:279-286 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060FluxModularPipeline\u0060 in one and \u0060Flux2ModularPipeline\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":"src/diffusers/modular_pipelines/flux/denoise.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4e5dab176ad02e524bd725876e780ac3e6ef2f87c56b3448047fefb1f51a08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): examples/community/masked_stable_diffusion_xl_img2img.py:417-423 | examples/community/pipeline_kolors_differential_img2img.py:1179-1187 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1337-1344 | src/diffusers/pipelines/kolors/pipeline_kolors.py:976-984 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1156-1164 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1204-1210 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1391-1398 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 264 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1213\u0060 calls \u0060to\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py:425\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":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36a629ab0e3602f9392f837336e6c46c5ec3a7f540ff22ee6164e80d5058458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): src/diffusers/models/attention_processor.py:1013-1019 | src/diffusers/models/transformers/transformer_glm_image.py:283-289 | src/diffusers/models/transformers/transformer_hunyuan_video.py:67-73 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:63-69 | src/diffusers/models/transformers/transformer_hunyuanimage.py:68-74 | src/diffusers/models/transformers/transformer_motif_video.py:75-81 | src/diffusers/models/transformers/transformer_motif_video.py:132-138 \u2014 there are 7 copies across 6 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 7 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py:64\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py:61\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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4f86c9ed4e3e1e3ffd34e59339b39d35e58bdf0a165fc9a69b22e7737c6d85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 6): examples/community/fresco_v2v.py:1660-1665 | examples/community/pipeline_animatediff_ipex.py:413-418 | examples/community/pipeline_kolors_inpainting.py:477-482 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:678-683 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:779-784 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:712-718 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:712\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1660}}}],"partialFingerprints":{"codehealthFindingId/v1":"5224640a36e4364c719e80ce0d110637cfa958a1dafe5d1ccc5e1b1adf9b242e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): examples/community/pipeline_stg_cogvideox.py:245-251 | src/diffusers/pipelines/allegro/pipeline_allegro.py:204-210 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:191-197 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:198-204 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:208-214 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:213-220 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 289 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_cogvideox.py:245\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd52cda67c7201008b9b13a0294c5d610380eaff2c3c448165707facaf8d48a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): src/diffusers/models/transformers/transformer_anyflow.py:603-611 | src/diffusers/models/transformers/transformer_anyflow_far.py:1088-1096 | src/diffusers/models/transformers/transformer_chronoedit.py:634-642 | src/diffusers/models/transformers/transformer_wan.py:618-626 | src/diffusers/models/transformers/transformer_wan_animate.py:1144-1152 | src/diffusers/models/transformers/transformer_wan_vace.py:256-264 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow.py:603\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7eba41a83462c60296a6a146762e578773cbfc6936bb77323194344ae7b8fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src/diffusers/models/transformers/transformer_anyflow.py:603-609 | src/diffusers/models/transformers/transformer_anyflow_far.py:1088-1094 | src/diffusers/models/transformers/transformer_chronoedit.py:634-640 | src/diffusers/models/transformers/transformer_skyreels_v2.py:619-625 | src/diffusers/models/transformers/transformer_wan.py:618-624 | src/diffusers/models/transformers/transformer_wan_animate.py:1144-1150 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow.py:603\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, \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py:628\u0060 calls \u0060Embedding\u0060, \u0060FeedForward\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py:1096\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62d7ba0557c7ba4598b407eba41f5eecb313214cbdc6a8c3cf726b42b8a41a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src/diffusers/models/transformers/transformer_bria.py:137-143 | src/diffusers/models/transformers/transformer_bria_fibo.py:83-89 | src/diffusers/models/transformers/transformer_flux.py:198-204 | src/diffusers/models/transformers/transformer_longcat_image.py:84-90 | src/diffusers/models/transformers/transformer_ovis_image.py:84-90 | src/diffusers/models/transformers/transformer_pan2.py:87-93 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f111c40ff86c6bf6bf301e60eafd09e3c63ae35a854c0d696bd5de12a98625e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 7): src/diffusers/models/transformers/transformer_bria.py:232-238 | src/diffusers/models/transformers/transformer_bria_fibo.py:177-183 | src/diffusers/models/transformers/transformer_flux.py:323-329 | src/diffusers/models/transformers/transformer_flux2.py:538-544 | src/diffusers/models/transformers/transformer_longcat_image.py:179-185 | src/diffusers/models/transformers/transformer_motif_video.py:350-352 | src/diffusers/models/transformers/transformer_ovis_image.py:179-185 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_bria.py:238\u0060 calls \u0060RMSNorm\u0060 and \u0060src/diffusers/models/transformers/transformer_motif_video.py:352\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":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"970a54e3603d0d7a8ea748b59f2cd0bd3d8103214f06c0e918137795760e84fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): src/diffusers/models/transformers/transformer_bria.py:382-389 | src/diffusers/models/transformers/transformer_bria_fibo.py:324-331 | src/diffusers/models/transformers/transformer_chroma.py:287-294 | src/diffusers/models/transformers/transformer_flux.py:434-441 | src/diffusers/models/transformers/transformer_longcat_image.py:287-294 | src/diffusers/models/transformers/transformer_ovis_image.py:290-297 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_bria.py:382\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d362e10ea7b751bcfa06817f85310465f4591d8a09112abc535b252dc8518c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src/diffusers/models/transformers/transformer_chronoedit.py:96-102 | src/diffusers/models/transformers/transformer_helios.py:118-124 | src/diffusers/models/transformers/transformer_skyreels_v2.py:99-105 | src/diffusers/models/transformers/transformer_wan.py:93-99 | src/diffusers/models/transformers/transformer_wan_animate.py:576-582 | src/diffusers/models/transformers/transformer_wan_animate_2.py:301-307 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4165ff2fa16d02468cadb44db2903f5d7e83899f3c102db39d1c10b0cb75967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:704-710 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:828-834 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:946-952 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:946-952 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1056-1062 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:800-806 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edb7aceacedeaf394200cd30127077a786b70285d3ad6dd49ebfde856c1ae42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:404-410 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:631-637 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:316-322 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:316-322 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:550-556 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:566-572 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 340 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:326\u0060 calls \u0060maybe_free_model_hooks\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:412\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"212acae6c06d826508aa065b3a602ce723f5153e52a8de50446acbb9a35fe163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1346-1352 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1771-1777 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1306-1312 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2177-2183 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1424-1430 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:736-742 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8be9814d7fe66623e33553f3746a28c47d4b9505f2c2666fd49ab8a4f7b2d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:591-597 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:666-672 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:909-915 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:880-886 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:768-774 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:937-943 \u2014 \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.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 32 separate duplicated blocks between them, totalling at least 343 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:591\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"960bcd8274f92e5eafa9f1e432314142232e20f2dadd4a02a983b48210131f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): examples/community/cogvideox_ddim_inversion.py:539-545 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:742-748 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:808-814 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:852-858 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:823-829 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 867 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/cogvideox_ddim_inversion.py:536\u0060 calls \u0060chunk\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:739\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":"examples/community/cogvideox_ddim_inversion.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f07369e7ad8c99d2a09ed8f735efb7104bc629de3b7be80cafa974ddc82f941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:930-936 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1206-1212 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1365-1371 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:945-951 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1125-1131 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbede0ba040e0e770cf4012d8042f23bb8510bbe15f346908197abf4bb5fe9f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 5): examples/community/pipeline_stg_wan.py:118-123 | src/diffusers/models/transformers/transformer_chronoedit.py:498-503 | src/diffusers/models/transformers/transformer_helios.py:448-454 | src/diffusers/models/transformers/transformer_wan.py:483-488 | src/diffusers/models/transformers/transformer_wan_animate.py:962-967 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_helios.py:448\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38df8d0756c7682e9c1a2084dddbb95daae37973865e51a93357133dc75b1e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): scripts/convert_joyimage_edit_to_diffusers.py:132-138 | scripts/convert_skyreelsv2_to_diffusers.py:482-488 | scripts/convert_wan_to_diffusers.py:760-766 | src/diffusers/loaders/single_file_utils.py:3475-3481 | src/diffusers/utils/state_dict_utils.py:505-511 \u2014 before extracting anything, compare \u0060scripts/convert_joyimage_edit_to_diffusers.py\u0060 and \u0060scripts/convert_skyreelsv2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_joyimage_edit_to_diffusers.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a69f6ed813825e41b4b22675e3216e813856d5673b3a5fe4f617b80416a088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): src/diffusers/models/attention_processor.py:1557-1563 | src/diffusers/models/attention_processor.py:1608-1614 | src/diffusers/models/attention_processor.py:1722-1728 | src/diffusers/models/attention_processor.py:1773-1779 | src/diffusers/models/attention_processor.py:1873-1879 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d907bec58027fbf7e5414be6c49cf5c1bb44e31398b9a51e5497994406c40d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:80-86 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:80-86 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:98-104 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:200-206 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:193-199 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c7ce1d7157de1032cb65cc9c71e2927c01cc8d89c8dce2983b30812df88d61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:90-97 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:90-97 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:108-115 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:210-217 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:203-210 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"360d934083595a32fe612993d62a4ade286f2fcc1335bc0a6e3f55e05d542474"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): src/diffusers/modular_pipelines/ltx2/encoders.py:1046-1052 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:900-906 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:761-767 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:702-708 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:923-929 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f8bf52e0b36a1e9937de65455371aa79f58fee8e1d88a8960bbcca1e17139a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 5): src/diffusers/schedulers/scheduling_deis_multistep.py:690-696 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:895-901 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:747-753 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:811-816 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:527-533 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0a52577090e0bf90e050973ac7c24c8c3cc4e9d6313d6a7a368177c6823ed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1012-1018 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:865-871 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:924-930 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1048-1054 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:598-604 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1012\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, \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1047\u0060 calls \u0060exp\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1011\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"345ad5270bfb274a7cc95f342367f6163e97980fdb939a7841d9d8fb4615e3b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:313-319 | src/diffusers/schedulers/scheduling_heun_discrete.py:342-348 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:302-308 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:302-308 | src/diffusers/schedulers/scheduling_lms_discrete.py:324-330 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_heun_discrete.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44dfc59fee7254cc3415003f1902cca6e65ffd096224c2bef6cdf80d772a785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): examples/community/stable_diffusion_controlnet_inpaint.py:177-183 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:176-182 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:709-715 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:787-793 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py\u0060 as WHOLE FILES: this scan already matched 68 separate duplicated blocks between them, totalling at least 1028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9320fd129eaaf4d497dbbcf018c3d9cccc6777d28bbd4c0d94dc24b018da9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 4): scripts/convert_sd3_to_diffusers.py:94-100 | scripts/convert_sd3_to_diffusers.py:148-153 | src/diffusers/loaders/single_file_utils.py:2066-2072 | src/diffusers/loaders/single_file_utils.py:2119-2124 \u2014 before extracting anything, compare \u0060scripts/convert_sd3_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 249 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_sd3_to_diffusers.py:94\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/convert_sd3_to_diffusers.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d777a7799d0eb83660351a7e2d6b5aa76b4aa6613d5e679f2b486e5befd8c54e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 5): src/diffusers/loaders/lora_pipeline.py:2781-2787 | src/diffusers/loaders/lora_pipeline.py:3760-3767 | src/diffusers/loaders/lora_pipeline.py:5640-5646 | src/diffusers/loaders/lora_pipeline.py:6409-6412 | src/diffusers/loaders/lora_pipeline.py:6605-6612 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":2781}}}],"partialFingerprints":{"codehealthFindingId/v1":"7104988f54a6bd646c325f19c5cf92f1f19f02785675f2a38dad80135e6f0a91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/models/transformers/transformer_bria.py:451-457 | src/diffusers/models/transformers/transformer_bria_fibo.py:244-250 | src/diffusers/models/transformers/transformer_flux.py:361-367 | src/diffusers/models/transformers/transformer_longcat_image.py:217-223 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4658d1618d4e8dc3ff370844b66472be7125bbe03bfdaf1709f1c1e46f3b93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/models/transformers/transformer_chronoedit.py:328-334 | src/diffusers/models/transformers/transformer_skyreels_v2.py:344-350 | src/diffusers/models/transformers/transformer_wan.py:321-327 | src/diffusers/models/transformers/transformer_wan_animate.py:797-803 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccb6fd5e53a7e046111f6c08f7b8c99d634c5a016fb5a79a28ac793b3888af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/models/transformers/transformer_flux2.py:602-608 | src/diffusers/models/transformers/transformer_flux2.py:675-681 | src/diffusers/models/transformers/transformer_minimax_h3.py:186-192 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:168-174 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux2.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea10b0ad89bd11a76fc5783e6dc377a85b23ed016502aa52a00728bd67f8bde9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/modular_pipelines/flux/inputs.py:105-111 | src/diffusers/modular_pipelines/helios/before_denoise.py:99-105 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:340-346 | src/diffusers/modular_pipelines/wan/before_denoise.py:251-257 \u2014 before extracting anything, compare \u0060src/diffusers/modular_pipelines/flux/inputs.py\u0060 and \u0060src/diffusers/modular_pipelines/wan/before_denoise.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060FluxModularPipeline\u0060 in one and \u0060HeliosModularPipeline\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":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f439fedfe4afba0405ea34a3b90a3849ce2cc16f7ba375db8a6eef27c740a083"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/modular_pipelines/wan/before_denoise.py:536-542 | src/diffusers/modular_pipelines/wan/encoders.py:526-532 | src/diffusers/modular_pipelines/wan/encoders.py:660-666 | src/diffusers/modular_pipelines/wan/encoders.py:987-993 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/wan/before_denoise.py:536\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/before_denoise.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"255bececdd5e65c19e1e806b5057ce688150da9be2b6dd4f5d1862814f331cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:239-245 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:275-281 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:264-270 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:240-246 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1330 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:272\u0060 calls \u0060register_to_config\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:237\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdac5c6f2b13a2133e09cef52bf647b095b7dbe91efad091078d9c83a03a058"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:623-629 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:635-641 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:660-666 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:676-682 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 742 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:685\u0060 calls \u0060to\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:642\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":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6be511c6eea75a9628a767884d37cfdc06d32a2a6e2d30298547544cc24b2d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:830-836 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:720-726 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:806-812 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:930-936 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 512 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"82684c91683d362d417576116e9a52ed53b94af31f1484566cb1319ab00a158e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:149-155 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:182-188 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:313-319 | src/diffusers/pipelines/latte/pipeline_latte.py:265-272 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 396 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:149\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d207fc62d50f85258f3b0ec23ce70c0a8178e4e67331229cec60dffaf7c322c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1474-1480 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1537-1543 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1598-1604 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:838-844 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 899 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19e80d3540987db6f77abc0b486306600bdd70a764908da610e116edc4fab0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/pipelines/sana/pipeline_sana.py:904-910 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:988-994 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:938-944 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:984-990 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_controlnet.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"6413ff514aead6a48679103896c05ea3464c98ed97e8bc21b3c5226efe03baad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:632-638 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:605-611 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:572-578 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:632-638 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 254 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:616\u0060 calls \u0060mark_step\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:583\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6072ae652c6c2adfba429bccf89150ceef10292a633fff29c1de60ed2bba02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1106-1114 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:960-968 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1008-1016 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:650-658 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c34b610185661414551691a4f45de5154dd90e8b72728f152fb96c7dbe95b83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1358-1364 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1646-1652 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:880-886 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 119 separate duplicated blocks between them, totalling at least 2012 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:880\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e2886c19a6607f4560c14eecdfed62b1972069e15507c6f9421cdd7d1321e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/community/pipeline_flux_kontext_multiple_images.py:787-793 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:667-673 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:470-476 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"32db0926e93e68863dfd6d9b9e98976f7153f8ab20c17bbb7550e8a227e735da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20137 lines \u00D7 26): examples/community/pipeline_flux_kontext_multiple_images.py:603-604 | examples/community/pipeline_flux_rf_inversion.py:513-519 | examples/community/pipeline_flux_semantic_guidance.py:676-677 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:570-571 | src/diffusers/modular_pipelines/flux/decoders.py:41-42 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:345-351 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:509-515 | src/diffusers/pipelines/chroma/pipeline_chroma.py:502-503 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:534-535 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:590-591 | src/diffusers/pipelines/flux/pipeline_flux.py:538-539 | src/diffusers/pipelines/flux/pipeline_flux_control.py:489-490 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:531-532 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:570-571 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:583-584 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:532-533 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:560-561 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:626-627 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:605-606 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:626-627 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:592-593 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:666-667 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:374-375 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:384-385 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:395-396 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:517-518 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:603\u0060 calls \u0060view\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py:513\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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa76a0f43aa98a42ea536bf96f113f9bbe84461fdbb901fa64bb3b0969436d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/community/pipeline_hunyuandit_differential_img2img.py:1068-1074 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:957-963 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:836-842 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"735a331cc3e77352ed0b745c69083c193f455042ffa1e36b6c4c8a11fb910914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:1024-1030 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:912-918 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:839-845 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 948 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c99455f7ab3247a20d2761498f7313adf268bc7130259ba9787fcc17f891b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): scripts/convert_sana_to_diffusers.py:149-157 | scripts/convert_sana_video_to_diffusers.py:115-123 | src/diffusers/loaders/single_file_utils.py:3140-3146 \u2014 before extracting anything, compare \u0060scripts/convert_sana_to_diffusers.py\u0060 and \u0060scripts/convert_sana_video_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_sana_to_diffusers.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2a5bc66f77a70ccab3bb0b1760eec0565f432716f52de09ef2121f8951dc77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/loaders/lora_conversion_utils.py:2346-2352 | src/diffusers/loaders/lora_conversion_utils.py:3071-3077 | src/diffusers/loaders/lora_conversion_utils.py:3159-3165 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2346}}}],"partialFingerprints":{"codehealthFindingId/v1":"df78a35e8373bee8d4019d9501e54ed939b0341cf95446145480c4d23b3fc183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/loaders/single_file_utils.py:2504-2510 | src/diffusers/loaders/single_file_utils.py:2611-2617 | src/diffusers/loaders/single_file_utils.py:3315-3321 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":2504}}}],"partialFingerprints":{"codehealthFindingId/v1":"381de60e7445493ae0f250fb9aa4a08e1796ea67242c07d39453f62399f4588a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/models/attention_processor.py:4342-4348 | src/diffusers/models/attention_processor.py:4561-4567 | src/diffusers/models/attention_processor.py:4803-4809 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/attention_processor.py:4802\u0060 calls \u0060to\u0060 and \u0060src/diffusers/models/attention_processor.py:4341\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4342}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc239b5e54bd61ae28b5c77b6c1b9edfaca11215ba0ab605fe3178aa634e105c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:449-455 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:634-641 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:808-814 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:449\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0239a0ba9ad41e2d63da2962c944cf07834f489bd69e9fddde68dd59020f506"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:705-719 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:688-702 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:655-669 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd08bc759a67c4d794445aae661f2215c198d2d30acdd08e173fdf427ac880d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py:102-108 | src/diffusers/models/autoencoders/mmaudio_vocoder.py:41-47 | src/diffusers/pipelines/ltx2/vocoder.py:31-38 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0ca798d677b00486b548ca6567034b410fad317f92325ed90e84340e77f25b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/models/normalization.py:338-344 | src/diffusers/models/transformers/transformer_cogview4.py:601-607 | src/diffusers/models/transformers/transformer_glm_image.py:487-493 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_cogview4.py\u0060 and \u0060src/diffusers/models/transformers/transformer_glm_image.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa745d6834c308c6b67f7114b96c01e13589c94685abf026ac92b9a35246615"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/models/transformers/transformer_cogview4.py:343-351 | src/diffusers/models/transformers/transformer_cosmos.py:166-172 | src/diffusers/models/transformers/transformer_cosmos.py:235-241 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebffa27554ec9ccfa3a460123fe2708cd105edd9ffb231487f85b7212444d9af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video.py:499-504 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:382-387 | src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py:60-66 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ed46eff9f61a3a251e221cef94895fca9520d21de499bf4ee1c736c47e4214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): src/diffusers/models/transformers/transformer_minimax_h3.py:230-235 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:213-218 | src/diffusers/models/transformers/transformer_qwenimage21.py:569-575 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05c763b1c8347635de8224e8a842b129d94c2e4c918ace98699bfe01057d33b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/models/unets/unet_2d_blocks.py:2291-2297 | src/diffusers/models/unets/unet_2d_blocks.py:3216-3223 | src/diffusers/models/unets/unet_3d_blocks.py:1391-1398 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_3d_blocks.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 194 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":2291}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b359bc19e9d8aa270314d89d9b405059a3baac837d98bc51a81d91d51cbab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/modular_pipelines/helios/before_denoise.py:780-786 | src/diffusers/pipelines/helios/pipeline_helios.py:751-757 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:827-833 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios.py\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3be591b65bc36b0b443894b793d13eda750c26089d522b4562f348f8ce60ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/modular_pipelines/qwenimage/encoders.py:87-94 | src/diffusers/modular_pipelines/qwenimage/encoders.py:134-141 | src/diffusers/modular_pipelines/qwenimage/encoders.py:190-196 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/qwenimage/encoders.py:87\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":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"20812d715102d1e9500d98c1c58755ff01726d07f43ab7ddea063a8140b8b309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:397-403 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:571-577 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:364-372 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py\u0060 as WHOLE FILES: this scan already matched 45 separate duplicated blocks between them, totalling at least 682 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:364\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, \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:395\u0060 calls \u0060prepare_intermediate_images\u0060, \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:364\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"e809e67fec18269cb92aa3e32e5b076477437fd88e22a986b9b2965452ef7aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:913-919 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1254-1261 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:873-879 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 515 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:913\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, \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:920\u0060 calls \u0060to\u0060, \u0060get_module_execution_device\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1262\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e368216a4a6670c741e708e8e78b2016023afeadf56afef46ea9bfd239bcaa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:299-305 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:256-262 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:291-297 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.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 25 separate duplicated blocks between them, totalling at least 336 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"9132c31c8fd7152563eeea877f36e42c82d0e131da1d2467d9799ed18dc3e009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:449-455 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:211-217 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:225-231 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:449\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc87b88e53164edea167c228c25af25f810c444c007bd48a3f672f1e0a179c44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1112-1121 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:966-975 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:656-665 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1112\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced8aed2c63443131c3883320e772ebaa27bfbc3b18d961c533c822fc45ae0b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/community/cogvideox_ddim_inversion.py:201-207 | src/diffusers/models/attention_processor.py:2289-2295 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/cogvideox_ddim_inversion.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb0578b4962ec73ae28526ee615db261d8c145dbae88a90b8b5bdc470f2d42a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/community/lpw_stable_diffusion.py:799-805 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:548-554 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"096599fa5968ae7a892decebb023311e3013577b73ef3bd6961918fef6275616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/community/pipeline_demofusion_sdxl.py:528-534 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:763-769 \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 \u0060examples/community/pipeline_demofusion_sdxl.py:528\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":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2e7a7840b67837cdb44bf7b897d2f66b80cb481260adb53a855fc05b5b0c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2215-2221 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1088-1094 \u2014 before extracting anything, compare \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 and \u0060src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":2215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d930eddb2866a337bdf31206e388d53cc5eea44d0f17014908b92147306ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/community/pipeline_sdxl_style_aligned.py:1758-1764 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:939-945 \u2014 before extracting anything, compare \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 and \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"af876d51c8bce02eddd0ad6bacab990d96edb78c9eb97b4a45e981385f865711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/cosmos3/cosmos_parallel.py:381-387 | src/diffusers/models/transformers/transformer_cosmos3.py:106-112 \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 \u0060examples/cosmos3/cosmos_parallel.py:381\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":"examples/cosmos3/cosmos_parallel.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"63166089763c28b0edc8cb92a8dad957d607cc0f31e5efa2a19b038af1a487b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/convert_aura_flow_to_diffusers.py:66-72 | src/diffusers/loaders/single_file_utils.py:2986-2992 \u2014 before extracting anything, compare \u0060scripts/convert_aura_flow_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_aura_flow_to_diffusers.py:66\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/convert_aura_flow_to_diffusers.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff53338c0d10a3bebd639e6b37de590b8a5aafdd01e0fde5d0a60a2c0591b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/hooks/first_block_cache.py:227-233 | src/diffusers/hooks/mag_cache.py:412-418 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/first_block_cache.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e16781b4c9a8cc7d9a54d9067d4363b18a159b16d49a96dbd4f47c40077be6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/hooks/text_kv_cache.py:131-137 | src/diffusers/models/transformers/transformer_nucleusmoe_image.py:308-314 \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":"src/diffusers/hooks/text_kv_cache.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf31e13d14d62e383e547c0254b1d1b2c2ba2d5eea9a8df298448a8ad27e6cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20137 lines \u00D7 9): src/diffusers/loaders/lora_conversion_utils.py:1214-1215 | src/diffusers/loaders/lora_conversion_utils.py:1301-1302 | src/diffusers/loaders/lora_conversion_utils.py:1308-1309 | src/diffusers/loaders/lora_conversion_utils.py:1316-1317 | src/diffusers/loaders/lora_conversion_utils.py:1325-1326 | src/diffusers/loaders/lora_conversion_utils.py:1535-1536 | src/diffusers/loaders/lora_conversion_utils.py:1542-1543 | src/diffusers/loaders/lora_conversion_utils.py:1546-1552 | src/diffusers/loaders/lora_conversion_utils.py:1557-1563 \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/loaders/lora_conversion_utils.py:1327\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/loaders/lora_conversion_utils.py:1218\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5f3311165efeb74f5bd7aed0f068e5dec3c9ff386dadac89e91ce8bc7a43e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/loaders/lora_conversion_utils.py:3232-3238 | src/diffusers/loaders/lora_conversion_utils.py:3499-3508 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":3232}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6d81731f4c87059d1bf060a248ce318c6fbf18d18a461e12f38f9d6c7a257b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/attention_processor.py:3052-3058 | src/diffusers/models/unets/unet_dreamlite.py:353-359 \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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3052}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff587be1181d797c2c8cfb32d917361f040a720e1db0623486ec550dd058dda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/attention_processor.py:3642-3650 | src/diffusers/models/transformers/transformer_lumina2.py:136-142 \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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3642}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdbf6374e8638a3b9aaab77659ddce82b54092ad784d6a4d1148eb521137afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py:48-54 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:36-42 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e90fc5f75ed6165c4a43dd351d4a09af2ec9dd42bbffb095530b792d8739126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:202-208 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:284-290 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8184d5df90d0cefcf509f2abc83db1af39f246a550f73c74270fe31d171afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:972-981 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:1025-1034 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a57d9c83e8e1dab623d2b6ba1e4b7e1a79cbe30ec5f78ba2383bfc69b13ddb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:929-935 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:903-909 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"5276b319c1694b3769da0fcbec7e35d58f2b07a96d1db5e5673845049ef94646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:205-211 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:303-308 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:205\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:203\u0060 calls \u0060conv_in\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:301\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_mochi.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c8db5b5d7c1b3f8427b187dc667bf505ab5cb807e94d043b8556748e67ddb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:76-82 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:171-177 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb1d2aeca61581d8329f2822e7ce143b6f4adfccdfaa34c1e67b28937bd73c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:518-524 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:504-510 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42000e76532aa50c296fa84b416b69f84ddc9c505c10afdeaf11a3a4bbe914c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_flux.py:139-146 | src/diffusers/models/controlnets/controlnet_sd3.py:259-265 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_flux.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b90e6badecc621ac821738fe37b6bbef280542879c55c72f196802c4c9a54a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_z_image.py:741-748 | src/diffusers/models/controlnets/controlnet_z_image.py:799-806 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"79af861c9a97cf1bf4d6a21cab7252c977f7305adea6565f506a9ed36afa7470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/embeddings.py:302-308 | src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py:96-102 \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":"src/diffusers/models/embeddings.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b371ebaa764b94accc4e89ae7521663c50df393cdbd8b5ae32172c066abb693"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/resnet.py:297-303 | src/diffusers/models/unets/unet_dreamlite.py:209-215 \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 \u0060src/diffusers/models/resnet.py:297\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/resnet.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd885ab9cbc069fd3d65d326cd2adcdf0895287f23edc4f554df2df5aa454e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/transformers/latte_transformer_3d.py:315-321 | src/diffusers/models/transformers/pixart_transformer_2d.py:351-357 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/latte_transformer_3d.py:322\u0060 calls \u0060reshape\u0060, \u0060permute\u0060 and \u0060src/diffusers/models/transformers/pixart_transformer_2d.py:359\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/latte_transformer_3d.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c157c753056f7e00b952fae90bfd4eef5433f8f415243d438ba525c4fb75e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/diffusers/models/transformers/transformer_2d.py:534-539 | src/diffusers/models/transformers/transformer_allegro.py:418-424 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cbf9981fff7e2891c67735398930a1aeb152e262edcbf9a3de93fcd93e5a4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:54-62 | src/diffusers/models/transformers/transformer_glm_image.py:84-92 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_cogview4.py\u0060 and \u0060src/diffusers/models/transformers/transformer_glm_image.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"850f90e61687e2fdadd8065cb7eab3b71598f4e796b90a03958807a63ab5cb49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video.py:491-498 | src/diffusers/models/transformers/transformer_motif_video.py:477-483 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_motif_video.py:477\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"530b6613df8d3b8235f857d6ccaaa8801750f8fa91ea4fd09d80cf89c6a08c90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky6.py:67-73 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:64-70 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_kandinsky6.py\u0060 and \u0060src/diffusers/models/transformers/transformer_kandinsky6_sr.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fee6f8446744879e39ca53d2b8d4b3268b2fa097a5410011c955040dca709bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky6.py:125-133 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:338-346 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_kandinsky6.py\u0060 and \u0060src/diffusers/models/transformers/transformer_kandinsky6_sr.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_kandinsky6.py:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"503436a2dc619d65e4e50853b0eac0a0e14681a3ca4c1e3679fdb38f2411f379"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/transformers/transformer_longcat_image.py:454-460 | src/diffusers/models/transformers/transformer_qwenimage.py:859-865 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_longcat_image.py:454\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_longcat_image.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad19127143ab9713082071dc64b62bf75d138638ef48197f123396490e84a1bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:1345-1351 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1368-1374 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1365\u0060 calls \u0060set_processor\u0060, \u0060SanaWMLTX2RefinerAttnProcessor\u0060 and \u0060src/diffusers/models/transformers/transformer_ltx2.py:1342\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":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"8edfabe8fb5a5124dd04f2135b18d95ce9e39280a4381353330b5b65b37e44e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3.py:556-562 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:498-504 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_minimax_h3.py:554\u0060 calls \u0060Linear\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py:494\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":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd091be33e46c920f5f1b2777a3782a7a80a6c15fd139a2ac34a0e1d453ba96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm.py:1766-1772 | src/diffusers/models/transformers/transformer_sana_wm.py:2283-2290 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_sana_wm.py:1766\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a8c0176e5f3e853d174322fef548e336c9244724b354a780fe088f28ed38f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/unets/unet_2d_blocks.py:3073-3079 | src/diffusers/models/unets/unet_3d_blocks.py:1305-1312 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_blocks.py\u0060 and \u0060src/diffusers/models/unets/unet_3d_blocks.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 194 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":3073}}}],"partialFingerprints":{"codehealthFindingId/v1":"bafe3633ff35a4960e5c69c535403cd90e3b76ba8dbc9c92660297edb8efbd89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/unets/unet_2d_condition.py:1105-1114 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1276-1282 \u2014 before extracting anything, compare \u0060src/diffusers/models/unets/unet_2d_condition.py\u0060 and \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 1027 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d_condition.py:1105\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, \u0060src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1285\u0060 calls \u0060get\u0060, \u0060scale_lora_layers\u0060 and \u0060src/diffusers/models/unets/unet_2d_condition.py:1117\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5816176f824303b0510d4f6bdb2ecc21e2c9e7994112f6a01b7f7e7a86fb1439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/unets/unet_stable_cascade.py:63-69 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_diffnext.py:240-246 \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":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92cfb1535d78695cf390f8d3779cd6580720baaf7302eb237ce02a4f42bb165"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/modular_pipelines/cosmos/encoders.py:230-237 | src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:1020-1027 \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":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a87e617e3a7fa4c375758add694b5b885458fc119b81fc3a64fff981449acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/modular_pipelines/flux/before_denoise.py:381-387 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:309-315 \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 \u0060src/diffusers/modular_pipelines/flux/before_denoise.py:381\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":"src/diffusers/modular_pipelines/flux/before_denoise.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f3fc717204fd2d4559ed7d131abebe684c5f36ec16dc6ed3294f6fa97feb37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3_image/encoders.py:245-251 | src/diffusers/modular_pipelines/p_h3_image/encoders.py:243-249 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3_image/encoders.py:245\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3_image/encoders.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad15d177815ef979bf0c38cd019b3a9ce74c8588a068ee3d1dbba2af396f28a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline_utils.py:598-604 | src/diffusers/modular_pipelines/modular_pipeline_utils.py:634-640 \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":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36c6c6ed790aececbef1e6749091de52c1bb351e84807463ff9579805dceb46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:82-88 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:128-134 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ea73a6e4f71ceb7985974e1e5db0c8c0be4d6c38a167befff02f9f9936bb8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/modular_pipelines/wan/encoders.py:777-788 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:559-570 \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":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd8bdd81d8f5abf35de8f4ac61d5bd5736d12384e06d38aed8ed4ea11a0eb46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/diffusers/pipelines/anyflow/pipeline_anyflow.py:587-593 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:743-748 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c76c31539f1b60c79567eeb2b7e939a05aa7e270d939666e11edefba6c00aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:1861-1867 | src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:1874-1880 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdae4c32f401f2fdecdeb04343265a5590058adf5cfa5e68eea770626be248c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1272-1278 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1294-1300 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1269\u0060 calls \u0060detach\u0060, \u0060clone\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1291\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c4dea4fb7a1c77578046024a454e7e47ddf3fd41d5e52e3d8b489485148bd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/pipelines/free_noise_utils.py:307-313 | src/diffusers/pipelines/free_noise_utils.py:334-342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/free_noise_utils.py:334\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, \u0060src/diffusers/pipelines/free_noise_utils.py:307\u0060 calls \u0060new_zeros\u0060 and \u0060src/diffusers/pipelines/free_noise_utils.py:334\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/free_noise_utils.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40dfd89d11cf8e45f1f4cefc66745756319eb6e8220eb6832e56d61395609b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/pipelines/kolors/text_encoder.py:297-303 | src/diffusers/pipelines/kolors/text_encoder.py:304-310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kolors/text_encoder.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"5514c769f794f8c4f92fac64d99d83b30ff375fe8ae6c5affd19106e2276497b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/pipelines/krea2/pipeline_krea2.py:317-323 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:351-357 \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 \u0060src/diffusers/pipelines/krea2/pipeline_krea2.py:317\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/krea2/pipeline_krea2.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e1269ab8f7d8c3867450de2ce991cbc65cfab460d053427a323d72cd6dd9ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:157-174 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:187-204 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"49eaa4802999eebe442ebd83d288df9c427d920ef2a50c0b179373653b1397fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:667-673 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:634-640 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_normals.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa77869ba10dcc71f68142ebf2945bc58453863c4be16aa4144cb2b5da0e3a99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 5): src/diffusers/modular_pipelines/wan/encoders.py:924-928 | src/diffusers/modular_pipelines/wan/encoders.py:1077-1081 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:437-439 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:440-446 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:471-477 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/wan/pipeline_wan_i2v.py:478\u0060 calls \u0060repeat_interleave\u0060 and \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:439\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6174bcf019ab7ef8f664a9c227257af4283519f30f34960046706c7d2725b7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1131-1137 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:985-991 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1131\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"380e262a9e5e988889295be512d49ab6273db5ca6e7dbaaa69b0a7ed215117ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:360-366 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:345-351 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9faff325fe6ff5d1720dec98aff465bcc3a86947d48c9ccc7ea9f3ab316d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 126): examples/community/pipeline_animatediff_ipex.py:475-480 | examples/community/pipeline_flux_differential_img2img.py:457-462 | examples/community/pipeline_flux_kontext_multiple_images.py:518-525 | examples/community/pipeline_flux_rf_inversion.py:445-452 | examples/community/pipeline_flux_semantic_guidance.py:583-590 | examples/community/pipeline_flux_with_cfg.py:409-414 | examples/community/pipeline_hunyuandit_differential_img2img.py:566-571 | examples/community/pipeline_kolors_differential_img2img.py:507-512 | examples/community/pipeline_stg_cogvideox.py:444-449 | examples/community/pipeline_stg_hunyuan_video.py:414-419 | examples/community/pipeline_stg_ltx.py:406-411 | examples/community/pipeline_stg_ltx_image2video.py:430-435 | examples/community/pipeline_stg_mochi.py:413-418 | examples/community/pipeline_stg_wan.py:322-327 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:487-494 | src/diffusers/pipelines/allegro/pipeline_allegro.py:386-391 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:507-512 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:686-691 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:509-514 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:575-580 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:611-616 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:180-187 | src/diffusers/pipelines/bria/pipeline_bria.py:284-290 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:756-761 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:1055-1062 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:462-469 | src/diffusers/pipelines/chroma/pipeline_chroma.py:433-440 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:465-472 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:497-504 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:350-355 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:390-395 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:430-435 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:480-485 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:350-355 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:331-336 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:369-374 | src/diffusers/pipelines/consisid/pipeline_consisid.py:582-587 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:494-499 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:578-583 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:505-510 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:378-383 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:446-451 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:362-367 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:467-472 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:469-474 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:436-441 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:547-552 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:589-594 | src/diffusers/pipelines/flux/pipeline_flux.py:456-463 | src/diffusers/pipelines/flux/pipeline_flux_control.py:419-426 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:461-468 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:500-507 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:490-497 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:462-469 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:477-484 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:548-555 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:512-519 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:520-527 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:507-514 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:560-567 | src/diffusers/pipelines/flux2/pipeline_flux2.py:705-712 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:566-573 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:744-751 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:573-580 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:642-649 | src/diffusers/pipelines/helios/pipeline_helios.py:292-297 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:311-316 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:409-416 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:298-305 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:383-388 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:353-358 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:473-478 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:511-516 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:465-470 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:552-557 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:435-442 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:591-596 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:422-429 | src/diffusers/pipelines/kolors/pipeline_kolors.py:477-482 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:501-506 | src/diffusers/pipelines/krea2/pipeline_krea2.py:320-325 | src/diffusers/pipelines/latte/pipeline_latte.py:386-391 | src/diffusers/pipelines/ltx/pipeline_ltx.py:380-385 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:472-477 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:404-409 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:479-484 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:532-537 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:293-298 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:309-314 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:534-539 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:554-559 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:485-490 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:336-341 | src/diffusers/pipelines/lumina/pipeline_lumina.py:403-410 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:374-381 | src/diffusers/pipelines/mochi/pipeline_mochi.py:351-356 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:377-384 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:335-342 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:571-576 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:476-481 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:495-500 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:367-372 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:471-476 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:286-293 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:351-358 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:333-340 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:334-341 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:355-362 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:349-356 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:333-340 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:348-355 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:371-378 | src/diffusers/pipelines/sana/pipeline_sana.py:443-448 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:458-463 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:351-356 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:375-380 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:466-471 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:292-297 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:316-321 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:334-339 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:379-384 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:348-353 | src/diffusers/pipelines/wan/pipeline_wan.py:295-300 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:362-367 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:354-359 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:361-366 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 126 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 126 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/wan/pipeline_wan_vace.py:361\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py:482\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":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"f735bcdbc98b29fc0dff46de23934e3a94cd859eb16df2ac180440425213921b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 125): examples/community/pipeline_animatediff_ipex.py:475-480 | examples/community/pipeline_flux_differential_img2img.py:457-462 | examples/community/pipeline_flux_kontext_multiple_images.py:518-525 | examples/community/pipeline_flux_rf_inversion.py:445-452 | examples/community/pipeline_flux_semantic_guidance.py:583-590 | examples/community/pipeline_flux_with_cfg.py:409-414 | examples/community/pipeline_hunyuandit_differential_img2img.py:566-571 | examples/community/pipeline_kolors_differential_img2img.py:507-512 | examples/community/pipeline_stg_cogvideox.py:444-449 | examples/community/pipeline_stg_hunyuan_video.py:414-419 | examples/community/pipeline_stg_ltx.py:406-411 | examples/community/pipeline_stg_ltx_image2video.py:430-435 | examples/community/pipeline_stg_mochi.py:413-418 | examples/community/pipeline_stg_wan.py:322-327 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:487-494 | src/diffusers/pipelines/allegro/pipeline_allegro.py:386-391 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:507-512 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:686-691 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:509-514 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:575-580 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:611-616 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:180-187 | src/diffusers/pipelines/bria/pipeline_bria.py:284-290 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:462-469 | src/diffusers/pipelines/chroma/pipeline_chroma.py:433-440 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:465-472 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:497-504 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:350-355 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:390-395 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:430-435 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:480-485 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:350-355 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:331-336 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:369-374 | src/diffusers/pipelines/consisid/pipeline_consisid.py:582-587 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:494-499 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:578-583 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:505-510 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:487-495 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:378-383 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:446-451 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:362-367 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:467-472 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:469-474 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:436-441 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:547-552 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:589-594 | src/diffusers/pipelines/flux/pipeline_flux.py:456-463 | src/diffusers/pipelines/flux/pipeline_flux_control.py:419-426 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:461-468 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:500-507 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:490-497 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:462-469 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:477-484 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:548-555 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:512-519 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:520-527 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:507-514 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:560-567 | src/diffusers/pipelines/flux2/pipeline_flux2.py:705-712 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:566-573 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:744-751 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:573-580 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:642-649 | src/diffusers/pipelines/helios/pipeline_helios.py:292-297 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:311-316 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:409-416 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:298-305 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:383-388 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:353-358 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:473-478 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:511-516 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:465-470 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:552-557 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:435-442 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:591-596 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:422-429 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:511-516 | src/diffusers/pipelines/kolors/pipeline_kolors.py:477-482 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:501-506 | src/diffusers/pipelines/krea2/pipeline_krea2.py:320-325 | src/diffusers/pipelines/latte/pipeline_latte.py:386-391 | src/diffusers/pipelines/ltx/pipeline_ltx.py:380-385 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:472-477 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:404-409 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:479-484 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:532-537 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:293-298 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:309-314 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:534-539 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:554-559 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:485-490 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:336-341 | src/diffusers/pipelines/lumina/pipeline_lumina.py:403-410 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:374-381 | src/diffusers/pipelines/mochi/pipeline_mochi.py:351-356 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:377-384 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:335-342 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:571-576 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:476-481 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:495-500 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:367-372 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:471-476 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:286-293 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:351-358 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:333-340 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:334-341 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:355-362 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:349-356 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:333-340 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:348-355 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:371-378 | src/diffusers/pipelines/sana/pipeline_sana.py:443-448 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:458-463 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:351-356 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:375-380 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:466-471 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:292-297 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:316-321 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:334-339 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:379-384 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:348-353 | src/diffusers/pipelines/wan/pipeline_wan.py:295-300 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:362-367 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:361-366 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 125 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 125 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_kolors_differential_img2img.py:505\u0060 calls \u0060ValueError\u0060, \u0060all\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py:518\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba70cec5df9ad98e0d9cdc0ae2814cb00645060dc4e8f8cffa60d179f5cf6d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 63): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:633-645 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:659-668 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:700-705 | src/diffusers/pipelines/allegro/pipeline_allegro.py:483-495 | src/diffusers/pipelines/allegro/pipeline_allegro.py:509-518 | src/diffusers/pipelines/allegro/pipeline_allegro.py:550-555 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:453-465 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:479-488 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:520-525 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:497-509 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:523-532 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:564-569 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:250-262 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:276-285 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:317-322 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:537-549 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:563-572 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:604-609 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:252-264 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:278-287 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:319-324 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:208-220 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:234-243 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:275-280 | src/diffusers/pipelines/latte/pipeline_latte.py:470-482 | src/diffusers/pipelines/latte/pipeline_latte.py:496-505 | src/diffusers/pipelines/latte/pipeline_latte.py:537-542 | src/diffusers/pipelines/lumina/pipeline_lumina.py:502-514 | src/diffusers/pipelines/lumina/pipeline_lumina.py:528-537 | src/diffusers/pipelines/lumina/pipeline_lumina.py:569-574 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:457-469 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:483-492 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:524-529 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:464-476 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:490-499 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:531-536 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:569-581 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:595-604 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:636-641 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:514-526 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:540-549 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:581-586 | src/diffusers/pipelines/prx/pipeline_prx.py:144-150 | src/diffusers/pipelines/prx/pipeline_prx.py:164-174 | src/diffusers/pipelines/prx/pipeline_prx.py:205-211 | src/diffusers/pipelines/sana/pipeline_sana.py:540-552 | src/diffusers/pipelines/sana/pipeline_sana.py:566-575 | src/diffusers/pipelines/sana/pipeline_sana.py:607-612 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:555-567 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:581-590 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:622-627 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:431-443 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:457-466 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:498-503 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:455-467 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:481-490 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:522-527 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:563-575 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:589-598 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:630-635 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:565-577 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:591-600 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:632-637 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/allegro/pipeline_allegro.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 576 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:630\u0060 calls \u0060BeautifulSoup\u0060 and \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:656\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":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40d0d567eb530b2b4ef012ddb940deda9e228bd91597b5f1f839e10e8b72ec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 49): examples/community/lpw_stable_diffusion_xl.py:812-820 | examples/community/mixture_tiling_sdxl.py:495-503 | examples/community/mod_controlnet_tile_sr_sdxl.py:502-510 | examples/community/pipeline_demofusion_sdxl.py:276-284 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1374-1382 | examples/community/pipeline_hunyuandit_differential_img2img.py:432-439 | examples/community/pipeline_sdxl_style_aligned.py:615-623 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:299-304 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:344-349 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:801-809 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1437-1445 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:348-356 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:495-503 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:375-383 | examples/community/pipeline_stable_diffusion_xl_ipex.py:375-383 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:817-824 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:101-106 | src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:144-149 | src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py:409-417 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:434-442 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:398-406 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:406-414 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:398-406 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:387-395 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:398-406 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:417-425 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:363-370 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:333-338 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:355-360 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:330-338 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:692-700 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:258-263 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:335-342 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:413-421 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:403-411 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:345-352 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:303-308 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:319-324 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:400-408 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:418-426 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:508-516 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:313-318 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:338-343 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:344-349 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:390-398 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:408-416 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:512-520 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:314-322 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:418-426 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:812\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, \u0060src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py:106\u0060 calls \u0060equal\u0060, \u0060batch_decode\u0060, \u0060warning\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:449\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca57aaec61fdf9fc1e2c7822be7c1e1235fd3aa77f9969d114d80d3d562a3860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 43): examples/community/ip_adapter_face_id.py:277-282 | src/diffusers/loaders/ip_adapter.py:137-142 | src/diffusers/loaders/ip_adapter.py:430-435 | src/diffusers/loaders/ip_adapter.py:684-689 | src/diffusers/loaders/ip_adapter.py:963-968 | src/diffusers/loaders/lora_pipeline.py:295-300 | src/diffusers/loaders/lora_pipeline.py:717-722 | src/diffusers/loaders/lora_pipeline.py:989-994 | src/diffusers/loaders/lora_pipeline.py:1273-1278 | src/diffusers/loaders/lora_pipeline.py:1467-1472 | src/diffusers/loaders/lora_pipeline.py:2374-2379 | src/diffusers/loaders/lora_pipeline.py:2559-2564 | src/diffusers/loaders/lora_pipeline.py:2747-2752 | src/diffusers/loaders/lora_pipeline.py:2940-2945 | src/diffusers/loaders/lora_pipeline.py:3156-3161 | src/diffusers/loaders/lora_pipeline.py:3344-3349 | src/diffusers/loaders/lora_pipeline.py:3534-3539 | src/diffusers/loaders/lora_pipeline.py:3726-3731 | src/diffusers/loaders/lora_pipeline.py:3920-3925 | src/diffusers/loaders/lora_pipeline.py:4108-4113 | src/diffusers/loaders/lora_pipeline.py:4372-4377 | src/diffusers/loaders/lora_pipeline.py:4638-4643 | src/diffusers/loaders/lora_pipeline.py:4826-4831 | src/diffusers/loaders/lora_pipeline.py:5018-5023 | src/diffusers/loaders/lora_pipeline.py:5213-5218 | src/diffusers/loaders/lora_pipeline.py:5407-5412 | src/diffusers/loaders/lora_pipeline.py:5606-5611 | src/diffusers/loaders/lora_pipeline.py:5793-5798 | src/diffusers/loaders/lora_pipeline.py:5995-6000 | src/diffusers/loaders/lora_pipeline.py:6187-6192 | src/diffusers/loaders/lora_pipeline.py:6375-6380 | src/diffusers/loaders/lora_pipeline.py:6571-6576 | src/diffusers/loaders/lora_pipeline.py:6773-6778 | src/diffusers/loaders/lora_pipeline.py:6959-6964 | src/diffusers/loaders/lora_pipeline.py:7169-7174 | src/diffusers/loaders/lora_pipeline.py:7553-7558 | src/diffusers/loaders/peft.py:173-178 | src/diffusers/loaders/textual_inversion.py:47-52 | src/diffusers/loaders/unet.py:120-125 | src/diffusers/models/modeling_utils.py:1039-1044 | src/diffusers/models/modeling_utils.py:2257-2262 | src/diffusers/pipelines/pipeline_utils.py:782-787 | src/diffusers/pipelines/pipeline_utils.py:1567-1572 \u2014 there are 43 copies across 8 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 43 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pipeline_utils.py:789\u0060 calls \u0060_resolve_dtype\u0060, \u0060pop\u0060 and \u0060src/diffusers/loaders/lora_pipeline.py:302\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":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"18977236f5a67174327ef154b0c567f0604f7796964e16fbb843d1ebcb38f59b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 41): examples/community/fresco_v2v.py:1692-1697 | examples/community/instaflow_one_step.py:397-402 | examples/community/ip_adapter_face_id.py:680-685 | examples/community/llm_grounded_diffusion.py:1446-1451 | examples/community/pipeline_stable_diffusion_boxdiff.py:807-812 | examples/community/pipeline_stable_diffusion_pag.py:807-812 | examples/community/regional_prompting_stable_diffusion.py:1326-1328 | examples/research_projects/anytext/anytext.py:1630-1635 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:545-550 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:568-573 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:546-551 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:552-557 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:547-552 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:575-580 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:431-436 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:255-260 | src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py:119-124 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:495-500 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:639-644 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:553-558 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:349-354 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:469-474 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:556-561 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:458-463 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:391-396 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:606-611 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:999-1001 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py:304-309 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py:163-168 | src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:220-225 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:428-433 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:598-603 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:403-408 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:186-191 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:628-633 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:764-769 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:287-292 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:419-424 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:481-486 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:443-448 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:510-515 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060VaeImageProcessor\u0060 names \u0060....image_processor\u0060 in one and \u0060...image_processor\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"a483b7fe74f256a27e7eaf5f32a0852af349cb39bf6df5207e9846233e097e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 38): examples/community/latent_consistency_interpolate.py:935-943 | examples/community/lpw_stable_diffusion_xl.py:1894-1899 | examples/community/masked_stable_diffusion_xl_img2img.py:462-467 | examples/community/pipeline_controlnet_xl_kolors.py:1286-1291 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1489-1494 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2196-2201 | examples/community/pipeline_hunyuandit_differential_img2img.py:1111-1116 | examples/community/pipeline_kolors_differential_img2img.py:1221-1226 | examples/community/pipeline_sdxl_style_aligned.py:1857-1862 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:949-954 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1236-1241 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1385-1390 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1113-1118 | examples/community/stable_diffusion_xl_controlnet_reference.py:1310-1315 | examples/community/stable_diffusion_xl_reference.py:1137-1142 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1541-1546 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1598-1603 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1017-1022 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1225-1230 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1384-1389 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:879-884 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:923-930 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:811-818 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:997-1004 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:765-772 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1018-1023 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1198-1203 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1333-1338 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1557-1562 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1618-1623 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:932-937 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1081-1086 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:969-974 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1037-1042 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1285-1290 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1477-1482 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1144-1149 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1353-1358 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 38 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 38 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/latent_consistency_interpolate.py:935\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/masked_stable_diffusion_xl_img2img.py:459\u0060 calls \u0060pop\u0060 and \u0060examples/community/latent_consistency_interpolate.py:933\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e67752f6587681b6040f7058705e5e419c45084e9d56da6049f1df7d12556b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 35): examples/community/fresco_v2v.py:2390-2395 | examples/community/pipeline_animatediff_controlnet.py:1032-1037 | examples/community/pipeline_controlnet_xl_kolors.py:1127-1132 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1324-1329 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1613-1618 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:901-906 | examples/community/pipeline_stable_diffusion_xl_instantid.py:891-896 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1187-1192 | examples/community/rerender_a_video.py:825-830 | examples/community/rerender_a_video.py:993-998 | examples/community/stable_diffusion_xl_controlnet_reference.py:760-765 | examples/research_projects/anytext/anytext.py:2235-2240 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1214-1219 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1013-1018 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1207-1212 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1231-1236 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1212-1217 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1380-1385 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1664-1669 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1381-1386 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1462-1467 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1655-1660 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1377-1382 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1491-1496 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1129-1134 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1300-1305 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1042-1047 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:910-915 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1083-1088 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1197-1202 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1394-1399 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1366-1371 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1450-1455 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:830-835 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:808-813 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/rerender_a_video.py:822\u0060 calls \u0060prepare_extra_step_kwargs\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:1185\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":"examples/community/fresco_v2v.py"},"region":{"startLine":2390}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbaa84afd12ad3e882a278e651ff1cf691ec0f5957ff8384a821d44dba33ad94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 34): examples/community/pipeline_stg_hunyuan_video.py:787-793 | examples/community/pipeline_stg_ltx.py:828-834 | examples/community/pipeline_stg_wan.py:620-626 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:642-648 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:838-843 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:707-713 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:824-830 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:966-972 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:627-633 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:746-752 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:755-761 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:707-713 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:999-1005 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:716-721 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:843-848 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:758-764 | src/diffusers/pipelines/kandinsky6/pipeline_kandinsky6_ti2va.py:923-928 | src/diffusers/pipelines/ltx/pipeline_ltx.py:798-804 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1598-1604 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:2048-2054 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1548-1554 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2483-2489 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1702-1708 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:696-702 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:751-757 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:875-881 | src/diffusers/pipelines/omnigen/pipeline_omnigen.py:467-473 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:576-582 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:709-715 | src/diffusers/pipelines/wan/pipeline_wan.py:643-649 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1148-1154 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:800-806 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:1005-1011 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:702-708 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060examples/community/pipeline_stg_ltx.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:649\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:845\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":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"491bf6446cb932dccf0c9c4da809034fe1e34b56a2db51e1280f3339f8cb2439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 33): src/diffusers/loaders/lora_pipeline.py:300-305 | src/diffusers/loaders/lora_pipeline.py:722-727 | src/diffusers/loaders/lora_pipeline.py:993-998 | src/diffusers/loaders/lora_pipeline.py:1277-1282 | src/diffusers/loaders/lora_pipeline.py:1471-1476 | src/diffusers/loaders/lora_pipeline.py:2378-2383 | src/diffusers/loaders/lora_pipeline.py:2563-2568 | src/diffusers/loaders/lora_pipeline.py:2751-2756 | src/diffusers/loaders/lora_pipeline.py:2944-2949 | src/diffusers/loaders/lora_pipeline.py:3160-3165 | src/diffusers/loaders/lora_pipeline.py:3348-3353 | src/diffusers/loaders/lora_pipeline.py:3538-3543 | src/diffusers/loaders/lora_pipeline.py:3730-3735 | src/diffusers/loaders/lora_pipeline.py:3924-3929 | src/diffusers/loaders/lora_pipeline.py:4112-4117 | src/diffusers/loaders/lora_pipeline.py:4376-4381 | src/diffusers/loaders/lora_pipeline.py:4642-4647 | src/diffusers/loaders/lora_pipeline.py:4830-4835 | src/diffusers/loaders/lora_pipeline.py:5022-5027 | src/diffusers/loaders/lora_pipeline.py:5217-5222 | src/diffusers/loaders/lora_pipeline.py:5411-5416 | src/diffusers/loaders/lora_pipeline.py:5610-5615 | src/diffusers/loaders/lora_pipeline.py:5797-5802 | src/diffusers/loaders/lora_pipeline.py:5999-6004 | src/diffusers/loaders/lora_pipeline.py:6191-6196 | src/diffusers/loaders/lora_pipeline.py:6379-6384 | src/diffusers/loaders/lora_pipeline.py:6575-6580 | src/diffusers/loaders/lora_pipeline.py:6777-6782 | src/diffusers/loaders/lora_pipeline.py:6963-6968 | src/diffusers/loaders/lora_pipeline.py:7173-7178 | src/diffusers/loaders/lora_pipeline.py:7557-7562 | src/diffusers/loaders/peft.py:180-185 | src/diffusers/pipelines/pipeline_utils.py:1573-1578 \u2014 there are 33 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 33 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"0299b661a67100ddc5dbbaab0bef1f3aaeea8ad4e84a503bb1d77366d3f7d86a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 30): examples/community/pipeline_flux_kontext_multiple_images.py:596-604 | examples/community/pipeline_flux_semantic_guidance.py:669-677 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:563-571 | src/diffusers/modular_pipelines/flux/decoders.py:34-42 | src/diffusers/pipelines/chroma/pipeline_chroma.py:495-503 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:527-535 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:583-591 | src/diffusers/pipelines/flux/pipeline_flux.py:531-539 | src/diffusers/pipelines/flux/pipeline_flux_control.py:482-490 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:524-532 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:563-571 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:576-584 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:525-533 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:553-561 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:619-627 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:598-606 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:619-627 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:585-593 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:659-667 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:367-375 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:377-385 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:388-396 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:342-354 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:409-421 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:391-403 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:392-404 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:425-437 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:407-419 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:391-403 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:418-430 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_semantic_guidance.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 777 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_kontext_multiple_images.py:596\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_flux_kontext_multiple_images.py:604\u0060 calls \u0060permute\u0060, \u0060reshape\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:404\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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"239216fae08327b31c1838e43a244c994b6cfd76e4455a3d9ab5a53e9b62a541"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 29): examples/community/clip_guided_stable_diffusion_img2img.py:223-228 | examples/community/fresco_v2v.py:2003-2008 | examples/community/latent_consistency_img2img.py:227-232 | examples/community/pipeline_hunyuandit_differential_img2img.py:687-692 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:629-634 | examples/community/rerender_a_video.py:579-584 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:695-700 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:827-832 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:591-596 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:862-867 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:704-709 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:573-578 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:612-617 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:574-579 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:672-677 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:650-655 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:725-730 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:744-749 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:273-278 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:559-564 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:438-443 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:692-697 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:708-713 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:519-524 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:448-453 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:475-480 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:544-549 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:784-789 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:708-713 \u2014 there are 29 copies across 28 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 29 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_stable_diffusion_img2img.py:223\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, \u0060examples/community/clip_guided_stable_diffusion_img2img.py:220\u0060 calls \u0060deprecate\u0060 and \u0060examples/community/latent_consistency_img2img.py:223\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"4653fab6c22c1f346e4da1441895d52a38b507c269ad857a94b767d647df7891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 27): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:472-478 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:731-737 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:114-119 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:253-258 | scripts/convert_gligen_to_diffusers.py:107-113 | scripts/convert_gligen_to_diffusers.py:237-243 | scripts/convert_i2vgen_to_diffusers.py:243-249 | scripts/convert_if.py:324-330 | scripts/convert_if.py:903-909 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:145-151 | scripts/convert_ms_text_to_video_to_diffusers.py:199-205 | scripts/convert_original_audioldm2_to_diffusers.py:341-347 | scripts/convert_original_audioldm2_to_diffusers.py:526-532 | scripts/convert_original_audioldm_to_diffusers.py:353-359 | scripts/convert_original_audioldm_to_diffusers.py:510-516 | scripts/convert_original_musicldm_to_diffusers.py:349-355 | scripts/convert_original_musicldm_to_diffusers.py:506-512 | scripts/convert_svd_to_diffusers.py:313-319 | scripts/convert_svd_to_diffusers.py:646-657 | scripts/convert_unidiffuser_to_diffusers.py:372-378 | scripts/convert_vae_pt_to_diffusers.py:39-45 | scripts/convert_versatile_diffusion_to_diffusers.py:411-417 | scripts/convert_versatile_diffusion_to_diffusers.py:598-604 | scripts/convert_zero123_to_diffusers.py:321-327 | scripts/convert_zero123_to_diffusers.py:543-549 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:470-476 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:669-675 \u2014 there are 27 copies across 16 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 27 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:472\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f54c5cf38a27cedfec5984569b629290a0d22fd73b49b79687b38ccd25ea2fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 26): examples/community/pipeline_flux_differential_img2img.py:261-266 | examples/community/pipeline_flux_kontext_multiple_images.py:300-305 | examples/community/pipeline_flux_rf_inversion.py:255-260 | examples/community/pipeline_flux_semantic_guidance.py:259-264 | examples/community/pipeline_flux_with_cfg.py:222-227 | examples/community/pipeline_stg_hunyuan_video.py:345-350 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:288-293 | src/diffusers/modular_pipelines/flux/encoders.py:354-359 | src/diffusers/pipelines/flux/pipeline_flux.py:241-246 | src/diffusers/pipelines/flux/pipeline_flux_control.py:253-258 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:264-269 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:303-308 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:273-278 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:265-270 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:276-281 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:268-273 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:262-267 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:266-271 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:287-292 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:320-325 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:226-231 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:312-317 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:284-289 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:389-394 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:441-446 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:219-224 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:261\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39e77cf4d2a965dc4b4567f2dc0fe626dc5e4f8a152d46fe8b59e2740eee36b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 25): examples/community/pipeline_stg_wan.py:640-645 | src/diffusers/modular_pipelines/qwenimage/decoders.py:320-325 | src/diffusers/pipelines/anyflow/pipeline_anyflow.py:635-640 | src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py:798-803 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:727-732 | src/diffusers/pipelines/krea2/pipeline_krea2.py:700-705 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:716-721 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:628-633 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:704-709 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:947-952 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:918-923 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:833-838 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1059-1064 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:877-882 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:806-811 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:987-992 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:881-886 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:841-846 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:596-601 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:958-963 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:1040-1045 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:1044-1049 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:729-734 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1165-1171 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:722-727 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_wan.py\u0060 and \u0060src/diffusers/pipelines/anyflow/pipeline_anyflow.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 323 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_wan.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"84815091666c8a9f5d0ea669afd45212dab4d7070bc304b4c4af27ed71d2f85c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 24): examples/community/fresco_v2v.py:2197-2202 | examples/community/mod_controlnet_tile_sr_sdxl.py:1411-1416 | examples/community/pipeline_animatediff_controlnet.py:884-889 | examples/community/pipeline_controlnet_xl_kolors.py:979-984 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1165-1170 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1377-1382 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:739-744 | examples/community/pipeline_stable_diffusion_xl_instantid.py:735-740 | examples/community/rerender_a_video.py:712-717 | examples/community/stable_diffusion_xl_controlnet_reference.py:566-571 | examples/research_projects/anytext/anytext.py:2098-2103 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1054-1059 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:845-850 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1049-1054 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1062-1067 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1060-1065 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1169-1174 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1407-1412 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1214-1219 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1304-1309 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1009-1014 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1134-1139 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1205-1210 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1298-1303 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 24 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 24 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:563\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/fresco_v2v.py:2195\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":"examples/community/fresco_v2v.py"},"region":{"startLine":2197}}}],"partialFingerprints":{"codehealthFindingId/v1":"9444e6079546aa2bde9125a848ba5386d2ee54de82b19364093cff5fcf32a152"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 24): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:495-500 | examples/community/stable_unclip.py:171-176 | examples/community/unclip_image_interpolation.py:118-123 | examples/community/unclip_text_interpolation.py:112-117 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:117-122 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:119-124 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:112-117 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:131-136 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:124-129 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:152-157 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:288-293 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:288-293 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:108-113 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:149-154 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:279-284 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:244-249 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:242-247 | src/diffusers/pipelines/shap_e/pipeline_shap_e.py:131-136 | src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py:132-137 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:126-131 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:145-150 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:385-390 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:516-521 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:589-594 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 24 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 24 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:108\u0060 calls \u0060register_to_config\u0060 and \u0060examples/community/unclip_image_interpolation.py:114\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":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4da4fa25807baf88223b2465b0ad69532791f7360fac73b3165178c1d047ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 24): examples/community/pipeline_stg_cogvideox.py:275-281 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:384-392 | src/diffusers/pipelines/allegro/pipeline_allegro.py:274-282 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:221-227 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:229-235 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:239-245 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:245-251 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:187-193 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:195-200 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:198-203 | src/diffusers/pipelines/consisid/pipeline_consisid.py:331-337 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:233-241 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:257-265 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:410-418 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:261-269 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:412-420 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:368-376 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:150-157 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:183-190 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:314-321 | src/diffusers/pipelines/latte/pipeline_latte.py:266-274 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:249-257 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:362-370 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:306-314 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 24 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 24 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_cogvideox.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec045ce2b4232d27d220fdb398746eaa4a6fc3dc33432262069beb7064fd1f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 23): examples/community/lpw_stable_diffusion_xl.py:1926-1931 | examples/community/mixture_tiling_sdxl.py:1193-1198 | examples/community/mod_controlnet_tile_sr_sdxl.py:1819-1824 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2237-2242 | examples/community/pipeline_kolors_inpainting.py:1679-1684 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2269-2274 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1427-1432 | examples/community/pipeline_stg_mochi.py:849-854 | examples/community/stable_diffusion_xl_controlnet_reference.py:1342-1347 | examples/community/stable_diffusion_xl_reference.py:1176-1181 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1576-1581 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1640-1645 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1586-1591 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1687-1692 | src/diffusers/pipelines/mochi/pipeline_mochi.py:708-713 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1589-1594 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1657-1662 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1320-1325 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1513-1518 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1746-1751 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1469-1474 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1708-1713 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:952-957 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:1819\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2123338514c789e3a39cc1c99fe3adb335709e540cedbaa70e9d0de7fcdc966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 22): examples/community/lpw_stable_diffusion_xl.py:1908-1914 | examples/community/mod_controlnet_tile_sr_sdxl.py:1801-1807 | examples/community/pipeline_controlnet_xl_kolors.py:1312-1318 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1514-1520 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1828-1834 | examples/community/pipeline_sdxl_style_aligned.py:1874-1880 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:719-725 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1372-1378 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1049-1054 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1038-1043 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1130-1136 | examples/community/stable_diffusion_xl_controlnet_reference.py:1324-1330 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1558-1564 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1622-1628 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1568-1574 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1669-1675 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1088-1094 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1347-1353 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1571-1577 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1639-1645 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:780-788 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1280-1286 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 22 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 22 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1556\u0060 calls \u0060mark_step\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1047\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"539df7ec3658eb7234225d297929896401769c2f62c79327e12ac950daaf4ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 19): examples/community/composable_stable_diffusion.py:488-493 | examples/community/lpw_stable_diffusion.py:1005-1010 | examples/community/masked_stable_diffusion_img2img.py:170-175 | examples/community/pipeline_prompt2prompt.py:718-723 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:682-687 | examples/community/pipeline_zero1to3.py:747-752 | examples/community/stable_diffusion_controlnet_img2img.py:817-822 | examples/community/stable_diffusion_ipex.py:704-709 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1033-1038 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:508-513 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:684-689 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:588-593 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:580-585 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:723-728 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:779-784 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:599-604 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:654-659 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:387-392 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:739-744 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/lpw_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/composable_stable_diffusion.py:482\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/lpw_stable_diffusion.py:1002\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":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"136a49f4271e17c09fecaccf73340fb9b2768e9f0ed4f39f11bdac06797a0036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 19): examples/community/hd_painter.py:853-858 | examples/community/instaflow_one_step.py:668-673 | examples/community/ip_adapter_face_id.py:1102-1107 | examples/community/llm_grounded_diffusion.py:1062-1067 | examples/community/lpw_stable_diffusion_xl.py:1903-1908 | examples/community/masked_stable_diffusion_img2img.py:203-208 | examples/community/pipeline_prompt2prompt.py:748-754 | examples/community/pipeline_stable_diffusion_boxdiff.py:1700-1705 | examples/community/pipeline_stable_diffusion_pag.py:1457-1462 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1367-1372 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1044-1049 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1033-1038 | examples/community/stable_diffusion_reference.py:1443-1448 | examples/community/stable_diffusion_xl_controlnet_reference.py:1319-1324 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:1077-1082 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:967-972 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:1022-1027 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:929-935 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:807-812 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cae53b6cb3959d12b7b2e63a00443258bbdf986a9f76673302e20898557c707"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 18): examples/community/fresco_v2v.py:1962-1969 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1751-1758 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:705-712 | examples/community/rerender_a_video.py:539-546 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:123-128 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:814-821 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:663-670 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:158-165 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:129-136 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:257-264 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:511-518 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:659-666 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:660-667 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:496-503 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:736-743 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:865-872 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:675-682 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:513-520 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 18 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 18 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e53d15070e7a837ed88f73d2364b3315982912d119ced3f4bbd0a8a87308c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 18): examples/community/latent_consistency_img2img.py:559-564 | examples/community/latent_consistency_txt2img.py:471-476 | examples/community/matryoshka.py:388-393 | examples/community/scheduling_ufogen.py:208-213 | src/diffusers/schedulers/scheduling_ddim.py:214-219 | src/diffusers/schedulers/scheduling_ddim_parallel.py:220-225 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:203-208 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:192-197 | src/diffusers/schedulers/scheduling_euler_discrete.py:231-236 | src/diffusers/schedulers/scheduling_heun_discrete.py:173-178 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:169-174 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:168-173 | src/diffusers/schedulers/scheduling_lcm.py:226-231 | src/diffusers/schedulers/scheduling_lms_discrete.py:165-170 | src/diffusers/schedulers/scheduling_pndm.py:135-140 | src/diffusers/schedulers/scheduling_repaint.py:141-146 | src/diffusers/schedulers/scheduling_tcd.py:227-232 | src/diffusers/schedulers/scheduling_unipc_multistep.py:239-244 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_ddim.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/scheduling_ufogen.py:181\u0060 calls \u0060ceil\u0060 and \u0060examples/community/latent_consistency_img2img.py:532\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":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7c3d1c7a58f190f9d209929fc1a4e1ce8c54f13e7fe8dd764eded3721bfded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 18): examples/community/llm_grounded_diffusion.py:1053-1058 | examples/community/pipeline_animatediff_img2video.py:955-960 | examples/community/stable_diffusion_controlnet_img2img.py:860-865 | examples/community/stable_diffusion_controlnet_inpaint.py:1013-1018 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:990-995 | examples/community/stable_diffusion_ipex.py:718-723 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1054-1059 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:528-533 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:609-614 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:597-602 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1010-1015 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:824-829 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:798-803 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1010-1015 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1078-1083 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:450-455 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:703-708 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:401-406 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 465 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:591\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:395\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":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c95166591515c33c3832720cec2979cdba2254f55bbfcc98438ad9bc3777e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 18): examples/community/pipeline_sdxl_style_aligned.py:238-243 | examples/community/pipeline_stable_diffusion_pag.py:101-107 | examples/community/pipeline_stable_diffusion_pag.py:216-222 | examples/community/regional_prompting_stable_diffusion.py:343-349 | src/diffusers/models/attention_processor.py:1444-1450 | src/diffusers/models/attention_processor.py:2045-2051 | src/diffusers/models/attention_processor.py:2294-2300 | src/diffusers/models/attention_processor.py:2631-2637 | src/diffusers/models/attention_processor.py:2737-2743 | src/diffusers/models/attention_processor.py:2834-2840 | src/diffusers/models/attention_processor.py:2942-2948 | src/diffusers/models/attention_processor.py:3163-3169 | src/diffusers/models/attention_processor.py:3371-3377 | src/diffusers/models/attention_processor.py:3495-3501 | src/diffusers/models/attention_processor.py:4496-4502 | src/diffusers/models/attention_processor.py:4936-4942 | src/diffusers/models/attention_processor.py:5076-5082 | src/diffusers/models/attention_processor.py:5176-5182 \u2014 before extracting anything, compare \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_pag.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_sdxl_style_aligned.py:235\u0060 calls \u0060group_norm\u0060, \u0060transpose\u0060 and \u0060src/diffusers/models/attention_processor.py:2291\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4f97390684e97b66c08b2fd884111e6c1ba8e66a85096e889b42d8f610d8b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 17): examples/community/lpw_stable_diffusion_xl.py:671-676 | examples/community/mixture_tiling_sdxl.py:362-367 | examples/community/pipeline_demofusion_sdxl.py:165-170 | examples/community/pipeline_kolors_differential_img2img.py:207-212 | examples/community/pipeline_sdxl_style_aligned.py:485-490 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:225-230 | examples/community/pipeline_stable_diffusion_xl_ipex.py:248-253 | examples/community/pipeline_stable_diffusion_xl_t5.py:125-130 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:416-421 | src/diffusers/pipelines/kolors/pipeline_kolors.py:186-191 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:205-210 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:369-374 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:200-205 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:270-275 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:263-268 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:193-198 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:298-303 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:671\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: \u0060VaeImageProcessor\u0060 names \u0060....image_processor\u0060 in one and \u0060diffusers.image_processor\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/lpw_stable_diffusion_xl.py:677\u0060 calls \u0060VaeImageProcessor\u0060 and \u0060examples/community/mixture_tiling_sdxl.py:369\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9bdbbec144b5ce7361fe760b218e5ce1ca7239988ce19c072611544ab7cf40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 16): examples/community/gluegen.py:752-757 | examples/community/hd_painter.py:710-715 | examples/community/ip_adapter_face_id.py:1051-1056 | examples/community/matryoshka.py:4495-4500 | examples/community/regional_prompting_stable_diffusion.py:1032-1037 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:919-924 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:978-983 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:970-975 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1046-1053 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1406-1411 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:990-995 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1022-1027 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1278-1283 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1024-1029 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1086-1091 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1255-1260 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"487af749a6322754ed7b8fe6a7e4d4e2653b3ab84fbd044bc2f3f9f884228c36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 15): examples/community/masked_stable_diffusion_xl_img2img.py:389-394 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2110-2115 | examples/community/pipeline_kolors_differential_img2img.py:1158-1163 | examples/community/pipeline_kolors_inpainting.py:1564-1569 | examples/community/pipeline_sdxl_style_aligned.py:1789-1794 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2147-2152 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1314-1319 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1057-1062 | examples/community/stable_diffusion_xl_reference.py:1054-1059 | src/diffusers/pipelines/kolors/pipeline_kolors.py:964-969 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1144-1149 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1092-1097 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1190-1195 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1379-1384 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1598-1603 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 15 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 15 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1196\u0060 calls \u0060hasattr\u0060, \u0060set_begin_index\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py:395\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":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c58f477630b06ee2f4f14c7d05e1dcd5780195916544e56541804e66a96312d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 14): examples/cogvideo/train_cogvideox_image_to_video_lora.py:792-797 | examples/cogvideo/train_cogvideox_lora.py:814-819 | examples/community/pipeline_stg_cogvideox.py:289-294 | examples/community/pipeline_stg_ltx.py:296-301 | examples/community/pipeline_stg_ltx_image2video.py:319-324 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:235-240 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:243-248 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:253-258 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:259-264 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:201-206 | src/diffusers/pipelines/consisid/pipeline_consisid.py:345-350 | src/diffusers/pipelines/ltx/pipeline_ltx.py:270-275 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:539-544 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:293-298 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7d6d8eba3b1dd2253b887e0ae8bbe95d623e5b3bb91cfa34bd85155f396a17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 14): examples/community/pipeline_controlnet_xl_kolors.py:1312-1318 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1514-1520 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1828-1834 | examples/community/pipeline_sdxl_style_aligned.py:1874-1880 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:719-725 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1372-1378 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1049-1054 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1038-1043 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1130-1136 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1088-1094 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:1312-1318 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1347-1353 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:780-788 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1280-1286 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:778\u0060 calls \u0060mark_step\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1047\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":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"8499b473d1d31974ae09f74aff89de74722b11ae974cb16e4f1838ad406f7f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 14): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:494-501 | scripts/convert_gligen_to_diffusers.py:259-266 | scripts/convert_i2vgen_to_diffusers.py:265-272 | scripts/convert_if.py:346-353 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:167-172 | scripts/convert_ms_text_to_video_to_diffusers.py:221-228 | scripts/convert_original_audioldm_to_diffusers.py:375-382 | scripts/convert_original_musicldm_to_diffusers.py:371-378 | scripts/convert_svd_to_diffusers.py:335-343 | scripts/convert_versatile_diffusion_to_diffusers.py:433-440 | scripts/convert_zero123_to_diffusers.py:343-350 | src/diffusers/loaders/single_file_utils.py:1286-1294 | src/diffusers/loaders/single_file_utils.py:1417-1425 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:492-499 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:494\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c5658d31bbfe32dc71a7ad8533c9ffd889e7331d17bc8ed65fb595d6f447eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): examples/community/cogvideox_ddim_inversion.py:131-137 | examples/community/matryoshka.py:1543-1549 | src/diffusers/models/attention_processor.py:1451-1457 | src/diffusers/models/attention_processor.py:2301-2307 | src/diffusers/models/attention_processor.py:2372-2378 | src/diffusers/models/attention_processor.py:2745-2751 | src/diffusers/models/attention_processor.py:2842-2848 | src/diffusers/models/attention_processor.py:2949-2955 | src/diffusers/models/attention_processor.py:3171-3177 | src/diffusers/models/attention_processor.py:3274-3280 | src/diffusers/models/attention_processor.py:3379-3385 | src/diffusers/models/attention_processor.py:3503-3509 | src/diffusers/models/attention_processor.py:3725-3731 \u2014 there are 13 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 13 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/cogvideox_ddim_inversion.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb0de21e1513a1e7d7567426d4756177ea6bea172e87e2157b4a01f5a6bcb2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 11): examples/community/ip_adapter_face_id.py:1083-1088 | examples/community/matryoshka.py:4536-4541 | examples/community/pipeline_sdxl_style_aligned.py:1826-1831 | examples/community/pipeline_stable_diffusion_boxdiff.py:1681-1686 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1097-1102 | examples/community/regional_prompting_stable_diffusion.py:1064-1069 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1258-1265 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:948-953 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:1002-1007 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1033-1038 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1057-1062 \u2014 before extracting anything, compare \u0060examples/community/ip_adapter_face_id.py\u0060 and \u0060examples/community/matryoshka.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 564 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"257cc3a46c3690e495f3158daa687cfb42bf138ffb30f2c5fee55b280e599d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10): examples/community/rerender_a_video.py:907-912 | examples/community/rerender_a_video.py:1107-1114 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:853-858 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:743-748 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:867-872 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:986-991 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:989-994 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1100-1105 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:840-845 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:930-935 \u2014 there are 10 copies across 9 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 10 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/rerender_a_video.py:1107\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/rerender_a_video.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04d31c0dc35b1af4f5e64e31d444bc6884088b07e48a8efd4158d886e4c9a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10): src/diffusers/pipelines/chroma/pipeline_chroma.py:253-259 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:265-271 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:282-288 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:354-359 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:376-381 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:324-329 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:340-345 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:334-339 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:359-364 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:365-370 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 792 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"678cfb45fb3d515be5364e7297e2414e69946131041192def9a69db83b84ed02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:279-284 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:216-223 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:280-287 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:262-269 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:263-270 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:274-281 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:276-283 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:223-230 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:233-240 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:281-288 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:279\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":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b818d67355d9757b8cc3978babe81148c5d80b12fe7b9613302435908d9699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): examples/community/fresco_v2v.py:1230-1238 | examples/community/pipeline_zero1to3.py:367-375 | examples/community/pipeline_zero1to3.py:542-550 | examples/community/rerender_a_video.py:244-252 | examples/community/stable_diffusion_controlnet_img2img.py:71-79 | examples/community/stable_diffusion_controlnet_inpaint.py:134-142 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:133-141 | examples/community/stable_diffusion_repaint.py:108-116 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:123-131 \u2014 there are 9 copies across 8 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 9 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1230\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b05cdb2cd68f870b87dc740814eddbc0c22bfe647728b78b6f016febe1f0097"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): examples/community/fresco_v2v.py:1985-1990 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:844-849 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:686-691 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:597-602 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:489-494 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:541-546 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:690-695 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:526-531 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:766-771 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 123 separate duplicated blocks between them, totalling at least 1589 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:1985\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1985}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaea9e9998d9f6bf43656a0b7d400ff3f84a331c917089f1ab25d788a61fd995"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:562-567 | scripts/convert_gligen_to_diffusers.py:326-331 | scripts/convert_if.py:454-460 | scripts/convert_if.py:1057-1063 | scripts/convert_original_audioldm2_to_diffusers.py:453-458 | scripts/convert_original_audioldm_to_diffusers.py:442-447 | scripts/convert_original_musicldm_to_diffusers.py:438-443 | scripts/convert_zero123_to_diffusers.py:410-415 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:560-565 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:561\u0060 calls \u0060renew_resnet_paths\u0060 and \u0060scripts/convert_if.py:452\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"482101484d6f7ca58d469a0b748ed294ef9a568e545de3ae084fac1e5b667b7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): examples/community/pipeline_flux_differential_img2img.py:612-617 | examples/community/pipeline_z_image_differential_img2img.py:392-397 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:650-655 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:672-677 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:685-690 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:639-644 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:708-713 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:811-816 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cc35d2aa3144d8c9a746c8da79ba81830898539882455720f64a703f31a956"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): scripts/convert_aura_flow_to_diffusers.py:40-45 | scripts/convert_flux_to_diffusers.py:84-102 | scripts/convert_hunyuan_image_to_diffusers.py:610-616 | scripts/convert_hunyuan_video1_5_to_diffusers.py:186-200 | scripts/convert_hunyuan_video1_5_to_diffusers.py:274-282 | scripts/convert_sana_controlnet_to_diffusers.py:42-52 | scripts/convert_sana_video_to_diffusers.py:73-83 | src/diffusers/loaders/single_file_utils.py:2320-2330 \u2014 before extracting anything, compare \u0060scripts/convert_aura_flow_to_diffusers.py\u0060 and \u0060scripts/convert_flux_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.py:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_sana_controlnet_to_diffusers.py:41\u0060 calls \u0060pop\u0060 and \u0060scripts/convert_flux_to_diffusers.py:82\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/convert_aura_flow_to_diffusers.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d157afe8305894fe69b87ab4ada30d2f318d70a7086f24e4328e0dfa5adc0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): scripts/convert_flux_to_diffusers.py:145-152 | scripts/convert_ovis_image_to_diffusers.py:97-104 | scripts/convert_pixart_alpha_to_diffusers.py:75-81 | scripts/convert_pixart_sigma_to_diffusers.py:75-80 | scripts/convert_sd3_to_diffusers.py:89-95 | src/diffusers/loaders/single_file_utils.py:2061-2067 | src/diffusers/loaders/single_file_utils.py:2373-2378 | src/diffusers/loaders/single_file_utils.py:3637-3642 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_ovis_image_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.py:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_flux_to_diffusers.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"743c1ec10194acb56b9783284a96cc7a2bfdda2449abe11c42efccd73afb6906"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1334-1339 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1309-1314 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1495-1500 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1863-1868 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1875-1880 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:899-904 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1313-1318 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1519-1524 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 111 separate duplicated blocks between them, totalling at least 1729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1858\u0060 calls \u0060upcast_vae\u0060, \u0060to\u0060, \u0060next\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1331\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"1783665164bfbdc6ce70252c284c87d6e2a5b676b2663d062036f47cd9846f3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): examples/community/clip_guided_images_mixing_stable_diffusion.py:143-148 | examples/community/clip_guided_stable_diffusion_img2img.py:200-207 | examples/community/stable_diffusion_controlnet_img2img.py:546-553 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:619-626 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:614-619 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:793-800 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:747-754 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_stable_diffusion_img2img.py:200\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df71b553559bc6436f200b3555f3d4073b4a6348ac633f720890d769aca1de7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): examples/community/clip_guided_stable_diffusion_img2img.py:205-210 | examples/community/latent_consistency_img2img.py:209-214 | examples/community/rerender_a_video.py:561-566 | examples/community/stable_diffusion_controlnet_img2img.py:551-556 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:624-629 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:798-803 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:752-757 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_stable_diffusion_img2img.py:205\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"87eace9784967e6fd95f6740bd4b6cb94862b98238c73a21161a8863e87eb74b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): examples/community/lpw_stable_diffusion_xl.py:1833-1841 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1062-1068 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:925-930 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:984-989 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:840-845 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:419-428 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:581-586 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_ipex.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 896 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:846\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:933\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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1833}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4426705ff876ccc57b6d82f3915ce799ccac1dedc535a8346d3f1a55f46028e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:585-592 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:641-648 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:546-553 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:563-570 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:554-561 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:581-588 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:588-595 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 925 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:573\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:594\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":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09f9c26cc9efa27f7192f5017f34d03a84ec64f24d4444b54926ee5ed906d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): src/diffusers/models/transformers/transformer_anyflow.py:446-451 | src/diffusers/models/transformers/transformer_anyflow_far.py:559-564 | src/diffusers/models/transformers/transformer_chronoedit.py:468-473 | src/diffusers/models/transformers/transformer_helios.py:416-421 | src/diffusers/models/transformers/transformer_skyreels_v2.py:472-477 | src/diffusers/models/transformers/transformer_wan.py:453-458 | src/diffusers/models/transformers/transformer_wan_animate.py:932-937 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow.py:446\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e075f39137cda36c1e0d73d3e5fce1de035e7b05dc963240dd27159b3b16496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): src/diffusers/models/transformers/transformer_chronoedit.py:98-103 | src/diffusers/models/transformers/transformer_helios.py:120-125 | src/diffusers/models/transformers/transformer_skyreels_v2.py:101-106 | src/diffusers/models/transformers/transformer_wan.py:95-100 | src/diffusers/models/transformers/transformer_wan_animate.py:578-583 | src/diffusers/models/transformers/transformer_wan_animate_2.py:191-196 | src/diffusers/models/transformers/transformer_wan_animate_2.py:303-308 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"9679d46e0d1c3f584b617a86f042020a1ca65fbe55afecad8b20df2336c024e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): src/diffusers/models/transformers/transformer_ernie_image.py:220-226 | src/diffusers/models/transformers/transformer_flux2.py:562-568 | src/diffusers/models/transformers/transformer_flux2.py:797-803 | src/diffusers/models/transformers/transformer_ltx.py:163-169 | src/diffusers/models/transformers/transformer_ltx2.py:387-393 | src/diffusers/models/transformers/transformer_motif_video.py:379-385 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:373-379 \u2014 there are 7 copies across 6 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 7 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ernie_image.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8a2f1f0af86869afd0c6cca5cffecfd1309f715556279dbdc0b85e10085a21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): examples/community/clip_guided_images_mixing_stable_diffusion.py:27-32 | examples/community/clip_guided_stable_diffusion_img2img.py:79-84 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:114-119 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:132-137 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:105-110 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:100-105 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc159f3e3675d47b344e1829b01cb4fc9c65e676becbe8433f510231cb261ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 15): examples/community/adaptive_mask_inpainting.py:291-293 | examples/community/fresco_v2v.py:1239-1244 | examples/community/pipeline_kolors_inpainting.py:213-215 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:409-411 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:259-261 | examples/community/pipeline_zero1to3.py:374-376 | examples/community/pipeline_zero1to3.py:549-551 | examples/community/rerender_a_video.py:253-258 | examples/community/stable_diffusion_controlnet_img2img.py:80-85 | examples/community/stable_diffusion_controlnet_inpaint.py:143-148 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:142-147 | examples/community/stable_diffusion_repaint.py:115-117 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:132-137 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:217-219 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:215-217 \u2014 there are 15 copies across 14 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 15 sites; resolving a subset leaves the remainder to drift apart. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/fresco_v2v.py:1238\u0060 calls \u0060isinstance\u0060, \u0060concatenate\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:291\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"06725acfba9afd2ed777068333d5f93a763e9d32c665e12930193055e4a725ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): examples/community/pipeline_flux_with_cfg.py:796-804 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:918-926 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:836-842 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:988-996 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1103-1108 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1293-1298 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:918\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_sana.py:833\u0060 calls \u0060prepare_extra_step_kwargs\u0060, \u0060max\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:988\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":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ba53bb130f731b1fc59ac65653e7eebbabff806f2b885529b942127cdf28dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): scripts/convert_flux_to_diffusers.py:117-129 | scripts/convert_ovis_image_to_diffusers.py:73-81 | scripts/convert_sd3_to_diffusers.py:71-85 | src/diffusers/loaders/single_file_utils.py:2051-2057 | src/diffusers/loaders/single_file_utils.py:2345-2357 | src/diffusers/loaders/single_file_utils.py:3135-3140 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_ovis_image_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.py:117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_sd3_to_diffusers.py:67\u0060 calls \u0060pop\u0060 and \u0060scripts/convert_flux_to_diffusers.py:115\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":"scripts/convert_flux_to_diffusers.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d820936d9cfafc6b304a027ed89634db1bc99fec7c0575229edc3232ea82a33c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 6): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:477-483 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:664-670 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:639-646 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:923-929 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:625-632 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:912-918 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"302ac144639dc49f84a21053a81e43546c0abcaebf6d981b235ce825e417f048"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/diffusers/models/transformers/transformer_anyflow.py:241-246 | src/diffusers/models/transformers/transformer_anyflow_far.py:420-425 | src/diffusers/models/transformers/transformer_chronoedit.py:329-334 | src/diffusers/models/transformers/transformer_skyreels_v2.py:345-350 | src/diffusers/models/transformers/transformer_wan.py:322-327 | src/diffusers/models/transformers/transformer_wan_animate.py:798-803 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_anyflow.py:239\u0060 calls \u0060TimestepEmbedding\u0060 and \u0060src/diffusers/models/transformers/transformer_chronoedit.py:327\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":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf28d304a17dea4ea21fb5395789564306c6113b82e3206a7f8a9901b8840895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 7): src/diffusers/models/transformers/transformer_bria.py:241-246 | src/diffusers/models/transformers/transformer_bria_fibo.py:186-191 | src/diffusers/models/transformers/transformer_flux.py:332-337 | src/diffusers/models/transformers/transformer_flux2.py:547-552 | src/diffusers/models/transformers/transformer_longcat_image.py:188-193 | src/diffusers/models/transformers/transformer_motif_video.py:352-354 | src/diffusers/models/transformers/transformer_ovis_image.py:188-193 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_bria.py:239\u0060 calls \u0060Linear\u0060 and \u0060src/diffusers/models/transformers/transformer_motif_video.py:351\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":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0629c5a31acfdfecbd392f8bd891037778ea41dcb0af1420b9388f18eef328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src/diffusers/models/transformers/transformer_chronoedit.py:325-331 | src/diffusers/models/transformers/transformer_helios.py:298-304 | src/diffusers/models/transformers/transformer_joyimage.py:341-347 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:291-297 | src/diffusers/models/transformers/transformer_wan.py:318-324 | src/diffusers/models/transformers/transformer_wan_animate.py:794-800 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_chronoedit.py:335\u0060 calls \u0060WanImageEmbedding\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py:306\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed73f9e517492f057608458cdb2e360c3b6704c5337a79ac7c8043f07dacf701"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/diffusers/modular_pipelines/modular_pipeline.py:1778-1783 | src/diffusers/modular_pipelines/modular_pipeline.py:1977-1982 | src/diffusers/pipelines/auto_pipeline.py:512-517 | src/diffusers/pipelines/auto_pipeline.py:811-816 | src/diffusers/pipelines/auto_pipeline.py:1124-1129 | src/diffusers/pipelines/auto_pipeline.py:1434-1439 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ab04214880df5dec326abe2ad4def6a4956c427e90eaad2fdcf8612577c63a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:538-543 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1020-1025 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:873-878 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:932-937 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1056-1061 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:606-611 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:538\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, \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1063\u0060 calls \u0060exp\u0060 and \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:545\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":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6b9c07c0279cf2fe5bab1c32ee9267367aef5bc3b4e0fe5999e5ebe9af4934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): examples/community/clip_guided_images_mixing_stable_diffusion.py:436-442 | examples/community/clip_guided_stable_diffusion.py:328-334 | examples/community/clip_guided_stable_diffusion_img2img.py:481-487 | src/diffusers/pipelines/deprecated/latent_diffusion_uncond/pipeline_latent_diffusion_uncond.py:124-129 | src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py:293-299 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff7f90f03338fc3da9b2e8ad07e1496c9076eb40c17de666ce37b1a254f8b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): examples/community/pipeline_stable_diffusion_pag.py:1323-1329 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1016-1021 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1217-1222 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1410-1415 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1623-1628 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"132fba9744bc393345e75d11b0712b7e29d45044df85bb2499bf22af91da109e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): examples/community/pipeline_z_image_differential_img2img.py:653-658 | src/diffusers/modular_pipelines/helios/before_denoise.py:841-846 | src/diffusers/modular_pipelines/ltx/before_denoise.py:233-238 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:403-408 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:935-940 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/helios/before_denoise.py:841\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 \u0060components\u0060 to \u0060HeliosModularPipeline\u0060 in one and \u0060LTXModularPipeline\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":"examples/community/pipeline_z_image_differential_img2img.py"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fd0498a9e659b0fca48c00347cf67c63595c3b66dbe3fbe24282068ef5c009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): examples/community/scheduling_ufogen.py:509-514 | src/diffusers/schedulers/scheduling_ddpm.py:661-666 | src/diffusers/schedulers/scheduling_ddpm_parallel.py:762-767 | src/diffusers/schedulers/scheduling_lcm.py:768-773 | src/diffusers/schedulers/scheduling_tcd.py:803-808 \u2014 before extracting anything, compare \u0060examples/community/scheduling_ufogen.py\u0060 and \u0060src/diffusers/schedulers/scheduling_ddpm.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/scheduling_ufogen.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a2eb54cb47bf4a00d35f6cbed51782443b8b883657e43a6b92d22c3908b444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): src/diffusers/models/transformers/transformer_anyflow.py:259-264 | src/diffusers/models/transformers/transformer_anyflow_far.py:439-444 | src/diffusers/models/transformers/transformer_helios.py:312-317 | src/diffusers/models/transformers/transformer_joyimage.py:354-359 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:304-309 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17738a128601019f3e606b1ef89451d9be91ebdb587ab645683e1d01c621aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): src/diffusers/modular_pipelines/flux2/before_denoise.py:285-290 | src/diffusers/pipelines/flux2/pipeline_flux2.py:638-643 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:497-502 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:505-510 | src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:170-177 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:170\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/before_denoise.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd65c0b801e367a528aff72558d80668e7b4fe9ec3b27d416c09a355aa422846"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 8): examples/community/adaptive_mask_inpainting.py:295-300 | examples/community/pipeline_kolors_inpainting.py:109-112 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:312-315 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:161-164 | examples/community/stable_diffusion_repaint.py:119-124 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:221-226 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:219-224 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:128-131 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/adaptive_mask_inpainting.py:302\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/pipeline_kolors_inpainting.py:112\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4ffbe5f3fdb06b28b37cbd887d77deb22f911cf6e60073a53f2aadba4dad2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): examples/community/adaptive_mask_inpainting.py:1218-1223 | examples/community/hd_painter.py:858-863 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1366-1371 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1331-1336 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1329\u0060 calls \u0060mark_step\u0060 and \u0060examples/community/hd_painter.py:856\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9707ec0b70714c74c98c20cd04eda541304608fd0fa4b7a4dda72c0b560a8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): examples/community/pipeline_hunyuandit_differential_img2img.py:1017-1022 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:594-599 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:929-934 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:808-813 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9d31b3ffa28a1d8790f1d19199c359b9d521607c80cfb40a61ef47d34ef8a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:706-711 | examples/community/pipeline_zero1to3.py:762-768 | examples/community/stable_diffusion_controlnet_reference.py:796-801 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:763-768 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 and \u0060examples/community/pipeline_zero1to3.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 154 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf5544f8108dff48f47198d87ced611c42d1509230f4e956f9740f4618bd69c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): scripts/convert_flux_to_diffusers.py:154-160 | scripts/convert_ovis_image_to_diffusers.py:106-112 | src/diffusers/loaders/single_file_utils.py:2380-2386 | src/diffusers/loaders/single_file_utils.py:3641-3647 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_ovis_image_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.py:154\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/convert_flux_to_diffusers.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbedb8312527e200dc349ea4afcb4ae57af5c1c1d9755b17af72a9c3fca561b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): scripts/convert_sana_controlnet_to_diffusers.py:63-69 | scripts/convert_sana_to_diffusers.py:151-157 | scripts/convert_sana_video_to_diffusers.py:117-123 | src/diffusers/loaders/single_file_utils.py:3141-3146 \u2014 before extracting anything, compare \u0060scripts/convert_sana_controlnet_to_diffusers.py\u0060 and \u0060scripts/convert_sana_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_sana_controlnet_to_diffusers.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3eaa2fc237866ec99da3e29f9b01a8fb004f19b9f7972972fc8fa2d7a01046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): scripts/convert_sd3_to_diffusers.py:87-92 | scripts/convert_sd3_to_diffusers.py:147-152 | src/diffusers/loaders/single_file_utils.py:2059-2064 | src/diffusers/loaders/single_file_utils.py:2118-2123 \u2014 before extracting anything, compare \u0060scripts/convert_sd3_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 249 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_sd3_to_diffusers.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd43f3525416097f6ed0d32791e6e4710799c8d01221b3534e74d8c9c9d7940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/diffusers/guiders/adaptive_projected_guidance.py:88-93 | src/diffusers/guiders/adaptive_projected_guidance.py:101-106 | src/diffusers/guiders/adaptive_projected_guidance_mix.py:92-97 | src/diffusers/guiders/adaptive_projected_guidance_mix.py:105-110 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/adaptive_projected_guidance.py\u0060 and \u0060src/diffusers/guiders/adaptive_projected_guidance_mix.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/adaptive_projected_guidance.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b497bc7ba0bd41f41ffc25ae7ba05a585285d356dc5c7809cd9650c1aa9eaa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/loaders/lora_conversion_utils.py:1885-1891 | src/diffusers/loaders/lora_conversion_utils.py:1913-1919 | src/diffusers/loaders/lora_conversion_utils.py:1939-1945 | src/diffusers/loaders/lora_conversion_utils.py:1965-1971 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4862dc367da144a49e5d9997b496ed73334e0c01300b8a5cc86082ca6d0d768"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/diffusers/models/transformers/transformer_chronoedit.py:349-354 | src/diffusers/models/transformers/transformer_joyimage.py:357-362 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:307-312 | src/diffusers/models/transformers/transformer_wan.py:342-347 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_wan.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 632 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"639e1b40254fe0aa3aa166cdea047126ae83260d48b92825441c2da11c9e5647"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/diffusers/models/transformers/transformer_hunyuan_video.py:496-501 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:379-384 | src/diffusers/models/transformers/transformer_hunyuanimage.py:445-450 | src/diffusers/models/transformers/transformer_motif_video.py:481-486 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fae2138753f5dd2703e8e300bfe8a75d0c0441d9ceb3c0847f51f07fe30dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/diffusers/modular_pipelines/anima/before_denoise.py:495-502 | src/diffusers/modular_pipelines/flux/before_denoise.py:278-285 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:105-112 | src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py:282-287 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"d606530758036ff16d8c6f0b410586bfb29aa69c39bb16fce2984bf46234084c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 6): src/diffusers/pipelines/flux2/pipeline_flux2.py:614-619 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:472-477 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:551-556 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:594-597 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1060-1063 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:480-485 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9250c77926ec4ae0f0450596608ef147bb3937eadc500178fd7114a4ce06b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/diffusers/pipelines/marigold/marigold_image_processing.py:95-100 | src/diffusers/pipelines/marigold/marigold_image_processing.py:109-114 | src/diffusers/pipelines/marigold/marigold_image_processing.py:130-135 | src/diffusers/pipelines/marigold/marigold_image_processing.py:146-151 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/marigold_image_processing.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5496b743a4ebe998bfcedc3ceba211feb6227db29bde9a9a45c24fedaeb5a949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/diffusers/schedulers/scheduling_deis_multistep.py:311-316 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:439-445 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:382-387 | src/diffusers/schedulers/scheduling_sasolver.py:309-314 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:439\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"2598b326ba4a0f939dd921d05de7e46f31146160d3fa2573ac3c237ffaf0a222"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/community/ddim_noise_comparative_analysis.py:182-187 | src/diffusers/pipelines/deprecated/pndm/pipeline_pndm.py:111-116 | src/diffusers/pipelines/deprecated/stochastic_karras_ve/pipeline_stochastic_karras_ve.py:118-123 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ddim_noise_comparative_analysis.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb18596fdfc2db5906be5d8339f2493bd3a68f37eb51e36188653593481314d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/community/pipeline_animatediff_controlnet.py:1041-1046 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:687-692 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:899-904 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"e412d8475ec9b5efb6e17872e5286fecf6e0d251efd9d2c62267c302a25dcf6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/community/pipeline_flux_differential_img2img.py:568-573 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:603-608 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:593-598 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 789 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b0257b6af6a8c38fdb503022a18c6ec3d85e3508a90f19624f2a3988776252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/community/pipeline_prompt2prompt.py:990-995 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:92-97 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:122-127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3eadb50b68aeffa0b5045730df6b56b790f0dde128ef95ac847d8af4fd142f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/community/unclip_image_interpolation.py:196-201 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:195-200 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:228-233 \u2014 before extracting anything, compare \u0060examples/community/unclip_image_interpolation.py\u0060 and \u0060src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 238 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060image_embeddings\u0060 to \u0060Optional[torch.Tensor] = None\u0060 in one and \u0060torch.Tensor | None = None\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"32799f32c5b9d7b99ce9bbdb3c6d5f9a75a0411f380061944cf2ec8220687ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/research_projects/sana/train_sana_sprint_diffusers.py:880-885 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:792-797 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:882-887 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint.py\u0060 and \u0060src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 833 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/sana/train_sana_sprint_diffusers.py"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7fd5a07f368ed4d23a7c579ccd928c6febc19e629ebd50cf7813c1aa58e2fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): scripts/convert_flux_to_diffusers.py:106-121 | scripts/convert_hunyuan_image_to_diffusers.py:163-168 | src/diffusers/loaders/single_file_utils.py:2334-2349 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuan_image_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/loaders/single_file_utils.py:2330\u0060 calls \u0060pop\u0060 and \u0060scripts/convert_flux_to_diffusers.py:102\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/convert_flux_to_diffusers.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbefdb64a36fa7d2ac1daf6513409b2715a87ebae0f348501c83074646dddf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/diffusers/models/attention_dispatch.py:1242-1247 | src/diffusers/models/attention_dispatch.py:1367-1372 | src/diffusers/models/attention_dispatch.py:1702-1707 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a56beab52a8e889f8bc914f7980fa5c667ed9b694162720335d685e17f8d83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:58-65 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:59-66 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:55-62 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"312ccba05d3dadd0b4410c588c6ac230340b9574b97e532363e3d6a92c139cfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/diffusers/models/transformers/transformer_ltx.py:551-556 | src/diffusers/models/transformers/transformer_sana_video.py:660-665 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1513-1518 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_ltx.py:551\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx.py"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b19ceffca7237434ba26bc55662a653e9c352da2c88163ac31cc5e34e1d7b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 4): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:242-243 | src/diffusers/models/transformers/transformer_qwenimage.py:302-307 | src/diffusers/models/transformers/transformer_qwenimage.py:428-433 | src/diffusers/models/transformers/transformer_qwenimage.py:451-456 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_nucleusmoe_image.py:242\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_qwenimage.py:434\u0060 calls \u0060split\u0060 and \u0060src/diffusers/models/transformers/transformer_nucleusmoe_image.py:245\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d3e68043a883e71552e048b11f87b3e3babca0f439314b66a87305e16ed741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/diffusers/modular_pipelines/ernie_image/denoise.py:135-140 | src/diffusers/modular_pipelines/qwenimage/denoise.py:235-240 | src/diffusers/modular_pipelines/qwenimage/denoise.py:322-327 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060ErnieImageModularPipeline\u0060 in one and \u0060QwenImageModularPipeline\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":"src/diffusers/modular_pipelines/ernie_image/denoise.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bc5a6ae83a26ce717ced0608611f98280b68a862fef7ec1e7c1ff6833bb56d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:708-720 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:620-632 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:675-687 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 449 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"811bf3bdff2a72b6064e8de4d54611e38cde3654dd0351bfe5d4e70ff729732d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:620-625 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:632-637 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:723-728 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py\u0060 and \u0060src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 742 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c7da6463d06323781ccb4110e9d0227e8bbe08d158874599847b6d45bac0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:273-278 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:395-400 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:483-488 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:273\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4080efc9180688cc33d86a7500bcabe563d89caf27192e8cffac5556a142ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:450-455 | src/diffusers/pipelines/motif_video/pipeline_motif_video.py:203-208 | src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py:213-218 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video.py\u0060 and \u0060src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 712 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aee1b1218fcc44fdb58f3d31db1bf9247fd9ac8feee04aeac16fd2010abeda6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:900-908 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:752-760 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:815-823 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:900\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"a924effe023f1b2ab0808e2a4259d8d1df4bbf5afd1153ee04901ff9b773c3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 4): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:672-674 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1264-1269 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:1081-1086 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:786-791 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1264\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, \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1272\u0060 calls \u0060multistep_dpm_solver_third_order_update\u0060 and \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:677\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c8623a01ee5553fd68cd2e277a659ac4d4ee33584221decd8c980bbe1e0bbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/community/checkpoint_merger.py:89-94 | src/diffusers/models/modeling_utils.py:1038-1043 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/checkpoint_merger.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"18df3b6c5f534bfd41d5e6c83282773369c3012eb7f237f76675191e92fde3d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/convert_aura_flow_to_diffusers.py:51-56 | src/diffusers/loaders/single_file_utils.py:2971-2976 \u2014 before extracting anything, compare \u0060scripts/convert_aura_flow_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_aura_flow_to_diffusers.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1435eb4579a38ceba7be099e106e6a4e521de6ad0f6c1a053dc4906cb29148"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/convert_aura_flow_to_diffusers.py:89-94 | src/diffusers/loaders/single_file_utils.py:3009-3014 \u2014 before extracting anything, compare \u0060scripts/convert_aura_flow_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_aura_flow_to_diffusers.py:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_aura_flow_to_diffusers.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b7c5a453afbe1afd9eaf6a7813d6902a790c382af2ee605a04a27e501d65d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): src/diffusers/image_processor.py:701-707 | src/diffusers/image_processor.py:1218-1220 | src/diffusers/image_processor.py:1225-1230 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a688b8ce323b45d0d85a0a9bf89af8096b44595ae2c4d3e49fffffe0e80c0cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/loaders/lora_conversion_utils.py:1631-1636 | src/diffusers/loaders/single_file_utils.py:2842-2847 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe371e74bc04872bafcb73f9f62c9d0e75fd2d54d038e1d83b5ac21175b27a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/loaders/lora_conversion_utils.py:1643-1648 | src/diffusers/loaders/single_file_utils.py:2849-2854 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9adba70d31c9046b0275e31adfd94318c975cec5754c62e63c6a6ea0ccf9f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/loaders/lora_conversion_utils.py:2222-2228 | src/diffusers/loaders/lora_conversion_utils.py:2950-2956 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2222}}}],"partialFingerprints":{"codehealthFindingId/v1":"291fa516a50150eeae7b76230835dcbc1da2ffe7af1cfe003c92dfd3dbb57439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/loaders/lora_conversion_utils.py:2462-2468 | src/diffusers/loaders/lora_conversion_utils.py:2838-2844 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2462}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ff8a8fab7aaf6b97032f8e500eddece04aa5fa47c153f203f228c224f6a396"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/loaders/single_file_utils.py:4106-4111 | src/diffusers/loaders/single_file_utils.py:4373-4379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/loaders/single_file_utils.py:4384\u0060 calls \u0060pop\u0060 and \u0060src/diffusers/loaders/single_file_utils.py:4116\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":4106}}}],"partialFingerprints":{"codehealthFindingId/v1":"748d37387c97e5e0094a3cc3754b80fb86eaa4cc267cd44eb1ea32718577968b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/models/attention_dispatch.py:1572-1587 | src/diffusers/models/attention_dispatch.py:1930-1945 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_dispatch.py:1572\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":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"8502682e850a022e99bcd601104d9f5d0f3e47dd3963bd07ec4cba10f36efa51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py:245-251 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:62-68 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a00c379d355649724642958bfcf241d2652abaebb92532ce32ab0eeb1db3fec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:499-507 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:630-638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51a99ca5caf84adb1c006215a00a5e1058f4e10a4754363cb3652ef2c69e7ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:939-945 | src/diffusers/models/autoencoders/autoencoder_kl_allegro.py:1030-1036 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"48402e71cf159da4d2b0cddc82b8ed1b3f08561c93d3f7633bf7934e0a0d4c02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:254-262 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:269-277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a4a2244fd6d3f2afc815b5b510597a9776a83cb36770aa1a340382edcc3a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:164-169 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:206-211 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0315c571b31f2525a343546b4213c9d1a9ee831a9b410e7e95ae436422950fea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:274-279 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:286-288 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:316-321 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:328-330 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfaea48e926266b196c3817cc4fda729a4b69aac85e29b29c9c9406ed5d0ec62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:290-295 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:332-337 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"06de4c7293ed53fee47f5b74d33983a3fef5bbf27f72f30a37b1cf6fac9f0443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1263-1268 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1273-1278 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a51199f8709b699db47835351c64334328863897066632951d7278fc4d018e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:429-434 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:592-597 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:435\u0060 calls \u0060SiLU\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py:599\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82dadc8288ef02fcb493122b8a1698c22da7a1fbb6be6270bcac937dd39d188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:607-612 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:893-899 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48242843eb9e49f4ca6520b02c795441805fe7349f7ab9d91275483c0587b9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:96-114 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:714-732 \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":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c174324ce624c10cfd655d437ad9f2fb4e9806cba8832dc4a09b6a5ee28dc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/embeddings.py:940-949 | src/diffusers/models/transformers/transformer_bria.py:109-118 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5c332d90550871f588a90517c481317f9c7daf669aeb44ea789df4e6673e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/pixart_transformer_2d.py:170-175 | src/diffusers/models/transformers/transformer_allegro.py:289-294 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/pixart_transformer_2d.py:170\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/pixart_transformer_2d.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"8308b77bd6fded525b569108cdbd9b4542c51d52a9258d7ba437df52948674d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/sana_transformer.py:258-266 | src/diffusers/models/transformers/transformer_allegro.py:125-130 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcce5e6a66126315e0b9e2a1aab721c4e2c631d8d5fc3c5be8bf0a625cfc6702"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:170-178 | src/diffusers/models/transformers/transformer_glm_image.py:317-325 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_cogview4.py\u0060 and \u0060src/diffusers/models/transformers/transformer_glm_image.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"57fb777ff9cd472cfb664b1e951008451414c468bad69fae8a4df07b14b73bc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_hidream_image.py:428-433 | src/diffusers/models/transformers/transformer_hidream_image.py:497-502 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/transformers/transformer_hidream_image.py:503\u0060 calls \u0060LayerNorm\u0060 and \u0060src/diffusers/models/transformers/transformer_hidream_image.py:434\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hidream_image.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a062a1b8acecf9c116ad0fe67c3595baeb5f222d9f65f2fd9415f5a35793efe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video15.py:396-401 | src/diffusers/models/transformers/transformer_hunyuanimage.py:183-188 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 242 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video15.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e80d79b267ab660179b269d20f72b762a18599f35725b306185e3c8f8d9a705"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video15.py:415-420 | src/diffusers/models/transformers/transformer_motif_video.py:505-510 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video15.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0ccb6e7f3807bad1f263c9baef5cc6b59b9cb1bae12ef1bfe2c71356863060"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky.py:149-153 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:127-132 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_kandinsky6_sr.py:127\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2600d41ac4813903cc204bb41ef27e8fa422d9981411c2bbad201b08b5da7fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky6.py:249-256 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:272-279 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_kandinsky6.py\u0060 and \u0060src/diffusers/models/transformers/transformer_kandinsky6_sr.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_kandinsky6.py:249\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":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b343e565aa46915e6ec1ede5b0470026c4422fe74eb7e0090001c82ab676358a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20136 lines \u00D7 3): src/diffusers/models/transformers/transformer_ltx2.py:924-929 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:509-514 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1429-1429 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce031761a0343d07c189def621c7052b61ca0a7e94ad96c6d1d4f8dbbae649d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 3): src/diffusers/models/transformers/transformer_nucleusmoe_image.py:173-174 | src/diffusers/models/transformers/transformer_qwenimage.py:227-232 | src/diffusers/models/transformers/transformer_qwenimage.py:351-356 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0fa12563fcf93f2db13c0b57c1be2b08cb73ccc34697cc0bb9e827dff3a9d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 3): src/diffusers/modular_pipelines/flux2/decoders.py:167-172 | src/diffusers/modular_pipelines/flux2/encoders.py:588-589 | src/diffusers/modular_pipelines/flux3/decoders.py:151-156 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/decoders.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffda0c0a3f903d47c2d561eea5e2a5975c556963a4549e2ea0140f6e78b7d31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/modular_pipelines/flux2/decoders.py:173-178 | src/diffusers/modular_pipelines/flux3/decoders.py:157-162 \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":"src/diffusers/modular_pipelines/flux2/decoders.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e524014248efad3b08b54d493bcb28b77489573053b1b79ce18dfc4ed6c57f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/modular_pipelines/ltx/before_denoise.py:306-311 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:513-518 \u2014 \u0060src/diffusers/modular_pipelines/ltx/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/ltx2/before_denoise.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 9 separate duplicated blocks between them, totalling at least 110 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/ltx/before_denoise.py:306\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx/before_denoise.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"0114f5732d5e2872a30be0d417e6f5bb296936c8e07939c286f7733473551946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline.py:758-763 | src/diffusers/modular_pipelines/modular_pipeline.py:1192-1197 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"838f069533340fec2c8d16c7528b72710f131247a8ec27cfa16035231f67c40d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1240-1247 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1418-1425 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a749ac82921a70c124417d5342df849e943cce1131ab87f72b103914cdc65ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/modular_pipelines/wan/encoders.py:767-775 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:545-553 \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":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0c7a6fbbe6b49ee7fc83b88cb39a554f9f18143268bebccf955eb4279d5238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:201-206 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:218-223 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d659a54c5cdbdc86a4ebf2c3e87553069e6e5cba2af45f22df64dca5cd5b89a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:215-220 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:224-229 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060 and \u0060src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 823 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"9597fa6e931cf3355665e9984f329372e7b22af84d18803d43864f24d2049e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:376-382 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:436-441 \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":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a36e548d1d33115a42f1bca893fb42781fe1b57a23885ebdf60be0a32dea2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:1242-1247 | src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py:1249-1254 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"196945683b5517812ffc9ad91d7a9ea9e617d6d85cc289ced133cb70ed47eaca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:418-423 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:444-449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8bc9c3ac69227b9647eefaedbefbd490384ae5a23287f3df5e41aed96cf714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:533-540 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:568-575 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.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 7 separate duplicated blocks between them, totalling at least 115 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:568\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: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bc6b2e82e0c09d3cead774d4a216fe2e4d479eb2a05a657d4b30cb3765bfe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:773-781 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:834-842 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.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 7 separate duplicated blocks between them, totalling at least 115 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:773\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: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"4becbee2be490a5c22d458c437a412b3ad67cbd95fd77004c814a6fe926f3655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:798-803 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:1309-1314 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 903 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:798\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e784c997f2b5c4b7e29279f2ac4b793a304e425ea8926a3d0be32c7f7a9f014"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1370-1375 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2245-2250 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 903 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a4dfb2b9eb073d74d68e67d2539baa6b39ecd6da1afe03a72c52c0dd68dc05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:411-418 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:428-435 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_video2video.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"03045c598e6c5c2e2f5ac7e4892cdfaa3743d558fcf41e5615f307ec96784a1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:665-671 | src/diffusers/pipelines/wan/pipeline_wan.py:607-613 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 500 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4132d6709e148bee87f75969fae5bb49a00685c115ac3f0166afefdd6cf2de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/lumina/pipeline_lumina.py:253-258 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:331-336 \u2014 \u0060src/diffusers/pipelines/lumina/pipeline_lumina.py\u0060 and \u0060src/diffusers/pipelines/lumina2/pipeline_lumina2.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 28 separate duplicated blocks between them, totalling at least 362 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"6301ebc06ab409078819931315c891febf36b9b257fa33150721d6ed332b0453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/shap_e/renderer.py:914-919 | src/diffusers/pipelines/shap_e/renderer.py:958-963 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/shap_e/renderer.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e07f1d01ab5af37aae6c28d6e9e863a14c7d151af110ccfb3ac86a7adb98a4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:416-421 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:442-447 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 332 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"e221ba862ba1063e29b89ea97042db5e45d493bf930d9f981d31cbcab36652a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/quantizers/gguf/utils.py:349-354 | src/diffusers/quantizers/gguf/utils.py:374-379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/gguf/utils.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"05887a73610d74c2d279d83ee269fbc771bc7881ff18f501e97249e6a310fd23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:433-438 | src/diffusers/schedulers/scheduling_lms_discrete.py:587-592 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_lms_discrete.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"459b2becb61727a53c0edd26f06f24824338341eae0a67c4fa976a6aed80e760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/schedulers/scheduling_vq_diffusion.py:189-194 | src/diffusers/schedulers/scheduling_vq_diffusion.py:196-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_vq_diffusion.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"121ac1167cd79e4dee52a04221f5317fc7fe4de05322625553b7fdb3629af6f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/utils/peft_utils.py:190-195 | src/diffusers/utils/peft_utils.py:206-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/peft_utils.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f89b759ca020d5eecc1ffc12ef3d1409b1120a93d44829e1b9c832c549b60f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 206): examples/community/fresco_v2v.py:2473-2478 | examples/community/hd_painter.py:848-853 | examples/community/ip_adapter_face_id.py:1097-1102 | examples/community/latent_consistency_interpolate.py:938-946 | examples/community/lpw_stable_diffusion_xl.py:1896-1903 | examples/community/masked_stable_diffusion_xl_img2img.py:465-471 | examples/community/matryoshka.py:4550-4555 | examples/community/pipeline_animatediff_controlnet.py:1107-1112 | examples/community/pipeline_animatediff_ipex.py:806-811 | examples/community/pipeline_controlnet_xl_kolors.py:1290-1295 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1493-1498 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1807-1812 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2198-2205 | examples/community/pipeline_flux_differential_img2img.py:998-1003 | examples/community/pipeline_flux_kontext_multiple_images.py:1198-1203 | examples/community/pipeline_flux_rf_inversion.py:929-934 | examples/community/pipeline_flux_semantic_guidance.py:1337-1342 | examples/community/pipeline_flux_with_cfg.py:849-854 | examples/community/pipeline_hunyuandit_differential_img2img.py:1113-1119 | examples/community/pipeline_kolors_differential_img2img.py:1224-1229 | examples/community/pipeline_kolors_inpainting.py:1644-1649 | examples/community/pipeline_sdxl_style_aligned.py:1859-1866 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:951-957 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:1238-1245 | examples/community/pipeline_stable_diffusion_boxdiff.py:1695-1700 | examples/community/pipeline_stable_diffusion_pag.py:1452-1457 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2237-2242 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1388-1394 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1039-1044 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1028-1033 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1116-1122 | examples/community/pipeline_stg_cogvideox.py:851-855 | examples/community/pipeline_stg_hunyuan_video.py:793-798 | examples/community/pipeline_stg_ltx.py:834-839 | examples/community/pipeline_stg_ltx_image2video.py:933-938 | examples/community/pipeline_stg_mochi.py:824-829 | examples/community/pipeline_stg_wan.py:627-632 | examples/community/pipeline_z_image_differential_img2img.py:821-826 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:1295-1299 | examples/community/regional_prompting_stable_diffusion.py:1078-1083 | examples/community/stable_diffusion_xl_controlnet_reference.py:1313-1319 | examples/community/stable_diffusion_xl_reference.py:1140-1146 | examples/research_projects/anytext/anytext.py:2321-2326 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1300-1305 | src/diffusers/pipelines/allegro/pipeline_allegro.py:911-915 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:848-853 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:1099-1104 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:1005-1010 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:1049-1054 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:1337-1342 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:648-653 | src/diffusers/pipelines/bria/pipeline_bria.py:721-726 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:703-708 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:950-955 | src/diffusers/pipelines/chroma/pipeline_chroma.py:899-904 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:982-987 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:1175-1180 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:714-719 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:773-777 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:828-832 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:883-887 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:854-858 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:661-665 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:662-666 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:714-718 | src/diffusers/pipelines/consisid/pipeline_consisid.py:957-961 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1320-1325 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:1294-1299 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:1480-1485 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:1843-1848 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1545-1550 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:1602-1607 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:1855-1860 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1558-1563 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:1649-1654 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:1019-1025 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:1227-1234 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:1386-1393 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py:831-836 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:634-639 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:753-758 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:624-629 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:792-797 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:962-967 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:1017-1022 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:888-892 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:1073-1078 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:940-945 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:1016-1021 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1166-1171 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py:751-755 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py:987-991 | src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py:1222-1226 | src/diffusers/pipelines/flux/pipeline_flux.py:946-951 | src/diffusers/pipelines/flux/pipeline_flux_control.py:839-844 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:922-927 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:1091-1096 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:1177-1182 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:993-997 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:1188-1192 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:988-993 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:1036-1041 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:1204-1209 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:1086-1091 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:1405-1410 | src/diffusers/pipelines/flux2/pipeline_flux2.py:1002-1007 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:894-899 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1237-1242 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:854-858 | src/diffusers/pipelines/glm_image/pipeline_glm_image.py:1043-1047 | src/diffusers/pipelines/helios/pipeline_helios.py:905-909 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:1081-1089 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:966-971 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:844-849 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:734-739 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:761-766 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:713-718 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:1005-1010 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:934-939 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:881-887 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:545-549 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:610-614 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:925-933 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:813-821 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:999-1007 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:767-775 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1021-1026 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1201-1206 | src/diffusers/pipelines/krea2/pipeline_krea2.py:683-688 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:962-967 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:891-896 | src/diffusers/pipelines/latte/pipeline_latte.py:854-858 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1188-1193 | src/diffusers/pipelines/ltx/pipeline_ltx.py:804-809 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1238-1243 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:902-907 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1604-1609 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:2054-2059 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1554-1558 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2489-2493 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1708-1713 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:703-708 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:721-726 | src/diffusers/pipelines/mochi/pipeline_mochi.py:683-688 | src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py:613-617 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:686-691 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1301-1306 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1507-1512 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1560-1566 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:1621-1627 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:934-940 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1084-1089 | src/diffusers/pipelines/pag/pipeline_pag_sana.py:882-886 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:1047-1052 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:971-978 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:1039-1046 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:856-861 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1078-1082 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1356-1361 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1288-1293 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1480-1486 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1714-1719 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:689-694 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:932-937 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:903-908 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:818-823 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:1044-1049 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:862-867 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:791-796 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:972-977 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:866-871 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:827-831 | src/diffusers/pipelines/sana/pipeline_sana.py:946-951 | src/diffusers/pipelines/sana/pipeline_sana_controlnet.py:1042-1047 | src/diffusers/pipelines/sana/pipeline_sana_sprint.py:827-832 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:917-922 | src/diffusers/pipelines/sana_video/pipeline_sana_video.py:979-984 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:1032-1037 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py:583-588 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py:929-936 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:1008-1015 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:1018-1025 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:716-721 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1071-1076 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:873-878 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1128-1133 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1318-1323 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:461-466 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:1127-1132 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:1146-1153 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:1356-1362 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1249-1254 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1434-1439 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1673-1678 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:883-888 | src/diffusers/pipelines/wan/pipeline_wan.py:650-655 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:1155-1160 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:807-812 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:1012-1017 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:709-714 | src/diffusers/pipelines/z_image/pipeline_z_image.py:581-586 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:718-723 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:745-750 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:693-698 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:913-918 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:727-732 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 206 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 206 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/latent_consistency_interpolate.py:938\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, \u0060examples/community/hd_painter.py:845\u0060 calls \u0060pop\u0060 and \u0060examples/community/fresco_v2v.py:2470\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2473}}}],"partialFingerprints":{"codehealthFindingId/v1":"001ad5450a5546e8dc8bd689fbc6cb96e024f79d6bd67bebc5d903d71577fa5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 121): examples/community/adaptive_mask_inpainting.py:552-559 | examples/community/composable_stable_diffusion.py:196-201 | examples/community/fresco_v2v.py:1486-1493 | examples/community/gluegen.py:315-322 | examples/community/instaflow_one_step.py:285-292 | examples/community/ip_adapter_face_id.py:553-560 | examples/community/latent_consistency_img2img.py:109-116 | examples/community/latent_consistency_interpolate.py:350-357 | examples/community/latent_consistency_txt2img.py:107-114 | examples/community/llm_grounded_diffusion.py:1301-1308 | examples/community/matryoshka.py:3859-3866 | examples/community/pipeline_animatediff_controlnet.py:267-274 | examples/community/pipeline_animatediff_img2video.py:384-391 | examples/community/pipeline_animatediff_ipex.py:238-245 | examples/community/pipeline_fabric.py:249-256 | examples/community/pipeline_flux_differential_img2img.py:305-310 | examples/community/pipeline_flux_kontext_multiple_images.py:347-352 | examples/community/pipeline_flux_rf_inversion.py:302-307 | examples/community/pipeline_flux_semantic_guidance.py:306-311 | examples/community/pipeline_flux_with_cfg.py:265-270 | examples/community/pipeline_prompt2prompt.py:319-326 | examples/community/pipeline_stable_diffusion_boxdiff.py:656-663 | examples/community/pipeline_stable_diffusion_pag.py:622-629 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:262-269 | examples/community/pipeline_stg_cogvideox.py:276-281 | examples/community/pipeline_zero1to3.py:239-246 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:335-340 | examples/community/regional_prompting_stable_diffusion.py:600-607 | examples/community/regional_prompting_stable_diffusion.py:1136-1141 | examples/community/stable_diffusion_controlnet_img2img.py:231-238 | examples/community/stable_diffusion_controlnet_inpaint.py:330-337 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:315-322 | examples/community/stable_diffusion_ipex.py:362-369 | examples/community/stable_diffusion_reference.py:481-488 | examples/community/stable_diffusion_repaint.py:335-342 | examples/research_projects/anytext/anytext.py:1429-1436 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:385-392 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:391-398 | src/diffusers/pipelines/allegro/pipeline_allegro.py:275-282 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:223-230 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:268-275 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:277-284 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:325-332 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:356-363 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:222-227 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:230-235 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:240-245 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:246-251 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:188-193 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:196-200 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:199-203 | src/diffusers/pipelines/consisid/pipeline_consisid.py:332-337 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:367-374 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:345-352 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:351-358 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:234-241 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:258-265 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:411-418 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:262-269 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:413-420 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:369-376 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:396-403 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:424-431 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:301-308 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:212-219 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:285-292 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:365-372 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:491-498 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:289-296 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:320-327 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:381-388 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:352-359 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:280-287 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:357-364 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:328-335 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:261-268 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:258-265 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:476-483 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:228-235 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:263-270 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:885-892 | src/diffusers/pipelines/flux/pipeline_flux.py:288-293 | src/diffusers/pipelines/flux/pipeline_flux_control.py:301-306 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:312-317 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:351-356 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:320-325 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:313-318 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:324-329 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:316-321 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:310-315 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:314-319 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:335-340 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:368-373 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:274-279 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:151-157 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:184-190 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:315-321 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:310-317 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:295-302 | src/diffusers/pipelines/latte/pipeline_latte.py:267-274 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:344-351 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:320-327 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:250-257 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:373-380 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:234-241 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:368-375 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:403-410 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:363-370 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:307-314 | src/diffusers/pipelines/shap_e/pipeline_shap_e.py:158-163 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:401-408 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:273-280 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:427-434 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:381-388 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:547-554 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:219-227 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:286-293 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:366-373 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:328-335 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:380-387 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:267-272 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:552\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"f437fa275424e6c639d92b2bc20aa3b41e20546ff0213d00dd7b1dc281bee95c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 92): examples/community/adaptive_mask_inpainting.py:558-566 | examples/community/composable_stable_diffusion.py:202-206 | examples/community/fresco_v2v.py:1492-1500 | examples/community/gluegen.py:321-329 | examples/community/instaflow_one_step.py:291-299 | examples/community/ip_adapter_face_id.py:559-567 | examples/community/latent_consistency_img2img.py:115-123 | examples/community/latent_consistency_interpolate.py:356-364 | examples/community/latent_consistency_txt2img.py:113-121 | examples/community/llm_grounded_diffusion.py:1307-1315 | examples/community/matryoshka.py:3865-3873 | examples/community/pipeline_animatediff_controlnet.py:273-281 | examples/community/pipeline_animatediff_img2video.py:390-398 | examples/community/pipeline_animatediff_ipex.py:244-252 | examples/community/pipeline_fabric.py:255-263 | examples/community/pipeline_prompt2prompt.py:325-333 | examples/community/pipeline_stable_diffusion_boxdiff.py:662-670 | examples/community/pipeline_stable_diffusion_pag.py:628-636 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:268-276 | examples/community/pipeline_zero1to3.py:245-253 | examples/community/regional_prompting_stable_diffusion.py:606-614 | examples/community/regional_prompting_stable_diffusion.py:1142-1146 | examples/community/stable_diffusion_controlnet_img2img.py:237-245 | examples/community/stable_diffusion_controlnet_inpaint.py:336-344 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:321-329 | examples/community/stable_diffusion_ipex.py:368-376 | examples/community/stable_diffusion_reference.py:487-495 | examples/community/stable_diffusion_repaint.py:341-349 | examples/community/unclip_text_interpolation.py:148-156 | examples/research_projects/anytext/anytext.py:1435-1443 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:397-405 | src/diffusers/pipelines/animatediff/pipeline_animatediff.py:229-237 | src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py:274-282 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py:283-291 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:331-339 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:362-370 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:373-381 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:351-359 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:357-365 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:402-410 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:430-438 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:162-170 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:307-315 | src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py:218-226 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:183-191 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:291-299 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:371-379 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:497-505 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:295-303 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:326-334 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:387-395 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:358-366 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:286-294 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py:363-371 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:334-342 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:267-275 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:264-272 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:482-490 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:234-242 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:269-277 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:891-899 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:152-160 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:145-149 | src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py:173-181 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:158-162 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:191-195 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:322-326 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:330-334 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:288-292 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:323-327 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:316-324 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py:301-309 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:650-658 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:350-358 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:326-334 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:379-387 | src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py:240-248 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:374-382 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:409-417 | src/diffusers/pipelines/shap_e/pipeline_shap_e.py:164-168 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:164-172 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:183-191 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:407-415 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:279-287 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:433-441 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:387-395 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:553-561 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:226-234 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:292-300 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:372-380 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py:334-342 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:386-394 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/composable_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:558\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, \u0060examples/community/unclip_text_interpolation.py:143\u0060 calls \u0060to\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:554\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"32598ad31b5c9e7f0c35b7894996722f57d25d84cc50eb5b6846413820184126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 64): examples/community/clip_guided_stable_diffusion_img2img.py:221-226 | examples/community/fresco_v2v.py:2001-2006 | examples/community/latent_consistency_img2img.py:225-230 | examples/community/lpw_stable_diffusion_xl.py:1168-1173 | examples/community/masked_stable_diffusion_xl_img2img.py:620-625 | examples/community/mod_controlnet_tile_sr_sdxl.py:937-942 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:838-843 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:914-919 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1784-1789 | examples/community/pipeline_flux_differential_img2img.py:573-578 | examples/community/pipeline_flux_kontext_multiple_images.py:757-762 | examples/community/pipeline_hunyuandit_differential_img2img.py:685-690 | examples/community/pipeline_kolors_differential_img2img.py:673-678 | examples/community/pipeline_sdxl_style_aligned.py:991-996 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:627-632 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:730-735 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:698-703 | examples/community/pipeline_z_image_differential_img2img.py:362-367 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:608-613 | examples/community/rerender_a_video.py:577-582 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:178-183 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:589-594 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:631-636 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:860-865 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:970-975 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:961-966 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:702-707 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:593-598 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:647-652 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:571-576 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:610-615 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:572-577 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:598-603 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:670-675 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:648-653 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:667-672 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:646-651 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:723-728 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:742-747 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:603-608 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:359-364 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:271-276 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:670-675 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:557-562 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:436-441 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:976-981 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:690-695 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:706-711 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:768-773 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:457-462 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:517-522 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:477-482 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:446-451 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:473-478 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:489-494 | src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py:593-598 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:542-547 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:782-787 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py:888-893 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:706-711 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:755-760 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:546-551 | src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py:336-341 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:449-454 \u2014 there are 64 copies across 62 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 64 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060image\u0060 to \u0060PipelineImageInput\u0060 in one and \u0060torch.Tensor\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 before the matched lines, \u0060examples/community/clip_guided_stable_diffusion_img2img.py:220\u0060 calls \u0060deprecate\u0060 and \u0060examples/community/latent_consistency_img2img.py:223\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c202bf117a4044da2c71fd9a273b096b482b4c8239d8fd09c1adb49e6d37b69b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 52): examples/community/gluegen.py:749-754 | examples/community/hd_painter.py:707-712 | examples/community/ip_adapter_face_id.py:1048-1053 | examples/community/masked_stable_diffusion_xl_img2img.py:387-392 | examples/community/matryoshka.py:4492-4497 | examples/community/pipeline_controlnet_xl_kolors.py:1116-1121 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1685-1690 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2108-2113 | examples/community/pipeline_kolors_differential_img2img.py:1156-1161 | examples/community/pipeline_kolors_inpainting.py:1562-1567 | examples/community/pipeline_sdxl_style_aligned.py:1787-1792 | examples/community/pipeline_stable_diffusion_boxdiff.py:1547-1552 | examples/community/pipeline_stable_diffusion_pag.py:1321-1326 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:2145-2150 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1312-1317 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:890-895 | examples/community/pipeline_stable_diffusion_xl_instantid.py:880-885 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1055-1060 | examples/community/regional_prompting_stable_diffusion.py:1029-1034 | examples/community/stable_diffusion_xl_controlnet_reference.py:738-743 | examples/community/stable_diffusion_xl_reference.py:1052-1057 | examples/research_projects/anytext/anytext.py:2184-2189 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1203-1208 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:1211-1216 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:1213-1218 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1370-1375 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:1366-1371 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py:916-921 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:975-980 | src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py:967-972 | src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py:1043-1048 | src/diffusers/pipelines/kolors/pipeline_kolors.py:962-967 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1142-1147 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1090-1095 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:1155-1160 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py:1403-1408 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1355-1360 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1014-1019 | src/diffusers/pipelines/pag/pipeline_pag_sd.py:987-992 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:1019-1024 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1275-1280 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1215-1220 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1408-1413 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1621-1626 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:1021-1026 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:1083-1088 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1252-1257 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1188-1193 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1377-1382 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1596-1601 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:876-881 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1160-1165 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 52 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 52 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/gluegen.py:746\u0060 calls \u0060prepare_extra_step_kwargs\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py:877\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":"examples/community/gluegen.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95f384fcf4a0208b6ab86b367178e2030c78d11a99ed436ebfaf047915919fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 50): examples/community/lpw_stable_diffusion_xl.py:1012-1016 | examples/community/pipeline_demofusion_sdxl.py:442-446 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1587-1591 | examples/community/pipeline_flux_kontext_multiple_images.py:543-547 | examples/community/pipeline_flux_semantic_guidance.py:608-612 | examples/community/pipeline_flux_with_cfg.py:432-436 | examples/community/pipeline_sdxl_style_aligned.py:835-839 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:549-553 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:624-628 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1001-1005 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:582-586 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:729-733 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:576-580 | examples/community/pipeline_stable_diffusion_xl_ipex.py:584-588 | src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py:709-713 | src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:720-724 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:676-680 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:680-684 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py:711-715 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:700-704 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:700-704 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:608-612 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:680-684 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.py:520-524 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:552-556 | src/diffusers/pipelines/flux/pipeline_flux.py:481-485 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:515-519 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:537-541 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:545-549 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:532-536 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:585-589 | src/diffusers/pipelines/helios/pipeline_helios.py:315-320 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:334-339 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:582-586 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:684-688 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:686-690 | src/diffusers/pipelines/pag/pipeline_pag_sd_3.py:585-589 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:605-609 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:672-676 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:623-627 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:715-719 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py:402-407 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:593-597 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:623-627 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:630-634 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:661-665 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:612-616 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:718-722 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:690-694 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:384-389 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1012\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/lpw_stable_diffusion_xl.py:1016\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py:705\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"baddf27fff4a0c1c828ac0f89e540b7bc34e300d232067d44e29a820e97a1f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 36): examples/community/pipeline_stg_cogvideox.py:282-286 | examples/community/pipeline_stg_ltx.py:289-293 | examples/community/pipeline_stg_ltx_image2video.py:312-316 | examples/community/pipeline_stg_mochi.py:296-300 | examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:391-397 | src/diffusers/modular_pipelines/flux/encoders.py:391-395 | src/diffusers/pipelines/allegro/pipeline_allegro.py:281-287 | src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:305-311 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:228-232 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:236-240 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:246-250 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:252-256 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:194-198 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:201-205 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:204-208 | src/diffusers/pipelines/consisid/pipeline_consisid.py:338-342 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:236-240 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:255-259 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:222-226 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:265-269 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:240-246 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:264-270 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:417-423 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:268-274 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:419-425 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:375-381 | src/diffusers/pipelines/latte/pipeline_latte.py:273-279 | src/diffusers/pipelines/ltx/pipeline_ltx.py:263-267 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:349-353 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:532-536 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:286-290 | src/diffusers/pipelines/lumina2/pipeline_lumina2.py:211-215 | src/diffusers/pipelines/mochi/pipeline_mochi.py:234-238 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:256-262 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:369-375 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:313-319 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060examples/community/pipeline_stg_ltx.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:391\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, \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:232\u0060 calls \u0060to\u0060 and \u0060examples/community/pipeline_stg_cogvideox.py:278\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"3628664600139a08f3bd9b8f5ae90b85d315cb317dc7ff953a327727f4eeab9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 27): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:478-484 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:737-742 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:119-123 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:258-262 | scripts/convert_gligen_to_diffusers.py:113-118 | scripts/convert_gligen_to_diffusers.py:243-249 | scripts/convert_i2vgen_to_diffusers.py:249-255 | scripts/convert_if.py:337-343 | scripts/convert_if.py:916-922 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:151-157 | scripts/convert_ms_text_to_video_to_diffusers.py:205-211 | scripts/convert_original_audioldm2_to_diffusers.py:532-537 | scripts/convert_original_audioldm_to_diffusers.py:359-365 | scripts/convert_original_audioldm_to_diffusers.py:516-521 | scripts/convert_original_musicldm_to_diffusers.py:355-361 | scripts/convert_original_musicldm_to_diffusers.py:512-517 | scripts/convert_svd_to_diffusers.py:319-325 | scripts/convert_svd_to_diffusers.py:657-662 | scripts/convert_unidiffuser_to_diffusers.py:378-383 | scripts/convert_vae_pt_to_diffusers.py:45-50 | scripts/convert_versatile_diffusion_to_diffusers.py:417-423 | scripts/convert_versatile_diffusion_to_diffusers.py:604-609 | scripts/convert_zero123_to_diffusers.py:327-333 | scripts/convert_zero123_to_diffusers.py:549-554 | src/diffusers/loaders/single_file_utils.py:1270-1276 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:476-482 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:675-680 \u2014 there are 27 copies across 17 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 27 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"4882777dfee5bcc1744cc88857b3bf255db53dce573b80218f250e7461515667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 26): examples/community/fresco_v2v.py:1982-1987 | examples/community/lpw_stable_diffusion_xl.py:1152-1157 | examples/community/mod_controlnet_tile_sr_sdxl.py:916-921 | examples/community/pipeline_animatediff_img2video.py:700-705 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:821-826 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:897-902 | examples/community/pipeline_hunyuandit_differential_img2img.py:662-667 | examples/community/pipeline_kolors_differential_img2img.py:652-657 | examples/community/pipeline_sdxl_style_aligned.py:975-980 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:616-620 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:682-687 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:841-846 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:949-954 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:940-945 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:683-688 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:486-491 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:649-654 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:538-543 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:955-960 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:678-683 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:687-692 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:747-752 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:523-528 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:763-768 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:694-699 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:734-739 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 26 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 26 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/fresco_v2v.py:1981\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:914\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1982}}}],"partialFingerprints":{"codehealthFindingId/v1":"0143dd39037292ce21e7313c850eaf133c346a29a83a52710977262aa5bea37e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 24): examples/community/composable_stable_diffusion.py:514-518 | examples/community/llm_grounded_diffusion.py:1058-1062 | examples/community/pipeline_animatediff_img2video.py:960-964 | examples/community/stable_diffusion_controlnet_img2img.py:865-869 | examples/community/stable_diffusion_controlnet_inpaint.py:1018-1022 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:995-999 | examples/community/stable_diffusion_ipex.py:723-727 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1059-1063 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:533-537 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:614-618 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:602-606 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1015-1019 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:829-833 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:1021-1025 | src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:745-749 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:846-850 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:803-807 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1015-1019 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:455-459 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:926-930 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:1354-1358 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:708-712 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:406-410 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:923-927 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/llm_grounded_diffusion.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 297 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:923\u0060 calls \u0060rescale_noise_cfg\u0060 and \u0060examples/community/llm_grounded_diffusion.py:1055\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":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f057598580926bc99405e2494efe06bf23201fd569728cb2cb584fd288616d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 23): examples/community/composable_stable_diffusion.py:511-518 | examples/community/llm_grounded_diffusion.py:1058-1062 | examples/community/pipeline_animatediff_img2video.py:960-964 | examples/community/stable_diffusion_controlnet_img2img.py:865-869 | examples/community/stable_diffusion_controlnet_inpaint.py:1018-1022 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:995-999 | examples/community/stable_diffusion_ipex.py:723-727 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1059-1063 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:533-537 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:614-618 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:602-606 | src/diffusers/pipelines/deprecated/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:1015-1019 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:829-833 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:846-850 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:803-807 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1015-1019 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:1083-1087 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:455-459 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:926-930 | src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py:1351-1358 | src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py:708-712 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:406-410 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:923-927 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/llm_grounded_diffusion.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 297 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/composable_stable_diffusion.py:511\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, \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:923\u0060 calls \u0060rescale_noise_cfg\u0060 and \u0060examples/community/llm_grounded_diffusion.py:1055\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":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"556700377e4338164e2be662f041b13e8e6cab3c9fb28732a18d68b577a84e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 21): examples/community/clip_guided_stable_diffusion_img2img.py:224-228 | examples/community/fresco_v2v.py:2004-2008 | examples/community/latent_consistency_img2img.py:228-232 | examples/community/pipeline_hunyuandit_differential_img2img.py:688-692 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:630-634 | examples/community/rerender_a_video.py:580-584 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:863-867 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:705-709 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:497-501 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:745-749 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:274-278 | src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py:560-564 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:439-443 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:693-697 | src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py:709-713 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:520-524 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:449-453 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:476-480 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:545-549 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py:785-789 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:709-713 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 21 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 21 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6506f67db4661feb9f0422691b1fb1f691ba2f2ff8de8020cc80dcf36a7b9e55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 20): examples/community/pipeline_flux_differential_img2img.py:264-271 | examples/community/pipeline_flux_kontext_multiple_images.py:303-310 | examples/community/pipeline_flux_rf_inversion.py:258-265 | examples/community/pipeline_flux_semantic_guidance.py:262-269 | examples/community/pipeline_flux_with_cfg.py:225-232 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:291-298 | src/diffusers/pipelines/flux/pipeline_flux.py:244-251 | src/diffusers/pipelines/flux/pipeline_flux_control.py:256-263 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:267-274 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:306-313 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:276-283 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:268-275 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:279-286 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:271-278 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:265-272 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:269-276 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:290-297 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:323-330 | src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py:229-236 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:222-229 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux.py:253\u0060 calls \u0060get_module_execution_device\u0060 and \u0060examples/community/pipeline_flux_differential_img2img.py:273\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"941a48a81a1c20775841938ac2fe406661226a3b34a7452676e0d9d8c528dd0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 19): examples/community/fresco_v2v.py:1032-1038 | examples/community/pipeline_sdxl_style_aligned.py:228-234 | examples/community/pipeline_stable_diffusion_pag.py:91-97 | examples/community/pipeline_stable_diffusion_pag.py:132-138 | examples/community/pipeline_stable_diffusion_pag.py:206-212 | examples/community/pipeline_stable_diffusion_pag.py:247-253 | examples/community/regional_prompting_stable_diffusion.py:329-333 | src/diffusers/models/attention_processor.py:2029-2035 | src/diffusers/models/attention_processor.py:2721-2727 | src/diffusers/models/attention_processor.py:2818-2824 | src/diffusers/models/attention_processor.py:3147-3153 | src/diffusers/models/attention_processor.py:3248-3254 | src/diffusers/models/attention_processor.py:3355-3361 | src/diffusers/models/attention_processor.py:3479-3485 | src/diffusers/models/attention_processor.py:3699-3705 | src/diffusers/models/attention_processor.py:4480-4486 | src/diffusers/models/attention_processor.py:5066-5072 | src/diffusers/models/attention_processor.py:5166-5172 | src/diffusers/models/unets/unet_dreamlite.py:321-325 \u2014 there are 19 copies across 6 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 19 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7766476243c951b5b7e57bb788c6825c4974bf7c1349c07be8b9d128a917bf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 18): examples/community/clip_guided_images_mixing_stable_diffusion.py:399-403 | examples/community/lpw_stable_diffusion.py:1009-1018 | examples/community/masked_stable_diffusion_img2img.py:174-183 | examples/community/pipeline_animatediff_img2video.py:939-948 | examples/community/pipeline_prompt2prompt.py:722-726 | examples/community/stable_diffusion_ipex.py:708-712 | src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:1037-1046 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:512-521 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:592-601 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1493-1502 | src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:783-793 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:727-736 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py:783-792 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:995-1004 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py:603-612 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py:658-667 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:435-444 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py:391-395 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 18 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 18 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion.py:1009\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":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67abac84ee44a320cce52a9ed9b520d373b3545fd29987b0ec85d3fd295e4a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 18): examples/community/pipeline_stable_diffusion_pag.py:114-119 | examples/community/pipeline_stable_diffusion_pag.py:229-234 | src/diffusers/models/attention_processor.py:1631-1635 | src/diffusers/models/attention_processor.py:1796-1800 | src/diffusers/models/attention_processor.py:2064-2069 | src/diffusers/models/attention_processor.py:2755-2760 | src/diffusers/models/attention_processor.py:2870-2876 | src/diffusers/models/attention_processor.py:3089-3094 | src/diffusers/models/attention_processor.py:3187-3192 | src/diffusers/models/attention_processor.py:3290-3295 | src/diffusers/models/attention_processor.py:3395-3400 | src/diffusers/models/attention_processor.py:3519-3524 | src/diffusers/models/attention_processor.py:3735-3740 | src/diffusers/models/attention_processor.py:5088-5092 | src/diffusers/models/attention_processor.py:5189-5194 | src/diffusers/models/transformers/sana_transformer.py:173-178 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:182-187 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:201-206 \u2014 there are 18 copies across 5 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 18 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:2870\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"57aa789f331e6166203a98f9a4d6c058b32749b24dbefef31f0fa2d30e8f550c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 17): examples/community/mixture_tiling_sdxl.py:1177-1181 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:2221-2225 | examples/community/pipeline_kolors_differential_img2img.py:1240-1244 | examples/community/pipeline_kolors_inpainting.py:1663-1667 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1408-1412 | examples/community/stable_diffusion_xl_reference.py:1160-1164 | src/diffusers/modular_pipelines/stable_diffusion_xl/decoders.py:98-102 | src/diffusers/pipelines/kolors/pipeline_kolors.py:1037-1041 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:1217-1221 | src/diffusers/pipelines/pag/pipeline_pag_kolors.py:1100-1104 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1304-1308 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:1497-1501 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py:1730-1734 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:1268-1272 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:1453-1457 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:1692-1696 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:936-940 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1414\u0060 calls \u0060ValueError\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py:1312\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf138efef7299f714973deee15f4aec871b2f3bffb87f01764b3e816d23d984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 16): examples/community/pipeline_stg_ltx.py:871-875 | examples/community/pipeline_stg_ltx_image2video.py:970-974 | src/diffusers/modular_pipelines/ltx/decoders.py:182-186 | src/diffusers/modular_pipelines/ltx2/decoders.py:310-314 | src/diffusers/pipelines/ltx/pipeline_ltx.py:841-845 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:1279-1283 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:939-943 | src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:304-308 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1648-1652 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:2102-2106 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1936-1940 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:1733-1737 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1594-1598 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2535-2539 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1752-1756 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:410-414 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/ltx2/decoders.py:316\u0060 calls \u0060_denormalize_latents\u0060 and \u0060src/diffusers/modular_pipelines/ltx/decoders.py:188\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06eaccb539f27f98fcb1e53572f4ade64b8e07defd6a7eb04fb1886f4b13dfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 14): examples/community/fresco_v2v.py:412-417 | examples/community/matryoshka.py:2741-2746 | examples/research_projects/anytext/anytext_controlnet.py:338-343 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:266-271 | src/diffusers/models/controlnets/controlnet.py:682-687 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:611-616 | src/diffusers/models/controlnets/controlnet_union.py:627-632 | src/diffusers/models/controlnets/controlnet_xs.py:1020-1025 | src/diffusers/models/unets/unet_2d_condition.py:860-865 | src/diffusers/models/unets/unet_i2vgen_xl.py:506-511 | src/diffusers/models/unets/unet_kandinsky3.py:175-180 | src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:589-594 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:1159-1164 | src/diffusers/pipelines/dit/pipeline_dit.py:196-200 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d3225cead1de090fb388c077b98a9fab49431fc3398bfb7404c8529e3c6fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 14): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:636-640 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:696-700 | scripts/convert_hunyuan_image_to_diffusers.py:830-838 | scripts/convert_hunyuan_video1_5_to_diffusers.py:596-604 | scripts/convert_pixart_alpha_to_diffusers.py:124-132 | scripts/convert_pixart_sigma_to_diffusers.py:136-144 | scripts/convert_sana_to_diffusers.py:216-224 | scripts/convert_sana_video_to_diffusers.py:185-193 | scripts/convert_sd3_to_diffusers.py:222-230 | scripts/convert_zero123_to_diffusers.py:484-488 | src/diffusers/loaders/single_file_utils.py:2193-2201 | src/diffusers/loaders/single_file_utils.py:3197-3205 | src/diffusers/loaders/single_file_utils.py:3618-3626 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:634-638 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_zero123_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 877 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_hunyuan_image_to_diffusers.py:830\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ea9057a712b993c7a6a04fb3676e822e2a17ad0d77a9ac22b2630641416c89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 13): examples/community/pipeline_stg_ltx.py:247-251 | examples/community/pipeline_stg_ltx_image2video.py:266-270 | src/diffusers/pipelines/ltx/pipeline_ltx.py:221-225 | src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:303-307 | src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:449-453 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:240-244 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:283-287 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:324-328 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:211-215 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:225-229 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:331-335 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:346-350 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:286-290 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_ltx.py:247\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, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:288\u0060 calls \u0060getattr\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py:454\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb7c50d52d190db9e16afee8a4563c37e1b23aa414f348fff937e6b4581d5a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 13): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:498-503 | scripts/convert_gligen_to_diffusers.py:263-268 | scripts/convert_i2vgen_to_diffusers.py:269-274 | scripts/convert_if.py:350-355 | scripts/convert_ms_text_to_video_to_diffusers.py:225-230 | scripts/convert_original_audioldm2_to_diffusers.py:378-383 | scripts/convert_original_audioldm_to_diffusers.py:379-384 | scripts/convert_original_musicldm_to_diffusers.py:375-380 | scripts/convert_versatile_diffusion_to_diffusers.py:437-442 | scripts/convert_zero123_to_diffusers.py:347-352 | src/diffusers/loaders/single_file_utils.py:1291-1296 | src/diffusers/loaders/single_file_utils.py:1422-1427 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:496-501 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a1e4cca099947ab1ba66330e7c483ccba5387e1be7df6464719b8afa08ef82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 13): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:591-595 | scripts/convert_gligen_to_diffusers.py:355-359 | scripts/convert_i2vgen_to_diffusers.py:430-434 | scripts/convert_if.py:503-507 | scripts/convert_if.py:1107-1111 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:308-312 | scripts/convert_ms_text_to_video_to_diffusers.py:386-390 | scripts/convert_original_audioldm2_to_diffusers.py:488-492 | scripts/convert_original_audioldm_to_diffusers.py:471-475 | scripts/convert_original_musicldm_to_diffusers.py:467-471 | scripts/convert_versatile_diffusion_to_diffusers.py:562-566 | scripts/convert_zero123_to_diffusers.py:439-443 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:589-593 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:591\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a4fb64de51da7b54801b747709cf4e28cd73eb1a8eecbf0a444560c1fbc244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 13): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:743-747 | scripts/convert_flux2_to_diffusers.py:147-151 | scripts/convert_gligen_to_diffusers.py:119-123 | scripts/convert_original_audioldm2_to_diffusers.py:538-542 | scripts/convert_original_audioldm_to_diffusers.py:522-526 | scripts/convert_original_musicldm_to_diffusers.py:518-522 | scripts/convert_svd_to_diffusers.py:663-667 | scripts/convert_unidiffuser_to_diffusers.py:384-388 | scripts/convert_vae_pt_to_diffusers.py:51-58 | scripts/convert_versatile_diffusion_to_diffusers.py:610-614 | scripts/convert_zero123_to_diffusers.py:555-559 | src/diffusers/loaders/single_file_utils.py:1533-1537 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:681-685 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_gligen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_vae_pt_to_diffusers.py:51\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"50827d9c47b21c76e40f97738f16a139faba82ffa986de0e2f2aff35000d6587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 12): examples/community/pipeline_stable_diffusion_pag.py:114-119 | examples/community/pipeline_stable_diffusion_pag.py:229-234 | src/diffusers/models/attention_processor.py:1631-1635 | src/diffusers/models/attention_processor.py:1796-1800 | src/diffusers/models/attention_processor.py:2869-2876 | src/diffusers/models/attention_processor.py:3967-3972 | src/diffusers/models/attention_processor.py:4509-4514 | src/diffusers/models/attention_processor.py:5088-5092 | src/diffusers/models/attention_processor.py:5189-5194 | src/diffusers/models/transformers/sana_transformer.py:173-178 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:182-187 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:201-206 \u2014 there are 12 copies across 5 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 12 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:2869\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd5d62cb2b6c1bc9222cdcfe75bb5bc68c4847a2bed39c06a914af063deaeb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 12): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:192-197 | scripts/convert_i2vgen_to_diffusers.py:49-54 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:100-105 | scripts/convert_ms_text_to_video_to_diffusers.py:45-50 | scripts/convert_original_audioldm2_to_diffusers.py:177-182 | scripts/convert_original_audioldm_to_diffusers.py:170-175 | scripts/convert_original_musicldm_to_diffusers.py:170-175 | scripts/convert_svd_to_diffusers.py:144-149 | scripts/convert_unidiffuser_to_diffusers.py:136-141 | scripts/convert_versatile_diffusion_to_diffusers.py:217-222 | scripts/convert_zero123_to_diffusers.py:164-169 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:190-195 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 322 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:192\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7eafe9c33e715d53b8744c30049cf3035f2115865ba9f9f01c94d093516c18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 12): src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:754-758 | src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:774-778 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:878-882 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:898-902 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:997-1001 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:1015-1019 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:1000-1004 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:1020-1024 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1111-1115 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1129-1133 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:851-855 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:871-875 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if.py\u0060 and \u0060src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 711 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"b051fd14f870d04ac43b1d4cf455e2f062aee8d387723431b247c3110bcc27fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 11): examples/community/pipeline_stable_diffusion_pag.py:110-114 | examples/community/pipeline_stable_diffusion_pag.py:225-229 | src/diffusers/models/attention_processor.py:3963-3967 | src/diffusers/models/attention_processor.py:4505-4509 | src/diffusers/models/attention_processor.py:4570-4574 | src/diffusers/models/attention_processor.py:4597-4601 | src/diffusers/models/attention_processor.py:5084-5088 | src/diffusers/models/attention_processor.py:5185-5189 | src/diffusers/models/transformers/sana_transformer.py:169-173 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py:178-182 | src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py:197-201 \u2014 there are 11 copies across 5 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 11 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_pag.py:110\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":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6274c411da3bb32bc6b2f545758dd54c4de0a3270908ce716ea8ef450d9011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 10): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:495-499 | src/diffusers/modular_pipelines/z_image/before_denoise.py:465-469 | src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py:646-650 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:413-417 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py:385-389 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:516-520 | src/diffusers/pipelines/z_image/pipeline_z_image.py:269-273 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:324-328 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:331-335 | src/diffusers/pipelines/z_image/pipeline_z_image_omni.py:290-294 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"058f3a2cf5483898cfadaffb7dfa316e502e022df2692dda3f350214dbf2fb89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 10): src/diffusers/modular_pipelines/flux/denoise.py:282-286 | src/diffusers/modular_pipelines/flux2/denoise.py:442-448 | src/diffusers/modular_pipelines/flux3/denoise.py:295-301 | src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:234-239 | src/diffusers/modular_pipelines/ltx/denoise.py:225-230 | src/diffusers/modular_pipelines/ltx2/denoise.py:666-671 | src/diffusers/modular_pipelines/stable_diffusion_3/denoise.py:217-222 | src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py:710-715 | src/diffusers/modular_pipelines/wan/denoise.py:457-462 | src/diffusers/modular_pipelines/z_image/denoise.py:283-288 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/flux/denoise.py:282\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/denoise.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"77610ecd320b4afaa695dc2eb98728878e9213d3d1c555791d4666905f6c4cb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): examples/community/clip_guided_images_mixing_stable_diffusion.py:144-149 | examples/community/clip_guided_stable_diffusion_img2img.py:203-208 | examples/community/latent_consistency_img2img.py:207-212 | examples/community/rerender_a_video.py:559-564 | examples/community/stable_diffusion_controlnet_img2img.py:549-554 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:622-627 | src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:615-620 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:796-801 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:750-755 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/clip_guided_stable_diffusion_img2img.py:202\u0060 calls \u0060isinstance\u0060 and \u0060src/diffusers/pipelines/deprecated/pia/pipeline_pia.py:530\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5aa7ed25f559d444e1fb365111bfacc9859c58e59033b283357147a873b77c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:376-380 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py:382-386 | src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py:275-279 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:397-401 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:403-407 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:485-489 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:491-495 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:356-360 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:401-405 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 512 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4c9e6b1335934ddf39a94158129681a3d4c0b6d16fada25bea79f5a7ae730a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): examples/community/adaptive_mask_inpainting.py:307-311 | examples/community/stable_diffusion_controlnet_inpaint.py:177-181 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:176-180 | examples/community/stable_diffusion_repaint.py:130-134 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:709-713 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:787-791 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:233-237 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:231-235 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce06ae381b7ee9dbf391c4abc7e7ac1b88e879bc1017c1bdc8e6af8c91c061a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): examples/community/mod_controlnet_tile_sr_sdxl.py:881-886 | examples/community/pipeline_kolors_differential_img2img.py:617-622 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:914-919 | src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py:905-910 | src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py:614-619 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py:920-925 | src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py:712-717 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py:699-704 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"353cfd59cdb64c772be9064eac441aad38f045d004b06af2cb1fefea9d536788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): src/diffusers/modular_pipelines/ltx2/decoders.py:79-86 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:757-764 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:805-812 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:679-686 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:620-627 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:687-694 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:841-848 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:757-764 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/decoders.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8918c3bea15584ba846dbf2c0d8ac1014b14c450e997152f6a9d4173ece54bdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py:156-160 | src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py:158-162 | src/diffusers/pipelines/cogview4/pipeline_cogview4.py:170-174 | src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py:172-176 | src/diffusers/pipelines/latte/pipeline_latte.py:187-191 | src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:178-182 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:293-297 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:237-241 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py\u0060 and \u0060src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 200 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py:187\u0060 calls \u0060set_pag_applied_layers\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:303\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b55ae72ff3a16e4d5e3cd994e51aa7d8c9dfdd7463c78904082d78c3ba64acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): examples/community/fresco_v2v.py:1347-1351 | examples/community/rerender_a_video.py:356-360 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:237-241 | src/diffusers/pipelines/controlnet/pipeline_controlnet.py:258-262 | src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:236-240 | src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py:192-196 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py:266-270 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/rerender_a_video.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b083ef9e4d1ccdf4dbe848f22e287d5a44d71e3c120509214785095b4de4dbab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:123-127 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:141-145 | examples/community/stable_diffusion_controlnet_img2img.py:105-110 | examples/community/stable_diffusion_controlnet_inpaint.py:203-208 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:195-200 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:114-118 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:109-113 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2c4cd9a0a8ce57bd759c6148989f40c228da1154b007db7e1a6a645933b499"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): src/diffusers/models/transformers/transformer_bria.py:40-46 | src/diffusers/models/transformers/transformer_bria_fibo.py:52-58 | src/diffusers/models/transformers/transformer_flux.py:61-67 | src/diffusers/models/transformers/transformer_flux2.py:270-276 | src/diffusers/models/transformers/transformer_longcat_image.py:53-59 | src/diffusers/models/transformers/transformer_ovis_image.py:53-59 | src/diffusers/models/transformers/transformer_pan2.py:53-59 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060attn\u0060 to \u0060\u0022BriaAttention\u0022\u0060 in one and \u0060\u0022BriaFiboAttention\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"78059b05fd846043f329bbb7090eb0b3ec847e23a1a97ec9d24abb3531745dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): src/diffusers/models/transformers/transformer_flux.py:99-103 | src/diffusers/models/transformers/transformer_flux2.py:350-354 | src/diffusers/models/transformers/transformer_flux2.py:430-434 | src/diffusers/models/transformers/transformer_flux2.py:602-606 | src/diffusers/models/transformers/transformer_flux2.py:675-679 | src/diffusers/models/transformers/transformer_minimax_h3.py:186-190 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:168-172 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_flux.py\u0060 and \u0060src/diffusers/models/transformers/transformer_flux2.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_flux.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"640ed70662f59159c1630bd6ce03a912d0a15a2eb01fe182d76b20395e2ae21e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): src/diffusers/modular_pipelines/flux2/denoise.py:337-341 | src/diffusers/modular_pipelines/flux3/denoise.py:122-126 | src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:148-155 | src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:364-368 | src/diffusers/modular_pipelines/krea2/denoise.py:139-143 | src/diffusers/modular_pipelines/minimax_music3/denoise.py:224-228 | src/diffusers/modular_pipelines/pan2/denoise.py:131-135 \u2014 \u0060src/diffusers/modular_pipelines/flux2/denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/flux3/denoise.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 5 separate duplicated blocks between them, totalling at least 47 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060Flux2KleinModularPipeline\u0060 in one and \u0060Flux3ModularPipeline\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":"src/diffusers/modular_pipelines/flux2/denoise.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0399ed328264a08775a87e804f62c317a41c33f070877650739b779dca3310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): examples/community/pipeline_flux_differential_img2img.py:568-573 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:603-608 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:567-571 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:606-610 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:568-572 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:593-598 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 789 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:565\u0060 calls \u0060to\u0060 and \u0060examples/community/pipline_flux_fill_controlnet_Inpaint.py:601\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"de72db80ad65b722719251ca44dfa0bb04438fa6213a30e1a957457d7b05829e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): examples/community/pipeline_stg_hunyuan_video.py:349-355 | src/diffusers/modular_pipelines/flux/encoders.py:358-364 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:316-322 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:288-294 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:393-399 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:445-451 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 451 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stg_hunyuan_video.py:360\u0060 calls \u0060repeat\u0060, \u0060view\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:454\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd6699ce1bb3af3ec2dd5d540c14aa493fbc00f750d482a626bcff47ca4646b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:452-457 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:642-647 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:614-619 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:901-906 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:600-605 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:890-895 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d9ff218cfb66e014730489a2c378d5921ca2b895db95968f4738afe7b7dcd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:366-371 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:633-637 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:917-921 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:356-361 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:619-623 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:906-910 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc353bbea16639fc079ea5baadd1ab71c90d989347b53cec7b567dfffb478bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): src/diffusers/models/transformers/transformer_anyflow.py:709-713 | src/diffusers/models/transformers/transformer_anyflow_far.py:1384-1389 | src/diffusers/models/transformers/transformer_chronoedit.py:733-737 | src/diffusers/models/transformers/transformer_skyreels_v2.py:775-780 | src/diffusers/models/transformers/transformer_wan.py:720-724 | src/diffusers/models/transformers/transformer_wan_vace.py:386-390 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_chronoedit.py:727\u0060 calls \u0060to\u0060, \u0060unsqueeze\u0060, \u0060chunk\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow.py:706\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"700f6c57bd3b7a5e33827b4a3fd96b41eade880a3525befbfc22cddda3758af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): src/diffusers/models/transformers/transformer_bria.py:142-146 | src/diffusers/models/transformers/transformer_bria_fibo.py:88-92 | src/diffusers/models/transformers/transformer_bria_fibo2.py:219-224 | src/diffusers/models/transformers/transformer_flux.py:203-207 | src/diffusers/models/transformers/transformer_longcat_image.py:89-93 | src/diffusers/models/transformers/transformer_ovis_image.py:89-93 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"781dec68ec489dd0e8e5662a907c733181d04c13f7ce9ccbfc0ce2487c263478"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): examples/community/lpw_stable_diffusion_xl.py:1797-1801 | examples/community/pipeline_demofusion_sdxl.py:921-926 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1267-1272 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:861-866 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1212-1217 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1797}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7f93e678db496003c3608eb6f069814907f75ef82ab3d71b291a67098820ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): examples/community/pipeline_fabric.py:477-482 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:591-595 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:476-480 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:630-634 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:463-467 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_fabric.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"0baa4eea9ce74153b53e9801772199bf7055d6a5c4090285e06dbeb66935cc43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): examples/community/pipeline_flux_kontext_multiple_images.py:787-791 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:667-671 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:468-474 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:475-482 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:497-504 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:468\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4ca5ba520212a1cdbaca8549733860078641a70f0fea33dcdf15abbac3eed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:686-692 | examples/community/pipeline_zero1to3.py:751-755 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:584-590 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py:743-749 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py:877-885 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 and \u0060examples/community/pipeline_zero1to3.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 154 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_upscale_ldm3d.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"2449dba1979485da12d77b76407acc826931fd877eb12964314d33efffb935e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): scripts/convert_sd3_to_diffusers.py:95-100 | scripts/convert_sd3_to_diffusers.py:149-153 | src/diffusers/loaders/single_file_utils.py:2067-2072 | src/diffusers/loaders/single_file_utils.py:2120-2124 | src/diffusers/loaders/single_file_utils.py:3143-3147 \u2014 before extracting anything, compare \u0060scripts/convert_sd3_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 249 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_sd3_to_diffusers.py:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_sd3_to_diffusers.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"283c9fb47e48cf0aaa278c40c540711e534eb1d970e5bd3f35830ba7cf352f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 10): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:615-620 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:837-841 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:887-891 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:871-875 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:920-924 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:967-968 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1447-1448 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1519-1520 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1329-1330 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1400-1401 \u2014 there are 10 copies across 6 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 10 sites; resolving a subset leaves the remainder to drift apart. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:968\u0060 calls \u0060cat\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:620\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6dc70ad95899c93e914d249535434efdb6aaffa93eed7a634b6a5d4ee2043a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src/diffusers/models/transformers/transformer_cogview4.py:144-148 | src/diffusers/models/transformers/transformer_cogview4.py:346-351 | src/diffusers/models/transformers/transformer_cosmos.py:168-172 | src/diffusers/models/transformers/transformer_cosmos.py:237-241 | src/diffusers/models/transformers/transformer_easyanimate.py:136-140 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf7eb7ea76f140aa77c770a9c90de4ceaf1bce840f24345543c81f4efc6f8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 5): src/diffusers/models/transformers/transformer_hunyuan_video.py:503-508 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:386-391 | src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py:65-71 | src/diffusers/models/transformers/transformer_hunyuanimage.py:452-457 | src/diffusers/models/transformers/transformer_pan2.py:222-227 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84244efa42ab438322e07e8d6e69668375609230b46adbf713b9a3353e2a9a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): src/diffusers/modular_pipelines/wan/before_denoise.py:531-536 | src/diffusers/modular_pipelines/wan/encoders.py:521-526 | src/diffusers/modular_pipelines/wan/encoders.py:982-987 | src/diffusers/modular_pipelines/z_image/before_denoise.py:440-445 | src/diffusers/modular_pipelines/z_image/encoders.py:314-319 \u2014 \u0060src/diffusers/modular_pipelines/wan/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/z_image/before_denoise.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 9 separate duplicated blocks between them, totalling at least 194 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":"src/diffusers/modular_pipelines/wan/before_denoise.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"301e638e914d7b07fa33f90b2c0b102da53f3697897426938c24e1967ac736b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:421-429 | src/diffusers/pipelines/sana_video/pipeline_sana_video_i2v.py:694-698 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py:446-454 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:426-434 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:450-458 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:421\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1f5c2f880473c9f6416cf41f094cca59c518072375b489f5da508ef6d85ee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1457-1465 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:1889-1897 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1415-1419 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2306-2312 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1533-1541 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1494 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1457\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"557d6237fb7455b6099f9a0d7ec10da6396d3c6f8299baa2336b38611da9938b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:480-485 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:906-911 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:758-763 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:821-826 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:536-541 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"0286fbd212210c99fcb83fb2441815f3ad463d1a8739493d7f72ba14f30baba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:532-541 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1014-1023 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:867-876 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:926-935 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:600-609 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:532\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dde31d5c425c69ba0312baec528a8c1461ddad7f8bbc08fd263954ac706d490"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): examples/community/adaptive_mask_inpainting.py:1210-1214 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1807-1811 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:985-989 | src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:1096-1100 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8761d836bbb49f6617eede6512d6c273ab692e54c3f996b027f44d7aea5858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): examples/community/masked_stable_diffusion_img2img.py:150-157 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:309-313 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:312-316 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:827-833 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_img2img.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d8b9a54f408c3d2390cc252b8553fbe6dea2efeb5012c3c40bd9867a6e2935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): examples/community/pipeline_controlnet_xl_kolors.py:1136-1140 | examples/community/pipeline_stable_diffusion_xl_instantid.py:900-904 | src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py:1390-1394 | src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py:1375-1379 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"7893c94056330caf528cc52311c35f9097eece33b5379670452a69026d9f9885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:329-333 | src/diffusers/models/autoencoders/autoencoder_kl.py:296-300 | src/diffusers/models/autoencoders/autoencoder_kl_flux2.py:308-312 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:723-727 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a60912d40012851522f0c4ecb38159c842469b8ac83b1a13ca0f36678d7083"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 10): examples/community/adaptive_mask_inpainting.py:305-306 | examples/community/pipeline_kolors_inpainting.py:115-119 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:318-322 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:167-171 | examples/community/stable_diffusion_controlnet_inpaint.py:175-176 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:174-175 | examples/community/stable_diffusion_repaint.py:128-129 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:231-232 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:229-230 | src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:134-138 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_kolors_inpainting.py:115\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_kolors_inpainting.py:115\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:305\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"5729ff8ef094d71e439c6a7b4c1881fbcabec9cdb39e2edc096a85bd18141dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:618-623 | src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py:681-686 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:697-702 | src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py:421-425 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 869 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py:618\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"1046f8aa1f7c0c0afac9bbea6752812f9e898117201f66a117860af724852605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): examples/controlnet/train_controlnet.py:72-77 | examples/research_projects/controlnet/train_controlnet_webdataset.py:312-317 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:72-77 | src/diffusers/utils/pil_utils.py:60-65 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 1724 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:72\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3b449a66d89d77e7f89d1431fdd9a496eef16a4b8930cd0463a15e9c34ca00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/configuration_utils.py:203-209 | src/diffusers/models/modeling_utils.py:770-776 | src/diffusers/modular_pipelines/mellon_node_utils.py:851-857 | src/diffusers/pipelines/pipeline_utils.py:297-303 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/configuration_utils.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9987847a170aab9fcb5dcbc89e23b0835542a8d8055e61495edc9e8b7227cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/loaders/lora_conversion_utils.py:1631-1635 | src/diffusers/loaders/lora_conversion_utils.py:1643-1647 | src/diffusers/loaders/single_file_utils.py:2842-2846 | src/diffusers/loaders/single_file_utils.py:2849-2853 \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":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6eb6ba0c441bb8bad940eeb352c6af281d2aad4d429b32a4b9a43501d82c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/loaders/single_file_utils.py:2019-2023 | src/diffusers/loaders/single_file_utils.py:2295-2300 | src/diffusers/loaders/single_file_utils.py:3107-3111 | src/diffusers/loaders/single_file_utils.py:3571-3576 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":2019}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9284c33d160e3cd567714c465bc52c4fc6d19a327b7bb5f56f212665cf41ce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/models/attention.py:996-1000 | src/diffusers/models/transformers/sana_transformer.py:261-267 | src/diffusers/models/transformers/transformer_2d_dreamlite.py:286-290 | src/diffusers/models/transformers/transformer_allegro.py:127-131 \u2014 before extracting anything, compare \u0060src/diffusers/models/attention.py\u0060 and \u0060src/diffusers/models/transformers/transformer_2d_dreamlite.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"5178b00b6698808bbf507743f1ba95c4de323fefb074491ec8a9c385976af687"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/models/attention_dispatch.py:1454-1458 | src/diffusers/models/attention_dispatch.py:1797-1801 | src/diffusers/models/attention_dispatch.py:3165-3170 | src/diffusers/models/attention_dispatch.py:3418-3423 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_dispatch.py:1454\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f79896db42ea71f60550c385b4a6f8d475edf6d9d3c3441d648cf7ed4e1d998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:225-230 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:235-240 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:266-271 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:276-281 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"858c83de5404680e3d8628952eb95e40bd3bd019da7c55a0284800fdef369b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/models/controlnets/controlnet_z_image.py:102-106 | src/diffusers/models/transformers/transformer_bria_fibo2.py:215-219 | src/diffusers/models/transformers/transformer_ernie_image.py:101-105 | src/diffusers/models/transformers/transformer_z_image.py:101-105 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7cd55dafa39499b9b785e3b9973cbde1a54073d3e34c9e75ec0edd5df3a9cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/models/transformers/transformer_anyflow.py:143-148 | src/diffusers/models/transformers/transformer_anyflow_far.py:312-317 | src/diffusers/models/transformers/transformer_sana_video.py:122-126 | src/diffusers/models/transformers/transformer_wan_animate_2.py:304-308 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"5563b94f4e4b995d4f7436cc5da3a732a740849f98c5b08e0137b4329cfd17ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/modular_pipelines/ltx2/before_denoise.py:1574-1578 | src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1348-1352 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1426-1430 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:738-742 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/ltx2/before_denoise.py:1574\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9671d912d8c20e260697d2b9b605b0e8e7315ecd3d7635d37fdf753dc766f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:104-109 | src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:86-91 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:102-107 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:108-113 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.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 4 separate duplicated blocks between them, totalling at least 58 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"927d0dd65cc3cfe5c1bd35fcb8c0f2b4103ecec437d3ce65887967057710d537"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/modular_pipelines/minimax_h3/denoise.py:268-274 | src/diffusers/modular_pipelines/minimax_h3_image/denoise.py:197-203 | src/diffusers/modular_pipelines/p_h3_image/denoise.py:264-270 | src/diffusers/modular_pipelines/pika_h3_flex/denoise.py:283-289 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/denoise.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 3 separate duplicated blocks between them, totalling at least 43 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. 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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060MiniMaxH3ImageModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/denoise.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacdf38ac1c5503cf893b2c9488efb16093d36dae49004a19c87bd96491505c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py:666-671 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:787-792 | src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py:662-667 | src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py:830-835 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 518 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb8e621382811ace5102f94ef4666c0a8eb454104cedac80b987e0df3b46627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/pipelines/flux2/pipeline_flux2.py:607-613 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:465-471 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:544-550 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:473-479 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0ea5c60634a8663334383654270869b62392f1a9904f34f895275cee9c5328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/pipelines/flux2/pipeline_flux2.py:1020-1024 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:912-916 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1253-1257 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:872-876 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aed4191a718baa2dec9885a496797f249a71b5b098753fa233f212825722ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:372-377 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:249-254 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:368-373 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:244-248 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:372\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f9df86380c5d4f71b67452767b08ca81388f34dc1857baeb00f55c3ad80529"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1387-1393 | src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py:1344-1348 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:2218-2222 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1462-1468 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2.py:1387\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"d266ccb68e4eb856e4f8e9e5d4701ffdb6ba26d79b5a785fd6a4f68dee24a7a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): src/diffusers/schedulers/scheduling_deis_multistep.py:339-346 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:482-489 | src/diffusers/schedulers/scheduling_sasolver.py:337-343 | src/diffusers/schedulers/scheduling_unipc_multistep.py:463-470 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:482\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ed1f89cf125a2fbbf657717c90919fb4900b7b6b0a14dae4739cc7963f8b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/utils/export_utils.py:56-60 | src/diffusers/utils/export_utils.py:105-109 | src/diffusers/utils/testing_utils.py:777-781 | src/diffusers/utils/testing_utils.py:825-829 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/utils/testing_utils.py:820\u0060 calls \u0060Struct\u0060 and \u0060src/diffusers/utils/export_utils.py:99\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/export_utils.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b952090cbe58c30149a94f39b90b0e915d639cd034e24b092f3e9dc2dd5f9e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1495-1499 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1151-1155 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1211-1215 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:137-138 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"c154380d27e70764d4c406222554eede0d0efc743e719d88d2da6c09372719bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/community/pipeline_stg_ltx_image2video.py:918-925 | src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py:887-894 | src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py:1689-1696 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 808 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx_image2video.py"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aefda7d242d529efcc3e701ee2059d145dfc0e26306183dbd69920fb09eb3a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/loaders/single_file_utils.py:1458-1464 | src/diffusers/utils/state_dict_utils.py:298-302 | src/diffusers/utils/state_dict_utils.py:373-377 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"034fe1a042a237b1708987ed642c7816cf692779d808da122691781705c14c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/models/attention_processor.py:2544-2548 | src/diffusers/models/attention_processor.py:3850-3854 | src/diffusers/models/attention_processor.py:4744-4749 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/attention_processor.py:2544\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2544}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb41d65e0d89d05bb099d6356da41e6602e4d540bba3c171d76a51ab4d972952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 3): src/diffusers/models/attention_processor.py:5355-5366 | src/diffusers/models/attention_processor.py:5398-5413 | src/diffusers/models/attention_processor.py:5452-5467 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":5355}}}],"partialFingerprints":{"codehealthFindingId/v1":"792bde5d262b2b1030a084905fde57c29533e57f147462b06b730e6e7bf51dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/diffusers/models/attention_processor.py:5368-5373 | src/diffusers/models/attention_processor.py:5415-5420 | src/diffusers/models/attention_processor.py:5472-5477 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":5368}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7709a9ebca4ffd33e60dfef6a56f45a238bc99b8c42a868b6dfd41d50147218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:454-460 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:464-469 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:460-464 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:454\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"5838f2390592d5e89a324eb3677fcaca09bc1c4cc5aeb2a9fdbc87f3f8ce599e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_cosmos.py:201-206 | src/diffusers/models/controlnets/controlnet_cosmos.py:213-218 | src/diffusers/models/transformers/transformer_cosmos.py:735-740 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_cosmos.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"844cb3548d828c9a19a02f33918e07d8f7eeb41f8e7b7dd3eb36cf7fe9dca844"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:54-63 | src/diffusers/models/transformers/transformer_bria_fibo2.py:49-58 | src/diffusers/models/transformers/transformer_z_image.py:54-63 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0766b49ec92f187a08e349dc60d0ad70122e0d2772bf647b98d52ff9ca14301"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:305-314 | src/diffusers/models/transformers/transformer_bria_fibo2.py:149-158 | src/diffusers/models/transformers/transformer_z_image.py:330-339 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c643f33d98b6bd73a706546bd9dd7d119671e1fc270fdff4fed50a96d274a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/models/transformers/transformer_anyflow.py:365-369 | src/diffusers/models/transformers/transformer_anyflow_far.py:698-704 | src/diffusers/models/transformers/transformer_anyflow_far.py:730-734 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aff5e1f6ccbccfda400ec05a3a2ef66ff1565069049c8d44e1971d148f9db6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/diffusers/models/transformers/transformer_anyflow_far.py:1294-1301 | src/diffusers/models/transformers/transformer_anyflow_far.py:1416-1423 | src/diffusers/models/transformers/transformer_anyflow_far.py:1521-1528 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_anyflow_far.py:1294\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow_far.py"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"edba68618b1d8837bb866c8e7e239cfcd4ff4cd7ca2e00f3521b7cdb6d058a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20135 lines \u00D7 9): src/diffusers/models/transformers/transformer_anyflow.py:90-90 | src/diffusers/models/transformers/transformer_anyflow_far.py:132-132 | src/diffusers/models/transformers/transformer_anyflow_far.py:258-258 | src/diffusers/models/transformers/transformer_cogview4.py:149-153 | src/diffusers/models/transformers/transformer_cogview4.py:352-356 | src/diffusers/models/transformers/transformer_cosmos.py:173-173 | src/diffusers/models/transformers/transformer_cosmos.py:242-242 | src/diffusers/models/transformers/transformer_easyanimate.py:141-145 | src/diffusers/models/transformers/transformer_easyanimate.py:157-157 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_anyflow_far.py:127\u0060 calls \u0060to\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow.py:86\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c870f4413ee3517f8c304016fe12c1bb98ca525396033d367f9d1e55d73a3719"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video15.py:374-381 | src/diffusers/models/transformers/transformer_hunyuanimage.py:443-447 | src/diffusers/models/transformers/transformer_pan2.py:211-215 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 242 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video15.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"1790485e6e7895a7e2556d03019cedd5d2e37463ac8c13b690d42fe59eb71ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py:255-259 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:410-414 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:498-502 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"0750a9f53dbd9c588df64615f5e715bd517d390ed0e197846b6c86ed9742f563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src/diffusers/modular_pipelines/wan/encoders.py:926-931 | src/diffusers/modular_pipelines/wan/encoders.py:1079-1084 | src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:440-444 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:449-453 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:480-484 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/wan/encoders.py:926\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03a0426ca5833db78032f16a510585b5431c814c0a581ff501d5d9fb640d828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:378-382 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:380-384 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:437-441 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 645 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a1de79278ae94fc47e9aa036f6cbf42b667cd45ca44d640844074ba2cbf855"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/pipelines/consisid/pipeline_consisid.py:473-477 | src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:82-87 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:155-160 \u2014 \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.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 13 separate duplicated blocks between them, totalling at least 239 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:82\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 \u0060vae\u0060 to \u0060AutoencoderKLLTXVideo\u0060 in one and \u0060AutoencoderKLLTX2Video\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, \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:91\u0060 calls \u0060_normalize_latents\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:166\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/consisid/pipeline_consisid.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"18869533bd87ca87a1b2091d91f7768803b1a458115d536af1abe5e45a730af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:436-441 | src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:391-396 | src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:86-90 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py\u0060 and \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py:436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"5614a6df26ef6fc04b346d6d134646a566de0a4500a06dd4ee07d8d4eef1975e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py:396-400 | src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:407-413 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:426-430 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py\u0060 and \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/lucy/pipeline_lucy_edit.py:407\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c2f543a218463bf2fb818ee2209a6e93b0b554cfb719642f85ceb73935e12c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1443-1449 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1712-1718 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:810-815 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"e485e58741af0d55756b2774465ce9209ebababf5519690b94a7b4caec9dd0d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/pipelines/marigold/marigold_image_processing.py:536-540 | src/diffusers/pipelines/marigold/marigold_image_processing.py:624-628 | src/diffusers/pipelines/marigold/marigold_image_processing.py:668-672 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/marigold_image_processing.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"a584608d7955b165b66fd0422f4ea8f7ab08d3ec6525ab354ed5f331cb192242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:660-664 | src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:667-671 | src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:634-638 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 409 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/marigold/pipeline_marigold_depth.py:666\u0060 calls \u0060mean\u0060 and \u0060src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py:673\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"077c953015b035019e86143f95473019d68c53cc16dbaaf53234050a8487fc7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/community/pipeline_flux_kontext_multiple_images.py:268-273 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:255-260 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060src/diffusers/pipelines/flux/pipeline_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 103 separate duplicated blocks between them, totalling at least 1490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"def062c1c5c9d188a49f314ceaae4fb33d7d5f7bb8004b520f6ee012033f1d3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/cosmos3/cosmos_parallel.py:83-91 | src/diffusers/models/transformers/transformer_cosmos3.py:68-76 \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, \u0060src/diffusers/models/transformers/transformer_cosmos3.py:77\u0060 calls \u0060k_norm_und_for_gen\u0060 and \u0060examples/cosmos3/cosmos_parallel.py:92\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":"examples/cosmos3/cosmos_parallel.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"735e18092976bd6718dddd70c92d435a1405403126da5b4e2c2d65ae7d60e964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py:1072-1076 | src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:955-959 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py\u0060 and \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 948 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:955\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/pipeline_pixart_alpha_controlnet.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52bb090f2b794948236281db1c8952785e72f41f2452f207868ebdc45851e05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/hooks/sea_cache.py:700-704 | src/diffusers/hooks/sea_cache.py:865-869 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/hooks/sea_cache.py:862\u0060 calls \u0060original_forward\u0060 and \u0060src/diffusers/hooks/sea_cache.py:698\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/sea_cache.py"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e7d095db7290edd593674fa2bf2093d164282964f97448a0d5667f78c13760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/image_processor.py:401-407 | src/diffusers/modular_pipelines/wan_animate_2/video_processor.py:66-72 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ce5941d00083a2f8b85d6890829eef3aa2004add175c1a71c7c5afc38e353d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/loaders/lora_base.py:370-375 | src/diffusers/loaders/peft.py:208-212 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"d047dc24f133b7ba3821b313e321482ad97c8c6411e77b53030fab14d16d7484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/loaders/single_file_utils.py:1164-1178 | src/diffusers/loaders/single_file_utils.py:1185-1199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fef679729d16d6c7a3201cd5bb0a30309dbe81b6a23a096bc43dafefbcb6e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/loaders/transformer_flux.py:128-132 | src/diffusers/loaders/unet.py:662-666 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/loaders/transformer_flux.py:128\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, \u0060src/diffusers/loaders/transformer_flux.py:134\u0060 calls \u0060update\u0060 and \u0060src/diffusers/loaders/unet.py:669\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/transformer_flux.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f729d5e5b05b389916269b8d4211da2d7e95cb11ddc88f79cd87635b412948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/attention.py:275-280 | src/diffusers/models/attention_processor.py:805-810 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"b318466483b9f5676b87206960f1f479e44caa85f24fba3b346c2aa0d7297331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/attention.py:287-291 | src/diffusers/models/attention_processor.py:794-799 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af750b97b1b6d2842d322c3edebe2e5a4783f5ad63935df07aa7711a1db12a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kandinsky6_sr.py:130-135 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py:165-169 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kandinsky6_sr.py:130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kandinsky6_sr.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0a72993b640b5f84a476c912c46ff22e08ae7ee03d75464f273e8b09ba3363"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1269-1274 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1264-1269 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa3293e1d802f00ea97b81f957dc8883b9c828d0c0ea27e9f9df9b64cf17a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1350-1355 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1355-1360 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"741ba3b24db1f10c1d21c1adee19f2d37afc48bb6d5e783b50f8cb133d86fcd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1025-1029 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1015-1019 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0cc992773bdb1208bc3ecd8d755d2804cf433eb30a9d7d38250e1ecbf62372f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:829-834 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:962-966 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_magvit.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7614bda022686a856c40259ebe9007c8b1aa63b2c05e492b07e50f26e16345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py:174-178 | src/diffusers/models/autoencoders/mmaudio_vocoder.py:86-90 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd412d6ab5cf1de15a38b1b8d1e02540fe00669c07dcc06801dc17594fefc2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 6): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:257-261 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:280-281 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:447-450 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:470-474 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:637-640 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:657-661 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:261\u0060 calls \u0060min\u0060, \u0060clone\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:281\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"4076c8554d433c63340ef7812aab553e8df83ee32bc052e25f8d8c02905fdee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:570-574 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:558-562 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:570\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbe3f2405a6e218cd24ce34bbbfd4bb39def60c3fc4e65aa8c5d267ba741de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_longcat_audio_dit.py:201-208 | src/diffusers/models/autoencoders/autoencoder_longcat_audio_dit.py:250-257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_longcat_audio_dit.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f13d5f7c4e0cc68f8861405c6b97fee8810e7d1084225fc629a1deb6ec82dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_same.py:201-207 | src/diffusers/models/transformers/transformer_stable_audio3.py:173-179 \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 \u0060src/diffusers/models/autoencoders/autoencoder_same.py:201\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_same.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97c1ebf147ca2d3b4fa4c5fe1e0caad096b81d8c1d35dd8352ac0a7db693a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_vidtok.py:669-673 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:884-888 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_vidtok.py:669\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3467da5aba2413f266132ef7372f9bca26e9514176e5c1eb3e2096ba7653ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_vidtok.py:677-681 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:707-711 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"d515275650e72e44626bbd435921774b4a28606b628f22b9259bbc17020124c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/condition_embedders/condition_embedder_ltx2.py:66-73 | src/diffusers/pipelines/sana_wm/refiner.py:476-480 \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":"src/diffusers/models/condition_embedders/condition_embedder_ltx2.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08c917f620af0e64346b4105e7c83f1f3a057762004e67a37f2bd8d581b9721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/embeddings.py:1395-1399 | src/diffusers/models/transformers/transformer_glm_image.py:40-44 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"468ed9498e735bee5e97cbc3ed6433a06c2202295f42b1b2f7b3fc04b04acb46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:162-167 | src/diffusers/models/transformers/transformer_cogview4.py:367-372 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2950b8429868082d7487225faaf7629a91e9fde50ca679aa5686e7fb5c2eced9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:547-556 | src/diffusers/models/transformers/transformer_glm_image.py:441-450 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_cogview4.py\u0060 and \u0060src/diffusers/models/transformers/transformer_glm_image.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_cogview4.py:547\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a30eaccd27caf4056a326340c2d31c15eb7f1cd45b66dc3126f5499ea72b975"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 3): src/diffusers/models/transformers/transformer_ernie_image.py:190-194 | src/diffusers/models/transformers/transformer_flux2.py:530-531 | src/diffusers/models/transformers/transformer_motif_video.py:328-332 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_ernie_image.py:189\u0060 calls \u0060Linear\u0060 and \u0060src/diffusers/models/transformers/transformer_flux2.py:528\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ernie_image.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"64060c6ebb8a8c702f3d22ab74f2eb1a8f5cfc0ef8dd30ac631d5133e9fd4f50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_helios.py:40-45 | src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py:433-438 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_helios.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb47c431b32f7d0def7301ac4c56b8b897bfd89d234a4e1c3e414d43b809620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video.py:413-420 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:297-304 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"552c7bcd8f1737e3ac597e9e39a8de6cd3f9aff21ded3532e064c94f6b6e137f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky_s2v.py:378-382 | src/diffusers/models/transformers/transformer_kandinsky_s2v.py:477-481 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky_s2v.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf76fd17e5938ce01c7e939725e5677d0afd771c45ffbc31356174a8a09afa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_sana_wm.py:1970-1975 | src/diffusers/models/transformers/transformer_sana_wm.py:2408-2413 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm.py"},"region":{"startLine":1970}}}],"partialFingerprints":{"codehealthFindingId/v1":"164a26fae76883890565963d969fa8f445256141d6f3809985f72867ea1549c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 4): src/diffusers/models/transformers/prior_transformer.py:217-220 | src/diffusers/models/unets/unet_1d.py:228-231 | src/diffusers/models/unets/unet_2d.py:281-285 | src/diffusers/pipelines/deprecated/spectrogram_diffusion/pipeline_spectrogram_diffusion.py:112-116 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_2d.py:281\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/prior_transformer.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"a184cd4ed01a4837436960ca2648d47205a356046d07b616e1155093a5658e72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/unets/unet_stable_cascade.py:493-503 | src/diffusers/models/unets/unet_stable_cascade.py:515-525 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"c447f63909a3d5613e653ea08751aff1255dfa686e367e0a6315ef5f9ca9d534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): src/diffusers/modular_pipelines/helios/denoise.py:433-436 | src/diffusers/modular_pipelines/helios/denoise.py:623-627 | src/diffusers/modular_pipelines/helios/denoise.py:964-968 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/helios/denoise.py:627\u0060 calls \u0060expand\u0060, \u0060to\u0060 and \u0060src/diffusers/modular_pipelines/helios/denoise.py:436\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"3575763624be245ec8428d1554fdf8c4e69c1112626a207959f0af022c899345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/modular_pipelines/krea2/before_denoise.py:578-585 | src/diffusers/pipelines/krea2/pipeline_krea2.py:383-390 \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":"src/diffusers/modular_pipelines/krea2/before_denoise.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c1d1554d965b0775c46f1d256db0b85de46d88966128f8ae7af540d09edcc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 5): src/diffusers/modular_pipelines/helios/encoders.py:261-263 | src/diffusers/modular_pipelines/helios/encoders.py:352-354 | src/diffusers/modular_pipelines/krea2/decoders.py:192-196 | src/diffusers/modular_pipelines/wan_animate_2/denoise.py:42-46 | src/diffusers/modular_pipelines/wan_animate_2/encoders.py:109-111 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/krea2/decoders.py:192\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/encoders.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"40822caef93ed923158032731b545aa5f9eee20efa941e7d5c3e7600d85eff89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/decoders.py:187-197 | src/diffusers/modular_pipelines/pika_h3_flex/decoders.py:189-199 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/decoders.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/decoders.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 4 separate duplicated blocks between them, totalling at least 57 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. 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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/decoders.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39d3bba44b5341c9fc77e50de9daab00dedb808ea3f543d70cadd22dbf58ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:409-413 | src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py:446-450 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:409\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb0277d67a7b7326019ad6d4aeabfc5f3eae2a16f3d758a56077388d925e507"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/pipelines/ddim/pipeline_ddim.py:154-163 | src/diffusers/pipelines/ddpm/pipeline_ddpm.py:121-125 \u2014 \u0060src/diffusers/pipelines/ddim/pipeline_ddim.py\u0060 and \u0060src/diffusers/pipelines/ddpm/pipeline_ddpm.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 3 separate duplicated blocks between them, totalling at least 92 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ddim/pipeline_ddim.py:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ddim/pipeline_ddim.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"119e5bd1b29421a1267a0df68426258008859577200720eb1318c3efc2881662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:148-158 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:798-808 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:148\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":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a648c2434b7e252881d93c6a72999581fc1e5607b927f524584afde543d37e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20135 lines \u00D7 10): src/diffusers/pipelines/flux2/pipeline_flux2.py:613-613 | src/diffusers/pipelines/flux2/pipeline_flux2.py:1017-1019 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:471-471 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:911-911 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:550-550 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:593-593 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1059-1059 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1247-1252 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:479-479 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:867-871 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:865\u0060 calls \u0060clear\u0060 and \u0060src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:1245\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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"a734d619a00371aa7983155f398a187f20bc051e3cfaa5cc199c6c6cc0c9b6ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:82-86 | src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py:88-92 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b84bd8e2a866103f1ddb7e3f0df364124fd96fe8f11cb240d3fcb62f72b8c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:347-354 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:357-364 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py\u0060 and \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b572c2ca3829f5f6f54108906a8d799f93da72669a494b585c4258845a2c7bc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:325-329 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:272-276 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py\u0060 as WHOLE FILES: this scan already matched 92 separate duplicated blocks between them, totalling at least 1303 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"406681b9956b17b77db1268c43a6d9d59a67ea42ca8ddf2a4210b08ef44199bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:659-665 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:692-698 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 522 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36f7418be4e90007e6aceedc30ee9314e3c36e78f593502991e11f07c82529e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:297-304 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py:366-373 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py\u0060 and \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 344 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"422027232e66acbf4def7e3afc24dfbed9b63808956bf5b6e8466adc4e95a59f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:215-219 | src/diffusers/schedulers/scheduling_lms_discrete.py:180-184 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_lms_discrete.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d609f331062dcdf0a82ef010982cf50ad4aada67b95196da70052bbb6da217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/diffusers/utils/export_utils.py:109-121 | src/diffusers/utils/testing_utils.py:829-841 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/export_utils.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4967d1923cda851d75fd3fad0edfbad5fb9539655c4c5b29392783170f13f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/models/transformers/transformer_joyimage.py:258-278 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:205-225 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_joyimage.py\u0060 and \u0060src/diffusers/models/transformers/transformer_joyimage_edit_plus.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"273f3e43ec024d5802769a87c84ff2a8fa4f6c2f1843037701f1ddd677ec8abc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (284 lines \u00D7 3): src/diffusers/modular_pipelines/flux2/modular_blocks_flux2.py:73-356 | src/diffusers/modular_pipelines/flux2/modular_blocks_flux2_klein.py:76-399 | src/diffusers/modular_pipelines/flux2/modular_blocks_flux2_klein_base.py:76-413 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux2/modular_blocks_flux2.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d576772990547c3eb2b8aff2a5642f3d8c35cc31adeb24f2df48b31014c5eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (439 lines \u00D7 3): src/diffusers/modular_pipelines/helios/modular_blocks_helios.py:83-542 | src/diffusers/modular_pipelines/helios/modular_blocks_helios_pyramid.py:82-520 | src/diffusers/modular_pipelines/helios/modular_blocks_helios_pyramid_distilled.py:82-530 \u2014 before extracting anything, compare \u0060src/diffusers/modular_pipelines/helios/modular_blocks_helios_pyramid.py\u0060 and \u0060src/diffusers/modular_pipelines/helios/modular_blocks_helios_pyramid_distilled.py\u0060 as WHOLE FILES: 87% 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":"src/diffusers/modular_pipelines/helios/modular_blocks_helios.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6114e132a0011a8a7c032b6eeaee12bb82613375fde46df8f9ad8cb4bc5e97bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (400 lines \u00D7 2): src/diffusers/modular_pipelines/hunyuan_video1_5/modular_blocks_hunyuan_video1_5.py:100-535 | src/diffusers/modular_pipelines/ltx/modular_blocks_ltx.py:90-489 \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":"src/diffusers/modular_pipelines/hunyuan_video1_5/modular_blocks_hunyuan_video1_5.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea4c163f386e7d56bfc7d0e45683b441f4410a66479d6e4c0b6756562025a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (217 lines \u00D7 4): src/diffusers/modular_pipelines/anima/modular_blocks_anima.py:90-381 | src/diffusers/modular_pipelines/hunyuan_video1_5/modular_blocks_hunyuan_video1_5.py:100-535 | src/diffusers/modular_pipelines/ltx/modular_blocks_ltx.py:90-489 | src/diffusers/modular_pipelines/stable_diffusion_3/modular_blocks_stable_diffusion_3.py:150-366 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/anima/modular_blocks_anima.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1262f8428c3632c7dbdd3b194e7e9ba66362a4a2250bd6a82a5674d57abe9dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/modular_pipelines/wan/modular_pipeline.py:39-154 | src/diffusers/modular_pipelines/wan_animate_2/modular_pipeline.py:33-59 \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":"src/diffusers/modular_pipelines/wan/modular_pipeline.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc75ef5c05d15406ac3d3f1f4171a4f3f34a91ae83b0ae7a677330c3bd7fa2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): examples/community/adaptive_mask_inpainting.py:849-854 | examples/community/latent_consistency_img2img.py:268-273 | examples/community/rerender_a_video.py:530-535 | src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py:655-660 | src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:734-739 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:539-544 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1ed6acd96264026e009ac6a4e4f98f611f7031c87330ad167e44c5c3e2d90e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10): examples/community/clip_guided_images_mixing_stable_diffusion.py:130-135 | examples/community/clip_guided_stable_diffusion_img2img.py:180-185 | examples/community/ddim_noise_comparative_analysis.py:72-77 | examples/community/stable_diffusion_controlnet_img2img.py:526-531 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:599-604 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:144-149 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py:149-154 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py:121-126 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:149-154 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:90-95 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py:595\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/stable_diffusion_controlnet_img2img.py:522\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfcb0c20b0bd2f65e8b54a599eee00947afc156886a243622c4e41839a1b318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): examples/community/latent_consistency_img2img.py:606-613 | examples/community/latent_consistency_txt2img.py:518-525 | examples/community/matryoshka.py:443-450 | src/diffusers/schedulers/scheduling_ddim_cogvideox.py:251-258 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:253-260 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ecfbd324dfdc578c80a73a8904fdff7d24aa8debad17cf6431cf1cdf284b4cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 7): examples/community/matryoshka.py:2665-2686 | src/diffusers/models/controlnets/controlnet_xs.py:884-905 | src/diffusers/models/unets/unet_2d_condition.py:791-812 | src/diffusers/models/unets/unet_3d_condition.py:413-434 | src/diffusers/models/unets/unet_i2vgen_xl.py:376-397 | src/diffusers/models/unets/unet_motion_model.py:1818-1839 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:967-988 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:2665\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":"examples/community/matryoshka.py"},"region":{"startLine":2665}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67cf1c6b87c27c4e50cbe10227623179e1979920c704a36d99976695ac65653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): examples/community/matryoshka.py:2689-2694 | src/diffusers/models/controlnets/controlnet_xs.py:909-914 | src/diffusers/models/unets/unet_2d_condition.py:815-820 | src/diffusers/models/unets/unet_3d_condition.py:438-443 | src/diffusers/models/unets/unet_i2vgen_xl.py:401-406 | src/diffusers/models/unets/unet_motion_model.py:1843-1848 | src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:991-996 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2689}}}],"partialFingerprints":{"codehealthFindingId/v1":"075f8c81532da94c74631214c4243e363f04da86522ca20350dafc483c463c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): examples/community/pipeline_hunyuandit_differential_img2img.py:122-126 | src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py:111-115 | src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py:95-99 | src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py:98-102 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 1009 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85e303408c3bf1a3a4d8790f69db76339f750ed0567d7ca638fdc9db5f003d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:782-798 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:743-759 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:910-926 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:697-713 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:753-769 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:845-861 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 914 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a49b099421367bb2acfd9b555128c19ff86bd5556b51cdd859cabd5322edd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:848-855 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py:810-817 | src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py:977-984 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py:763-770 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py:820-827 | src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py:912-919 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 and \u0060src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 914 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d46c17535a518a3b61c3bd17127371a1080969d6f5dce5e83ada9e5251e0e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): examples/community/pipeline_stable_diffusion_boxdiff.py:920-939 | examples/community/pipeline_stable_diffusion_pag.py:916-932 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:828-847 | src/diffusers/pipelines/pipeline_utils.py:2268-2287 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_pag.py\u0060 as WHOLE FILES: this scan already matched 76 separate duplicated blocks between them, totalling at least 1088 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_boxdiff.py:920\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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"478bb13473bbf7fc473ddd03c2d39ed7579ac214b8d6180f5883e7b8c99ebac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/community/pipeline_stable_diffusion_boxdiff.py:976-998 | examples/community/pipeline_stable_diffusion_pag.py:967-986 | src/diffusers/pipelines/pipeline_utils.py:2321-2342 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_pag.py\u0060 as WHOLE FILES: this scan already matched 76 separate duplicated blocks between them, totalling at least 1088 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"646e76f1983a37aefe97d3646d76e803cbb02416170d548bee7d855daa282fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): examples/community/pipeline_stg_cogvideox.py:406-410 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py:352-356 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py:391-395 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:421-425 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:401-405 | src/diffusers/pipelines/consisid/pipeline_consisid.py:523-527 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 911 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a38a8b573a1e3fbd08f86b3b1ed6ee54db4112006d5adad53782ec3a76bdd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/community/tiled_upscaling.py:135-143 | src/diffusers/pipelines/flux2/image_processor.py:57-65 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/tiled_upscaling.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2d74cc7fcdf57f2e2f88191e09af106fe3ad49cb5755ccae04c882c2160d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/community/unclip_image_interpolation.py:101-114 | examples/community/unclip_text_interpolation.py:95-108 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py:101-114 | src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py:102-115 \u2014 before extracting anything, compare \u0060examples/community/unclip_image_interpolation.py\u0060 and \u0060examples/community/unclip_text_interpolation.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 179 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"607810214ff9039887feca7c4120b02c0d778785ee2ef9448810110e0f4d32d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:357-361 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:200-204 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:344-348 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:335-339 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:323-327 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:78-82 | src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py:66-70 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c335902a3db2a194abc34510d17b8871212f545397b28072d87af4d5dfcec04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:73-79 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:10-16 | scripts/convert_i2vgen_to_diffusers.py:92-98 | scripts/convert_if.py:540-546 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:26-32 | scripts/convert_ms_text_to_video_to_diffusers.py:97-103 | scripts/convert_original_audioldm2_to_diffusers.py:55-61 | scripts/convert_original_audioldm_to_diffusers.py:46-52 | scripts/convert_original_musicldm_to_diffusers.py:47-53 | scripts/convert_svd_to_diffusers.py:214-220 | scripts/convert_unidiffuser_to_diffusers.py:38-44 | scripts/convert_versatile_diffusion_to_diffusers.py:97-103 | scripts/convert_zero123_to_diffusers.py:199-205 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:71-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 14 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 14 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:84\u0060 calls \u0060scheme\u0060 and \u0060scripts/convert_ddpm_original_checkpoint_to_diffusers.py:20\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"579e6c21df623d2f8e1b69ed88f40461059ebec7daa226450aefa0b70bed467f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:105-117 | scripts/convert_original_audioldm2_to_diffusers.py:89-101 | scripts/convert_original_audioldm_to_diffusers.py:80-92 | scripts/convert_original_musicldm_to_diffusers.py:81-93 | scripts/convert_unidiffuser_to_diffusers.py:49-61 | scripts/convert_versatile_diffusion_to_diffusers.py:129-141 | scripts/convert_zero123_to_diffusers.py:625-637 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:103-115 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"140851ac4121a3b1a0196fb065b0c94b1db30b462425444c426ea82da1a2dae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:372-378 | scripts/convert_original_audioldm2_to_diffusers.py:288-294 | scripts/convert_original_audioldm_to_diffusers.py:296-302 | scripts/convert_original_musicldm_to_diffusers.py:293-299 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:376-382 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"6147ef10d1815d0feb41e52de1607a3814b2fe2b2f0e18f84f6a56e82d308502"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:382-388 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:386-392 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py\u0060 as WHOLE FILES: this scan already matched 89 separate duplicated blocks between them, totalling at least 1974 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82e4460f335029c9bb052e7e57f0ceb211c96f635a3f64f0c62b8706ecd75f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): scripts/convert_kandinsky3_unet.py:77-89 | src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py:77-89 \u2014 before extracting anything, compare \u0060scripts/convert_kandinsky3_unet.py\u0060 and \u0060src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py\u0060 as WHOLE FILES: 94% 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 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kandinsky3_unet.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3522fe638b3051ccc57bd947dd0d57e42184100cfa2fc8f4d523b76bb3a631d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/convert_sd3_to_diffusers.py:248-254 | src/diffusers/loaders/single_file_utils.py:2003-2010 \u2014 before extracting anything, compare \u0060scripts/convert_sd3_to_diffusers.py\u0060 and \u0060src/diffusers/loaders/single_file_utils.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 249 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_sd3_to_diffusers.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2060bb368f9ae5ee41afe216cd6a70dd5ccabfbd3e1e0201dd77acf8454656"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/diffusers/guiders/auto_guidance.py:139-144 | src/diffusers/guiders/classifier_free_guidance.py:97-102 | src/diffusers/guiders/classifier_free_zero_star_guidance.py:83-88 | src/diffusers/guiders/frequency_decoupled_guidance.py:224-229 | src/diffusers/guiders/magnitude_aware_guidance.py:75-80 | src/diffusers/guiders/tangential_classifier_free_guidance.py:72-77 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/auto_guidance.py\u0060 and \u0060src/diffusers/guiders/classifier_free_guidance.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/auto_guidance.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc557ddbc6577574d209463dc36f7114494e866d341545430ed26063d36aad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/diffusers/guiders/auto_guidance.py:149-154 | src/diffusers/guiders/classifier_free_guidance.py:107-112 | src/diffusers/guiders/classifier_free_zero_star_guidance.py:93-98 | src/diffusers/guiders/frequency_decoupled_guidance.py:234-239 | src/diffusers/guiders/magnitude_aware_guidance.py:85-90 | src/diffusers/guiders/tangential_classifier_free_guidance.py:82-87 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/auto_guidance.py\u0060 and \u0060src/diffusers/guiders/classifier_free_guidance.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/auto_guidance.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a89648f690e7b25744e9e7126d73a0144a1f38425c1a14240258fd34165609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): src/diffusers/guiders/guider_utils.py:298-348 | src/diffusers/schedulers/scheduling_utils.py:108-162 \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 \u0060src/diffusers/guiders/guider_utils.py:298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/diffusers/guiders/guider_utils.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bc5b636b9b578da3d6b440111dcc08c04483821819231a125fd86dc067f8d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/guiders/perturbed_attention_guidance.py:167-171 | src/diffusers/guiders/skip_layer_guidance.py:164-168 \u2014 before extracting anything, compare \u0060src/diffusers/guiders/perturbed_attention_guidance.py\u0060 and \u0060src/diffusers/guiders/skip_layer_guidance.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/guiders/perturbed_attention_guidance.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"18785430970e1f16bc54702ef41de9e154ea982bca71929edfc722c721115de1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/diffusers/image_processor.py:1424-1438 | src/diffusers/video_processor.py:122-136 \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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/image_processor.py"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"677bfeb0eefd4f7fe082ca9dd8e91fabdb9db82dd083c3642cfa40627d7f2eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py:304-310 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:135-141 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:137-143 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"455c9bdedba9679427f16231a1c20ae041e17bda30446ba855fa1df4579a6db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py:349-357 | src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:164-171 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:243-251 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:283-291 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ac3b11ece740f330507827c3889d3cd1f8ed734c7dcfe951422c8282653f20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kandinsky6_sr.py:649-671 | src/diffusers/models/autoencoders/autoencoder_mmaudio.py:446-469 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kandinsky6_sr.py:649\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":"src/diffusers/models/autoencoders/autoencoder_kandinsky6_sr.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"851134e2b49893aaeea40dff57254f65130a39b7c16922bba8661d0e73d1de0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 7): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:1057-1080 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:900-923 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:933-956 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:1096-1119 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:1043-1066 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1539-1561 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1420-1444 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:1057\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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"092708b5577bdc297fb253451f720af03731f357f9b6b8c65d11067f8e6392da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:308-315 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:350-357 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc07feca3484071f210e418b0d2a2fd0802ad431b73b3253a1320cf5c22f9d85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:357-364 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:399-406 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f49586c0d5e40b305bd1d4d7912834cfeca9dc616a83703ee0971a34a696afd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:695-701 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:733-739 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"f603cd16f5018f1fc8cd0f9da3d0f51b862ecdb80e414c5b52d4d03df44897ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py:104-109 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:108-113 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_audio.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"390894a4be743683b5869a8c92248e588fa130a0d6a46ee402c05922348665ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:204-212 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:209-217 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:205-213 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d865e459b06ba3dc856045207c8d1ec1430e20122a670176b75eefc0ccfaf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:272-276 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:278-282 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:274-278 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"003a7a8f1d85262ee3c4729581066d174884bbcf64bda3ecdd9faabf1d3f6ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:635-654 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:615-634 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:582-601 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb8044c89878392b97a8420565e5cbfaf1fd559d0a7cf430b4791c8fe5b1853"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:915-934 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py:660-679 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:819-838 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:791-810 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a45aba26d8fa1367b5afb29e256cf5a51d0023dd4b78edd12df9e7068b4970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py:155-160 | src/diffusers/models/autoencoders/mmaudio_vocoder.py:71-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"db03b81697c57fcfd528699914c9a692d64fd5e1e2861e3ae24fa5542a4a4474"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:793-814 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:751-772 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1214-1235 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1104-1125 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_mochi.py"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"01deea76c907f97ba6821b4f50fec22145a89971e74a5e06c4ec167820475a7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1240-1246 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1129-1135 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_wan.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 769 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"619d0b67b728e078fde44182dc6c1f5083613a24b0cf11744252dc5b7b7960fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py:206-216 | src/diffusers/models/unets/unet_spatio_temporal_condition.py:250-260 \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":"src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad9e2ef13300b6ee9ea3aa5fd4069c57cf778e62de4a113d62602d294caceae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_oobleck.py:157-164 | src/diffusers/models/autoencoders/vae.py:705-712 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_oobleck.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e287dfa6fd7059c639f744f9ba627b7c48af45fc26af1afc828a8b1afac873"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/controlnets/controlnet.py:99-108 | src/diffusers/models/controlnets/controlnet_sparsectrl.py:86-94 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet.py\u0060 and \u0060src/diffusers/models/controlnets/controlnet_sparsectrl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 317 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6418cfc049b230846240baa1369e5ed5ee1c69af345f7a891c2b47a7a66cbdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:180-185 | src/diffusers/models/transformers/transformer_bria_fibo2.py:79-84 | src/diffusers/models/transformers/transformer_z_image.py:163-168 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"419d7fac25a6589e88b64523b87c6e5075410c8ad4243368e457aed2f34226af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:297-301 | src/diffusers/models/transformers/transformer_bria_fibo2.py:141-145 | src/diffusers/models/transformers/transformer_z_image.py:322-326 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"454f1fb3b3254e922997fe083d6ef977168739947242af8741297f3674f7d915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/diffusers/models/controlnets/multicontrolnet.py:116-144 | src/diffusers/models/controlnets/multicontrolnet_union.py:132-160 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/multicontrolnet.py\u0060 and \u0060src/diffusers/models/controlnets/multicontrolnet_union.py\u0060 as WHOLE FILES: 86% 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 2 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":"src/diffusers/models/controlnets/multicontrolnet.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9237ff5b2549d104e180c7012365a4e419a482df5f3cfbebd79736a032f7843e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py:36-43 | src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py:48-55 \u2014 before extracting anything, compare \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py\u0060 and \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"192ac96db3af8992b379832d9466e5dd09c8932d8f161e07f08ad861aaa7d135"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py:48-54 | src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py:61-67 \u2014 before extracting anything, compare \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py\u0060 and \u0060src/diffusers/models/latent_upscaler/latent_upscaler_ltx2.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/latent_upscaler/latent_upscaler_ltx.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e310d8990aa79fff60714399c1a3c1b3efc1c4831936f50f657828659b778dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/transformers/transformer_anyflow.py:212-216 | src/diffusers/models/transformers/transformer_anyflow_far.py:383-387 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_anyflow.py\u0060 and \u0060src/diffusers/models/transformers/transformer_anyflow_far.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 391 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d0a7ce9f84caffdcb03b1de9c05ab9d43124b32e740a93ece7ec2278c341f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_bria.py:300-305 | src/diffusers/models/transformers/transformer_bria_fibo.py:394-399 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5d8516ce46f116d60800844005f9dd34a718c082d0d2d6477d240567d38066"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_bria.py:308-316 | src/diffusers/models/transformers/transformer_bria_fibo.py:402-410 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"531ed6db0652e3450cca3ebc552f79b5120621b2a934e266e6a2440b2c934856"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): src/diffusers/models/transformers/transformer_chronoedit.py:62-67 | src/diffusers/models/transformers/transformer_skyreels_v2.py:66-71 | src/diffusers/models/transformers/transformer_wan.py:60-65 | src/diffusers/models/transformers/transformer_wan_animate.py:73-78 | src/diffusers/models/transformers/transformer_wan_animate_2.py:107-112 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_skyreels_v2.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 360 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060attn\u0060 to \u0060\u0022WanAttention\u0022\u0060 in one and \u0060\u0022SkyReelsV2Attention\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43090f9a48c98e1d9051d3b126496b586b1b5403b8e3e8e68aa3cf57827f77d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): src/diffusers/models/transformers/transformer_chronoedit.py:266-276 | src/diffusers/models/transformers/transformer_helios.py:258-268 | src/diffusers/models/transformers/transformer_skyreels_v2.py:263-273 | src/diffusers/models/transformers/transformer_wan.py:261-271 | src/diffusers/models/transformers/transformer_wan_animate.py:735-745 | src/diffusers/models/transformers/transformer_wan_animate_2.py:417-427 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_chronoedit.py\u0060 and \u0060src/diffusers/models/transformers/transformer_helios.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"879a83bf953c67a16977063a42aeb9b3bc8a1bc27072bb062b090a6cf8342b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/models/transformers/transformer_hunyuan_video.py:182-186 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:160-164 | src/diffusers/models/transformers/transformer_hunyuanimage.py:202-206 | src/diffusers/models/transformers/transformer_motif_video.py:409-413 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060out_features\u0060 to \u0060int | None = None\u0060 in one and \u0060Optional[int] = None\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea20c5cddc24b32afd38c86f5fe966a8dcf37ec247d87dfee8482d499a820e27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video15.py:404-410 | src/diffusers/models/transformers/transformer_hunyuanimage.py:191-197 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuanimage.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 242 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video15.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af14e2b467af3d013b69d3f56622ce1f3cda1c6119e68c0bfd79fa43bf28ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_hunyuan_video15.py:423-428 | src/diffusers/models/transformers/transformer_motif_video.py:513-518 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video15.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"5883d8481b70086bf7ae57e9ee77c46cc58419e3eb4fc40d6274748f6ee892a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_joyimage.py:71-76 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:64-69 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_joyimage.py\u0060 and \u0060src/diffusers/models/transformers/transformer_joyimage_edit_plus.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"68853054376f0af03d8941b4320a6b6c03b975c9572ae308b92358b2f15c2cb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky6.py:53-63 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:49-59 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_kandinsky6.py\u0060 and \u0060src/diffusers/models/transformers/transformer_kandinsky6_sr.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d613d5447310646ad5274821787b6ace6087ae1072de971ec3b59686c36e4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky6.py:214-218 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:248-252 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_kandinsky6.py\u0060 and \u0060src/diffusers/models/transformers/transformer_kandinsky6_sr.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c95dd660c1955b5d4b5f1351961ef3d0d220e6fe3b59f83bb5fe26e024d6b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:122-130 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:105-113 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fc5a7bb1d9351893fea480c194ee90d63f4280b3bfef8342c0c8bba476af1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_ltx2.py:578-583 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:1058-1063 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 and \u0060src/diffusers/models/transformers/transformer_sana_wm_refiner.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"282d65dfb90bb6a2426c4643e438638db6798a651b802175394a0e2341eec176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3.py:87-92 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:66-71 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f18434608805860c4174ce5e93d6461cac1643fbfb1d040c8c99aeb4ceac9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3.py:314-319 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:299-304 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cda100b75af6580311010f1fe39b22ee59ae8045b5f3deeaccd17201ddc736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/modular_pipelines/anima/decoders.py:115-124 | src/diffusers/modular_pipelines/qwenimage/decoders.py:419-429 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060AnimaModularPipeline\u0060 in one and \u0060QwenImageModularPipeline\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":"src/diffusers/modular_pipelines/anima/decoders.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ddd6c674e00715442e771a32393b03739e86632ec94c30a7f40200efc39e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/modular_pipelines/flux/before_denoise.py:477-483 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:431-437 \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":"src/diffusers/modular_pipelines/flux/before_denoise.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e46c0b9ed289d7655a6579ff1b001b490bd693c03bf1b1008a8109a12a4963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/modular_pipelines/flux/inputs.py:168-183 | src/diffusers/modular_pipelines/wan/before_denoise.py:342-358 | src/diffusers/modular_pipelines/z_image/before_denoise.py:354-369 \u2014 before extracting anything, compare \u0060src/diffusers/modular_pipelines/flux/inputs.py\u0060 and \u0060src/diffusers/modular_pipelines/wan/before_denoise.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e743ddac1ce38c91383dd982d8dd874b7f5f304d84d20cade51c92ddd2062fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/modular_pipelines/flux3/image_processor.py:58-64 | src/diffusers/pipelines/flux2/image_processor.py:109-115 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux3/image_processor.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf0d0f1b416dc205fca5b25d3955062c555c7dda3ab2260e89053a68819cdd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/diffusers/modular_pipelines/flux3/image_processor.py:82-104 | src/diffusers/pipelines/flux2/image_processor.py:131-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux3/image_processor.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ead49d7e5649d4a3d7e6ad646cc7494eaa3f3f23b809291975072fda4bd7a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/modular_pipelines/helios/before_denoise.py:87-93 | src/diffusers/modular_pipelines/wan/before_denoise.py:239-245 \u2014 \u0060src/diffusers/modular_pipelines/helios/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/wan/before_denoise.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 5 separate duplicated blocks between them, totalling at least 113 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":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"3032b41ff3e9c02bfea2951834b2497ff0639041b222c47502621fe2b7ccc815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:65-75 | src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py:272-282 | src/diffusers/modular_pipelines/ltx/denoise.py:66-74 | src/diffusers/modular_pipelines/ltx/denoise.py:301-309 \u2014 \u0060src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/ltx/denoise.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 4 separate duplicated blocks between them, totalling at least 34 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":"src/diffusers/modular_pipelines/hunyuan_video1_5/denoise.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"836ba790977b120cfe5a5f8086becb30d27a424313f787ad0478b332097ee909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/diffusers/modular_pipelines/ltx2/denoise.py:227-248 | src/diffusers/modular_pipelines/wan/denoise.py:125-141 | src/diffusers/modular_pipelines/z_image/denoise.py:87-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/denoise.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e1f10f0b84530df9e8f06ab094d8dbc2f8f08339191be4482bbde498be2b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:77-86 | src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py:70-79 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:73-82 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:79-88 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.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 4 separate duplicated blocks between them, totalling at least 58 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:77\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eab2b14649cc6c7e32514509669021361308ced80e22f77c1606f1723bb37e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:120-133 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:119-132 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:125-138 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae22419e9448da99233c0a39594dd32c803206b363b08d74eea4fb36a26bf77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/diffusers/modular_pipelines/minimax_h3/before_denoise.py:1031-1036 | src/diffusers/modular_pipelines/p_h3_image/before_denoise.py:807-812 | src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.py:1038-1043 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/p_h3_image/before_denoise.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 17 separate duplicated blocks between them, totalling at least 335 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. 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 \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PH3ImageModularPipeline\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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b493b7a92bcc8966fe0f6a23cf634828b342d4b63979bd3f3359de6555ff07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): src/diffusers/modular_pipelines/minimax_h3/modular_blocks_minimax_h3.py:108-112 | src/diffusers/modular_pipelines/minimax_h3/modular_blocks_minimax_h3.py:163-167 | src/diffusers/modular_pipelines/minimax_h3/modular_blocks_minimax_h3.py:217-221 | src/diffusers/modular_pipelines/minimax_h3/modular_blocks_minimax_h3.py:594-598 | src/diffusers/modular_pipelines/pika_h3_flex/modular_blocks_pika_h3_flex.py:110-114 | src/diffusers/modular_pipelines/pika_h3_flex/modular_blocks_pika_h3_flex.py:166-170 | src/diffusers/modular_pipelines/pika_h3_flex/modular_blocks_pika_h3_flex.py:221-225 | src/diffusers/modular_pipelines/pika_h3_flex/modular_blocks_pika_h3_flex.py:599-603 \u2014 there are 8 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 8 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/modular_blocks_minimax_h3.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"063b093944acae566c1879359388fd61b0e50d4a36173df9885d3b3b5447bde3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/modular_pipeline.py:117-130 | src/diffusers/modular_pipelines/pika_h3_flex/modular_pipeline.py:177-190 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/modular_pipeline.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbd28e155723fa072e4297530f59fe6ce9399374009a6c549079295f36367a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/references.py:148-168 | src/diffusers/modular_pipelines/pika_h3_flex/references.py:149-169 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/references.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/references.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 5 separate duplicated blocks between them, totalling at least 106 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/minimax_h3/references.py:148\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":"src/diffusers/modular_pipelines/minimax_h3/references.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"346d108f299d26f349210df0bf0492ae6686e818278d158782b5938e04328302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 10): src/diffusers/modular_pipelines/qwenimage/encoders.py:50-54 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:180-185 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:243-248 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:225-230 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:218-223 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:228-233 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:221-226 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:186-191 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:196-201 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:243-248 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 796 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad21e9625850226ce3782618e9d7862f7d9a226fe30b63ceb7dbb03e796c592"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage/inputs.py:79-106 | src/diffusers/modular_pipelines/stable_diffusion_3/inputs.py:83-110 \u2014 \u0060src/diffusers/modular_pipelines/qwenimage/inputs.py\u0060 and \u0060src/diffusers/modular_pipelines/stable_diffusion_3/inputs.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 3 separate duplicated blocks between them, totalling at least 87 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":"src/diffusers/modular_pipelines/qwenimage/inputs.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb353e99bd479425ee37e4794791559094cd7d86d5212c492eeb04c09f5e917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/diffusers/modular_pipelines/qwenimage21/encoders.py:39-45 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:156-162 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:158-164 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:150-156 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 786 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage21/encoders.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"97570b741211c5d47a7b66ae3c53af9129ba66f1e44affb9d510a02ef7ae0f39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/diffusers/modular_pipelines/wan/before_denoise.py:285-315 | src/diffusers/modular_pipelines/z_image/before_denoise.py:293-327 \u2014 \u0060src/diffusers/modular_pipelines/wan/before_denoise.py\u0060 and \u0060src/diffusers/modular_pipelines/z_image/before_denoise.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 9 separate duplicated blocks between them, totalling at least 194 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/z_image/before_denoise.py:293\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 \u0060image_latent_inputs\u0060 to \u0060list[str] = [\u0022image_condition_latents\u0022]\u0060 in one and \u0060list[str] = [\u0022image_latents\u0022]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/before_denoise.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f8c9afac93d9a3966cdc4ea2cda5c4e2297951769da1fd07f82e82515f0f4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:510-515 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:542-547 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 1187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c08766ec7eed0ab62312e05c0aa83f65be942f05b5cb3eb600599129a26824a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py:628-633 | src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py:759-764 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py:430-435 | src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py:410-415 | src/diffusers/pipelines/consisid/pipeline_consisid.py:532-537 | src/diffusers/pipelines/wan/pipeline_wan_video2video.py:450-455 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 1187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad72823ef3ebd8e374126b3d25f4b050787c2f095ae8240eefcfa2a999fab26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py:673-679 | src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py:253-259 | src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py:264-270 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py\u0060 and \u0060src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"08369af3295afcb577f78ddc6df34cb5bb6523831268ae56f43fce54db2a4821"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:373-381 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:537-545 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060 and \u0060src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5c31c84f609c539a8f815e9b0157c25cb6ee34dc79f5b103c2063986ac45fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py:234-239 | src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py:233-238 | src/diffusers/pipelines/wan/pipeline_wan_animate.py:283-288 | src/diffusers/pipelines/wan/pipeline_wan_i2v.py:246-251 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py\u0060 and \u0060src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 562 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b07c157311ced123f24e98b5c58c5eccbe145a3e1a766c281f9876e4719ce65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py:149-155 | src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py:138-144 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 194 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"6523f44928db7ae3acba7611740c1a1543c0e983067aa26d181d048c35ab51ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py:89-98 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:168-177 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:124-133 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:136-145 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:197-206 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:200-209 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:203-212 \u2014 \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.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 25 separate duplicated blocks between them, totalling at least 336 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":"src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d274c8a819c50d083133a46c201a381533774374b62cf3372be7c5a2f388f224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:100-108 | src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:105-113 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py\u0060 and \u0060src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 185 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba805dd61f9b7426a5efd3ec7ecd26270ac6b39cd3ac5f8c298e8a2b0d2c1a52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py:344-351 | src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py:350-357 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py\u0060 and \u0060src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92bfd6121e320bc2c2b964e9bd18ba758367f8ed25b1d23cad97fe61be12d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py:65-80 | src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py:77-92 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5_image2video.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 673 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c572374b872aa5a37b39d3507eaf571e6efe0d099d96d19918a0d952aadaea9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py:72-78 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:83-89 | src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py:93-99 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:63-69 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:105-111 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py:89-95 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:50-56 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 396 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"946220f033d06dd8bcda02fb413f181f4fa0fc1b5c3a48327aa06b108ddaa7d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py:97-104 | src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py:138-145 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py\u0060 and \u0060src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd4eb032399cdb9c7f4d0f4eda11a3f5a5d35e00b63fb0bba9e509d9aaa1b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py:84-89 | src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py:99-104 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py\u0060 and \u0060src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 553 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"f337522ea1421cc4fbf4f7efddbfd7b9cbd87b39487f9821c81ed63e5e42eda4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:99-107 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py:88-96 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:96-104 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py:88-96 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a57b5cc86a9db7a3b4a35fb0671fb694ff63da35d51ce254dd3289b01b025b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py:210-227 | src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py:207-224 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py\u0060 and \u0060src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"daefa67607b61fcbdbb1ab2c9977fffcef55d082bfba70adbce63aedefcbb8ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:108-115 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:138-145 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec905ed0975418b3572cf580dbeea673460f24c3e8720e1d9714ce6a616aa19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1526-1535 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1796-1805 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc81fa050be934773f3786b2e26ea6a938abb621d3c9ca09d8aabeeb4940ff05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): src/diffusers/pipelines/ltx/pipeline_ltx_condition.py:630-644 | src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py:830-844 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:690-704 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:631-645 | src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py:852-866 \u2014 \u0060src/diffusers/pipelines/ltx/pipeline_ltx_condition.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.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 37 separate duplicated blocks between them, totalling at least 444 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_condition.py"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10822d8176078f9353533df3a5bc9e69657f2d9b72c5a7e0911c8785bcdcaf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py:123-152 | src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py:197-226 \u2014 \u0060src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.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 13 separate duplicated blocks between them, totalling at least 239 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":"src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"29dc88cb7537d3b3a266be1f4b9c4574f1c854640549316831348d5a4fb8c432"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:242-248 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:257-263 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 1105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"596b5de0aa801436755c25f0ab9c91b9335a4b2112a42fea0f3f434f20d24ddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:539-571 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:480-512 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 1105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e09cc686ac33c775b7d4833301ec4ea85a258f7116b16a044c31fe1c464b7be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1432-1436 | src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:1323-1327 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 1105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py:1329\u0060 calls \u0060_pack_public_audio\u0060, \u0060_pack_audio_latents\u0060, \u0060_normalize_audio_latents\u0060 and \u0060src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py:1438\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b7dffea6f08d9c0d707c6af4fa29fe3066c7406dfe59e7aa9f041c3d9d15c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:159-165 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py:165-171 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py\u0060 and \u0060src/diffusers/pipelines/qwenimage/pipeline_qwenimage_layered.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 522 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"395a856124ebd9c233539834bcd1063f5a3525dc5fcf0aec0f165dedc97ba9da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/shap_e/pipeline_shap_e.py:119-127 | src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py:120-128 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/shap_e/pipeline_shap_e.py\u0060 and \u0060src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/shap_e/pipeline_shap_e.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6706e9e913aad1cd6fa06b7e316f16755368122a347ed1075841e913d388fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:63-89 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:51-77 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:54-80 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 254 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6429e2ca3c974ed227b1af12151a979d6cc577c204c409c4d631483361c888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:98-132 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:87-121 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:90-124 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 254 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"34816ef53f5af0a44eb6c91db9094f5222da4cc2266d6ddaa57002bba156bb7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py:296-311 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py:294-309 | src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.py:297-312 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py\u0060 and \u0060src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 254 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"1943ff8d856f0c03f1f9579f318869f4df6aa1e4fa866f1256d973597f538407"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 15): src/diffusers/schedulers/scheduling_consistency_models.py:321-346 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:307-332 | src/diffusers/schedulers/scheduling_edm_euler.py:384-409 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:333-358 | src/diffusers/schedulers/scheduling_euler_discrete.py:643-668 | src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:398-422 | src/diffusers/schedulers/scheduling_flow_match_heun_discrete.py:184-208 | src/diffusers/schedulers/scheduling_heun_discrete.py:201-226 | src/diffusers/schedulers/scheduling_ipndm.py:127-152 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:542-567 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:368-393 | src/diffusers/schedulers/scheduling_lcm.py:265-290 | src/diffusers/schedulers/scheduling_lms_discrete.py:358-383 | src/diffusers/schedulers/scheduling_scm.py:210-235 | src/diffusers/schedulers/scheduling_tcd.py:266-291 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_consistency_models.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_sde.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060schedule_timesteps\u0060 to \u0060torch.Tensor | None = None\u0060 in one and \u0060Optional[torch.FloatTensor] = None\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_consistency_models.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b9de7e6be21e8998ce3213ee86dc47a493a4f51da7465c41c5e583a103c945"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 20): src/diffusers/schedulers/scheduling_consistency_models.py:350-362 | src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:589-602 | src/diffusers/schedulers/scheduling_deis_multistep.py:902-915 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:1181-1194 | src/diffusers/schedulers/scheduling_dpmsolver_sde.py:336-348 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:1173-1186 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:711-724 | src/diffusers/schedulers/scheduling_edm_euler.py:413-425 | src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:362-374 | src/diffusers/schedulers/scheduling_euler_discrete.py:671-683 | src/diffusers/schedulers/scheduling_heun_discrete.py:544-556 | src/diffusers/schedulers/scheduling_ipndm.py:156-168 | src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:571-583 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:397-409 | src/diffusers/schedulers/scheduling_lcm.py:294-306 | src/diffusers/schedulers/scheduling_lms_discrete.py:387-399 | src/diffusers/schedulers/scheduling_sasolver.py:1247-1260 | src/diffusers/schedulers/scheduling_scm.py:192-204 | src/diffusers/schedulers/scheduling_tcd.py:295-307 | src/diffusers/schedulers/scheduling_unipc_multistep.py:1138-1151 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_consistency_models.py\u0060 and \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060timestep\u0060 to \u0060float | torch.Tensor\u0060 in one and \u0060int | torch.Tensor\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":"src/diffusers/schedulers/scheduling_consistency_models.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e95131339fad61fe53459bbbf3acaeba9572b04ac6ac92257431940e29582a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:237-258 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:256-277 | src/diffusers/schedulers/scheduling_edm_euler.py:250-271 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 484 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c082dbe40a86f76594f913762f81bbe1085fb41ea161b34a3a1d514823cfef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py:344-363 | src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:364-383 | src/diffusers/schedulers/scheduling_edm_euler.py:359-378 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 484 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c916e6917f751b56b274f7a740ea8dc40e6b1ec6c802452360c55682a3f83f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/diffusers/schedulers/scheduling_ddim.py:263-288 | src/diffusers/schedulers/scheduling_tcd.py:361-386 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim.py\u0060 and \u0060src/diffusers/schedulers/scheduling_tcd.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"3166862641c3447c9d753ecaf27e12c16daa22d6f92229b555bf25e7dd1e99bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/diffusers/schedulers/scheduling_ddim_cogvideox.py:104-130 | src/diffusers/schedulers/scheduling_dpm_cogvideox.py:105-131 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_ddim_cogvideox.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpm_cogvideox.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_ddim_cogvideox.py:104\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":"src/diffusers/schedulers/scheduling_ddim_cogvideox.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a3249b63423751099a351357364bc5c722b729dc4c2fd715d5f80fd95f2dea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): src/diffusers/schedulers/scheduling_deis_multistep.py:439-457 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:581-599 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:457-475 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:524-542 | src/diffusers/schedulers/scheduling_sasolver.py:437-455 | src/diffusers/schedulers/scheduling_unipc_multistep.py:618-636 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3eca54ebba6ee7d6c4eb349d71cfe1beeb83be72f11cfed81a98fc67dec7e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:200-216 | src/diffusers/schedulers/scheduling_edm_euler.py:196-212 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_edm_euler.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"6800a78a44700aa999edea11a5285858788eac28978dc6060c05fb1c2294ff28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:262-283 | src/diffusers/schedulers/scheduling_euler_discrete.py:327-348 | src/diffusers/schedulers/scheduling_lms_discrete.py:244-265 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_euler_discrete.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 282 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e439c68f0c1b5376dfb4577958ba49ff848d9fac47819969e7cb17f2f98a0de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:242-260 | src/diffusers/schedulers/scheduling_helios.py:260-278 | src/diffusers/schedulers/scheduling_helios_dmd.py:237-255 | src/diffusers/schedulers/scheduling_unipc_multistep.py:485-503 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_unipc_multistep.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"221f348de7fe8cd8808c89758d722ca559a055cb1c3b75b129198bb867855ccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:263-281 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:271-290 | src/diffusers/schedulers/scheduling_unipc_multistep.py:507-525 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_flow_match_lcm.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060t\u0060 to \u0060torch.Tensor\u0060 in one and \u0060np.ndarray | torch.Tensor\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":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d896fbea724548fcaf26bcfc6fd44a29eb178434d1e20875749adb5a0e2edbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py:425-430 | src/diffusers/schedulers/scheduling_flow_match_heun_discrete.py:211-216 | src/diffusers/schedulers/scheduling_flow_match_lcm.py:415-420 | src/diffusers/schedulers/scheduling_helios.py:304-309 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_flow_match_heun_discrete.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060timestep\u0060 to \u0060Union[float, torch.FloatTensor]\u0060 in one and \u0060float | torch.FloatTensor\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":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef76f1c96b079b1ae1690fc1e3f1701056015037f3fd56710647b181cbeb54a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:191-201 | src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:191-201 | src/diffusers/schedulers/scheduling_lms_discrete.py:196-208 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py\u0060 and \u0060src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce23e27e40f87ef4a4de48234f39cd042bee2f69d82fb3062582685e12a1134"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py:490-497 | src/diffusers/models/autoencoders/autoencoder_kl_kvae.py:593-600 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0dc4c5328f34d1f4917b720af3f02f571f71332021d336a6c0b223851602a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:139-144 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:166-171 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ffe36c4d699863950cc55fdd3b882082e3e5dd0c223316beab06dd486d7b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:670-692 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:710-730 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db908a6d1119e5364dde994f267d974442d3110545978a9b01ce5360e2f016a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:143-154 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:147-158 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:143-154 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c6a847f957b57b431bb900c461440ae124c38d788e01db01cf92e94086c908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:303-309 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:413-419 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:402-408 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 397 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"24be30b477a0d060dd7edeeb2a5f629805188c3dd8264ac406683fd22219649f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_bria.py:321-326 | src/diffusers/models/transformers/transformer_bria_fibo.py:415-420 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_bria.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 335 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"8444e8cd948aa8eaec087d8bc53d4b546557f62f3d236843ae27d663341610de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/diffusers/models/transformers/transformer_hunyuan_video.py:392-405 | src/diffusers/models/transformers/transformer_hunyuan_video15.py:276-289 | src/diffusers/models/transformers/transformer_hunyuanimage.py:327-340 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_hunyuan_video.py\u0060 and \u0060src/diffusers/models/transformers/transformer_hunyuan_video15.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 285 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67c08d01132cd09cdc3c1b6e81eb11896e514ff21af74d980c2cd5039ab6a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky6.py:324-328 | src/diffusers/models/transformers/transformer_kandinsky6_sr.py:300-304 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_kandinsky6.py\u0060 and \u0060src/diffusers/models/transformers/transformer_kandinsky6_sr.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky6.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"22113bdcc7b2c8dca7e4c1432856302cdce5e7245a80b8d9843dada82e9db098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/modular_pipelines/flux/decoders.py:84-89 | src/diffusers/modular_pipelines/qwenimage21/decoders.py:87-94 \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":"src/diffusers/modular_pipelines/flux/decoders.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bde3d337781a3f1192a730c0bcea7c59a540035ff68c91f4467163474c689a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/community/hd_painter.py:864-868 | src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py:1372-1376 | src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py:1337-1341 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"408921ce583c18ca5c032d58e3559e82a12e358d2f52f146698e4a6636f7327f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/community/imagic_stable_diffusion.py:53-58 | src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py:31-36 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"210ae534310f3c31265e35346e3ceaab333d20b7abf85e9403d6e798870c84a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/community/lpw_stable_diffusion.py:408-413 | src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py:42-47 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1ad76b671b63424533124e13b93f83c4daa72b0f3c3d4884379f4eefe73370"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 36): examples/community/pipeline_flux_differential_img2img.py:522-526 | examples/community/pipeline_flux_kontext_multiple_images.py:587-591 | examples/community/pipeline_flux_rf_inversion.py:505-509 | examples/community/pipeline_flux_semantic_guidance.py:660-664 | examples/community/pipeline_flux_with_cfg.py:482-486 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:554-558 | src/diffusers/pipelines/bria/pipeline_bria.py:413-417 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py:392-396 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:556-560 | src/diffusers/pipelines/chroma/pipeline_chroma.py:487-491 | src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py:519-523 | src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py:574-578 | src/diffusers/pipelines/flux/pipeline_flux.py:523-527 | src/diffusers/pipelines/flux/pipeline_flux_control.py:473-477 | src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py:515-519 | src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py:554-558 | src/diffusers/pipelines/flux/pipeline_flux_controlnet.py:567-571 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py:516-520 | src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py:544-548 | src/diffusers/pipelines/flux/pipeline_flux_fill.py:610-614 | src/diffusers/pipelines/flux/pipeline_flux_img2img.py:589-593 | src/diffusers/pipelines/flux/pipeline_flux_inpaint.py:610-614 | src/diffusers/pipelines/flux/pipeline_flux_kontext.py:576-580 | src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py:650-654 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:359-363 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:369-373 | src/diffusers/pipelines/ovis_image/pipeline_ovis_image.py:380-384 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py:334-338 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py:400-404 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py:382-386 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py:383-387 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.py:416-420 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_plus.py:398-402 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_img2img.py:382-386 | src/diffusers/pipelines/qwenimage/pipeline_qwenimage_inpaint.py:409-413 | src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py:497-501 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:522\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"379f57d886998b905cf2513d8bd386b2f7b7927e8565ed5b0431b74a87e848ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): examples/community/pipeline_stg_hunyuan_video.py:437-441 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py:406-410 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py:376-380 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py:496-500 | src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py:534-538 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_hunyuan_video.py\u0060 and \u0060src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 451 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_hunyuan_video.py:437\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_hunyuan_video.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"91eba41dd66b08779690b779059dbd29dab48bbf3f887cf2ff7b51b04675543d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:216-223 | scripts/convert_svd_to_diffusers.py:176-183 | scripts/convert_unidiffuser_to_diffusers.py:160-167 | scripts/convert_zero123_to_diffusers.py:188-195 | src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:214-221 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_svd_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 454 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a440adda1f2b519a91665af6bc7ea6d61e36dc043ebf37dba472e72482dd81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/diffusers/loaders/lora_conversion_utils.py:2115-2119 | src/diffusers/loaders/lora_conversion_utils.py:2123-2127 | src/diffusers/loaders/lora_conversion_utils.py:2131-2135 | src/diffusers/loaders/lora_conversion_utils.py:2139-2143 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":2115}}}],"partialFingerprints":{"codehealthFindingId/v1":"705ad2b382d430168776e2df48a9e918b001d26f353175f5b5929e33298cfa26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/loaders/lora_pipeline.py:5055-5060 | src/diffusers/loaders/lora_pipeline.py:5444-5449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":5055}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4660d2f44ed34b731aa46b3f02383e4615122a1109880abf172ca6a0f0362f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py:57-65 | src/diffusers/models/autoencoders/autoencoder_oobleck.py:45-53 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_cosmos3_audio.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7583764500be34089fd2f0776eeeb7b4e36e14c46906324dc1ce7799dca0f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 13): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1236-1240 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:853-857 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:771-775 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:807-811 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1316-1320 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1331-1335 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:919-923 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:940-944 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:893-897 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1365-1369 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1249-1253 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1193-1197 | src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:831-835 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 13 call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce71dc483a5da8f8db8f0265590b10b5eb4160df5e8c9fec6d283fea9561933c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 13): src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py:1244-1248 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:861-865 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:779-783 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:815-819 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1324-1328 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1339-1343 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:927-931 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:948-952 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py:901-905 | src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py:1374-1378 | src/diffusers/models/autoencoders/autoencoder_kl_wan.py:1257-1261 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1201-1205 | src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:840-844 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 13 call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"579aceaac23efa5ab0344e346ab911df1cef94502eb499189a26bbd85cf01e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:470-475 | src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py:509-514 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"8beee8c4c0a90a5b7d81492355ee10fefd2871e4d1744d0a20c2d6220eef8a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:868-873 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:786-791 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:822-827 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1331-1336 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1346-1351 | src/diffusers/models/autoencoders/ltx2_diffusion_decoder.py:848-853 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"144f59dbe826207ebebf70fc2b7b8a65f77b58f76ed18ecd00c0a8de2342e9fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py:919-923 | src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:1383-1387 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:1399-1403 | src/diffusers/models/autoencoders/autoencoder_kl_magvit.py:979-983 | src/diffusers/models/autoencoders/autoencoder_kl_mochi.py:1005-1009 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f77f4b545ef235cadce37f39f36d20edf9e5172f7b464434f32740224d751c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:176-180 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:213-217 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:176\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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"24542140493f87ae29b1ceece0fee7ec8294d9a235c34e0753bf7c76d1ca1cd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py:224-228 | src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py:266-270 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf712cc6d868dc4354b1a32d41a171dfa368960335d82ea64b867c28a411706"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:74-78 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:105-109 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:74\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":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6793e7a97849f5240d4309105355483374fa15664b930f11bef59852637846"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:156-161 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:198-203 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaccc014d1471f2370f320012bd798b51760f2a8369f254281d07b85a9a70daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_ltx.py:206-211 | src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py:248-253 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb851d4adc6b00083ee8e62352a4026a9cc8b01ee5ab94072cb59fc7d67bd957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:75-80 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:77-82 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:73-78 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a616070f53002087d454997b291b5febd4a015552f64a5253c91e2dfc23b1c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:287-291 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:294-298 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:290-294 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"231d48cb33c018793644c9a645b10840e3f08f2104de5c3f3d3e7f405ac2428d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py:392-397 | src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py:402-407 | src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.py:398-403 \u2014 before extracting anything, compare \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py\u0060 and \u0060src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2143554ce7c10f778f366e368ec4f751517ca7cfe9564586502987bdb461d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py:186-191 | src/diffusers/models/autoencoders/mmaudio_vocoder.py:95-100 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_audio.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0c44b20b496cbdf4ebc0f1bf18c4e8d7c48c38ca2a7b07622a7a09ab049f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:57-63 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:694-700 \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":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a601a58917eb36c79d3505aa99ac34f8783ba5bbccb089b95f22f8c8e8b7b385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py:50-54 | src/diffusers/models/transformers/transformer_rfd4_proteina.py:687-691 \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":"src/diffusers/models/autoencoders/autoencoder_rfd4_proteina.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"035141e4859ab9dedf560c5919a869b4a3cdcdefff142829f2368db3b0366e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_same.py:190-197 | src/diffusers/models/transformers/transformer_stable_audio3.py:162-169 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/autoencoders/autoencoder_same.py:190\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/autoencoders/autoencoder_same.py:188\u0060 calls \u0060rope\u0060 and \u0060src/diffusers/models/transformers/transformer_stable_audio3.py:160\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":"src/diffusers/models/autoencoders/autoencoder_same.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cd3134585c6ef398b0482cba0afc64755c9992b37d8e9e140756969ec659d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_vidtok.py:891-895 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:919-923 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"37dcd831cab6b9e9d7602c0a57d77aa7bac0f275af703100b58c914c710a08a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/autoencoder_vidtok.py:1376-1380 | src/diffusers/models/autoencoders/autoencoder_vidtok.py:1395-1399 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"409937c2e3f3144e53b343ac5843a24c54d8fc9376ff28ded9b3106ac642dcef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/autoencoders/vae.py:529-533 | src/diffusers/models/autoencoders/vae.py:548-552 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/vae.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"5681cbc527724396ac058cb31054802a60b92af6dbf952b01df90884bc2f881e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/models/controlnets/controlnet_z_image.py:534-538 | src/diffusers/models/transformers/transformer_bria_fibo2.py:485-489 | src/diffusers/models/transformers/transformer_z_image.py:538-542 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"18516d276ef8084a3adba233dd44669479301ce226aca0132141909b6858d1f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/controlnets/controlnet_z_image.py:542-548 | src/diffusers/models/transformers/transformer_z_image.py:545-551 \u2014 before extracting anything, compare \u0060src/diffusers/models/controlnets/controlnet_z_image.py\u0060 and \u0060src/diffusers/models/transformers/transformer_z_image.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 289 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"0907ceb4ddc364877ccadcb0dfe547c6a00eb7db674804bd5c3b5236faaa638d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/embeddings.py:672-677 | src/diffusers/models/embeddings.py:752-757 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edd9be4d4b7a0a221b8a0febccae7bd5eba086d79e81da554c7c6881fb209df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/embeddings.py:1118-1122 | src/diffusers/models/transformers/stable_audio_transformer.py:57-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f3648382bc97c70dccfad5423bc593f080ceaf2d0d9464c561c736d0b08a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/transformers/dit_transformer_2d.py:142-146 | src/diffusers/models/transformers/transformer_2d.py:297-301 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/dit_transformer_2d.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b332e16cac298d2071a0f7a5cbc46fd64b162e3c101ac1f96e7229b3293b5b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/transformers/transformer_cogview4.py:70-74 | src/diffusers/models/transformers/transformer_glm_image.py:99-103 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_cogview4.py\u0060 and \u0060src/diffusers/models/transformers/transformer_glm_image.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1590f16b4a2191f34d46f694d0a105c426e4f44a053c5decd6137b2483e21fa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/transformers/transformer_joyimage.py:50-56 | src/diffusers/models/transformers/transformer_joyimage_edit_plus.py:47-53 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_joyimage.py\u0060 and \u0060src/diffusers/models/transformers/transformer_joyimage_edit_plus.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b5da1f89eb078c73352ef4c265abb6b3553216a404ef8ab16c690ad0ab1b41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/transformers/transformer_joyimage.py:483-487 | src/diffusers/models/transformers/transformer_joyimage.py:496-500 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/transformers/transformer_joyimage.py:483\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/models/transformers/transformer_joyimage.py:482\u0060 calls \u0060reshape\u0060 and \u0060src/diffusers/models/transformers/transformer_joyimage.py:495\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc5108755bb37d76f635286903eff10600de4b5c14b24d05df65b5536d3c295"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/transformers/transformer_kandinsky.py:223-227 | src/diffusers/models/transformers/transformer_kandinsky.py:256-260 \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":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"527dc358e1e53ff55ae8dce4c451eb431460e8e7f097ee35f67c692fd77083f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/diffusers/models/transformers/transformer_ltx.py:591-595 | src/diffusers/models/transformers/transformer_ltx2.py:39-43 | src/diffusers/models/transformers/transformer_sana_wm_refiner.py:37-41 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_ltx.py\u0060 and \u0060src/diffusers/models/transformers/transformer_ltx2.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"739bcee4d26c6b76fcb0e3cd861df4b26fb9a52f4d9a8ddd64f20aba399a0498"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3.py:96-101 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:75-80 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84c7c5754c4099c5466d64a30232aeed2121df2d064d6623808aec8bcd12ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/transformers/transformer_minimax_h3.py:153-158 | src/diffusers/models/transformers/transformer_minimax_h3_image.py:134-139 \u2014 before extracting anything, compare \u0060src/diffusers/models/transformers/transformer_minimax_h3.py\u0060 and \u0060src/diffusers/models/transformers/transformer_minimax_h3_image.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c36755f7cb435631ffd64b8a5fa4535dda932a491d7d4f93f8dd6fba855912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/unets/unet_kandinsky3.py:270-274 | src/diffusers/models/unets/unet_kandinsky3.py:341-345 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_kandinsky3.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c9c7a851a05b6c9ce90e1c48f9f91767ba5a5b1ed6b66ba914b8c46178b5d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/models/unets/unet_stable_cascade.py:72-77 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_diffnext.py:249-254 \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":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a9b6503ea3cecb0f0563ba539d3a2748ae16e6e24a3dc61535cd14cf812aa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/models/unets/unet_stable_cascade.py:103-109 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_common.py:70-76 \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":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cdd13e411f97867d9b2a0fc04da0c044e3a788ab059e69482487c068657bc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/models/unets/unet_stable_cascade.py:261-265 | src/diffusers/models/unets/unet_stable_cascade.py:268-272 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/models/unets/unet_stable_cascade.py:261\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_stable_cascade.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf65c4aee6cce52bba780875fcb97eab52a2baeaf54a872cc90d047f145b215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/modular_pipelines/cosmos/before_encoder.py:153-159 | src/diffusers/modular_pipelines/cosmos/encoders.py:975-981 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/before_encoder.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2072f885e795a97983c63283a252677ce4d50c9bc0a713b3b50f4a3d2f45a2a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/modular_pipelines/ernie_image/before_denoise.py:40-45 | src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py:199-204 \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":"src/diffusers/modular_pipelines/ernie_image/before_denoise.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc11939c610e6f9c58fe7c5ff6f4ceaaf8f9766df1f082c936b450e4668e81e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): src/diffusers/modular_pipelines/flux/encoders.py:112-116 | src/diffusers/modular_pipelines/flux/inputs.py:337-341 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:192-196 | src/diffusers/modular_pipelines/qwenimage/before_denoise.py:313-317 | src/diffusers/modular_pipelines/qwenimage/encoders.py:1142-1146 | src/diffusers/modular_pipelines/qwenimage/encoders.py:1326-1330 | src/diffusers/modular_pipelines/qwenimage/encoders.py:1692-1696 \u2014 there are 7 copies across 4 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 7 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/modular_pipelines/flux/encoders.py:118\u0060 calls \u0060no_grad\u0060 and \u0060src/diffusers/modular_pipelines/flux/inputs.py:343\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa8f5aac37393fcbc2a91d4e3bcf6fc48de3bd724bc24008140274f50b8a0b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): src/diffusers/modular_pipelines/flux2/decoders.py:159-163 | src/diffusers/modular_pipelines/flux3/decoders.py:143-147 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:423-427 | src/diffusers/pipelines/flux2/pipeline_flux2.py:466-470 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:381-385 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:442-446 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:385-389 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/flux2/decoders.py:159\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/diffusers/modular_pipelines/flux2/decoders.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ac89f29d2e0976cfebb9b31d9dfefc7f1269fb216ff6bcaa272467b2d70dca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): src/diffusers/modular_pipelines/flux2/encoders.py:574-578 | src/diffusers/modular_pipelines/flux3/encoders.py:140-144 | src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py:414-418 | src/diffusers/pipelines/flux2/pipeline_flux2.py:458-462 | src/diffusers/pipelines/flux2/pipeline_flux2_klein.py:372-376 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py:433-437 | src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py:376-380 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/modular_pipelines/flux2/encoders.py:574\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":"src/diffusers/modular_pipelines/flux2/encoders.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f24b981b19a8983719a121edfb063a6c66cbddd7a03a44d749af11c31384c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/modular_pipelines/ideogram4/encoders.py:298-303 | src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py:354-359 \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":"src/diffusers/modular_pipelines/ideogram4/encoders.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b150282401e1728d3a77706d57bd58a1c1675c49eebeee56fc95c36120ebb7c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/modular_pipelines/ltx2/before_denoise.py:1069-1073 | src/diffusers/modular_pipelines/ltx2/before_denoise.py:1376-1380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/diffusers/modular_pipelines/ltx2/before_denoise.py:1375\u0060 calls \u0060zeros\u0060 and \u0060src/diffusers/modular_pipelines/ltx2/before_denoise.py:1067\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"0798f4303e7b4ccbf4e3d7235c2cb6b729f5d3e6404acd2b390f2e60541a3fcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/diffusers/modular_pipelines/minimax_h3/decoders.py:244-251 | src/diffusers/modular_pipelines/pika_h3_flex/decoders.py:256-263 \u2014 \u0060src/diffusers/modular_pipelines/minimax_h3/decoders.py\u0060 and \u0060src/diffusers/modular_pipelines/pika_h3_flex/decoders.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 4 separate duplicated blocks between them, totalling at least 57 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060components\u0060 to \u0060MiniMaxH3ModularPipeline\u0060 in one and \u0060PikaH3FlexModularPipeline\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, \u0060src/diffusers/modular_pipelines/pika_h3_flex/decoders.py:265\u0060 calls \u0060round\u0060 and \u0060src/diffusers/modular_pipelines/minimax_h3/decoders.py:252\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":"src/diffusers/modular_pipelines/minimax_h3/decoders.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48f71f58ec29614633bed46a209cd304c645834fa2631392fcf61388c475b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/modular_pipelines/modular_pipeline_utils.py:692-696 | src/diffusers/modular_pipelines/modular_pipeline_utils.py:800-804 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2b72a72c9f13f24bf3c4003b7b6c60c00dcb327af498e38421b4d73b5f03fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage/before_denoise.py:1340-1345 | src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py:1673-1678 \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":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21a3099d3eabb1c6bbe3238edadb2b873df01e40a919900ebe9a4f676ca7ac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/diffusers/modular_pipelines/qwenimage21/encoders.py:127-137 | src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py:327-337 \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":"src/diffusers/modular_pipelines/qwenimage21/encoders.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b32ef5519521725b575bd13985b933c5f6d2574ae5968e4d2f9c47022fc09e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/modular_pipelines/wan/encoders.py:794-799 | src/diffusers/pipelines/wan/pipeline_wan_vace.py:575-580 \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":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"514e466f62165b63e057724083d1e45f7be382ee9520f9d4953a438035552226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/modular_pipelines/wan_animate_2/video_processor.py:119-125 | src/diffusers/pipelines/wan/image_processor.py:175-181 \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":"src/diffusers/modular_pipelines/wan_animate_2/video_processor.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e2538d430f12f2919e4666e8ee4dbe53043ad61ffe4b9455ac79db506e3cdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:209-213 | src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py:226-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"722be68ee6e42168a1af31aa13d40fd0dfc7c7c3a758f5cd6161032ccae16d87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py:284-297 | src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py:308-321 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py\u0060 and \u0060src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"d725ed880fe66b3490fa3904a042aadaebf80ac6b77fe889f18e05d0027aa02a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py:518-523 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:560-565 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a881c8d02ae6ca4285140b3865d1ee371c7896abe8df1f721728b54268a4f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:648-653 | src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py:696-701 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"675097486b0b3231018b3e00114527dce0974d94b9bea4add4ade2f6c69c8137"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py:37-46 | src/diffusers/pipelines/stable_diffusion/safety_checker.py:39-48 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/safety_checker.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/diffusers/pipelines/stable_diffusion/safety_checker.py:50\u0060 calls \u0060is_transformers_version\u0060, \u0060post_init\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py:48\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":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2629ad5b3838b27bca91880b17ffa479663e99eb5bc7e501e78d0aa02f657f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_diffnext.py:147-155 | src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_prior.py:80-88 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/wuerstchen/modeling_wuerstchen_diffnext.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae24149e8521ccfc82ae5355f4b2072cf2a5df1ffb7339b7d029ac1a405413f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diffusers/pipelines/helios/pipeline_helios.py:367-378 | src/diffusers/pipelines/helios/pipeline_helios_pyramid.py:389-400 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/helios/pipeline_helios.py\u0060 and \u0060src/diffusers/pipelines/helios/pipeline_helios_pyramid.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 756 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d29c7de31551acf1124963188e9d4d4fe8ef9f4cd375206d51388e6cdf43fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:77-82 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:107-112 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"86428bfb0c41eb19551f407bea8992d71bd2ea64f95c7b366bb120c24d0bffc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1432-1436 | src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:1700-1704 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py\u0060 and \u0060src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 825 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"38722cb081b67f8681b0aed6ee06adc68fbab561472d6527e62ef9ed7417b807"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py:307-313 | src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py:312-318 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py\u0060 and \u0060src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59bedfcc45bd3fbd5ec933b23fd4d08cfdc152fc18332e2bc2b8aed290fd422"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/marigold/marigold_image_processing.py:81-86 | src/diffusers/pipelines/marigold/marigold_image_processing.py:176-181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/marigold_image_processing.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e0ad4bb8ae86cbebbe761f7f9c8ea0e898d977e39068479390a47cbf005456"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py:298-302 | src/diffusers/pipelines/sana_wm/refiner.py:354-358 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana_wm/pipeline_sana_wm.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07938e9d6806888e9c6e06ff2ba1d6b6bb2f26e490a0128a42a2697ede3fc9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py:893-897 | src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py:1177-1181 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py\u0060 and \u0060src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 323 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee5db7942dab68da30cb86e6e8e1b422bbce97ff59b5ef5181253cd3cff44e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py:560-565 | src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py:574-579 \u2014 before extracting anything, compare \u0060src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py\u0060 and \u0060src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 695 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0dbf8cd473a5eecc7e771e25489fb7da901da44b88398607f715548fa4e0ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/quantizers/gguf/utils.py:452-457 | src/diffusers/quantizers/gguf/utils.py:472-477 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/gguf/utils.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"1141dace88b36b80216ee2a4153b6e9c601d5b760f51c9234f5535237d423a48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src/diffusers/schedulers/scheduling_deis_multistep.py:330-334 | src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:465-469 | src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:341-345 | src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:398-402 | src/diffusers/schedulers/scheduling_sasolver.py:328-332 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060 and \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:465\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a77d561ad0d75ce7a6aec5adef15392906870d1240bbd720520ca1de0e5b4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/schedulers/scheduling_dpmsolver_sde.py:467-471 | src/diffusers/schedulers/scheduling_heun_discrete.py:362-366 \u2014 before extracting anything, compare \u0060src/diffusers/schedulers/scheduling_dpmsolver_sde.py\u0060 and \u0060src/diffusers/schedulers/scheduling_heun_discrete.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_dpmsolver_sde.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"158eb16bf87158ac52eeff2740dcf4c1c2aa4a20ffffe29a96194f62a4ceecd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py:273-278 | src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py:290-295 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cd8b238af356fc976a9d7dbeb0a6a7bb63cd46ff84f597415045120b460c01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/diffusers/schedulers/scheduling_helios.py:529-533 | src/diffusers/schedulers/scheduling_helios.py:673-677 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b66cd1da4731150491eb6f8e0e03b15ca7ee03a0479643fd66d844c481728d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/schedulers/scheduling_ipndm.py:211-216 | src/diffusers/schedulers/scheduling_pndm.py:379-384 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/diffusers/schedulers/scheduling_ipndm.py:211\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ipndm.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3da50cb8a11380abfa3ada3e59322fbdb058d72b756dc7c598f7369ea7f006b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/diffusers/schedulers/scheduling_unipc_multistep.py:899-904 | src/diffusers/schedulers/scheduling_unipc_multistep.py:1034-1039 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_unipc_multistep.py"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"263439464517d50ffa74f09dc8817ba1ba6a6f40a71346abb889b2cec1870197"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): utils/check_repo.py:522-526 | utils/check_repo.py:527-531 \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":"utils/check_repo.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a934ec4cc075be5223db806526b3ebd9d72f55315fe5ed3018f71c6d09a16a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (36 members, 111 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_krea2.py:317-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 \u2014 These 36 members are variants of one another: a block of 111 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 36 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 36 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8387b377ec104fa2a2d1d16700357bde5af1773ed2d23fc70e6f2878328593c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (36 members, 110 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/gligen/train_gligen_text.py:99-279 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 \u2014 These 36 members are variants of one another: a block of 110 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 36 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 36 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48c44c748fab83eab2525880908e08d9cb76d71f4b9cec11ee08863f0aa5acc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (35 members, 113 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 35 members are variants of one another: a block of 113 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 35 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 35 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f765f3724e67dd28fc2ba036f552fa14d66a9ad9d447437c15ae5896c48527"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (32 members, 96 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 32 members are variants of one another: a block of 96 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 32 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 32 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"c236570c4e33d7f2fd59bc45c6f6e61641fc3bf0754e16bab18f770780d2782d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (31 members, 128 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_krea2.py:317-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 31 members are variants of one another: a block of 128 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 31 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 31 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f0c27e7cb15fb2cedcc55d5a2abd3fef990dad0b390442253c5566cdb12a66"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (31 members, 124 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_krea2.py:317-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 31 members are variants of one another: a block of 124 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 31 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 31 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f1ff7221cfe2ba581cf7068488450e4676e88ec3eca734e4d3ff811758e4d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (31 members, 122 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_krea2.py:317-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 \u2014 These 31 members are variants of one another: a block of 122 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 31 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 31 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"385d128e66d9a49c363dfe629330cf699ba4f04c514baf81cec49dbc27fd4852"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (31 members, 102 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:70-429 | examples/cogvideo/train_cogvideox_lora.py:61-413 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 \u2014 These 31 members are variants of one another: a block of 102 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 31 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 31 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebb0224ef8ae380a52970ae2d067fe0612f6b158de04abc88d3c08814bd069a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (30 members, 109 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 \u2014 These 30 members are variants of one another: a block of 109 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 30 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 30 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6c5ec5a391d672a3a7400cd78920a0953c409e59241898f2807e0224827af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (30 members, 100 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 30 members are variants of one another: a block of 100 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 30 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 30 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ab398a91f1e59c9e5ea0b73c22357308d0d6120891526a0130d5e912fba9c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (29 members, 136 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_krea2.py:317-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 29 members are variants of one another: a block of 136 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 29 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 29 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80e17c78cffeb0be5a0dc375a7db24f3b89f5e76653c00311d5a0d116cf0448"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (28 members, 120 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_krea2.py:317-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 \u2014 These 28 members are variants of one another: a block of 120 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 28 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 28 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"4369565f76302fba65b40db1558314e51ef9db1bb4088014d2366c9e3987bff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (28 members, 85 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:190-439 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:83-331 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:193-440 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:197-442 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 28 members are variants of one another: a block of 85 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 28 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 28 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"287e247c3af5d966e38b29a54c4d1cd8c11206630032ccf4967790325971c038"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (27 members, 117 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:70-429 | examples/cogvideo/train_cogvideox_lora.py:61-413 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_krea2.py:317-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 \u2014 These 27 members are variants of one another: a block of 117 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 27 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 27 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"8100a213ce987e122e65aebe0c00add1c9bf998adf5623958392859b3ad39f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (27 members, 107 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:70-429 | examples/cogvideo/train_cogvideox_lora.py:61-413 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/realfill/train_realfill.py:169-423 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 \u2014 These 27 members are variants of one another: a block of 107 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 27 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 27 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"124a2d94246edac1092a2bc09e164ac258e32dcc24ab99e425f7c6af675bafb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (27 members, 89 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 27 members are variants of one another: a block of 89 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 27 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 27 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc915edd35971a984bb9d46b80514f2a80b0619e918bca3a3422030dda9be33"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (26 members, 126 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_krea2.py:317-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 26 members are variants of one another: a block of 126 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 26 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 26 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32976820fbeb745fb4462a37e5d9c5e740a06940138ab58592e97b0e71e96cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (26 members, 116 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_krea2.py:317-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/realfill/train_realfill.py:169-423 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 \u2014 These 26 members are variants of one another: a block of 116 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 26 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 26 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"223eed41fc66f29f39246401c9c327b66d2f3c7a1373e1e840aa17d6992d450f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (25 members, 118 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_krea2.py:317-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 \u2014 These 25 members are variants of one another: a block of 118 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 25 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 25 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"51dad825e915312c9df6fd8fa74f7d96c1d8fef5e21481e7c7d13369fad95923"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (25 members, 111 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 25 members are variants of one another: a block of 111 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 25 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 25 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c177f5bd16b2ebcdb57d688e2fd7465ba7a293f28dd37f08e3b3cef549e121e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (25 members, 111 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_krea2.py:317-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 \u2014 These 25 members are variants of one another: a block of 111 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 25 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 25 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a57d411ded9d23204ffffe07505d6bed0fc6348f93001eb7276999fb5fe6ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (24 members, 89 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 24 members are variants of one another: a block of 89 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 24 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 24 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fee433cd33a1148ed51baaf52c6214476fb437002004d96a837f9a0cc8fb2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (23 members, 130 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_krea2.py:317-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 \u2014 These 23 members are variants of one another: a block of 130 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 23 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 23 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea3451415e1771ced183485fab8f83cdfff1c1fd80f95e12b0d696c93669334"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (23 members, 114 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 \u2014 These 23 members are variants of one another: a block of 114 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 23 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 23 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7ea131e7ddf9aada1916d32881c8b453cc8bfe339b8abc2e48121a37639da8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (23 members, 99 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 23 members are variants of one another: a block of 99 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 23 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 23 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"585bb6be2349d2a280d80f7343aa4199c6554de9a1ad45ca0ab6b1443426adf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (23 members, 36 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1043-1203 | examples/dreambooth/train_dreambooth_flux.py:694-817 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:856-973 | examples/dreambooth/train_dreambooth_lora_flux.py:743-863 | examples/dreambooth/train_dreambooth_lora_flux2.py:798-915 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:758-909 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:803-920 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:754-905 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:903-1020 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:872-1024 | examples/dreambooth/train_dreambooth_lora_hidream.py:750-870 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:877-993 | examples/dreambooth/train_dreambooth_lora_krea2.py:865-982 | examples/dreambooth/train_dreambooth_lora_lumina2.py:669-793 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:757-874 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:790-908 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:825-965 | examples/dreambooth/train_dreambooth_lora_sana.py:684-804 | examples/dreambooth/train_dreambooth_lora_sd3.py:737-857 | examples/dreambooth/train_dreambooth_lora_sdxl.py:733-864 | examples/dreambooth/train_dreambooth_lora_z_image.py:787-904 | examples/dreambooth/train_dreambooth_sd3.py:669-789 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:737-863 \u2014 These 23 members are variants of one another: a block of 36 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 23 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 23 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89f38d34b29114c943085e51922fd7c287ba4122e08afceb1e276a8b70aa8ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (21 members, 86 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 21 members are variants of one another: a block of 86 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 21 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 21 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0e7e912984247d0ddbd7ff5402b19f449d2cceed1d6f2f29b0b320b80f4940"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (21 members, 77 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 21 members are variants of one another: a block of 77 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 21 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 21 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa534ffbded265ba5f80c98ec12588054b265610d265b617a3ede0b8c5686337"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (20 members, 138 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 \u2014 These 20 members are variants of one another: a block of 138 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbe1ea9639512825012476df6b3d70b388a7b643557107ad5f9b9e99f071827"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (20 members, 105 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/realfill/train_realfill.py:169-423 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 \u2014 These 20 members are variants of one another: a block of 105 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"5665abb65d173450d4330d3efb64dabb378dd668f8b9929e1a51cd8dc6d29001"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (20 members, 91 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/gligen/train_gligen_text.py:99-279 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 20 members are variants of one another: a block of 91 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa18dae221b243b95a5666a60b154159a5f24d1febd4f641a34cd996286cf13a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (20 members, 89 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/realfill/train_realfill.py:169-423 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 20 members are variants of one another: a block of 89 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a92539dc0517fb07837b8f927d375aa4f5eeba8547bea0b92e2a523a0658acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (19 members, 124 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:54-247 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 \u2014 These 19 members are variants of one another: a block of 124 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"2910e2ab70315d3a09b87ac7da56da4fbf71e0d34c027f27157ab3f7e979078f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (19 members, 113 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 19 members are variants of one another: a block of 113 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"2960ca037ce36ff404b4c674305b1f14d03ccf01b44c604f59fcc7743f9fd342"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (19 members, 99 shared lines): examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 19 members are variants of one another: a block of 99 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6b452e30457c2086531d16868295fdc21996d81595e4d8fd6e3b9d9765f93e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (19 members, 95 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 19 members are variants of one another: a block of 95 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdc060b68be948a88f6b26831ec69ced221c6f4c1df8206b97509fd3a58c7d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (19 members, 86 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 19 members are variants of one another: a block of 86 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02005ca41efbf0b6a48cfca934d0c4970b6993d7faf74ec6423a2258eba74e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (18 members, 120 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 18 members are variants of one another: a block of 120 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 18 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 18 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ba007db7b8312cd73458b8924446c0266ff941083abd8aa6f9cdeac05a8a13"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (18 members, 120 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 18 members are variants of one another: a block of 120 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 18 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 18 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa2a7b3c52101b55c4309325b3210614b68c98a81d5af616ce5b50459e168e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (18 members, 104 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 18 members are variants of one another: a block of 104 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 18 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 18 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"263f1b090a07d759d5643fc57af87364a5c92aa48508c3e10d80a0a3252f89ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (18 members, 85 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 18 members are variants of one another: a block of 85 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 18 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 18 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7d96be2390979e9fd10b5d0763fa1837866540d111f24e94d59448770b1d42"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (17 members, 237 shared lines): examples/dreambooth/train_dreambooth_flux.py:1029-1865 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1128-2107 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux2.py:1070-2107 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1075-2077 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1175-2205 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 | examples/dreambooth/train_dreambooth_lora_hidream.py:937-1793 | examples/dreambooth/train_dreambooth_lora_krea2.py:1154-2074 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1094-1957 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1128-2028 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1219-2124 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_lora_z_image.py:1060-1963 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 \u2014 These 17 members are variants of one another: a block of 237 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00b30c90128903197af24cecdf71f3071fc40d57c4ca5efc66b15d55a06e5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (17 members, 216 shared lines): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1128-2107 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1063-1920 | examples/dreambooth/train_dreambooth_lora_flux2.py:1070-2107 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1068-1994 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1075-2077 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1064-1944 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1175-2205 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1166-2075 | examples/dreambooth/train_dreambooth_lora_hidream.py:937-1793 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1140-2202 | examples/dreambooth/train_dreambooth_lora_krea2.py:1154-2074 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1094-1957 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1128-2028 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1219-2124 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_lora_z_image.py:1060-1963 \u2014 These 17 members are variants of one another: a block of 216 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"df844fe3aa90acfaac550ec04e46767fa65df3a12f338bf575ecc4233192ab42"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (17 members, 214 shared lines): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1128-2107 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1063-1920 | examples/dreambooth/train_dreambooth_lora_flux2.py:1070-2107 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1068-1994 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1075-2077 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1064-1944 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1175-2205 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1166-2075 | examples/dreambooth/train_dreambooth_lora_hidream.py:937-1793 | examples/dreambooth/train_dreambooth_lora_krea2.py:1154-2074 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1094-1957 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1128-2028 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1219-2124 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_lora_z_image.py:1060-1963 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:588-1196 \u2014 These 17 members are variants of one another: a block of 214 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"833064d50a213284f5b1dc01da9a37b86a5e46ffc17c29960c7041806a78e090"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (17 members, 112 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 17 members are variants of one another: a block of 112 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76c8a82eca3403c03f62d325ddaa5f67f40edf96a0bf50e72cb617c5b01258f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (17 members, 110 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/cogview4-control/train_control_cogview4.py:229-600 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 17 members are variants of one another: a block of 110 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7d6c067accd5f9b5166cc17dfe8491be9fbce588304e07910d2104915767d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (17 members, 109 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 \u2014 These 17 members are variants of one another: a block of 109 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e1145790c230899ecd6de5c0afda3b0cf4726ebc6355e53da868ab60d4185f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 129 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 \u2014 These 16 members are variants of one another: a block of 129 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6a8fe7b10949a62f941714342d753676dade9dc1444859c857fd3e777e393e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 110 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/controlnet/train_controlnet.py:252-599 | examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 16 members are variants of one another: a block of 110 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b51927afa21f92ba7bd80a93e82547ff1747fabaf4a9c3c5e1538343b488c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 109 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-779 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-856 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-763 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 16 members are variants of one another: a block of 109 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea16154c96c188ee21d1e4dded26015766e541e6bca89f8063d1a94e2de4fb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 88 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 16 members are variants of one another: a block of 88 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"653b7304a116442d16081ebd069f1f6fad61d51acd3a5be946d1e68a34c0c217"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 85 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/flux-control/train_control_flux.py:224-592 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:190-439 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 16 members are variants of one another: a block of 85 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"874bb57687b08442f933ef9817d6d673998fc3fcd57be4988809781d0437a91f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 84 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:190-439 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:83-331 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:193-440 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:197-442 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 16 members are variants of one another: a block of 84 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6fc437493c0b1e1b8d04ba0e6acefa3d33f8c87a7a7e3a65b140a735991397"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 122 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 15 members are variants of one another: a block of 122 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"121b60526abafcf9cad7c20c6a52094b4366fcc49d14e94535625f158f739404"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 103 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/cogview4-control/train_control_cogview4.py:229-600 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 15 members are variants of one another: a block of 103 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e802fcfb79cd7374a5c7965a6a5641a2168a6a38b2af2229314d6acd97909ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 95 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 15 members are variants of one another: a block of 95 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3a2671c81f8918815b2616634f00d6cb282f590a293b0243a27fe844e29c5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 86 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 15 members are variants of one another: a block of 86 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e12991363be840eacfd02dd71ae71a277bf64487188bbbf08843bf5d4ce104"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 80 shared lines): examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 15 members are variants of one another: a block of 80 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c07b7d08abf586fd4a174c875ff3dac61c917042a6189ccded298f955912d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 79 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 15 members are variants of one another: a block of 79 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"572626ac449f33c28ec3efec286ab1d8ccb8e3ccccadb23da6d822ce08266e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (14 members, 90 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:83-331 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:193-440 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:197-442 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 \u2014 These 14 members are variants of one another: a block of 90 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c77ab03a4e9681cbd4975b891b399f2d48b1f22c4a399167bd8c1e28dd32335"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (14 members, 83 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 14 members are variants of one another: a block of 83 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"367697c0dfdb03ec9752e1c9430b145db08a46ac1e7ebc4a8aca762a2bace143"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 233 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-2471 | examples/dreambooth/train_dreambooth_flux.py:1029-1865 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 | examples/dreambooth/train_dreambooth_lora_hidream.py:937-1793 | examples/dreambooth/train_dreambooth_lora_krea2.py:1154-2074 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1094-1957 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1128-2028 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1219-2124 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 \u2014 These 13 members are variants of one another: a block of 233 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e691111bc5c96f21f6c30189286a7b3ad90fa4596ed339041b207a4a0a80cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 123 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 \u2014 These 13 members are variants of one another: a block of 123 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7ab722224f5811e265417717ced1167b42120cc2e81f5b224cefe8193b3bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 122 shared lines): examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 13 members are variants of one another: a block of 122 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sdxl.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc33b45f158329a646943b07e95f57564b2de45ef5ddd97c28ab13d5ad68d16d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 112 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 13 members are variants of one another: a block of 112 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd38d9f2a8abe3ef3d8e976327cc03ad6fd8fe05c7723ddc7b78759fc920e6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 105 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 \u2014 These 13 members are variants of one another: a block of 105 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d985d2f0cc3008c0e098c0bfcc77a11a5a6197435cb5acfcee79edf9b0c01ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 103 shared lines): examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 13 members are variants of one another: a block of 103 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74ffb7a0d8ce08f615b110a1f79c3bd05e733a1f015d877eaabf9fc2be9b60d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 100 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 13 members are variants of one another: a block of 100 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c8c31979f3eb532a10ee01e53af561b41e30e8590bbc71d781926b997e154f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 96 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 13 members are variants of one another: a block of 96 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bacbbe865644746adf29775f26f0991cde9ca26a9fbf7aad6b7d593f4311ccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 91 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 13 members are variants of one another: a block of 91 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b0f8e9ee21b1a414c993699dbe8e1f7f74c0c9787b4729e6b1177cf09dca82"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 87 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 13 members are variants of one another: a block of 87 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6247b99d4d16b8ae6b7ba4bf0c2afd283a211a6739d0e072af0a2acad0e32ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 83 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 13 members are variants of one another: a block of 83 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a858809aaba92a98d8f5f54e3b53a0c424803f4ce438867e163e2a9ac4e922a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 68 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:148-401 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-423 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/textual_inversion/textual_inversion.py:191-451 \u2014 These 13 members are variants of one another: a block of 68 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a9f7cbc27b0597c8357f10dc9621e6e4f93f75275cc16eadce1efbe18a874b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 68 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:148-401 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-423 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/textual_inversion/textual_inversion.py:191-451 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 13 members are variants of one another: a block of 68 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3cf57db9af871ba853f357fd4989451fbf6abeabc762da87414ab6a740a268"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 31 shared lines): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:856-973 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:835-937 | examples/dreambooth/train_dreambooth_lora_flux2.py:798-915 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:758-909 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:803-920 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:754-905 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:903-1020 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:872-1024 | examples/dreambooth/train_dreambooth_lora_krea2.py:865-982 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:757-874 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:790-908 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:825-965 | examples/dreambooth/train_dreambooth_lora_z_image.py:787-904 \u2014 These 13 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d67baa9f67fd5b505f075dd19be01523d5c9390d4f056fd54c70dec6022efef"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 119 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 \u2014 These 12 members are variants of one another: a block of 119 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46637e366fc23ee0cd1881d20acd177636598a35bfac252e596600d2b170162"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 109 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora_flux.py:260-723 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-717 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 12 members are variants of one another: a block of 109 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece571f9f629e9b9658aeaefec3f2a7795aba6c7616679eac342ea588c0b8e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 107 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/cogview4-control/train_control_cogview4.py:229-600 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 \u2014 These 12 members are variants of one another: a block of 107 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f697240427d782da49ae68eb4150ff7437d02512b213c9916d67f6b99598f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 107 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth.py:233-608 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/gligen/train_gligen_text.py:99-279 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 12 members are variants of one another: a block of 107 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"c481ec45f8420cc9b1e9ef8d4788e02729a59cb804f14a0ffa5cef5b431152ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 100 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth.py:233-608 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 12 members are variants of one another: a block of 100 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d2fed44f4fc15848d33b43a6c4029668abff904bfdb6fea6a113d6b40bc64b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 94 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth.py:233-608 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/gligen/train_gligen_text.py:99-279 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 12 members are variants of one another: a block of 94 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcae7d59b053327098b51563e2344c573a7568dcb11f423e805075d5949adfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 92 shared lines): examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 12 members are variants of one another: a block of 92 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2eb63a4484f1d556a9d7f3fc4540f0dc50115e7e9dabaea31e1f72c03cea2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 92 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 \u2014 These 12 members are variants of one another: a block of 92 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0d6bdaadb67744a4b03b05cb958b55e0a8bb38111eda6ea657870d7aae82fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 91 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 12 members are variants of one another: a block of 91 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d01930fbfd9fa56af6855aa570223e3d5cef2a2d9d28a67b3b6358cac455876"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 81 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 12 members are variants of one another: a block of 81 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"e937f2e26cf3a70a750d8033d7258d69b37020f75f2eadc4eb6ac4ac876736ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 77 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 12 members are variants of one another: a block of 77 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca235a7ec256358b82cfbed617fde3e6f89c415475797d293968a74801b65fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 69 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:83-331 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 \u2014 These 12 members are variants of one another: a block of 69 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"86354173cf6ab77eace8e83ee1ce19c9d68f133e1907768378ab12bf3fda2447"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 67 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:54-247 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:57-213 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:148-401 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-423 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/textual_inversion/textual_inversion.py:191-451 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 12 members are variants of one another: a block of 67 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"67402a98bc96df0c91cd252fd49917a65a45cc36131c7ebf7b4d245bfc0283d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 65 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:54-247 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 12 members are variants of one another: a block of 65 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8807d7b4695179d26fbcdc2fc4a9bb3cc006b20162145cf464507bb4f4ab094"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 59 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:54-247 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:67-216 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:148-401 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-423 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/textual_inversion/textual_inversion.py:191-451 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 12 members are variants of one another: a block of 59 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4629a0b867f83f79d946cf90af20a96ac483b5177530851648411f47fe794b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 58 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 12 members are variants of one another: a block of 58 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cc671697fa14e43ad5626aee3db5767789081a8165db6af8ab60e5139b7884"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 35 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1003-1126 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1043-1203 | examples/dreambooth/train_dreambooth_flux.py:694-817 | examples/dreambooth/train_dreambooth_lora_flux.py:743-863 | examples/dreambooth/train_dreambooth_lora_hidream.py:750-870 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:877-993 | examples/dreambooth/train_dreambooth_lora_lumina2.py:669-793 | examples/dreambooth/train_dreambooth_lora_sana.py:684-804 | examples/dreambooth/train_dreambooth_lora_sd3.py:737-857 | examples/dreambooth/train_dreambooth_lora_sdxl.py:733-864 | examples/dreambooth/train_dreambooth_sd3.py:669-789 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:737-863 \u2014 These 12 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"444953f9f073aa8eefd92ef7db730264484696f01a542176c5df9eada61b84ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 32 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1003-1126 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:883-978 | examples/dreambooth/train_dreambooth_flux.py:694-817 | examples/dreambooth/train_dreambooth_lora_flux.py:743-863 | examples/dreambooth/train_dreambooth_lora_hidream.py:750-870 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:877-993 | examples/dreambooth/train_dreambooth_lora_lumina2.py:669-793 | examples/dreambooth/train_dreambooth_lora_sana.py:684-804 | examples/dreambooth/train_dreambooth_lora_sd3.py:737-857 | examples/dreambooth/train_dreambooth_lora_sdxl.py:733-864 | examples/dreambooth/train_dreambooth_sd3.py:669-789 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:737-863 \u2014 These 12 members are variants of one another: a block of 32 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"096d9d1ead27519592fc8f1c4290281ed1e8b888933814e1fadd60847f6d54b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 24 shared lines): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:250-285 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:271-306 | examples/dreambooth/train_dreambooth_lora_flux2.py:199-238 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:199-239 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:199-238 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:199-240 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:296-329 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:303-336 | examples/dreambooth/train_dreambooth_lora_hidream.py:202-245 | examples/dreambooth/train_dreambooth_lora_krea2.py:214-256 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:193-232 | examples/dreambooth/train_dreambooth_lora_z_image.py:198-238 \u2014 These 12 members are variants of one another: a block of 24 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c5ea0390f420a47f8d770a06339b62bcc87a0ceb8813110e4c48dc2f73865e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 229 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-2471 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1128-2107 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux2.py:1070-2107 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1075-2077 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1175-2205 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_lora_z_image.py:1060-1963 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 \u2014 These 11 members are variants of one another: a block of 229 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13c1b2ad8f1844f51ea74d97ebddc1d5624229baef9f320553df1e1117eda6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 187 shared lines): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1068-1994 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1064-1944 | examples/dreambooth/train_dreambooth_lora_hidream.py:937-1793 | examples/dreambooth/train_dreambooth_lora_krea2.py:1154-2074 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1094-1957 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1128-2028 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1219-2124 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:588-1196 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:623-1142 \u2014 These 11 members are variants of one another: a block of 187 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce3a98f80d09dc1b77696629e2df6cecc724d311768be146c29785e828f7ec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 187 shared lines): examples/dreambooth/train_dreambooth_lora_hidream.py:937-1793 | examples/dreambooth/train_dreambooth_lora_krea2.py:1154-2074 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1094-1957 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1128-2028 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1219-2124 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:588-1196 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:623-1142 \u2014 These 11 members are variants of one another: a block of 187 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c8a707cadc03d10b5937ad6c6a36902cf1f196b575e7ed76d73f9fc56a6d61"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 148 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/realfill/train_realfill.py:169-423 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 \u2014 These 11 members are variants of one another: a block of 148 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef889aeaa5c6db3708f552189512de3f4831b9bc8b36f2d26be2aaa1214524d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 110 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-832 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-879 | examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_sana.py:219-664 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:54-247 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 \u2014 These 11 members are variants of one another: a block of 110 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bb3cc96946e3f16f26c5ecc0234d5baa881d278bf9a2020114f1b5977f5d44"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 109 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 11 members are variants of one another: a block of 109 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea72c1c84fe78fbfcabd595a397c75a8b15ea1096625427a68f34db54926dd01"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 98 shared lines): examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flux.py:240-674 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_sd3.py:226-649 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/realfill/train_realfill.py:169-423 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-494 \u2014 These 11 members are variants of one another: a block of 98 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"394b62481628bc010f0b2b6347f94bf1fc4bfcaaaeab53e748328838ee2bd09f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 89 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth.py:233-608 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/gligen/train_gligen_text.py:99-279 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 \u2014 These 11 members are variants of one another: a block of 89 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d7df220253d1121c2147f923024754820a7611e9df8548371d160b94ada7c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 83 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 \u2014 These 11 members are variants of one another: a block of 83 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6d4b9bd298ae77dc2db4d4464c7c811b50296b2c9e6cfe7d32327bd230ed53"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 82 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:190-439 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:193-440 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 11 members are variants of one another: a block of 82 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba874a66f17cf23887fe97dbe416094aefde14142aa724bd96112a2043b4e2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 77 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 11 members are variants of one another: a block of 77 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8406837d1ad5901b095884b281de17bee918c30c73f84fba37eec8db0f79077"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 71 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 11 members are variants of one another: a block of 71 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf03879fd4d415a0657c344bd90d291301c4d1bd739bbd2f9f78330dab5e6b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 64 shared lines): examples/cosmos/train_cosmos_predict25_lora.py:57-262 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 11 members are variants of one another: a block of 64 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cosmos/train_cosmos_predict25_lora.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf83c3ca5459d390bfac3728426fd18c8041f22407e0ecdeaf2167d7a3c251a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 247 shared lines): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1128-2107 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1063-1920 | examples/dreambooth/train_dreambooth_lora_flux2.py:1070-2107 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1068-1994 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1075-2077 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1064-1944 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1175-2205 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1166-2075 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 | examples/dreambooth/train_dreambooth_lora_z_image.py:1060-1963 \u2014 These 10 members are variants of one another: a block of 247 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6f19a255f2ba2ee8980394b647d7b1a362ca21462c7325d6a3cacbeb850000"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 232 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-2471 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1128-2107 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux2.py:1070-2107 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1075-2077 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1175-2205 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_lora_z_image.py:1060-1963 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 \u2014 These 10 members are variants of one another: a block of 232 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"d887a1dcbc5bb338d0ce71897cac6bea501bd29070e9c91ee45b627dd4f8f906"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 109 shared lines): examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 10 members are variants of one another: a block of 109 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a33d60c17115fa751d6165ed0c6be08964a3c378d72c0f18671ee046c8d92be"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 108 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth.py:233-608 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/gligen/train_gligen_text.py:99-279 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 10 members are variants of one another: a block of 108 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ae7e58caf3db069e1e6694cb439626889577cdbfa17b4b49abaffcf58e7b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 104 shared lines): examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 10 members are variants of one another: a block of 104 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"17509e990cfaea8abb1b159838b64a04c623687f35b29775c30da7afa3465a74"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 103 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 10 members are variants of one another: a block of 103 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a3d2282b965ab2b2fa5596bf272620ed16001f0a0709f5f533fd3f96cbc05b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 97 shared lines): examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 \u2014 These 10 members are variants of one another: a block of 97 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d387d525d7cdafa017427e6bc2e93884502bb4a9a23ee221688ebb58d48907"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 95 shared lines): examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 10 members are variants of one another: a block of 95 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b2500a3a64cafdf8f2a1e967190da57826c3feee181133f2ef93dea3fa71e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 94 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 \u2014 These 10 members are variants of one another: a block of 94 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e003afd05406c281fa00acb502471a800c1c4f03d750e815329c4da8ac8c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 92 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flax.py:181-503 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 10 members are variants of one another: a block of 92 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2dc8404f1c2fd3ebdea704f12cc457448b271648f45df8133c96b26cfe2718d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 90 shared lines): examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/realfill/train_realfill.py:169-423 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 10 members are variants of one another: a block of 90 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"561b6c932c1d885bad9b81e233dde61796f9c700977b501265e5b0493335a161"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 82 shared lines): examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flax.py:47-217 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:54-247 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 \u2014 These 10 members are variants of one another: a block of 82 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04db5f97e2b0c7de9695d618f9761b0f6f65c2589b3ef3f90965011689debec"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 82 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:54-247 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 10 members are variants of one another: a block of 82 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"951c34ec24b61f26d707898a86c7087459c0310fe9797b645ac16c2c3a2e6645"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 78 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 10 members are variants of one another: a block of 78 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8d89da4a3bc5ef2550b4ac52426141b958cd98421548311b4e7ce197cc1c2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 75 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_flax.py:47-217 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:54-247 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/realfill/train_realfill.py:169-423 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 \u2014 These 10 members are variants of one another: a block of 75 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f62b4f1fe723122ee59d5a8746cab33703753f0ae3e024ae2ec8c6156aa9a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 72 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:83-331 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:193-440 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:197-442 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 10 members are variants of one another: a block of 72 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c25d4d9a6a9e713e74425b7beee9094da2d0b89824a9e680adc2b23c2619acc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 72 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:83-331 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:193-440 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:197-442 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 \u2014 These 10 members are variants of one another: a block of 72 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb392276d1d755bcdaf3613cd6570993efac95a1d91851fcb7f1fcab18556fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 70 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 10 members are variants of one another: a block of 70 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b62a34b43fcd64fae86036fc9290f56535f405f991a1f60b7c82d0a8890801"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 67 shared lines): examples/amused/train_amused.py:55-298 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 10 members are variants of one another: a block of 67 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/amused/train_amused.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3fb8afd2460e17d09c66dd63a7eaf536734d20dc915ff3cb88077066157284"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 50 shared lines): examples/dreambooth/train_dreambooth_flax.py:47-217 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:67-216 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:57-213 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:148-401 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-423 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/textual_inversion/textual_inversion.py:191-451 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 10 members are variants of one another: a block of 50 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"090d2b16eafd28e475249b358351ed9f31ea4ed772e75070473c7106e1b5624c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 35 shared lines): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:856-973 | examples/dreambooth/train_dreambooth_lora_flux2.py:798-915 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:803-920 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:903-1020 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:802-939 | examples/dreambooth/train_dreambooth_lora_krea2.py:865-982 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:757-874 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:790-908 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:825-965 | examples/dreambooth/train_dreambooth_lora_z_image.py:787-904 \u2014 These 10 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"c691f1032429375c883c0e441deedbf5d96a6f15ff2de79d21960099527b71b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 28 shared lines): examples/cogview4-control/train_control_cogview4.py:77-178 | examples/controlnet/train_controlnet.py:83-186 | examples/controlnet/train_controlnet_flux.py:79-198 | examples/controlnet/train_controlnet_sd3.py:72-210 | examples/controlnet/train_controlnet_sdxl.py:73-209 | examples/flux-control/train_control_flux.py:72-173 | examples/flux-control/train_control_lora_flux.py:75-183 | examples/research_projects/controlnet/train_controlnet_webdataset.py:321-415 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:82-199 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:81-175 \u2014 These 10 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fc8c76de9a3f229f8b0603e55d972f335182bcda578bfaffced607d9975f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 229 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-2471 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1128-2107 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux2.py:1070-2107 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1075-2077 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1175-2205 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1140-2202 | examples/dreambooth/train_dreambooth_lora_z_image.py:1060-1963 \u2014 These 9 members are variants of one another: a block of 229 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c1000ac08dc05fa23b0add523bc6075af19210695c57a038041e58cf40a7dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 218 shared lines): examples/dreambooth/train_dreambooth_flux.py:1029-1865 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1128-2107 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux2.py:1070-2107 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1075-2077 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1175-2205 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1140-2202 | examples/dreambooth/train_dreambooth_lora_z_image.py:1060-1963 \u2014 These 9 members are variants of one another: a block of 218 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcedc38c0e16151b7130c044e6c5a607456f5c73f8a86e1192fa0e73a698589f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 213 shared lines): examples/dreambooth/train_dreambooth_flux.py:1029-1865 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_hidream.py:937-1793 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_lora_sdxl.py:984-2033 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1055-2073 \u2014 These 9 members are variants of one another: a block of 213 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a12639cd7f1d240be869b578df54f408ca9bf09164bddcf3aaa9fbc6c67320c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 212 shared lines): examples/dreambooth/train_dreambooth_lora_hidream.py:937-1793 | examples/dreambooth/train_dreambooth_lora_krea2.py:1154-2074 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1094-1957 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1128-2028 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1219-2124 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1055-2073 \u2014 These 9 members are variants of one another: a block of 212 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"84af66164fc65382671c5f93f28f3714ed770fcde2f00bbae60c0fb8be46790c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 188 shared lines): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1068-1994 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1064-1944 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1166-2075 | examples/dreambooth/train_dreambooth_lora_hidream.py:937-1793 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_lora_z_image.py:1060-1963 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:588-1196 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:623-1142 \u2014 These 9 members are variants of one another: a block of 188 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"e385eca64784af3cc6fe903af95e7b2a9b93b457b3efade52962c96bd683c9c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 137 shared lines): examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 9 members are variants of one another: a block of 137 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ee287a972ba71b3964c1ef43a6b90c897c62520567bad119722de05a46ed58"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 134 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-863 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 9 members are variants of one another: a block of 134 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"c056f0d16915a78e8ab61331d2979becb2a72c31e6ecaa8f69dceabbdbb8de25"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 105 shared lines): examples/cogvideo/train_cogvideox_image_to_video_lora.py:70-429 | examples/cogvideo/train_cogvideox_lora.py:61-413 | examples/controlnet/train_controlnet.py:252-599 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 \u2014 These 9 members are variants of one another: a block of 105 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7402bc40660fd5e9fc8222db1608a1d16f0eb7aaae161260367b088c6226ab52"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 94 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/textual_inversion/textual_inversion.py:191-451 \u2014 These 9 members are variants of one another: a block of 94 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7df4b3112503f8e8afacd7f8865b4b19faef3228065fc32c57ce85f9343dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 92 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 \u2014 These 9 members are variants of one another: a block of 92 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96291cfecd2168691abdf18c423b1db93da2d2af9f128ed6690a05c0f278496"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 90 shared lines): examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/realfill/train_realfill.py:169-423 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 \u2014 These 9 members are variants of one another: a block of 90 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c9988997f988e8707578fb20065e39ed5c61f6e573d05a5146aeaf88a5d371"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 89 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:190-439 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:193-440 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:197-442 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 \u2014 These 9 members are variants of one another: a block of 89 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d17b4c673b8fb75d069420e9512e335cf152d8610a604dcf36d07fabf4ff29"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 88 shared lines): examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:54-247 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 \u2014 These 9 members are variants of one another: a block of 88 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"d234304c30259210e188fd8b7c64662e5df2897ffab76e9a9759db72902f16de"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 86 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/textual_inversion/textual_inversion.py:191-451 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 9 members are variants of one another: a block of 86 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c475119f62140e6491d195c506dceca7cf2f7046bd76bcca25b3e211728b353a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 79 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:190-439 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:193-440 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 9 members are variants of one another: a block of 79 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"e327d1e924e91cae0132cc108edac0d4f2022a3ff68396ac2d5f0e25f8e59f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 72 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:190-439 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:83-331 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:193-440 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:197-442 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 | examples/text_to_image/train_text_to_image_flax.py:58-249 \u2014 These 9 members are variants of one another: a block of 72 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"89646f86461184258e026a1c9083d1e05c0b62bc9eca58f65d01f01f129d77cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 70 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 9 members are variants of one another: a block of 70 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6faf57b2691c08d6f302162619bc84d27b182374aaaee25dc69b4d188faec5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 17 shared lines): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:979-1006 | examples/dreambooth/train_dreambooth_lora_flux2.py:921-948 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:926-953 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1026-1053 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:999-1022 | examples/dreambooth/train_dreambooth_lora_krea2.py:988-1015 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:880-907 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:914-941 | examples/dreambooth/train_dreambooth_lora_z_image.py:910-936 \u2014 These 9 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"a875c71249caee386ec939b25ddd7ab956566122e8d5dc001e64aa52ea04080c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 230 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-2471 | examples/dreambooth/train_dreambooth_flux.py:1029-1865 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux2.py:1070-2107 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1075-2077 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_lora_z_image.py:1060-1963 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 \u2014 These 8 members are variants of one another: a block of 230 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6c30e40505fbdbce227af791b282d838cfe93a6bc5b40ba335ffe5fb581bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 151 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_lora.py:454-1035 \u2014 These 8 members are variants of one another: a block of 151 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23f56684fad9fee753e5df6c82633e9304ed8efca2b7ed23cd4130546d9853b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 132 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:446-957 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_lora.py:454-1035 \u2014 These 8 members are variants of one another: a block of 132 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"a938e68325f6f43d60195be687b520fec78941850e5088c919707f93cdaac93e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 131 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 8 members are variants of one another: a block of 131 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"5484c3a6876438bdb2b2524dd408917daf2efd1b5e42d965f926a2e8319a0c49"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 127 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/lora/train_text_to_image_lora.py:395-1022 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_lora.py:454-1035 \u2014 These 8 members are variants of one another: a block of 127 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d46211224fd82ff1728ec181e7c4daf24c253b47ab3928a58a9c0f71bf7f6d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 108 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/lpl/train_sdxl_lpl.py:203-614 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-503 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 | examples/text_to_image/train_text_to_image_sdxl.py:137-498 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 8 members are variants of one another: a block of 108 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"999f8b7573d13474b361c1990ff46ca05f140b3c4ba421d1f6c2964d04cfec34"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 104 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-441 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-717 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 8 members are variants of one another: a block of 104 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf276ca339921156f674f56670d5f819c7e0abf940a98b8deac4599ad9c7899"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 95 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/textual_inversion/textual_inversion.py:191-451 \u2014 These 8 members are variants of one another: a block of 95 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a66d7dfdddb9f650c3587fb451c508bdba8e3e2b4c04e2b5c55d2ac9272826"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 86 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 \u2014 These 8 members are variants of one another: a block of 86 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e5a9d7914728c2166cf0f05e4b2af63354638fc0addf69714588960bf55a8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 85 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:190-439 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:193-440 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:197-442 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 8 members are variants of one another: a block of 85 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2a2dbf54e0fc9fd504794cc9c590365c88beae27ccdcda40b439573b85b460"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 78 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image_flax.py:58-249 | examples/text_to_image/train_text_to_image_lora.py:153-445 \u2014 These 8 members are variants of one another: a block of 78 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0f738ae95d8ceb3d79055ac5a92039c6b1e130bc3683da82727201a5fe34f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 72 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:190-439 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:83-331 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:193-440 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:197-442 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 | examples/text_to_image/train_text_to_image_flax.py:58-249 \u2014 These 8 members are variants of one another: a block of 72 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"055a5527f8c0fe902d12d237cdf50ab9668eeabc01ef06e9716e5c0cee7f2d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 70 shared lines): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:67-216 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:57-213 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:148-401 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:65-186 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-423 | examples/textual_inversion/textual_inversion.py:191-451 | examples/textual_inversion/textual_inversion_flax.py:65-199 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 8 members are variants of one another: a block of 70 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d2dce8893ec0fcd413bca1ae73ad022b40c8a9024cc83a6ad23f4f66718439"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 59 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:190-439 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:83-331 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:193-440 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:56-276 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:197-442 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 | examples/unconditional_image_generation/train_unconditional.py:74-295 \u2014 These 8 members are variants of one another: a block of 59 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"827dad817fa02a45925964538b0ccdda0ee45252b2133641565e1c6a2354c21f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 56 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:195-514 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-405 | examples/text_to_image/train_text_to_image.py:201-525 | examples/text_to_image/train_text_to_image_lora.py:153-445 | examples/unconditional_image_generation/train_unconditional.py:74-295 \u2014 These 8 members are variants of one another: a block of 56 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9e3579697b74494839ee4d232637be4bc32f819c4d1e1cd9a4cd530129f681"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 22 shared lines): examples/dreambooth/train_dreambooth_flux.py:182-217 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:250-285 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:271-306 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:210-294 | examples/dreambooth/train_dreambooth_lora_lumina2.py:162-195 | examples/dreambooth/train_dreambooth_lora_sd3.py:195-227 | examples/dreambooth/train_dreambooth_sd3.py:171-203 | examples/text_to_image/train_text_to_image_lora_sdxl.py:132-163 \u2014 These 8 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"7630ab309e337041a240e60a1fcddd347583517f48a44d22d35d479e31cc6e4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 14 shared lines): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:316-355 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:374-413 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:506-547 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:286-325 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:523-562 | examples/textual_inversion/textual_inversion.py:551-590 | examples/textual_inversion/textual_inversion_flax.py:299-338 | examples/textual_inversion/textual_inversion_sdxl.py:540-589 \u2014 These 8 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e978f1f56110a445eee0928494f7ef6715a3071af56c138a919e545524738e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 249 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1326-2509 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_hidream.py:937-1793 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_lora_sdxl.py:984-2033 \u2014 These 7 members are variants of one another: a block of 249 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0221aaccdeb62e7c3807abcf508da68455c826e4509b58c747eebb02427f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 239 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-2471 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1326-2509 | examples/dreambooth/train_dreambooth_flux.py:1029-1865 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_lora_sdxl.py:984-2033 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 \u2014 These 7 members are variants of one another: a block of 239 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d59beb2e3a01eb0c028b73ec9d376193423f7de3cfb8b9748c77719487a202"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 238 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-2471 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1326-2509 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_lora_sdxl.py:984-2033 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 \u2014 These 7 members are variants of one another: a block of 238 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"928dc028c6f3a7b6564ca1afd680e6c53e20ac079d3bd55e1d6db25a0439a9ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 235 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1326-2509 | examples/dreambooth/train_dreambooth_flux.py:1029-1865 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_lora_sdxl.py:984-2033 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1055-2073 \u2014 These 7 members are variants of one another: a block of 235 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"714542d53157322bb035f70925b529d8cb423eb91c43ec8a9e29c6c121420bcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 223 shared lines): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1068-1994 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1064-1944 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 | examples/dreambooth/train_dreambooth_lora_krea2.py:1154-2074 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1094-1957 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1128-2028 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1219-2124 \u2014 These 7 members are variants of one another: a block of 223 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b71b090f0a89d0f6c330be4dcbb16077ff2ddb675ef08453b5c53f6fdee887"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 219 shared lines): examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux2.py:1070-2107 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1075-2077 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1140-2202 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_lora_z_image.py:1060-1963 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 \u2014 These 7 members are variants of one another: a block of 219 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e5f2f758ab1465f5682fbba6231408119cf107503ae338bb2785080c6975bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 160 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:481-1248 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 7 members are variants of one another: a block of 160 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec68d86ba344fa1b84cd8b48c045fb3bf2eba636da87c8d23354027530709518"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 138 shared lines): examples/cogview4-control/train_control_cogview4.py:706-1238 | examples/controlnet/train_controlnet.py:735-1192 | examples/controlnet/train_controlnet_flux.py:815-1443 | examples/controlnet/train_controlnet_sd3.py:930-1466 | examples/controlnet/train_controlnet_sdxl.py:830-1378 | examples/flux-control/train_control_flux.py:698-1245 | examples/flux-control/train_control_lora_flux.py:726-1402 \u2014 These 7 members are variants of one another: a block of 138 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd910c07fe4850a4487554553ddf1fd8e9fda59ea9f5d08e889c8c7884f7d0ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 138 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 7 members are variants of one another: a block of 138 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a75678ad460476ff9d0ab38da6da83be32b8c420d8dbb9bdc34d5f474705775"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 132 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 7 members are variants of one another: a block of 132 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bcdfeb5750997a361b382bad0fe9edc961fc6a62154df7e51e83974b0b41c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 129 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/lora/train_text_to_image_lora.py:395-1022 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 \u2014 These 7 members are variants of one another: a block of 129 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1fd8a64981cdac2e9031baa97bd72e40ef57cbbb3fd405d57a4b56a66f43ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 122 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-869 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-800 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-459 \u2014 These 7 members are variants of one another: a block of 122 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b75c5d55b1fb5f075cc18aa5da8192a98a7fe6ff4fcae58cf487f27382c60b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 121 shared lines): examples/dreambooth/train_dreambooth.py:233-608 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:148-401 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-423 | examples/research_projects/realfill/train_realfill.py:169-423 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/textual_inversion/textual_inversion.py:191-451 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 7 members are variants of one another: a block of 121 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"16785b8927e7a9f9a6a5b8197051e33a6e3a304d45d659e1d04f6f60d356ee86"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 107 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-855 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-619 \u2014 These 7 members are variants of one another: a block of 107 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d9f52d608d0b3328d1384186201c086594d1becc791366a93b37a285de1ebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 102 shared lines): examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/realfill/train_realfill.py:169-423 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 7 members are variants of one another: a block of 102 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e51626bb3365be9d3a1fe6076015c4685ee911c3747d0dcfa4132dfb90e5b9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 95 shared lines): examples/cogvideo/train_cogvideox_image_to_video_lora.py:70-429 | examples/cogvideo/train_cogvideox_lora.py:61-413 | examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 \u2014 These 7 members are variants of one another: a block of 95 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"63322a7539ebf42119a2047a0a6c08b2bd1acc9809c5d378d95725709524c20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 93 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:83-331 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-467 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-506 \u2014 These 7 members are variants of one another: a block of 93 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63960c66aadb8c123c201e02250c5078b9a4cd8f77a23f791cb2b1a04c2c81c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 89 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/gligen/train_gligen_text.py:99-279 | examples/research_projects/realfill/train_realfill.py:169-423 \u2014 These 7 members are variants of one another: a block of 89 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"2744e5ee4afaa4934ff5612daef23720d198bbae90a9ec92d60f5c5bb7959134"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 87 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 7 members are variants of one another: a block of 87 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f99f440510d554aab54f505c4418d559b0e6cbc9202235a61513ff3be3447e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 86 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:279-783 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 7 members are variants of one another: a block of 86 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fc201e01cf37b6ac2891168c916677f6ae367d03c576c004fbfb9559b7cc1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 76 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:148-401 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-423 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 7 members are variants of one another: a block of 76 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b335b3eec0af7312b52e527357caea6734c49ad5a7ae7ee359cfb66ed15ac73a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 75 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/textual_inversion/textual_inversion.py:191-451 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 7 members are variants of one another: a block of 75 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba636bda566f5c8ee023c318d9718c1209b385b8684ff7850dddc55231234d0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 257 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1326-2509 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_lora_sdxl.py:984-2033 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 \u2014 These 6 members are variants of one another: a block of 257 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f40b88ebdeee96e4de81de9fba684d65518e9425884a0f38ac2fd52f39b762"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 245 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1326-2509 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-2003 | examples/dreambooth/train_dreambooth_lora_sdxl.py:984-2033 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1055-2073 \u2014 These 6 members are variants of one another: a block of 245 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c2c923ca3d8cdf7e72b1fb023ef1c906ea95e61d211c7acf548abdab254fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 243 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-2471 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1326-2509 | examples/dreambooth/train_dreambooth_flux.py:1029-1865 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 | examples/dreambooth/train_dreambooth_lora_sdxl.py:984-2033 \u2014 These 6 members are variants of one another: a block of 243 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdcde1ac204afc2aaf92058549bdf8b1fe1df14d4b7c36dc1c1ec227d334882"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 206 shared lines): examples/dreambooth/train_dreambooth_flux.py:1029-1865 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:623-1142 \u2014 These 6 members are variants of one another: a block of 206 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bbab69f71c18b3f0e1b5cce2ac61e0ca060174a21a5a5d2864db30ce8927d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 201 shared lines): examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1063-1920 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1068-1994 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1064-1944 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1166-2075 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:588-1196 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:623-1142 \u2014 These 6 members are variants of one another: a block of 201 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b7ee1978ce692279b8dab3964b73bfc2bb650e403b9f1df5994ede1bffd565"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 185 shared lines): examples/research_projects/lpl/train_sdxl_lpl.py:717-1617 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:537-1379 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 | examples/text_to_image/train_text_to_image_lora_sdxl.py:555-1337 | examples/text_to_image/train_text_to_image_sdxl.py:601-1365 \u2014 These 6 members are variants of one another: a block of 185 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1fffe670f5eac906f6b6c79900f40c6d7439e692100ed030cf46a0fd66d1d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 183 shared lines): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:537-1379 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_lora.py:454-1035 | examples/text_to_image/train_text_to_image_lora_sdxl.py:555-1337 \u2014 These 6 members are variants of one another: a block of 183 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24ea11ec84e524652bf6482459361c8707e56832bf387ddc050691a7513872a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 182 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:481-1248 | examples/research_projects/lpl/train_sdxl_lpl.py:717-1617 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:537-1379 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 | examples/text_to_image/train_text_to_image_lora_sdxl.py:555-1337 | examples/text_to_image/train_text_to_image_sdxl.py:601-1365 \u2014 These 6 members are variants of one another: a block of 182 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ddd5c8447c52699d6fb19ba04508d87810337ca1609985be6022a20783e0520"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 176 shared lines): examples/research_projects/lpl/train_sdxl_lpl.py:717-1617 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_lora.py:454-1035 | examples/text_to_image/train_text_to_image_sdxl.py:601-1365 \u2014 These 6 members are variants of one another: a block of 176 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"8072a45b539f1f6a6328666acb0fdb8fb76e1f8f629801455085ab0fb22f43d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 164 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/controlnet/train_controlnet_flux.py:815-1443 | examples/controlnet/train_controlnet_sd3.py:930-1466 | examples/controlnet/train_controlnet_sdxl.py:830-1378 | examples/research_projects/controlnet/train_controlnet_webdataset.py:900-1465 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:784-1321 \u2014 These 6 members are variants of one another: a block of 164 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"103c6593ae91c87856c036db9b67e06dedf36d7b8891d37a9d77d0c77f050745"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 153 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:481-1248 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 6 members are variants of one another: a block of 153 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"433d6069d0cfec4ddb3b34045a653ed8d9fa9484c7098197a0238ae791c46abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 143 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 6 members are variants of one another: a block of 143 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cdd53c858b63dac054b054a94e083b652b09a493fe4a73d2f26a0b2e16d51fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 133 shared lines): examples/dreambooth/train_dreambooth.py:808-1451 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:569-1057 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:471-978 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:513-1136 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:503-1088 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:855-1514 \u2014 These 6 members are variants of one another: a block of 133 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39eb32468f5aa63e0036790d881b0dabb49b503ba48a8f890a245a6e48b39c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 133 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:486-1158 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_lora.py:454-1035 \u2014 These 6 members are variants of one another: a block of 133 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c64dbcc09e21f98ba3d9735615d05d2ab7b0f96e4028b854393732e72b7ee50"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 133 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/lora/train_text_to_image_lora.py:395-1022 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:446-957 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 \u2014 These 6 members are variants of one another: a block of 133 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f251d68d0830f50830915d619f14b4c46ab9f5ed5fc049ad050bc6cb5b9866"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 132 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/controlnet/train_controlnet_flux.py:815-1443 | examples/controlnet/train_controlnet_sd3.py:930-1466 | examples/controlnet/train_controlnet_sdxl.py:830-1378 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:569-1057 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:784-1321 \u2014 These 6 members are variants of one another: a block of 132 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd463a9a2f20c4773f764c8290b9774f5835faacc56dde7f4b2dcb9fa1ebee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 132 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:446-957 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_lora.py:454-1035 \u2014 These 6 members are variants of one another: a block of 132 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9119116675ab40456be02c7bffaf76333a5738f55463ce9906a1d29b48e49e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 131 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:569-1057 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:471-978 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:513-1136 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:503-1088 | examples/textual_inversion/textual_inversion_sdxl.py:593-1136 \u2014 These 6 members are variants of one another: a block of 131 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a24a37c4ddabd5238fda9206ae23b775b86ef474caf54d9cc18664bc343d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 130 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/lora/train_text_to_image_lora.py:395-1022 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 6 members are variants of one another: a block of 130 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d91660c4063152b806d97246d2ef665d48aed354ed4e2842d0024ff22c5b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 129 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:878-1463 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:873-1526 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:843-1429 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:883-1532 | examples/research_projects/controlnet/train_controlnet_webdataset.py:900-1465 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:610-1091 \u2014 These 6 members are variants of one another: a block of 129 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"3945dca1192390222a079b6434146ff5c52e30acbc01b8f5f59f0a1028c429ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 126 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:446-957 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 \u2014 These 6 members are variants of one another: a block of 126 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c4e937ddb606e183ab4546c4ec687a4c8e56901cc0c10f78b090ff61bec3a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 125 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-778 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 \u2014 These 6 members are variants of one another: a block of 125 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a9b8dee5258965b2cc684c8c3b51f2f7f0b21e8ad6445394aa4d39f04d51f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 125 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/controlnet/train_controlnet_flux.py:815-1443 | examples/controlnet/train_controlnet_sd3.py:930-1466 | examples/controlnet/train_controlnet_sdxl.py:830-1378 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:569-1057 | examples/textual_inversion/textual_inversion_sdxl.py:593-1136 \u2014 These 6 members are variants of one another: a block of 125 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"735c10e4b81c79af18a6aa6ea33f0067ee4f3dc4c51b84d24e8354e60d418260"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 124 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 6 members are variants of one another: a block of 124 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b13af681af4af6d6f2f722367879f4e5f8e1d69cf5e391b2028e91169a4b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 119 shared lines): examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-851 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 \u2014 These 6 members are variants of one another: a block of 119 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ac942d5d842d7c9213706a3c292dac8ced772aaa01f3f4a7d9edec22364e56"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 119 shared lines): examples/dreambooth/train_dreambooth_lora_hidream.py:268-730 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-733 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 6 members are variants of one another: a block of 119 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f977495a871119527a3e9abe3c1e42b9f3038f87f97cac166059fa3f1a02c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 116 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 \u2014 These 6 members are variants of one another: a block of 116 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d478d974f0ac3df4399e04d4c01580a55f29fdeeec26ca1b98f254d972009b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 116 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 \u2014 These 6 members are variants of one another: a block of 116 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"18011df02181bb5215d887a2968773ece6d286859eb1ac4945a23e3d6ca89b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 113 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth.py:233-608 | examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 \u2014 These 6 members are variants of one another: a block of 113 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3998bbcfc493ef397c78b52c927914920f2516da5844aada9c8900ab4d6c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 112 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_flux.py:249-690 | examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:153-491 | examples/research_projects/gligen/train_gligen_text.py:99-279 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 \u2014 These 6 members are variants of one another: a block of 112 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"076ddec55b25e41c90113e13c56b45de08d7d9c055486324e233aa235c388133"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 111 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/controlnet/train_controlnet_sd3.py:930-1466 | examples/controlnet/train_controlnet_sdxl.py:830-1378 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:569-1057 | examples/research_projects/controlnet/train_controlnet_webdataset.py:900-1465 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:784-1321 \u2014 These 6 members are variants of one another: a block of 111 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"f252c2424bd99a9647f2788cb024f8ea5c7798e2c56c9cb3a299af7a0dd60278"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 106 shared lines): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 6 members are variants of one another: a block of 106 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c356e0e03c476c9316f9c01aa5ef7f46fe75f674e79da8e6a2c7838bf687db92"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 97 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 \u2014 These 6 members are variants of one another: a block of 97 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f90edf385770f82a30ec65262b4d82ba6fce21d0a81a12d2368bbdfdc86f5fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 92 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-848 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-667 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-828 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-813 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-838 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 \u2014 These 6 members are variants of one another: a block of 92 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"75610bbdc55b0a215d1a60baf868f77b7e47d00624ea4038a2a11fa2ab1dbb78"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 81 shared lines): examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/realfill/train_realfill.py:169-423 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 \u2014 These 6 members are variants of one another: a block of 81 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"536fd6708e99b71d179994b5d170ce25edf6ec901a1277319e66f934f04e71e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 77 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/controlnet/train_controlnet_sd3.py:293-679 | examples/flux-control/train_control_flux.py:224-592 | examples/flux-control/train_control_lora_flux.py:235-620 | examples/research_projects/gligen/train_gligen_text.py:99-279 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 \u2014 These 6 members are variants of one another: a block of 77 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cf621ed64817c774752e381d1b0f08ba1a8ee207992244a3812e9c8b70539d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 76 shared lines): examples/cogvideo/train_cogvideox_image_to_video_lora.py:70-429 | examples/cogvideo/train_cogvideox_lora.py:61-413 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:148-401 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-423 | examples/textual_inversion/textual_inversion.py:191-451 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 6 members are variants of one another: a block of 76 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bca49a5e293d14abe5554c84f90b491fb0eaf54201cb1301ac14e720814e62b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 76 shared lines): examples/community/img2img_inpainting.py:154-437 | examples/community/interpolate_stable_diffusion.py:143-375 | examples/community/multilingual_stable_diffusion.py:157-410 | examples/community/seed_resize_stable_diffusion.py:92-342 | examples/community/speech_to_image_diffusion.py:86-255 | examples/community/wildcard_stable_diffusion.py:179-419 \u2014 These 6 members are variants of one another: a block of 76 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"7855b405c49c37c789796198db06512abff7231bd21e9f93cd89d495900f7508"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 73 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:83-324 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:83-331 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 \u2014 These 6 members are variants of one another: a block of 73 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9975e7e76cc6fc7c9200c93e60a58c550dd32d01d2d9be6149a323a914a96375"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 61 shared lines): scripts/convert_gligen_to_diffusers.py:201-368 | scripts/convert_i2vgen_to_diffusers.py:136-445 | scripts/convert_original_audioldm2_to_diffusers.py:298-497 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 | scripts/convert_versatile_diffusion_to_diffusers.py:370-571 \u2014 These 6 members are variants of one another: a block of 61 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_gligen_to_diffusers.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d20fc7a8426c64a0a58d6f51f300a0e454aca4eadd645fa195d732b919de7e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 53 shared lines): scripts/convert_gligen_to_diffusers.py:201-368 | scripts/convert_if.py:299-536 | scripts/convert_if.py:861-1116 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 | scripts/convert_versatile_diffusion_to_diffusers.py:370-571 \u2014 These 6 members are variants of one another: a block of 53 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_gligen_to_diffusers.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc190458fe4072190ce79dd709cbd96833a9aad49ca1c5896e5a832cba3018e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 52 shared lines): scripts/convert_gligen_to_diffusers.py:201-368 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:131-317 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 | scripts/convert_svd_to_diffusers.py:250-541 | scripts/convert_versatile_diffusion_to_diffusers.py:370-571 \u2014 These 6 members are variants of one another: a block of 52 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_gligen_to_diffusers.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"610ad9f9233899f4575795af5e4fdbad1739d974e59b8dc49d5635f6ae970a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 50 shared lines): scripts/convert_gligen_to_diffusers.py:201-368 | scripts/convert_if.py:299-536 | scripts/convert_if.py:861-1116 | scripts/convert_original_audioldm2_to_diffusers.py:298-497 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 \u2014 These 6 members are variants of one another: a block of 50 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_gligen_to_diffusers.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bfc36497e57e811010b51ef31e3f2cef3ac316f0a7a1c6a7cf5eac145098f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 48 shared lines): scripts/convert_gligen_to_diffusers.py:201-368 | scripts/convert_if.py:299-536 | scripts/convert_original_audioldm2_to_diffusers.py:298-497 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 | scripts/convert_versatile_diffusion_to_diffusers.py:370-571 \u2014 These 6 members are variants of one another: a block of 48 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_gligen_to_diffusers.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e421b53fd80056b3e74dd2e4b83a591076f6e193ad0b9d3bdb8ea4e6f65ca7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 42 shared lines): scripts/convert_gligen_to_diffusers.py:201-368 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:131-317 | scripts/convert_original_audioldm2_to_diffusers.py:298-497 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 | scripts/convert_versatile_diffusion_to_diffusers.py:370-571 \u2014 These 6 members are variants of one another: a block of 42 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_gligen_to_diffusers.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0b402566384ed08f1de82329f491772496e3c2b9a71aaf05448ceb99c335dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 31 shared lines): examples/research_projects/ip_adapter/tutorial_train_faceid.py:149-257 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:151-259 | examples/research_projects/ip_adapter/tutorial_train_plus.py:161-275 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:211-320 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:65-186 | examples/textual_inversion/textual_inversion_flax.py:65-199 \u2014 These 6 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"be844b4e3b824ea83c5cf38d848a401cdf5a16091f98f0f4ec98a3a4946b06b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 256 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:878-1463 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:710-1463 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:873-1526 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:843-1429 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:883-1532 \u2014 These 5 members are variants of one another: a block of 256 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf221a16b97cd61131dac349e12bb861b0d1d7e8973e9c251ec15244cacef6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 252 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-2471 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1175-2205 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 | examples/dreambooth/train_dreambooth_lora_krea2.py:1154-2074 \u2014 These 5 members are variants of one another: a block of 252 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"30bf13ffbaee36925af2df24338fb8dee290b14c862f251cfbd2303f442ae0ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 237 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-2471 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1326-2509 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_sdxl.py:984-2033 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1055-2073 \u2014 These 5 members are variants of one another: a block of 237 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e9091b6899f3ae70aa7ecfdd83f48e621a4bc65dfa7dd9df71e3c0dfa99dd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 235 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-2471 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1175-2205 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1166-2075 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 \u2014 These 5 members are variants of one another: a block of 235 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"6047d8351b137cab631a31f0e3458a6f89b7d64dba4f55913ef9c7395ef71142"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 219 shared lines): examples/dreambooth/train_dreambooth_flux.py:1029-1865 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1068-1994 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1064-1944 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 \u2014 These 5 members are variants of one another: a block of 219 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bea3ff6268a5481638a7be952b904080968ae3db4b1f28cd377cdcdad00626"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 218 shared lines): examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1175-2205 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1166-2075 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-2317 | examples/dreambooth/train_dreambooth_lora_krea2.py:1154-2074 \u2014 These 5 members are variants of one another: a block of 218 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab90dc26081bdb65e1d77272f5fcf93831dfce7cdf21a1562c7e299a63d113ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 184 shared lines): examples/research_projects/pixart/train_pixart_controlnet_hf.py:560-1170 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_lora.py:454-1035 \u2014 These 5 members are variants of one another: a block of 184 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/train_pixart_controlnet_hf.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ad092953a2e9fcc48d5d5fc13a9704c9d01b051e82965e31aaee050b08fc96"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 183 shared lines): examples/research_projects/lpl/train_sdxl_lpl.py:717-1617 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 | examples/text_to_image/train_text_to_image_sdxl.py:601-1365 \u2014 These 5 members are variants of one another: a block of 183 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f1b0f0cf92c138b9cc70737d0495182f6a1009d08d5cea4b52b8b101f61cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 173 shared lines): examples/controlnet/train_controlnet_sd3.py:930-1466 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 | examples/dreambooth/train_dreambooth_sd3.py:989-1813 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:623-1142 \u2014 These 5 members are variants of one another: a block of 173 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5e6626c17c0dc7067fb3b55197a315a28695602ccd38e27b85fd2b1442c9df"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 166 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 | examples/text_to_image/train_text_to_image_sdxl.py:601-1365 \u2014 These 5 members are variants of one another: a block of 166 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"930017c9d341be4fd05b8c63456693d9e8c3cc8b238523dc05098ef2fde1f1df"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 161 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:537-1379 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 \u2014 These 5 members are variants of one another: a block of 161 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fffff14d18ef54232889c512a734452b20c7fb85fa841498dc6ffc9af56142"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 160 shared lines): examples/community/fresco_v2v.py:2082-2512 | examples/community/pipeline_animatediff_controlnet.py:777-1129 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:590-1077 | examples/community/pipeline_stable_diffusion_xl_instantid.py:586-1066 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:938-1339 \u2014 These 5 members are variants of one another: a block of 160 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"4521cbb852a255e996d435271c66928440875de70696bbabfd94174f832d83de"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 158 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:481-1248 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 5 members are variants of one another: a block of 158 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3a456e68a7e0e8c70408eab9c7234045fece89b36050381a91ee0d6480917b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 158 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:537-1379 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 | examples/text_to_image/train_text_to_image_sdxl.py:601-1365 \u2014 These 5 members are variants of one another: a block of 158 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"58700799f69f8229a31ee1f31d8bcfd78b44c91c7ca7658d7235715249379a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 157 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_sdxl.py:601-1365 \u2014 These 5 members are variants of one another: a block of 157 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f3f551c4b4161e42eb585e491c3c3b41fac1816cc133632ada9b491f4492ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 155 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:481-1248 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:486-1158 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 5 members are variants of one another: a block of 155 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90e4e397ae6cb8acb9bc5abcc00456b258c200fde0c68e702b25d49b86b4564"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 154 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:481-1248 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_sdxl.py:601-1365 \u2014 These 5 members are variants of one another: a block of 154 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5280b9d1af84fcab31083ed9a1375ff1783afc4035869e51f65bb8a590ee13"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 147 shared lines): examples/research_projects/autoencoderkl/train_autoencoderkl.py:569-1057 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:471-978 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:513-1136 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:503-1088 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:610-1091 \u2014 These 5 members are variants of one another: a block of 147 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/autoencoderkl/train_autoencoderkl.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"08453f6d76c2099ea2b56750c2714ef59587ea700fbd9c09c7ec613243be41ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 139 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:486-1158 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 5 members are variants of one another: a block of 139 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"992031c7797107e1ec85850abb436c451851a93824e1487b6eff13802a660e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 135 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/controlnet/train_controlnet_sdxl.py:830-1378 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:471-978 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:513-1136 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:503-1088 \u2014 These 5 members are variants of one another: a block of 135 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b5976934d9ef3af1d06f050dde36db144f2514a251a43d1a94d64886d50750"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 135 shared lines): examples/controlnet/train_controlnet_sdxl.py:830-1378 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:513-1136 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:503-1088 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:610-1091 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:784-1321 \u2014 These 5 members are variants of one another: a block of 135 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sdxl.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7368a8e5b111c3ef83b5c66e006fed34a71b61a2b28a60667a6608faf89eca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 133 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:471-978 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:513-1136 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:503-1088 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:610-1091 \u2014 These 5 members are variants of one another: a block of 133 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"56602948425860278a151dcf308844cc4bd2c87e90f7fe0881037dfa71470126"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 132 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:446-957 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 5 members are variants of one another: a block of 132 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"84891aa39312605e2ff7aa105717fb30e7f42a5d65849b99f78e94ec10aa2294"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 130 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_lora.py:454-1035 \u2014 These 5 members are variants of one another: a block of 130 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19806ad8e8a039506aef15e48f24859865b725eb687979292280153625f6644"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 125 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:446-957 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 \u2014 These 5 members are variants of one another: a block of 125 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c28516ee1f0805b3db5a1f95278e6df35f46aeceb18b38815db43967a66f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 119 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/controlnet/train_controlnet_sd3.py:930-1466 | examples/research_projects/controlnet/train_controlnet_webdataset.py:900-1465 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:784-1321 | examples/textual_inversion/textual_inversion_sdxl.py:593-1136 \u2014 These 5 members are variants of one another: a block of 119 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"8647c9fa704c20f19409ed0b2e59368eb738070ac2d5a2c5ef67b62855e4a6cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 112 shared lines): examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-813 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-460 | examples/research_projects/realfill/train_realfill.py:169-423 \u2014 These 5 members are variants of one another: a block of 112 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f741aa33752e125ebe2fb36f2e9dcf13c6c77b09c7f4e4b1d07216830830fb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 101 shared lines): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:148-401 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:119-410 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-423 \u2014 These 5 members are variants of one another: a block of 101 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"981c550637409f61d8c42403bbfa21e190deec43c987ecdd3505c4f1489d4571"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 92 shared lines): examples/controlnet/train_controlnet.py:252-599 | examples/dreambooth/train_dreambooth.py:233-608 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-694 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 | examples/textual_inversion/textual_inversion.py:191-451 \u2014 These 5 members are variants of one another: a block of 92 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0c1a754adea9325d16e7c71ab2281768083750bea17299245419b43f1a5367"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 84 shared lines): examples/cogview4-control/train_control_cogview4.py:229-600 | examples/flux-control/train_control_flux.py:224-592 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 \u2014 These 5 members are variants of one another: a block of 84 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ee56b54749c653f1accf96f4fcd23b14d2b45f378b3bf87f4a933af8edba33"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 82 shared lines): examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:54-247 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 \u2014 These 5 members are variants of one another: a block of 82 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ab5ec4237dcf4ab3783cb7ccda482538d2d740baca4f96f9c3d5065203fa76"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 63 shared lines): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-470 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-423 | examples/textual_inversion/textual_inversion.py:191-451 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 5 members are variants of one another: a block of 63 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8b346a55b9c2196351f9810bbcaa05ca190ad0fc729a15b18da4b42ce223d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 62 shared lines): examples/community/imagic_stable_diffusion.py:323-470 | examples/community/img2img_inpainting.py:154-437 | examples/community/interpolate_stable_diffusion.py:143-375 | examples/community/multilingual_stable_diffusion.py:157-410 | examples/community/wildcard_stable_diffusion.py:179-419 \u2014 These 5 members are variants of one another: a block of 62 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f6503b7366662f3f2fa5cd991fed856ec5fbc49e9af9d2c94242e2787db631"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 57 shared lines): examples/research_projects/colossalai/train_dreambooth_colossalai.py:54-247 | examples/research_projects/lora/train_text_to_image_lora.py:87-386 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:197-442 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:195-440 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 5 members are variants of one another: a block of 57 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/colossalai/train_dreambooth_colossalai.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"205c9345f93023f17568bbc46a025cf006cbc3dabbfeca5b001a509c50eb5213"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 55 shared lines): examples/community/imagic_stable_diffusion.py:323-470 | examples/community/interpolate_stable_diffusion.py:143-375 | examples/community/multilingual_stable_diffusion.py:157-410 | examples/community/seed_resize_stable_diffusion.py:92-342 | examples/community/wildcard_stable_diffusion.py:179-419 \u2014 These 5 members are variants of one another: a block of 55 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a97d1df6666ef8337808197d45d6aa1bba2e5b9f38e70e0653dba60fe2776b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 53 shared lines): scripts/convert_gligen_to_diffusers.py:201-368 | scripts/convert_if.py:299-536 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:131-317 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 \u2014 These 5 members are variants of one another: a block of 53 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_gligen_to_diffusers.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a3c79e26cfea9d15324012e4cf5b159f7e607198f0c4b9c48f070bbd05eb9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 52 shared lines): scripts/convert_original_audioldm2_to_diffusers.py:298-497 | scripts/convert_original_audioldm_to_diffusers.py:307-480 | scripts/convert_original_musicldm_to_diffusers.py:303-476 | scripts/convert_svd_to_diffusers.py:250-541 | scripts/convert_versatile_diffusion_to_diffusers.py:370-571 \u2014 These 5 members are variants of one another: a block of 52 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8683a792ad38f0447a57e7cae1426f7a2cb74ace4e9893b8067b79ebbf4ba52"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 40 shared lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:242-323 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:108-196 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:260-340 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:224-301 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:242-319 \u2014 These 5 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a9762cb1ffbab13d109265bb5c235b4b031254f0b72dbe7de82ced43fd373a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 28 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:242-283 | examples/dreambooth/train_dreambooth_lora_flux.py:196-237 | examples/dreambooth/train_dreambooth_lora_hidream.py:202-245 | examples/dreambooth/train_dreambooth_lora_krea2.py:214-256 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:193-232 \u2014 These 5 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad17092b88d368fece9aae42bc6f487d8240855bc5348c5c5cb439dfbc2dcd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 28 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:139-186 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:144-189 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:68-115 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:141-191 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:142-191 \u2014 These 5 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15e3c0d611e9a7143a4f088365d0db534b83fd6f874400d56de4e4bfc6e3ea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 25 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:263-315 | examples/dreambooth/train_dreambooth_lora.py:133-191 | examples/dreambooth/train_dreambooth_lora_sdxl.py:188-240 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:128-182 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:187-237 \u2014 These 5 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9827655954db0531e49efd098935a608d4fff0fb30847e5f301a6b26d7a451"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 24 shared lines): examples/consistency_distillation/train_lcm_distill_sd_wds.py:224-301 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:242-319 | examples/research_projects/controlnet/train_controlnet_webdataset.py:321-415 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:82-199 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:81-175 \u2014 These 5 members are variants of one another: a block of 24 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"214741fa084de06db4cc92e351fdc44fec3a0cb617378ba840ee358932fe45d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 369 shared lines): examples/dreambooth/train_dreambooth.py:808-1451 | examples/dreambooth/train_dreambooth_lora.py:761-1465 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:855-1514 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:783-1500 \u2014 These 4 members are variants of one another: a block of 369 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"4983cffeb19849e99c9f5050559dbd51fa7fadcc4c2da33ef8e10a6c2c3bb85e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 342 shared lines): examples/community/stable_diffusion_controlnet_reference.py:135-838 | examples/community/stable_diffusion_reference.py:849-1469 | examples/community/stable_diffusion_xl_controlnet_reference.py:375-1368 | examples/community/stable_diffusion_xl_reference.py:317-1202 \u2014 These 4 members are variants of one another: a block of 342 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e4a3b240edd5e9629d875957a9285303724a999ca8fc09a179b8efccd2a8ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 292 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1084-2096 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1326-2509 | examples/dreambooth/train_dreambooth_lora_sdxl.py:984-2033 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1055-2073 \u2014 These 4 members are variants of one another: a block of 292 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fc7a52e87ab763825e647b6b8c50207d64cd75983de02f7b39e1346fe29bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 232 shared lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-2471 | examples/dreambooth/train_dreambooth_flux.py:1029-1865 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-2003 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:588-1196 \u2014 These 4 members are variants of one another: a block of 232 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"be366fdae7e662d1cb8e4adafe287ced0efbe0dcd269bb4d4f65c6142d5510e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 219 shared lines): examples/dreambooth/train_dreambooth_lora_sdxl.py:984-2033 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1055-2073 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:537-1379 | examples/text_to_image/train_text_to_image_lora_sdxl.py:555-1337 \u2014 These 4 members are variants of one another: a block of 219 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e66067b9554a4ca4b200eed34ddbd3f6b5b3b594c739f761f793425096fc2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 194 shared lines): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:537-1379 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 \u2014 These 4 members are variants of one another: a block of 194 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c29c99a01e77a8f14eb93a1221ebaf72c3a52e7a91b2ede0fb452baf4a0c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 191 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:537-1379 | examples/text_to_image/train_text_to_image_lora_sdxl.py:555-1337 \u2014 These 4 members are variants of one another: a block of 191 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08b75d7e3ef2cc85e78e96aec13662c47020e72eaa7aa2f74f890bec7c87546"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 187 shared lines): examples/community/lpw_stable_diffusion_xl.py:1437-1953 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1838-2263 | examples/community/pipeline_sdxl_style_aligned.py:1409-1903 | examples/community/pipeline_stable_diffusion_xl_ipex.py:759-1159 \u2014 These 4 members are variants of one another: a block of 187 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64d9a033932134442134d325a72b7ec1bcfffe5caa1affaa66bcb70482cee67"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 183 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/research_projects/lpl/train_sdxl_lpl.py:717-1617 | examples/text_to_image/train_text_to_image_sdxl.py:601-1365 \u2014 These 4 members are variants of one another: a block of 183 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a955d1dcd2e39c96cf202124e1074915185d056a6de31eafa4e4d106e39a8715"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 181 shared lines): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:513-1136 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:503-1088 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:537-1379 | examples/text_to_image/train_text_to_image_lora_sdxl.py:555-1337 \u2014 These 4 members are variants of one another: a block of 181 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd027fb406db01f3f7daaa1ff5b2d7f7acb2549154ae73971a895b2ebdd138d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 176 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/research_projects/lora/train_text_to_image_lora.py:395-1022 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 \u2014 These 4 members are variants of one another: a block of 176 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"f120b5ee3b1af41f3a250da7eb6bfc652f76ad4037bb011f0285e9dd880686c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 175 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/research_projects/lpl/train_sdxl_lpl.py:717-1617 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 | examples/text_to_image/train_text_to_image_sdxl.py:601-1365 \u2014 These 4 members are variants of one another: a block of 175 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f379cc1a3efdfe53e8bc57568bfaa498bd87d2243a9827602dd1ec55ad1943d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 172 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/research_projects/lora/train_text_to_image_lora.py:395-1022 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:537-1379 \u2014 These 4 members are variants of one another: a block of 172 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"310562f0528e158170f55cd589de6dfdac400eb0adf41d7512a8271738de6eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 166 shared lines): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:471-978 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:513-1136 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:503-1088 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:784-1321 \u2014 These 4 members are variants of one another: a block of 166 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"17bda4516e70ae7efe56a9505fb99686bf4b49917890407b24186fe6e4435e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 162 shared lines): examples/cogvideo/train_cogvideox_image_to_video_lora.py:962-1614 | examples/cogvideo/train_cogvideox_lora.py:984-1629 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-1576 | examples/dreambooth/train_dreambooth_lora_sana.py:871-1597 \u2014 These 4 members are variants of one another: a block of 162 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c8ab7089bca0b6e4c379ec5dde75d8795a8b11b1a598f2561c8ff007ae346c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 161 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:481-1248 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 \u2014 These 4 members are variants of one another: a block of 161 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c69049145751b040a9984d98b341d2ef9439c3a4e88098e565e45b49ac7ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 160 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:481-1248 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:486-1158 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 \u2014 These 4 members are variants of one another: a block of 160 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3d6a8f4ad74e3298dcff2b7e123ffa91990ed7ff1a6c493bc53ffe38fd9e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 160 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:481-1248 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 \u2014 These 4 members are variants of one another: a block of 160 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"20aa2cfe46d30bb83678fbb61b61fa3705ef72e40a4dcc1d8ad2bc6183890643"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 157 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:481-1248 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 \u2014 These 4 members are variants of one another: a block of 157 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"1982f57a764b96a7fd7dce46e1e81b6ca6a467111de208b9e61b4b0f329be1f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 155 shared lines): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:471-978 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:513-1136 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:503-1088 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:783-1500 \u2014 These 4 members are variants of one another: a block of 155 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9072761763f63d034a047694e4fb8d509137a63a6ba2e9020acb3db66efa5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 150 shared lines): examples/custom_diffusion/train_custom_diffusion.py:664-1377 | examples/dreambooth/train_dreambooth.py:808-1451 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:855-1514 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:783-1500 \u2014 These 4 members are variants of one another: a block of 150 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"59811ca86b187b4f4b547084fb69ac6955f91117ae3e43b2695c615f334c759d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 147 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:486-1158 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 4 members are variants of one another: a block of 147 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"09db1ba5d380d7a1567c35820e0dc3b6adaff7fdf65ebba4be30cefa0886097c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 141 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/dreambooth/train_dreambooth.py:808-1451 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:855-1514 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:784-1321 \u2014 These 4 members are variants of one another: a block of 141 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa484ab2d151b0fd9ce9308d7ace5542193a7281a96375d283f01f69a5c13ce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 141 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:486-1158 | examples/research_projects/lora/train_text_to_image_lora.py:395-1022 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 \u2014 These 4 members are variants of one another: a block of 141 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ecda7c0a44c7611f5ab6aeb965eccb710a93c91386cab83304f1bc160408ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 139 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/research_projects/lora/train_text_to_image_lora.py:395-1022 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 4 members are variants of one another: a block of 139 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80197e1ed2783d7afba4dc5e3a6d7ed2be9fdb59f131a759c2c3343ef12c7cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 138 shared lines): examples/controlnet/train_controlnet_flux.py:815-1443 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:471-978 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:513-1136 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:503-1088 \u2014 These 4 members are variants of one another: a block of 138 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9f13a719540c5bfa150d114ae5b2496af358ee26058d68a910775ffb42aa28"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 137 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:446-957 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_lora.py:454-1035 \u2014 These 4 members are variants of one another: a block of 137 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30dd546c5cf3f3c44cefb741eb5cf234906bed01fe78a610be9b517abbbcd0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 137 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:486-1158 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:446-957 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 \u2014 These 4 members are variants of one another: a block of 137 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ab9f3baf126aee052716f02c953f119c2e58e6281b95b5f07e70626798ed95"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 137 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:328-808 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:340-840 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:560-1170 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 \u2014 These 4 members are variants of one another: a block of 137 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f13d69d8862f05f73726e01a0f186c4040ff01fe8499c11fdfd3ebcf74864b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 134 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/dreambooth/train_dreambooth.py:808-1451 | examples/research_projects/controlnet/train_controlnet_webdataset.py:900-1465 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:784-1321 \u2014 These 4 members are variants of one another: a block of 134 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb7b6c9fbd895f1c89d98c04b76553a87a9facafa78d4c6f40e55dd6e2eefcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 134 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/controlnet/train_controlnet_sd3.py:930-1466 | examples/dreambooth/train_dreambooth.py:808-1451 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:855-1514 \u2014 These 4 members are variants of one another: a block of 134 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fcfd758bf442b7c23c9534ee7b2cd2ee9ab1972df3eae5e537273c5a089ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 132 shared lines): examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:560-1170 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 \u2014 These 4 members are variants of one another: a block of 132 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ac1593c1f0678bb22b9fb8f703cd45787c03888ed5f5b3df7a7fead2e155da"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 131 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:446-957 | examples/text_to_image/train_text_to_image.py:529-1156 | examples/text_to_image/train_text_to_image_lora.py:454-1035 \u2014 These 4 members are variants of one another: a block of 131 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0f5d6b6ac6d473b49bb0a86442e243538699ab187eb7f6ec1a570d58d153de"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 130 shared lines): examples/controlnet/train_controlnet_sdxl.py:276-653 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-713 | examples/text_to_image/train_text_to_image.py:201-525 \u2014 These 4 members are variants of one another: a block of 130 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sdxl.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98ea3b55049f4b81980e6cc16ab94f27e4d47909c3fc4f691d6d31c15684815"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 126 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-1030 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:446-957 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These 4 members are variants of one another: a block of 126 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc7144eacaac4a4dcd53bad8b4ca45700fb7fc0b43285c3bbbf5222a77af660"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 122 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-937 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-955 | examples/research_projects/lora/train_text_to_image_lora.py:395-1022 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-942 \u2014 These 4 members are variants of one another: a block of 122 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"efba624ade1cce513d31ed2c75c416c8312e85e96d69b776a2cd410d308f8bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 118 shared lines): examples/research_projects/multi_token_textual_inversion/textual_inversion.py:551-934 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:566-955 | examples/textual_inversion/textual_inversion.py:594-1020 | examples/textual_inversion/textual_inversion_sdxl.py:593-1136 \u2014 These 4 members are variants of one another: a block of 118 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion.py"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"41642744f22354ff426653f0d63a9134b5cfc386cf07a3c05ffc3f076a937229"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 117 shared lines): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:590-1077 | examples/community/pipeline_stable_diffusion_xl_instantid.py:586-1066 | examples/research_projects/anytext/anytext.py:1970-2360 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:938-1339 \u2014 These 4 members are variants of one another: a block of 117 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a97e686b306f572c39296a5d13dbbf65e04bcc4cb78f12b53e0fcf7e587a9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 113 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:569-1057 | examples/textual_inversion/textual_inversion.py:594-1020 | examples/textual_inversion/textual_inversion_sdxl.py:593-1136 \u2014 These 4 members are variants of one another: a block of 113 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4cc8b43b168b0feb7a58105b0926071cded2fce61947fdff13cae27eaa98a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 105 shared lines): examples/controlnet/train_controlnet.py:735-1192 | examples/controlnet/train_controlnet_sd3.py:930-1466 | examples/research_projects/gligen/train_gligen_text.py:283-710 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:784-1321 \u2014 These 4 members are variants of one another: a block of 105 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"364a21bbf1f23641f5269fc354a666523bc3d897d5d2275fc79d177a3628f653"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 103 shared lines): examples/cogvideo/train_cogvideox_image_to_video_lora.py:70-429 | examples/cogvideo/train_cogvideox_lora.py:61-413 | examples/custom_diffusion/train_custom_diffusion.py:328-660 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 \u2014 These 4 members are variants of one another: a block of 103 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90272f56dfa49a21b1e1e54aa44d46293966577a80f347dbd5abe1e158111b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 103 shared lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:114-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-470 | examples/research_projects/gligen/train_gligen_text.py:99-279 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-470 \u2014 These 4 members are variants of one another: a block of 103 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cff600b73030d9da77b700e869e151d703ca74dad67dab77aa41ead70cbb6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 95 shared lines): examples/cogvideo/train_cogvideox_image_to_video_lora.py:70-429 | examples/cogvideo/train_cogvideox_lora.py:61-413 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-649 | examples/vqgan/train_vqgan.py:204-545 \u2014 These 4 members are variants of one another: a block of 95 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"37863a2b1d314a7a3df3595eb037ea85ee7fa0a76861912049d324a66d05b791"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 91 shared lines): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:405-808 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:404-827 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:566-955 | examples/textual_inversion/textual_inversion.py:594-1020 \u2014 These 4 members are variants of one another: a block of 91 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4c87c1c3460f99db1bcad0ea2c56955cd8c981d4405ba31afb421b3d965db2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 90 shared lines): examples/cogvideo/train_cogvideox_image_to_video_lora.py:70-429 | examples/cogvideo/train_cogvideox_lora.py:61-413 | examples/controlnet/train_controlnet.py:252-599 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 \u2014 These 4 members are variants of one another: a block of 90 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e288b935c44f695ac8e5096a18e9d93da416c96fb0400a7cdb3de822767b722e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 90 shared lines): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:405-808 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:404-827 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:551-934 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:566-955 \u2014 These 4 members are variants of one another: a block of 90 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c51a9b47fd1331c92349f22bfdf51c5cb741461a408b0c3f1320607b6291375"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 81 shared lines): examples/dreambooth/train_dreambooth_lora.py:219-569 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-443 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-568 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These 4 members are variants of one another: a block of 81 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c522c44e03ad671b786e872f4801aab4c09c41ca84d1dddcf239bd0ef7c384"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 79 shared lines): examples/amused/train_amused.py:55-298 | examples/dreambooth/train_dreambooth.py:233-608 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-542 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-628 \u2014 These 4 members are variants of one another: a block of 79 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/amused/train_amused.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ac5981260948fe183d4cd34acb7e6e0c5a90b88d566a791fecb3237906fa7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 63 shared lines): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-293 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-556 | examples/textual_inversion/textual_inversion.py:191-451 \u2014 These 4 members are variants of one another: a block of 63 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e4c6897ce862364810c8dfb060a0462d7bdac9242deecaed0e860d35b0018c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 46 shared lines): examples/cogview4-control/train_control_cogview4.py:604-655 | examples/controlnet/train_controlnet_flux.py:694-745 | examples/flux-control/train_control_flux.py:596-647 | examples/flux-control/train_control_lora_flux.py:624-675 \u2014 These 4 members are variants of one another: a block of 46 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14cbe8c79282237e329f7e4c5951fca31b96f1d3fe275411cdd483a956f2fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 40 shared lines): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:758-909 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:754-905 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:872-1024 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:802-939 \u2014 These 4 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af2a93595f40d212e84bbcb7d54593098dc1a1fe30e881c1f0cda225e4844c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 35 shared lines): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:90-151 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:95-170 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:95-168 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:93-166 \u2014 These 4 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0431841fbbddd520c6a6a6555e19d6c387200956fabefe3505afc07a9a03b29e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 34 shared lines): examples/dreambooth/train_dreambooth_flax.py:47-217 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:149-257 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:151-259 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:211-320 \u2014 These 4 members are variants of one another: a block of 34 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60258b4c2e653d0111d2ffc14e8678e0d7f856eb38707871de8585c9c0acad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 34 shared lines): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:139-186 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:68-115 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:141-191 | examples/text_to_image/train_text_to_image.py:142-197 \u2014 These 4 members are variants of one another: a block of 34 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf8ccb62a173c39468c73fd48d67496d051c69b8963703e44587c1f5a7c11ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 32 shared lines): examples/controlnet/train_controlnet.py:608-715 | examples/controlnet/train_controlnet_flax.py:512-638 | examples/controlnet/train_controlnet_sd3.py:688-792 | examples/controlnet/train_controlnet_sdxl.py:662-718 \u2014 These 4 members are variants of one another: a block of 32 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"798aafadc913d38d9cf0dda1b204ab6511a88e9eb95468229e3b51968c56f043"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 30 shared lines): scripts/convert_cogview3_to_diffusers.py:63-150 | scripts/convert_cogview4_to_diffusers.py:72-158 | scripts/convert_pixart_alpha_to_diffusers.py:16-177 | scripts/convert_pixart_sigma_to_diffusers.py:16-198 \u2014 These 4 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_cogview3_to_diffusers.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7852874ac5f847e406c215e7018c92a7a78ea2cb72acd0cb3dd1f286bdc0c379"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 22 shared lines): examples/cogview4-control/train_control_cogview4.py:659-693 | examples/controlnet/train_controlnet_flux.py:749-791 | examples/flux-control/train_control_flux.py:651-685 | examples/flux-control/train_control_lora_flux.py:679-713 \u2014 These 4 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0506295954bce3c2c62abf1a54d20637cbdb3a03b9c74c900f381bebc30db63"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 28 shared lines): scripts/convert_dit_to_diffusers.py:27-134 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:9-211 | scripts/convert_hunyuandit_to_diffusers.py:9-236 \u2014 These 3 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_dit_to_diffusers.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"292f3d69389b9480adc1577a4e78e786fab59075897d1b3818d25b12c066869e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 25 shared lines): examples/community/pipeline_controlnet_xl_kolors_img2img.py:891-925 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:967-1001 | examples/community/pipeline_kolors_inpainting.py:967-1001 \u2014 These 3 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"16106874c5208baf4e3f35f59a585dc4ba7329acdd34a011c7855f4bf4cb4615"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 17 shared lines): scripts/convert_anima_to_diffusers.py:120-140 | scripts/convert_anima_to_diffusers.py:161-181 | scripts/convert_anima_to_diffusers.py:209-230 \u2014 These 3 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_anima_to_diffusers.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f295e3680c68290f4e3f0dcf9bfce9805919d0d914dc928ccd3989159b6ee9e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (384 shared lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:901-1397 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1240-1835 \u2014 These two members are variants of one another: 384 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":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"62051b9ff8183736970bc419fb99c90c48fa3d4f9487a7f845a76740959455c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (331 shared lines): examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:280-692 | examples/unconditional_image_generation/train_unconditional.py:299-744 \u2014 These two members are variants of one another: 331 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":"examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"364c62ab16ada125b0984cb6c40abae5a8a0f78254af748b03ae5f24fb3dd0eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (285 shared lines): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:353-650 | examples/textual_inversion/textual_inversion_flax.py:366-677 \u2014 These two members are variants of one another: 285 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":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d989a96c5f2dad4b6dc8a5d2c38a57fc5825e7909211082bb9fc361bfe3c672"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (196 shared lines): examples/community/stable_diffusion_controlnet_inpaint.py:767-1060 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:755-1037 \u2014 These two members are variants of one another: 196 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":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14ffc2571de4b58090fee12c6d168516eb62bb5ed6c2bacccd9137a37363d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (185 shared lines): examples/research_projects/sana/train_sana_sprint_diffusers.py:941-1777 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:623-1142 \u2014 These two members are variants of one another: 185 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":"examples/research_projects/sana/train_sana_sprint_diffusers.py"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2ebd5f3d7d9d7b4914ad7e53585d09a97a2f9c5b2178ffb8b4da019adce69c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (178 shared lines): examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:684-1190 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:855-1514 \u2014 These two members are variants of one another: 178 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":"examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c9ed82d408ebf3ae3b2cd909be7a03f5567e029b90fa097196fb2a0078ee60"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (140 shared lines): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:353-650 | examples/text_to_image/train_text_to_image_flax.py:262-616 \u2014 These two members are variants of one another: 140 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":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5261d651ae359ed3abda7c9d52663f5ab3050d3de04be06bec10e4a065de51a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (140 shared lines): examples/text_to_image/train_text_to_image_flax.py:262-616 | examples/textual_inversion/textual_inversion_flax.py:366-677 \u2014 These two members are variants of one another: 140 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":"examples/text_to_image/train_text_to_image_flax.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"f540dc86eeb52506e0c3b2eba2ab0ccdadc1bcbd722b0284e640701b62c326d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (134 shared lines): examples/community/stable_diffusion_controlnet_img2img.py:626-907 | examples/community/stable_diffusion_controlnet_inpaint.py:767-1060 \u2014 These two members are variants of one another: 134 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":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbdf56400589b9a899ae8d0d757be7c93fb0bc530e62a6b97b43eaae783ba31"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (133 shared lines): examples/community/clip_guided_stable_diffusion.py:187-337 | examples/community/clip_guided_stable_diffusion_img2img.py:324-490 \u2014 These two members are variants of one another: 133 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":"examples/community/clip_guided_stable_diffusion.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d315cf4a2a8da5f2db8b622ca31c6964cc62ecee08a3f6e31545598cd792035"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (128 shared lines): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:364-642 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:436-992 \u2014 These two members are variants of one another: 128 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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"f563f2971c8d60c345f7796cba535a4d6fa8fe36f5379be4151060619d5bd2fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (115 shared lines): examples/research_projects/realfill/train_realfill.py:535-991 | examples/textual_inversion/textual_inversion.py:594-1020 \u2014 These two members are variants of one another: 115 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":"examples/research_projects/realfill/train_realfill.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e2d00c25f3cbc316762d80b5158a937d356b69da304d7a6d668433e7b72f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (112 shared lines): examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:684-1190 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:566-955 \u2014 These two members are variants of one another: 112 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":"examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbbbe444617d6ac37c779764815bbab933ab56b0c20aee2ba4387edcbd1e1aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (111 shared lines): examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:684-1190 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:551-934 \u2014 These two members are variants of one another: 111 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":"examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"496c1a009d68f25b2f79dc16ef7678b1028a9a66a9d29f67c2ce4ae7f0deb762"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (104 shared lines): scripts/convert_ddpm_original_checkpoint_to_diffusers.py:100-232 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:236-380 \u2014 These two members are variants of one another: 104 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":"scripts/convert_ddpm_original_checkpoint_to_diffusers.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8d7749d65f4edab83b8ce00cdab892274fc442b10b038de8a05739c405f8f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (100 shared lines): examples/dreambooth/train_dreambooth_flax.py:325-697 | examples/text_to_image/train_text_to_image_flax.py:262-616 \u2014 These two members are variants of one another: 100 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e4a3eeeb4adad9a708007173c4e0853cb27ca91d5c934fac7e05cdacd71964"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (99 shared lines): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:364-642 | examples/textual_inversion/textual_inversion.py:594-1020 \u2014 These two members are variants of one another: 99 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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"511e4b863a7491d9be9d47e0385401137193d536cd37fe89fbc05366e7b57667"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (97 shared lines): examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:684-1190 | examples/textual_inversion/textual_inversion.py:594-1020 \u2014 These two members are variants of one another: 97 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":"examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ef0cc866f5c98c761f750841399b9639f8af3e6a6bce870334ec6f5fd71b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (95 shared lines): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:364-642 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:566-955 \u2014 These two members are variants of one another: 95 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f09debfd9a0ed9f16767772a5a8c3ad8f0db8dac6c9a9ea27cbc3e8845d29f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (93 shared lines): examples/community/clip_guided_images_mixing_stable_diffusion.py:255-445 | examples/community/clip_guided_stable_diffusion_img2img.py:324-490 \u2014 These two members are variants of one another: 93 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":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"158e6dc83b5ea9edcf7bb8d2da15fa7268a6456a27d188559bc0e45e1bec71a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (92 shared lines): examples/community/stable_diffusion_controlnet_img2img.py:626-907 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:755-1037 \u2014 These two members are variants of one another: 92 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":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e60b726054478bc34ba422dcd5fd90b120bbbdc56ec0faf4126168009a7964c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (87 shared lines): examples/community/hd_painter.py:490-890 | examples/community/ip_adapter_face_id.py:867-1129 \u2014 These two members are variants of one another: 87 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":"examples/community/hd_painter.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"432106fd4c771371ac7a98be44b8f32d6bf8419054cb86d79c43b598ef33fb85"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (83 shared lines): examples/community/hd_painter.py:490-890 | examples/community/pipeline_stable_diffusion_boxdiff.py:1353-1727 \u2014 These two members are variants of one another: 83 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":"examples/community/hd_painter.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"079a0d9ce8666068b066478270d50729e6199256589908f6d62b003ed37b9b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (82 shared lines): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:364-642 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:551-934 \u2014 These two members are variants of one another: 82 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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccbbb2b715ac9dd0383d7b3c0a0d50953d50fc8333f3f30fccbf6cf7f899350"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (79 shared lines): examples/dreambooth/train_dreambooth_flax.py:325-697 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:353-650 \u2014 These two members are variants of one another: 79 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":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"534707ebd99f17b87054ddbf14e9be409311986e3e076ebb50bbe50b83053abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (79 shared lines): examples/dreambooth/train_dreambooth_flax.py:325-697 | examples/textual_inversion/textual_inversion_flax.py:366-677 \u2014 These two members are variants of one another: 79 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":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c27a37a6f25342314a44616e85050efb7340fe73da7277794d1263fe729c36"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (77 shared lines): examples/community/clip_guided_images_mixing_stable_diffusion.py:255-445 | examples/community/clip_guided_stable_diffusion.py:187-337 \u2014 These two members are variants of one another: 77 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":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"a067386b216b93322eb4999aa64d48f4e93290c6a47f2dc86715fd0fc496e3bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (64 shared lines): examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:44-202 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:148-401 \u2014 These two members are variants of one another: 64 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":"examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"559316cff91bb9cbca20a89d20032bb3c09158bb012d62a23a98ee01266a9c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (64 shared lines): examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:44-202 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-423 \u2014 These two members are variants of one another: 64 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":"examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"166092cd997074a34426a5a3927782ca0f278bb265a66577acdb04ce5668202f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (64 shared lines): examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:44-202 | examples/textual_inversion/textual_inversion.py:191-451 \u2014 These two members are variants of one another: 64 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":"examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"0169592da8f304697d56f0931a6b403a895b40ba070c07b039e6cf002dc90d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (64 shared lines): examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:44-202 | examples/textual_inversion/textual_inversion_sdxl.py:195-437 \u2014 These two members are variants of one another: 64 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":"examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"57907c2fe04fa499f9658a92de357373e78a303358d4fc172b4deb345c6ebdbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (60 shared lines): examples/community/stable_diffusion_controlnet_inpaint_img2img.py:755-1037 | examples/community/stable_diffusion_ipex.py:583-758 \u2014 These two members are variants of one another: 60 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":"examples/community/stable_diffusion_controlnet_inpaint_img2img.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"10493bcc250bf27bf0544779ff61d78df283de5e504637ae310134ca15a97b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (58 shared lines): examples/community/masked_stable_diffusion_img2img.py:49-237 | examples/community/pipeline_prompt2prompt.py:581-776 \u2014 These two members are variants of one another: 58 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":"examples/community/masked_stable_diffusion_img2img.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7b34e9c9a597ca2170e9a6ddd6d6c741b290be94f93db50370c23624d58bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (54 shared lines): examples/community/lpw_stable_diffusion.py:841-1077 | examples/community/stable_diffusion_ipex.py:583-758 \u2014 These two members are variants of one another: 54 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":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c703ea381813257f6024189117745d5c836caacce8f235c1aba61db645b5f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): examples/community/clip_guided_stable_diffusion.py:187-337 | examples/community/speech_to_image_diffusion.py:86-255 \u2014 These two members are variants of one another: 48 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"357af9da5326a513868e5457b0d60d8539e52a4905a705ca37bd1c6e68bd5be7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:966-1048 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"5488f836445d6f7c7ec7e5d36f0fd0364d6b1169427e732966149ea1e9c31b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:966-1048 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a2dcb7cdfd5a4fb4236037af9b16cee4b2f10408789204aa1dea9fea32b26b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:538-611 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"59759a1a8f3826dfa388561c316221c857b33f8dec618669be580fbeb19c0e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:538-611 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2ed5a3800cc969eac1a885ccef6aa4a2444a70028a31d0080a14e694c45645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:538-611 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c069d557a5f9ba74f572c8bbe73997d5c0b0df7e1ac7ad2c8d58e86b5e7899b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:538-611 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf70622b0743ca0938e84f720da30be876fa3f3f2461cde269454b99c437ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:977-1042 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:585-662 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"1302c8c8e004339f5f11a5bc66a1501b88957fbf3732a46d99ad2034006c7a66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:585-662 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"053f57898d42ac717f2321ef67afe2d20ad05f3dbfb513f8963caab938de2d7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:585-662 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bff668720801c9c12f9c360f0808f1ece22b065c5231a5f5e8dffafb8b470f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:977-1042 | examples/community/pipeline_flux_semantic_guidance.py:580-640 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40508bea7036af797a5539114574a6e98fdb1aadb9bf7b2226dea54fed4f7c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | examples/community/pipeline_flux_semantic_guidance.py:580-640 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1e3a556da0dad5613cdc392e531e7fbe4307195a2a38352b8c17649a70c21a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:516-587 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c86735d5b98c6cc4abf3b06048f7a8af99ef6f5a1dfa3ff9a6876faa695e32d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): examples/community/pipeline_sdxl_style_aligned.py:803-865 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:516-587 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc0b79d41eb3b2f056c88bb2ab7bb0c6f484205057b1adadfbe42600baa5171"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | examples/community/pipeline_kolors_inpainting.py:702-772 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb26f8168bfb1af365a3cdeead90b105a0d0881623007a2699e7a16609993825"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | examples/community/pipeline_prompt2prompt.py:480-524 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"55632ccee85c6edb19b71165bb86365e29752f6be9ba0013db72a645f83c1967"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19ee25c220f1276a67d45f2a33c817b752756f94b8c13a6b99c567dc5a51acd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | examples/community/pipeline_stable_diffusion_pag.py:847-891 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7e4c32c4e9e0e16d99529c10f6acd10a4a985e7bb4e599b531858245856781"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | examples/community/regional_prompting_stable_diffusion.py:727-781 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"b901a11fd0f64d911cef5c375f8ceca94b6d07124dad72c95778aa35777f6a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | examples/community/stable_diffusion_reference.py:286-359 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"e408007891932eccf367d4607ff1c0a3c977d416fafbf5e77cb464cca6b1309f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | examples/community/pipeline_stable_diffusion_pag.py:847-891 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6bd69bc0b27fd17fb8b44d0ce4e8d9fef058a0e8ab02f622019d7e848fb5e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | examples/community/regional_prompting_stable_diffusion.py:727-781 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfe99bb5cd17428bf01351fe229720f26c3c81b6753abcadf604f590dc75e26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | examples/community/stable_diffusion_reference.py:286-359 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ee8487b9a7494514c1afc2db0f97472bc0f52be1ed4dbb431c6bff182172c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | examples/community/pipeline_controlnet_xl_kolors.py:493-629 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41912a67ec268c4aed671a440cf1eaceec70e608b108e2856dae03b81c97265"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"542c7cdd166147da9a9489118f2245ffca657d596081748590a868a104e26aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c6bf130e1d5d4ac2169947e049f84070aa87d5f6ebd6655e18d1cca21fcc97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6b3599ffe6641108d9683f2c41820b221fb577c2e84e21b1e95674ffdca3c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"082f5e7f7618a219bb986a7a8541f090dbada571449b678d5554de4c4ba5e603"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | examples/research_projects/anytext/anytext.py:1673-1787 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e9aa5d883e313a24acca4594bf24f4f21f1ee36a0a2a79db0d24fb57ad1fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 | examples/research_projects/anytext/anytext.py:1673-1787 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c9bbf1784fcfbf6a1c44c4d9e2804f6b52b71ebb311ead645cc764e31fd469"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | examples/research_projects/anytext/anytext.py:1673-1787 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4d98e420aa32e20dfc9963aefb09be916e2729e4e556361186e3e877fc0ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f95e47c963370e215a320ce4f6c4984fd531a836ac563b71987dfe77132295"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | examples/community/latent_consistency_interpolate.py:556-582 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c20cf5ccc7ca70e39e6b5941c3304770954fe8fd3f64292799b6952317c0360"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/matryoshka.py:4091-4145 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cee6e09b3f228e413b5486aca938e1245bc64099c738170911ff86e2133b158"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_animatediff_controlnet.py:498-626 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c07d74d2b3bbbf2f74d593d61b2b2f20d1f630dd30c54309f0dd1ae6ab8821"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_animatediff_img2video.py:610-657 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"a027a8a75ffed8ee30de514e596c8593f95d564afffe46cf1cf0125d30bb39da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1553-1617 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb705d5b919ba10990456b70bab7e8aa4bc3d27059537017ad1c893a7ca2812b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_kolors_inpainting.py:702-772 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45d43a88c7a0af77fe647c3d806bae93f80d0830cfa2badad0447eb743e3d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_prompt2prompt.py:480-524 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0801105bccd664991c0dcdd24cadb99bd75733986312f7dc9be645d40abbdff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_sdxl_style_aligned.py:803-865 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9a0b9a13f75d8ae49959a0a37384403491be3db6ae6f8c490df30b1d644a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_stable_diffusion_boxdiff.py:847-900 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af7fe8b899774265d61f56426f2dd0e115eda8aa07e66490e5a98fc041b76e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_stable_diffusion_pag.py:847-891 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca49a64a0f629b03be663c4c05bc7a6c3ca608070abc9149f9ffb23407b76c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:966-1048 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"193dfd40d013e3be61b4d49efe54803c9347466a65ceca3417ff75f9057e3a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:550-612 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acb9b44e9285c0bd0cbaa1d9bba634abcefe6de493c4e5813abdb3ba7b7f721"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:697-759 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd95239473e18cb301e55401bb56c2e43e760ad079b581b58b54a3ccdc75345"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_stable_diffusion_xl_ipex.py:552-614 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b167cc4f71a143d2575a0d8e312e7a1b4eff2623ccfc3409b66c7dd1d60e08e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/regional_prompting_stable_diffusion.py:727-781 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"267e8dbea70004eb28277c3f62da102021f8a11b04c4942164ff7f19785166ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/stable_diffusion_reference.py:286-359 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f2f5455a91fef66a4e55f81ed598eda07ef52fb1fec9fec718c52a388e1534"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_controlnet_xl_kolors.py:493-629 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"caeb58213d7dcb863041a4d3cbd03d7ba82585ff50be6c34cba9320a3e7e3594"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:537-704 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc6ddefa10e2b867c31289696bf1607a90407f3656fd7055dfa1a7256645186"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:588-755 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"f822ae51c0beef9fb9b1bee532646730cc58fc6238fa4074e81aa6569806017e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:538-611 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff7d0436e8ba8592e088e01eda8fe669d78a4cae3774e04e740cc05b0ec3d13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/research_projects/anytext/anytext.py:1673-1787 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7aaed13901cb12d6cbabb4db3c77d8dbdf50a975340a5ead3c57ad36e79e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:587-732 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d237997ac6d654dd4b837c913a5c95917d3abc80470a2cc97038041bcd9da5ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | examples/community/pipeline_stg_hunyuan_video.py:411-446 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"3861f4e7ed016585abd80d762fabef875a313fdaa1e549af68430d29b7f233b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | examples/community/pipeline_stg_wan.py:319-348 \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":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f844a37c29ee48d0aaa9073002b2f4cee91e16e3717f812ded40966ac32c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/gluegen.py:473-500 | examples/community/rerender_a_video.py:402-494 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f3fa5290d1e8a2bc11e3bb5c62276d7cbb2899be0f23571658eeb3d575c179"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_stg_cogvideox.py:441-480 | examples/community/rerender_a_video.py:402-494 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"2017d4bb66fb71f9741a0d4e28109a65709f4d11af7070d1b810e1680ae464ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/community/pipeline_controlnet_xl_kolors.py:203-230 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:224-251 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d05503783dfc0c53383c638bc3fe702788e1c0def93257420188df84ae6c88d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): examples/community/pipeline_kolors_inpainting.py:389-413 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:588-614 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4f33764df6595f446bdff0fd3e14530a0c9d89d1b3c84e78552b58b32c7923"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/ip_adapter_face_id.py:718-757 | examples/community/pipeline_flux_rf_inversion.py:442-487 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02ed31cef42c75e5c25d331f4ce7c0ba80e2215219208597c26107ea3b5809c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/community/pipeline_animatediff_img2video.py:610-657 | examples/community/pipeline_flux_rf_inversion.py:442-487 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"494267a8308116834be5b8198a8c14854d1be02fdbdc7f20564a58421bce925f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:458-477 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-1149 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"8852d6c85dcf09ff3e64f6023aba9d34f10c56ac6cdf110d320ee5e41d4d3590"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:458-477 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:441-1047 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fac1e4ee6ec8d9c7fdb5c85b6ad4cbfb59dab8a3e6d1aeee8351419068ab28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:458-477 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:537-1379 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"4810c0c976bc13ed8c52cd243a65df4cbed988661775ddc1d5f86570a275ebf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:458-477 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-1389 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b2041b6df41f0a90604a9675ddb25295690b3f0e561c25b884e89a3805c6c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:458-477 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:446-957 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"4683681fa181dc0d5eb508cf801c0207b357affb6e3e5396d29b183408f080cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:458-477 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-933 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"372e6b9525ed71d8b2f13605330d1396045da67aa964f4ab3a603eb8102aa139"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:458-477 | examples/text_to_image/train_text_to_image.py:529-1156 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"c187f2d90f739f5899d20dd10847809f97b6b1501398892747287fa061184bd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:458-477 | examples/text_to_image/train_text_to_image_lora.py:454-1035 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"d011c4dd4066c7c854803d4b4b821658ba6d868e0a8e35d83cb0a087aa9e2d0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:458-477 | examples/text_to_image/train_text_to_image_lora_sdxl.py:555-1337 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe28fab8296a88517fb082101c4a5e44bfe83a95939b7593715a5ed1d30e7895"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:458-477 | examples/text_to_image/train_text_to_image_sdxl.py:601-1365 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b1275a8c5863851ff9dfb6270a9e42919333be1d0806c7230c6930ee70a4da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_flux_kontext_multiple_images.py:515-567 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"2edeb4c38336356e53490a87a4d89a4ce6da143b41be53b63ac9d9bf3ae8a9c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_flux_rf_inversion.py:442-487 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"122441de29ff8a2b89b5ea6392fea2fbcfd046533bba6f1ffe545b3f0d20bf4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipeline_flux_semantic_guidance.py:580-640 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"0485d10752baa24366bad1bfda8eecc6674069fb6932fa85adfef6a6132d2e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_interpolate.py:556-582 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:481-534 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b97caeaac284461e2408eb16900d59cde414c982a07b0876e515dccb6936dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:458-477 | examples/text_to_image/train_text_to_image_flax.py:262-616 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"796d520cf80dec6a9e73b408242b2f3d41e0a86c185985f37f3b05812660f4ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (29 members, 50\u002B identical tokens): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:115-176 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:109-221 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:130-243 | examples/dreambooth/train_dreambooth_flux.py:103-134 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:169-209 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:191-230 | examples/dreambooth/train_dreambooth_lora_flux.py:109-145 | examples/dreambooth/train_dreambooth_lora_flux2.py:122-158 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:122-158 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:122-158 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:122-158 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:217-255 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:224-262 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:113-149 | examples/dreambooth/train_dreambooth_lora_hidream.py:94-144 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:119-150 | examples/dreambooth/train_dreambooth_lora_krea2.py:116-175 | examples/dreambooth/train_dreambooth_lora_lumina2.py:93-121 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:115-154 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:139-178 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:141-182 | examples/dreambooth/train_dreambooth_lora_sana.py:110-136 | examples/dreambooth/train_dreambooth_lora_sd3.py:90-108 | examples/dreambooth/train_dreambooth_lora_sdxl.py:113-122 | examples/dreambooth/train_dreambooth_lora_z_image.py:122-158 | examples/dreambooth/train_dreambooth_sd3.py:81-99 | examples/research_projects/sana/train_sana_sprint_diffusers.py:224-239 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:113-122 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:87-114 \u2014 These 29 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 29 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 29 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8794c4ea73720a7bbf0a68bf682ed2e091749a283a36e1ff325b0e1a51532c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): examples/custom_diffusion/train_custom_diffusion.py:78-87 | examples/dreambooth/train_dreambooth.py:81-92 | examples/dreambooth/train_dreambooth_lora.py:92-101 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:85-94 | examples/research_projects/lpl/train_sdxl_lpl.py:146-156 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:81-92 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:88-97 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:67-76 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:81-91 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:76-86 | examples/text_to_image/train_text_to_image_lora.py:76-85 | examples/text_to_image/train_text_to_image_lora_sdxl.py:87-97 | examples/text_to_image/train_text_to_image_sdxl.py:80-90 | examples/textual_inversion/textual_inversion.py:91-99 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b638dc8d45b6f1e4b4dbdee591c5768fb8d2c2c15932846bacdc06e4d877383"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1010-1023 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:959-972 | examples/dreambooth/train_dreambooth_lora_flux2.py:952-965 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:937-950 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:957-970 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:933-946 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1057-1070 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1052-1065 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:979-992 | examples/dreambooth/train_dreambooth_lora_krea2.py:1019-1032 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:911-924 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:945-958 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1004-1017 | examples/dreambooth/train_dreambooth_lora_z_image.py:940-953 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4f5cb944605a5c8a43844489a95dd6f5645d879420972befdac1ef64734969"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): examples/cogview4-control/train_control_cogview4.py:182-199 | examples/controlnet/train_controlnet.py:210-227 | examples/controlnet/train_controlnet_flax.py:138-154 | examples/controlnet/train_controlnet_flux.py:202-219 | examples/controlnet/train_controlnet_sd3.py:248-266 | examples/controlnet/train_controlnet_sdxl.py:233-250 | examples/flux-control/train_control_flux.py:177-194 | examples/flux-control/train_control_lora_flux.py:187-204 | examples/research_projects/controlnet/train_controlnet_webdataset.py:439-469 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:203-220 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:199-216 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5773955a58333946182f51a396edadb2f6f9fe0ca3e945aeefd6683257fcad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): examples/community/composable_stable_diffusion.py:278-285 | examples/community/lpw_stable_diffusion.py:727-734 | examples/community/pipeline_zero1to3.py:447-454 | examples/community/sd_text2img_k_diffusion.py:229-236 | examples/community/stable_diffusion_controlnet_img2img.py:323-330 | examples/community/stable_diffusion_controlnet_inpaint.py:422-429 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:407-414 | examples/community/stable_diffusion_ipex.py:458-465 | examples/community/stable_diffusion_repaint.py:432-439 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d50ee7bdca4f7b95634521484b785e01993f4d269ebacffe7439b33390efdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1027-1039 | examples/dreambooth/train_dreambooth_lora_flux2.py:969-981 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:974-986 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1074-1086 | examples/dreambooth/train_dreambooth_lora_krea2.py:1036-1048 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:928-940 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:962-974 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1045-1057 | examples/dreambooth/train_dreambooth_lora_z_image.py:957-969 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"5612a20e697a32cb520319964458d396563120bf91287566ebc3d7d63c4e2f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1069-1089 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1021-1041 | examples/dreambooth/train_dreambooth_lora_flux2.py:1011-1031 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1016-1036 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1116-1136 | examples/dreambooth/train_dreambooth_lora_krea2.py:1081-1101 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:973-993 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1007-1027 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1098-1118 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c5302d4dfcf9831aa5c3b87ceb18e28ffe29647d255a1ba9850048aeb299da"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1092-1104 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1044-1056 | examples/dreambooth/train_dreambooth_lora_flux2.py:1034-1046 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1039-1051 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1139-1151 | examples/dreambooth/train_dreambooth_lora_krea2.py:1104-1116 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:996-1008 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1030-1042 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1121-1133 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cf6bb42ce6559ea7f07a9ff544864546ea62fdfcd92ffeb3cd6b22028fe8f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): examples/community/lpw_stable_diffusion_xl.py:1046-1078 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:829-861 | examples/community/pipeline_kolors_differential_img2img.py:571-603 | examples/community/pipeline_kolors_inpainting.py:919-951 | examples/community/pipeline_sdxl_style_aligned.py:869-901 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1191-1223 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1053-1085 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:615-647 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe13549d9116f4111e08ebcd2d09ad895310c8665f2d32b474a61ba02a40afc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): examples/community/lpw_stable_diffusion_xl.py:1989-2026 | examples/community/lpw_stable_diffusion_xl.py:2064-2103 | examples/community/lpw_stable_diffusion_xl.py:2143-2184 | examples/community/stable_diffusion_comparison.py:106-122 | examples/community/stable_diffusion_comparison.py:143-159 | examples/community/stable_diffusion_comparison.py:180-196 | examples/community/stable_diffusion_comparison.py:217-233 | examples/community/stable_diffusion_comparison.py:254-381 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1989}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a70ea5a9fb11715b1d24f80b7269b3a2278275661ffc66d44389fa3f45599b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:286-310 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:344-368 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:473-500 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:256-280 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:493-517 | examples/textual_inversion/textual_inversion.py:521-545 | examples/textual_inversion/textual_inversion_flax.py:269-293 | examples/textual_inversion/textual_inversion_sdxl.py:508-534 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a340aa2d3768786eeec40851d103548647cc760c1450db6010459fcc075f2293"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): examples/community/lpw_stable_diffusion.py:737-742 | examples/community/pipeline_zero1to3.py:457-462 | examples/community/stable_diffusion_controlnet_img2img.py:333-338 | examples/community/stable_diffusion_controlnet_inpaint.py:432-437 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:417-422 | examples/community/stable_diffusion_ipex.py:468-473 | examples/community/stable_diffusion_repaint.py:461-466 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fe1b299cdf6bfef561a84891f3cf8c87c724565692463eb6778681cba48bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:835-851 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:763-779 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:991-1051 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:525-541 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:421-437 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:523-533 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:610-626 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bc31bbf064f24ad934f9cdbfaf7e5e85a6cc820ed2e31ad62e74c661c53106"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1005-1038 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1001-1034 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1120-1153 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1047-1074 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1077-1110 | examples/dreambooth/train_dreambooth_lora_z_image.py:997-1030 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c1f8a68bc602a70c4118d198af0130bfb47355d75461899ecc6197725b6803"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): scripts/convert_amused.py:119-343 | scripts/convert_pixart_alpha_to_diffusers.py:16-177 | scripts/convert_pixart_sigma_to_diffusers.py:16-198 | scripts/convert_sana_controlnet_to_diffusers.py:21-152 | scripts/convert_sana_to_diffusers.py:48-352 | scripts/convert_sana_video_to_diffusers.py:36-295 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_amused.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e2db3f8eb62501f2ac827cc85fcb5f0b4657260eaa53e3e8859ac60b41984a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): scripts/convert_ltx2_to_diffusers.py:576-600 | scripts/convert_ltx2_to_diffusers.py:606-629 | scripts/convert_ltx2_to_diffusers.py:838-860 | scripts/convert_ltx2_to_diffusers.py:896-966 | scripts/convert_ltx2_to_diffusers.py:1049-1071 | scripts/convert_ltx2_to_diffusers.py:1184-1210 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_ltx2_to_diffusers.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"1568a46ff0ace6336a674cd6f99566c23c8cbb872f229347213515fbd9a8f523"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/cogvideo/train_cogvideox_image_to_video_lora.py:774-799 | examples/cogvideo/train_cogvideox_lora.py:796-821 | examples/controlnet/train_controlnet_sd3.py:822-845 | examples/dreambooth/train_dreambooth_lora_sd3.py:944-972 | examples/dreambooth/train_dreambooth_sd3.py:875-898 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c9600a8c84c8380127a8af0c56c689933058d01e748f8c272a1b2b0fe8c05e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:107-131 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:113-137 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:89-113 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:95-119 | examples/research_projects/controlnet/train_controlnet_webdataset.py:87-111 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b17d37569347fec7cecea5ac824f8c8b9d005c326991d14c98d23720b012cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:176-230 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:183-248 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:158-212 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:165-230 | examples/research_projects/controlnet/train_controlnet_webdataset.py:211-290 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe00d23030a9eb7219e77213b833ea4e607c644763b5ad28f60f2715a130cec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:374-388 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:217-231 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:361-375 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:352-366 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:340-354 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e047e80ab8c286717b3cda24a95d762848fde6979ce2e1c88dd209f601bec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:393-407 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:236-250 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:380-394 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:371-385 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:359-373 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5da9ed569789fbd83ff826f412e6eafc6fb62e45724d5509890d34ba7a8bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:419-428 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:82-92 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:406-416 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:397-406 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:429-439 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93e2cc082eacfa69d290b3b4bc5aed55a1e23e5c0726b0d0c0d51cfe16154aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:55-74 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:55-74 | examples/research_projects/lora/train_text_to_image_lora.py:58-78 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:89-110 | examples/research_projects/realfill/train_realfill.py:74-97 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"07baaa320db0474935eb5778d5966f77c045c5f7453017cd12c6ab6f20e8f7e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:348-368 | scripts/convert_original_audioldm2_to_diffusers.py:259-283 | scripts/convert_original_audioldm_to_diffusers.py:267-291 | scripts/convert_original_musicldm_to_diffusers.py:264-288 | scripts/convert_zero123_to_diffusers.py:494-514 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"6027b9a889ac1683c6801899ac24170aa047627be6a57ce35dca05f3c61bee9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1939-1977 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1992-2029 | scripts/convert_original_audioldm2_to_diffusers.py:843-1052 | scripts/convert_original_audioldm_to_diffusers.py:781-953 | scripts/convert_original_musicldm_to_diffusers.py:787-967 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1939}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ce056a1f54b61fcc078dafd483f71eb8c730eebec2229916e550d933988416"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1220-1252 | examples/dreambooth/train_dreambooth_flux.py:906-938 | examples/dreambooth/train_dreambooth_lora_flux.py:952-984 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1126-1158 \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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb76d6b212088d8bbcbe79c8780e721aff49f42851b6ef04d3ae9cca4f85370"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1263-1296 | examples/dreambooth/train_dreambooth_flux.py:949-982 | examples/dreambooth/train_dreambooth_lora_flux.py:995-1028 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1169-1202 \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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db702242d6115fee20b70244b05d5c762466da1968cc6690745b4c02ba83a12"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/img2img_inpainting.py:22-35 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:41-54 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:37-50 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:206-219 \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":"examples/community/img2img_inpainting.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2af676fc6dc0fc5193d9119773ef5c9e7d170afa36fc9f8851c66f7f3bbac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/llm_grounded_diffusion.py:1417-1427 | examples/community/pipeline_flux_kontext_multiple_images.py:452-460 | examples/community/pipeline_flux_semantic_guidance.py:522-530 | examples/community/pipeline_stable_diffusion_xl_ipex.py:507-517 \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":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d7f9aed62b3212d05585b4aa83c4907eeac7ad4ed6967e096d4b4cc99ed128"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/mixture_canvas.py:228-245 | examples/community/mixture_tiling.py:385-405 | examples/community/mixture_tiling_sdxl.py:684-706 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:990-1016 \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":"examples/community/mixture_canvas.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aee269492b28733c296103715df66a23b17e2a2873669621aa9cba4bae54b4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/community/stable_diffusion_controlnet_img2img.py:575-594 | examples/community/stable_diffusion_controlnet_inpaint.py:718-737 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:705-724 | examples/community/stable_diffusion_reference.py:236-270 \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":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ace6dda772014c3fad92e056684906750b0443de20eed49a0f5d32602688e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/controlnet/train_controlnet_flux.py:795-811 | examples/controlnet/train_controlnet_sd3.py:796-810 | examples/controlnet/train_controlnet_sdxl.py:810-826 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:764-780 \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":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f0380406fc50181a44193778559473323bc2ec0da6359b346029bf9855fd2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/controlnet/train_controlnet_sd3.py:215-224 | examples/dreambooth/train_dreambooth_lora_hidream.py:175-190 | examples/dreambooth/train_dreambooth_lora_sd3.py:174-183 | examples/dreambooth/train_dreambooth_sd3.py:150-159 \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":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd169083eca7fd207fea64df5b2aeb2d1b056c34b41bcea54e9aaac112bd7f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/dreambooth/train_dreambooth.py:209-229 | examples/dreambooth/train_dreambooth_lora.py:195-215 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:209-229 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:186-206 \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":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef457c9db689d1eae02b99272b7bc20e1a499ad2b2dba300544e21a33815c45"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/dreambooth/train_dreambooth.py:673-707 | examples/dreambooth/train_dreambooth_lora.py:638-672 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:693-727 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:633-667 \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":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bda6fb0786048d89fda1a373020285edae5c2547ce5185b50c590c7aa7795f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/dreambooth/train_dreambooth.py:711-742 | examples/dreambooth/train_dreambooth_lora.py:676-705 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:731-762 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:671-700 \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":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d638cf92c7bbdcd67659c012d2c1b9d25e26a8d6267752908b75ba5c33e754"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/dreambooth/train_dreambooth_flax.py:276-300 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:302-326 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:354-384 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:353-383 \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":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b0618bab20719888c691740c21086564230cf20f3a876a55f3495e79a791b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:955-978 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:951-974 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1070-1093 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:997-1020 \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":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2c91b1153af32fe0d301fc2383416d4fde77b0d1d357f47a9959f9da3f2d78"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/research_projects/ip_adapter/tutorial_train_faceid.py:128-145 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:130-147 | examples/research_projects/ip_adapter/tutorial_train_plus.py:130-157 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:190-207 \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":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddf397949c6169ce3d6edf2be1ebfbb4b40b280a848c0d75d34672d4f7d6f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:119-161 | examples/research_projects/realfill/train_realfill.py:114-165 | examples/textual_inversion/textual_inversion.py:124-172 | examples/textual_inversion/textual_inversion_sdxl.py:132-176 \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":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3415fa792b12c47841fe73465d766d8bf65405f58783b49f26fb3447c58b3bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): scripts/convert_cogview3_to_diffusers.py:159-238 | scripts/convert_cogview4_to_diffusers.py:167-250 | scripts/convert_cogview4_to_diffusers_megatron.py:268-380 | scripts/convert_mochi_to_diffusers.py:412-459 \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":"scripts/convert_cogview3_to_diffusers.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b17097f0a6830060412a43d0a02f61d6e8e548260aff1bcd435ee0bf35377b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): scripts/convert_if.py:679-700 | scripts/convert_kakao_brain_unclip_to_diffusers.py:888-910 | scripts/convert_kandinsky_to_diffusers.py:839-861 | scripts/convert_shap_e_to_diffusers.py:899-921 \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":"scripts/convert_if.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f352fbe307fd21d0c7741b20cf2799b18e21c29d110c030f1501179e377117"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): scripts/convert_kakao_brain_unclip_to_diffusers.py:52-169 | scripts/convert_kandinsky_to_diffusers.py:50-167 | scripts/convert_shap_e_to_diffusers.py:59-166 | scripts/convert_shap_e_to_diffusers.py:251-368 \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":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a660d1b13f3b211027495da95daab46931e902dbee08651cf7e3579b5d05a729"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): scripts/convert_kakao_brain_unclip_to_diffusers.py:629-681 | scripts/convert_kakao_brain_unclip_to_diffusers.py:732-796 | scripts/convert_kandinsky_to_diffusers.py:580-632 | scripts/convert_kandinsky_to_diffusers.py:683-747 \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":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69e5f870706c8b0729c57b61b1cd5eab301b71a9f31d5925f0f66b05d5506b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): scripts/convert_kandinsky_to_diffusers.py:952-1048 | scripts/convert_kandinsky_to_diffusers.py:1052-1155 | scripts/convert_vq_diffusion_to_diffusers.py:204-300 | scripts/convert_vq_diffusion_to_diffusers.py:304-403 \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":"scripts/convert_kandinsky_to_diffusers.py"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc70d1c10d8d51befefed8f54b3899ea2bf69f7a390d49314ac428865f0f8a9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (77 corresponding lines): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:273-349 | examples/community/pipeline_stable_diffusion_xl_instantid.py:273-349 \u2014 These two members are one piece of code written twice and then edited apart: 77 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ab5bda788aac0880aad6ded3f7c2187d6c0b7780284ca9466994796ca9e9bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (85 corresponding lines): examples/community/latent_consistency_img2img.py:294-389 | examples/community/latent_consistency_txt2img.py:220-304 \u2014 These two members are one piece of code written twice and then edited apart: 85 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b7ceaf092d13ea66c7670beb33c3038dee13657f12c63c9d095a431b17cffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): examples/community/clip_guided_stable_diffusion.py:117-166 | examples/community/clip_guided_stable_diffusion_img2img.py:252-301 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb055312e7e4c6ba85bad1530747642e0c8314c5019362959d128fdb55e5caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): examples/dreambooth/train_dreambooth.py:128-205 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:128-205 \u2014 These two members are one piece of code written twice and then edited apart: 78 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d541cde7d5fa699a24a41dd0e18aa39452de68317cd330a3532646da2107e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): scripts/convert_music_spectrogram_to_diffusers.py:20-39 | scripts/convert_music_spectrogram_to_diffusers.py:43-64 \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":"scripts/convert_music_spectrogram_to_diffusers.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbe0c9fbd9454e71ecb59c94f89e1ae3db308e40aa776cb021c715de221e700"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): examples/community/pipeline_zero1to3.py:350-404 | examples/community/pipeline_zero1to3.py:526-589 \u2014 These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_zero1to3.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1318c24b2bfaa53529aae9004615b965c29b92f2c7484056650235f3d07c4f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): scripts/convert_original_audioldm2_to_diffusers.py:634-689 | scripts/convert_original_musicldm_to_diffusers.py:614-669 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"58dedbd1aa009611837dd3a971f8949aa772c9145a90860231a32bedeaf2e331"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): examples/community/latent_consistency_img2img.py:82-151 | examples/community/latent_consistency_txt2img.py:80-149 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a727742bfc6e4b0301a2d09561a1b403925d35aba2b45d1e3f59f5b538e5e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (83 corresponding lines): examples/community/lpw_stable_diffusion.py:56-138 | examples/community/lpw_stable_diffusion_xl.py:55-153 \u2014 These two members are one piece of code written twice and then edited apart: 83 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2076c5fee2f0eea47c46e7fd7c1f6ff2e4e9d3f75ef007a758b43d5cbc0a8da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): examples/cogvideo/train_cogvideox_image_to_video_lora.py:706-761 | examples/cogvideo/train_cogvideox_lora.py:723-783 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fee9f6f808147b94f5c5f84b918f91325090fe2283d55a14425ade361b87caf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (82 corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:1042-1138 | examples/community/stable_diffusion_tensorrt_txt2img.py:974-1055 \u2014 These two members are one piece of code written twice and then edited apart: 82 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c367e4968b5c1b98354964a8020489159ca32db87c38d6741681576e046dd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): examples/community/clip_guided_stable_diffusion_img2img.py:188-237 | examples/community/stable_diffusion_controlnet_img2img.py:534-572 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:607-645 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 39 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":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5447081d6dc8a761b391309d8e4d4c6e6398061d272310fb51c177fe550728a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): scripts/convert_if.py:211-295 | scripts/convert_if.py:779-857 \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":"scripts/convert_if.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"105d7749848638ff126dbd1760e9f4a3926aed14d142c60ed66f741baeb4878b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): examples/community/stable_diffusion_xl_controlnet_reference.py:246-285 | examples/community/stable_diffusion_xl_reference.py:192-231 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb03ff2dcda27bc232ff42b8a503c05cc7e1f254987c91408d19629bbca1180"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): examples/research_projects/lpl/train_sdxl_lpl.py:619-657 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:508-546 | examples/text_to_image/train_text_to_image_sdxl.py:503-541 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 39 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":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4b63a69b07358c3e35ce083b11c051e70a4ad4fb152194140a44740494a05b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): examples/cogvideo/train_cogvideox_image_to_video_lora.py:564-611 | examples/cogvideo/train_cogvideox_lora.py:580-632 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f8c5b2a2de8414ecc95054faef62860131ce75ca2801e2fa687fc5e76da103"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:896-939 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:942-987 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63a47fb9db7ebcc3dd1dd4f62166977b387c337e7d42162c138b33a1d3510d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 37\u002B corresponding lines): examples/community/pipeline_flux_kontext_multiple_images.py:332-368 | examples/community/pipeline_flux_rf_inversion.py:287-323 | examples/community/pipeline_flux_semantic_guidance.py:291-327 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:320-356 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f0a8a2c717f339dde857d9ad62d1b36fd2a9261e2e6de4e1ded9031ec71162"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): examples/dreambooth/train_dreambooth_lora_sd3.py:1023-1060 | examples/dreambooth/train_dreambooth_sd3.py:949-985 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f9b88b04ea1694373989f6227aeba9b88db40ddf87f81f8473e6d6a03fe85d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): examples/dreambooth/train_dreambooth_lora_sana.py:181-215 | examples/research_projects/sana/train_sana_sprint_diffusers.py:275-309 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sana.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58e04b8b65715d8dba328467974815ccadfbefdfd794c04815ec73827b447cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): examples/community/stable_diffusion_controlnet_img2img.py:98-129 | examples/community/stable_diffusion_controlnet_inpaint.py:196-227 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c620db58ac3fc53f31346b2fe0f67fdc306f18cf6be88912436132c2e93bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): examples/community/pipeline_flux_differential_img2img.py:293-326 | examples/community/pipeline_flux_with_cfg.py:253-286 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe563a1fb36e6f72b93bcff8e06eb6b280dbaa1060564aab5a1cfc038ef798f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 37\u002B corresponding lines): examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:833-869 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:843-879 | examples/controlnet/train_controlnet_sdxl.py:723-759 | examples/research_projects/controlnet/train_controlnet_webdataset.py:860-896 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:688-724 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1af3d656d1b6e5b00a7f7a211ca230946db9dd45818e231d7de347e3aa4872"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): examples/dreambooth/train_dreambooth.py:631-667 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:651-687 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"4563c48f2fd2afa65897c12e11a69f31edf06d9387a489609086916d2f1692df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): examples/community/stable_diffusion_controlnet_inpaint.py:686-715 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:673-702 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca2dba7f673d9197c40662252ea1461eee325c7cd6431d3ccab03d8dafaeee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/masked_stable_diffusion_img2img.py:240-262 | examples/community/masked_stable_diffusion_xl_img2img.py:524-546 \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":"examples/community/masked_stable_diffusion_img2img.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6d72de85772891725bb39b72476a34cd760a1b2e2b39b9daf5f16c9dd6f3b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/community/stable_diffusion_controlnet_inpaint_img2img.py:188-216 | examples/community/stable_diffusion_reference.py:684-740 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint_img2img.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e2f35e844c641e5f8b3e54d96323fda7ed4c9e810bb3a39af339e867ebd13a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): examples/community/mod_controlnet_tile_sr_sdxl.py:792-824 | examples/community/pipeline_animatediff_controlnet.py:630-664 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f4e946f56cdf6f76cccf39609c0035a11cc4a3e5055b10f8d51fbdbd815efb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): examples/community/pipeline_animatediff_controlnet.py:408-437 | examples/community/pipeline_animatediff_img2video.py:525-554 | examples/community/pipeline_stable_diffusion_pag.py:761-790 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"27af8e1299937d7f8b333789514d65459148b9d65158fd6c0ad0bec1759a9759"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:212-238 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:358-385 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7e94789086b3233a6ecbbaefdfa6e9f428e0e7a846ab57c60799858b1f99c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/cogvideo/train_cogvideox_image_to_video_lora.py:449-478 | examples/cogvideo/train_cogvideox_lora.py:434-462 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51650bd3b0a921fd58046cb6d75efdeb5112f985ec7497a0ff8e107aa17d641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/dreambooth/train_dreambooth_lora_sdxl.py:870-897 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:869-896 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42327a8f9997270bc0bcbeb6f474608cf543aeb1d3b485b4a895183110a6a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): examples/community/mod_controlnet_tile_sr_sdxl.py:335-366 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:273-303 \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":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"50565796af5115f661eaec458c8b61c755abef3f62214b009598dda586b034d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 34\u002B corresponding lines): examples/dreambooth/train_dreambooth_flax.py:237-270 | examples/dreambooth/train_dreambooth_lora.py:592-632 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:313-348 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:312-347 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:591-627 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6757123f5b41fb9cf37eedb5b182e0efc343aecb2415ee1ca7c2b7851854785"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): examples/community/gluegen.py:31-56 | examples/community/gluegen.py:80-99 \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":"examples/community/gluegen.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2c3c51e74007c8f7eda54a52b691942c0974247de847e953be89378c108838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): examples/dreambooth/train_dreambooth_lora_sd3.py:983-1011 | examples/dreambooth/train_dreambooth_sd3.py:909-937 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"a128332e857c751bbedf9fb63ecfdb9cd0ffaebf759088791dc12673b235e69b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): examples/community/latent_consistency_interpolate.py:81-123 | examples/community/pipeline_animatediff_img2video.py:75-104 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2941988cdb2b0c4729bb3c5682e81651cd7a734084923045330beda211ce643"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): examples/community/regional_prompting_stable_diffusion.py:1585-1605 | examples/research_projects/sana/train_sana_sprint_diffusers.py:104-117 \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":"examples/community/regional_prompting_stable_diffusion.py"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e66543ee70f80aad7b26b46a0de81de14684ae0427f3a292ebaef650f3eb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 35\u002B corresponding lines): examples/community/img2img_inpainting.py:96-130 | examples/community/interpolate_stable_diffusion.py:87-121 | examples/community/multilingual_stable_diffusion.py:99-136 | examples/community/wildcard_stable_diffusion.py:121-155 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1d16a7df24319347a641c273dd6c36d9c0bbeaa24aea3ebee22a1022891c7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): scripts/convert_original_audioldm_to_diffusers.py:689-710 | scripts/convert_original_musicldm_to_diffusers.py:695-716 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm_to_diffusers.py"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e31046c61f6da91d46bc295aa1ed6a077ed5ecf0d5f63d4aa9e11ff7692c880"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): examples/dreambooth/train_dreambooth_lora_sdxl.py:957-980 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:956-979 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:489-512 | examples/text_to_image/train_text_to_image_lora_sdxl.py:528-551 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"9307c74155e17410ee7c24d56c810ad92a9ab4708809a947748ff9f8d99e1f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): scripts/convert_hunyuan_video_to_diffusers.py:267-282 | scripts/convert_joyimage_edit_to_diffusers.py:259-294 | scripts/convert_ltx_to_diffusers.py:387-417 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"scripts/convert_hunyuan_video_to_diffusers.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ec67b30a6912df87e8572bb354dae24026d10fc2652b78655c817ec65fb8fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 24\u002B corresponding lines): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1132-1159 | examples/dreambooth/train_dreambooth_flux.py:823-846 | examples/dreambooth/train_dreambooth_lora_flux.py:869-892 | examples/dreambooth/train_dreambooth_lora_hidream.py:876-899 | examples/dreambooth/train_dreambooth_lora_lumina2.py:799-822 | examples/dreambooth/train_dreambooth_lora_sana.py:810-833 | examples/dreambooth/train_dreambooth_lora_sd3.py:863-886 | examples/dreambooth/train_dreambooth_sd3.py:795-818 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 24 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 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc63d4035727502952bacfd0fc5ba3d55e3e3de480060134d688297f2c93719b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/research_projects/autoencoder_rae/train_autoencoder_rae.py:188-210 | scripts/convert_rae_to_diffusers.py:207-230 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/autoencoder_rae/train_autoencoder_rae.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9091a069b3e0b25fc04bf5c77554b4e62e46694ab326812fe64a57f16b854b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/research_projects/rdm/pipeline_rdm.py:87-106 | examples/research_projects/rdm/retriever.py:198-216 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/rdm/pipeline_rdm.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"59374ba8dab9873e7a2c79f27139990d02bac28ed5b2bf4e196821854394c07c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1238-1260 | examples/dreambooth/train_dreambooth_lora_sdxl.py:901-923 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:900-922 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 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":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55820434c515090f3ffb73e16627d34c423f53236e52a7c66d3a83f3aaa4906"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): examples/community/latent_consistency_interpolate.py:592-613 | examples/community/latent_consistency_interpolate.py:623-639 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f2cc3cb07cc38dc4ad9dc35be0561127cac57ba288d865486ac77f9c25f20e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): scripts/convert_consistency_decoder.py:289-304 | scripts/convert_consistency_decoder.py:320-334 \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":"scripts/convert_consistency_decoder.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5b9854272f5147504ba2f84201399d590d028c3c6fbcb69f144fd6781bb232"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/lpw_stable_diffusion_xl.py:2230-2250 | examples/community/pipeline_demofusion_sdxl.py:1352-1378 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":2230}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a37b46aa0ded4846604ba4a36ac547a39785c715f5386c2af50bc2550d7b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): examples/community/stable_diffusion_controlnet_inpaint.py:664-681 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:651-668 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07f85f212008750006e7fc84787efffe051d585daedbeba7c28576235066851"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:853-874 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:818-839 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae58a303678ea68543f71d120b35247dd9c82ed6aaee68f17a52058eef1e47c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): examples/research_projects/controlnet/train_controlnet_webdataset.py:136-151 | examples/research_projects/controlnet/train_controlnet_webdataset.py:155-170 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2970c2806c998f9a7be6fabd060869f667d345ef5e45fdf876f01d9f51f1119"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): examples/dreambooth/train_dreambooth_lora_krea2.py:1052-1076 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:944-968 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:978-1002 \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":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c53e60e3809ce5102e5e0226fd5f3787262e62f87e35c2134ec83b0b8917dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/latent_consistency_img2img.py:652-676 | examples/community/latent_consistency_txt2img.py:562-584 \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":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"620817b5a0715a975f042f1c79bde53cfa225678576ff7b85ad0aef28d4686b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/community/pipeline_kolors_differential_img2img.py:199-222 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:193-215 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed356ef0cd1b3741fef646f4860031d4428161aa65fa96e872f052cdbfbdc2ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:982-994 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:978-990 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1097-1109 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d112bd9c1dcab3cff0dc25255114a8ba280daaf8b6dbc51542eb0c2aca60bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): scripts/convert_stable_diffusion_controlnet_to_onnx.py:98-128 | scripts/convert_stable_diffusion_controlnet_to_onnx.py:151-184 \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":"scripts/convert_stable_diffusion_controlnet_to_onnx.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6db2ad238267d7c4aa83535c179c7db522cab3a4afb80d3c1eeb34f5c8dd0e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:472-496 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:512-535 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"900e4a0497b3f6acaacd974f52dcf9c89c7c4915eff394cc11be340f56aa902e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): scripts/convert_hunyuan_video_to_diffusers.py:222-241 | scripts/convert_ltx_to_diffusers.py:135-156 | scripts/convert_ltx_to_diffusers.py:160-181 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"scripts/convert_hunyuan_video_to_diffusers.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aff7a1647e3b22d2be6741629413b8d521184e7294190384cc21ef60a2cbd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): scripts/convert_cosmos_to_diffusers.py:804-828 | scripts/convert_cosmos_to_diffusers.py:832-857 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_cosmos_to_diffusers.py"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca49cc96159c27efd269615712faea50d285de839fbcb83e85187f3c62f81cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): examples/community/pipeline_flux_rf_inversion.py:212-228 | examples/community/pipeline_flux_with_cfg.py:183-199 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ad5366f8681567fa8939abbcf65816f1868f2a5ce8d1c4ec7489d9cb6f88f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/community/latent_consistency_img2img.py:53-73 | examples/community/latent_consistency_txt2img.py:51-71 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6562e1291eb860cd24ecc0c4ded031fb97e42728c0adde2a8abc089f54071e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): utils/tests_fetcher.py:236-274 | utils/tests_fetcher.py:311-348 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/tests_fetcher.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c88b8b36bc481353e8f189c2294009a3276c09c42fac75bf08bfe6bf2602c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): scripts/convert_kakao_brain_unclip_to_diffusers.py:686-725 | scripts/convert_kandinsky_to_diffusers.py:637-676 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"52492e98727ee64e0be474f4521ac7967191c7b400e9de835e215d8f1fdbb5ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:490-509 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:480-499 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:465-484 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"062caac55f0511a605fc6344be473b28cf4e8df9715623826608ed5911d78edd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): examples/server-async/Pipelines.py:41-58 | examples/server/server.py:49-66 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/server-async/Pipelines.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bf9be0285a39ee7f98317870876f176bcb9aaa236b0779cb0e61acf0ff2e3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): scripts/convert_cogvideox_to_diffusers.py:177-197 | scripts/convert_dcae_to_diffusers.py:98-118 | scripts/convert_hunyuan_video_to_diffusers.py:245-263 \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":"scripts/convert_cogvideox_to_diffusers.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ca4e9df9ac782b0e7c457d77f3fb28e430d529bf24e428bd81de4589266635"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): examples/community/composable_stable_diffusion.py:313-325 | examples/community/sd_text2img_k_diffusion.py:247-259 \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":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8e4f2d8bac3902c38201ae6ed690b088c5044b00417ae286982781e577f8de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): examples/community/composable_stable_diffusion.py:328-347 | examples/community/sd_text2img_k_diffusion.py:262-275 \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":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"564524882c58a4644161438072f0b26a905c18a44207ed661698c0520cbd55aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:819-833 | examples/community/stable_diffusion_tensorrt_inpaint.py:823-837 \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":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4ae04589a6a1cb59a89eadc72342232a7fdbabc32467e762061580798786d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): examples/community/adaptive_mask_inpainting.py:465-490 | examples/community/lpw_stable_diffusion_xl.py:694-721 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2e26e2b50a4cd8e3d9c3521bfe274c7516bfb387896d1bb952f47c0d21d449"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:915-933 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:911-929 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1030-1048 \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":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae65dc429442b4c93a7854b1185896d22fa836458dc1dd17f80bdc90406ebb28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): scripts/convert_i2vgen_to_diffusers.py:113-132 | scripts/convert_ms_text_to_video_to_diffusers.py:118-137 \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":"scripts/convert_i2vgen_to_diffusers.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7dcd052c10f6ab28a62a88b1a6c18e095a188a69959e8ee851148ebac5fd14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): examples/community/magic_mix.py:51-71 | examples/community/pipeline_null_text_inversion.py:163-176 \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":"examples/community/magic_mix.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"396b7ef9a305e0876d6b4d4cd7cb2ee8800d55b4d2369545e214b129dca022f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): examples/community/llm_grounded_diffusion.py:1486-1505 | examples/community/pipeline_prompt2prompt.py:538-557 | examples/community/stable_diffusion_repaint.py:528-547 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a446be87c23d0499dfb88ba012ced2bee6f4790ccc50b596d15bf316eda1e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): scripts/convert_stable_diffusion_controlnet_to_onnx.py:197-224 | scripts/convert_vae_diff_to_onnx.py:38-64 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_stable_diffusion_controlnet_to_onnx.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45d15ff404730063e8670308d0c89d8f15d480bca0ffafb6298f8ad6bfd358b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): examples/cogview4-control/train_control_cogview4.py:697-702 | examples/flux-control/train_control_flux.py:689-694 | examples/flux-control/train_control_lora_flux.py:717-722 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1e4aa484829f32dcb2d56d5848c45f2cd840ece808660b17b321ed14ced2be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): scripts/convert_cosmos_to_diffusers.py:758-782 | scripts/convert_cosmos_to_diffusers.py:786-800 \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":"scripts/convert_cosmos_to_diffusers.py"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"221f3a371880dc3f36a401da649e8f6b9f79a0926336e5cf31275020cb11d228"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): examples/cogvideo/train_cogvideox_image_to_video_lora.py:622-665 | examples/cogvideo/train_cogvideox_lora.py:643-683 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce49def2b4ba55fd2035f3a287bc2f9c34949c4cc6686d5693446db4426eede"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): examples/research_projects/anytext/anytext_controlnet.py:216-256 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:142-180 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"b031b61a071dcc680b92f0ba848ad3a0b1c9325507f622eeae26c03b94202811"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): examples/research_projects/sdxl_flax/sdxl_single.py:74-88 | examples/research_projects/sdxl_flax/sdxl_single_aot.py:112-120 \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":"examples/research_projects/sdxl_flax/sdxl_single.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a187d34518ec92c63f1c36d772e5817ae60490ead5b48e1049fbfd473b659e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): scripts/convert_consistency_decoder.py:249-259 | scripts/convert_consistency_decoder.py:279-286 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_consistency_decoder.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a75d7c4970ec9229c2d977e034988cd67c84aef0ca73cc8d186ae0a527fc28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 122\u002B corresponding lines): examples/model_search/pipeline_easy.py:1164-1285 | examples/model_search/pipeline_easy.py:1415-1537 | examples/model_search/pipeline_easy.py:1667-1788 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 122 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":"examples/model_search/pipeline_easy.py"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af70193c1aea4741a020bc0812ba08cadd534ec57a5f0b7b3b50e0af7799cc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): examples/community/pipeline_null_text_inversion.py:90-99 | examples/community/pipeline_null_text_inversion.py:102-112 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1373-1386 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 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":"examples/community/pipeline_null_text_inversion.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf7d2c865eec9e586697aa486e5c2e385e924834f4e57bd61474f0ecb1adcf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:915-921 | examples/community/stable_diffusion_tensorrt_inpaint.py:998-1004 \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":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76ac95651da6cce7eb30dea04cc5ee93cb3190af2959fe10add0eb1660a770c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): examples/community/edict_pipeline.py:98-108 | examples/community/edict_pipeline.py:117-126 \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":"examples/community/edict_pipeline.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44dee8b42c29adad01d6969f470a4e86e012689126659b256058ffd009f6db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): utils/tests_fetcher.py:107-135 | utils/tests_fetcher.py:139-162 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/tests_fetcher.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fbe7d4cde9a2a737b6bae28a6ef204d8af2a025a8cb3e458f82c8cae26e09c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1000-1016 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:567-584 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:605-619 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6f3c1cf37bef8cf3d5856ac1eadab351e189b4690b402a3afe8c34f01944a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): utils/tests_fetcher.py:184-206 | utils/tests_fetcher.py:210-232 \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":"utils/tests_fetcher.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"602cb2c3bb4d0f3a87b799775471bb531151fd58c428b94f882d5c9468dad7a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): examples/dreambooth/train_dreambooth.py:763-769 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:783-789 \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":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"d686c78f1dd1b0c1d7ffb2060a5dc28b04c64367cdb1fef7aa2e86e6f08957e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): scripts/convert_vq_diffusion_to_diffusers.py:105-122 | scripts/convert_vq_diffusion_to_diffusers.py:126-143 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_vq_diffusion_to_diffusers.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ce2b85b6e71da0591b03b0af39fb7e6f41ada771910b9bd2b20350f954b96f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): examples/research_projects/intel_opts/textual_inversion_dfq/text2images.py:76-86 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:422-432 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion_dfq/text2images.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0a810f7f0cdefd2657b8b3c8dcfad0e41518c67377d442377d12cb7cfd0c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:554-560 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:590-596 \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":"examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72d020bde5575d4173a83da8d037adf4d628109b544277510b5a7c86e38a824"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): scripts/convert_kakao_brain_unclip_to_diffusers.py:943-963 | scripts/convert_kandinsky_to_diffusers.py:868-887 \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":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"61da9af0ebae27ba4518c57b586e0d959170a57086a1aa90defc28efe454567f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:1018-1020 | examples/community/stable_diffusion_tensorrt_inpaint.py:1101-1103 | examples/community/stable_diffusion_tensorrt_txt2img.py:952-954 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ef926bdd9c7345f416dec6c46626fcfd5e5eb1c78d9a90341b7821b6213e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 99\u002B corresponding lines): examples/model_search/pipeline_easy.py:1289-1387 | examples/model_search/pipeline_easy.py:1541-1639 | examples/model_search/pipeline_easy.py:1792-1890 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 99 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":"examples/model_search/pipeline_easy.py"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4de8b61d6242e4771afa0bbfd9e7e9640ef6858230cd13fdde5e732e96daff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): examples/research_projects/anytext/ocr_recog/RNN.py:84-96 | examples/research_projects/anytext/ocr_recog/RecSVTR.py:35-47 \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":"examples/research_projects/anytext/ocr_recog/RNN.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e158943ea3bb279a25fde0d07ca0775745fb9d34e86017aedf846e256ea13f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): examples/community/clip_guided_images_mixing_stable_diffusion.py:70-72 | examples/community/clip_guided_stable_diffusion.py:44-46 | examples/community/clip_guided_stable_diffusion_img2img.py:118-120 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8d652c4facf51ae21a140c3ad1823cc57f4f658cf5bd92d95191b2ab00fe23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 4\u002B corresponding lines): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:116-119 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:123-126 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:117-120 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:124-127 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:128-131 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:127-130 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b8448058af2cf3fa8684d87b1e075434169640f7bc0255cf778f9dcf4ce51d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:502-510 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:541-548 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acaeb043b254c74f9418c260db4c721f211e607dd99b8d623f0f5ab3c6ab18b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): examples/community/interpolate_stable_diffusion.py:378-388 | examples/community/sde_drag.py:366-374 \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":"examples/community/interpolate_stable_diffusion.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e6baa1aefc11015e7bb685d4556ddf7663386d62a353faa1ecd2058e11fcee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:149-151 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:156-158 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"68461124620c466a4ad11bc59aefadd2ed2779ca1b557ae18f4c16a13d4808e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): scripts/convert_wan_to_diffusers.py:1154-1158 | scripts/convert_skyreelsv2_to_diffusers.py:572-576 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_wan_to_diffusers.py"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfe05bbc04de0bcb18faa5c7ff00d5fadd5272ba4b07874dc565ce55fdbc389"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:60-63 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:50-53 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:165-172 \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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b6d0d62ac008a3927a02b5f5b4cbcdb31820c6464620ea66d118ef9234834f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): scripts/convert_kandinsky_to_diffusers.py:1321-1328 | scripts/convert_blipdiffusion_to_diffusers.py:294-299 \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":"scripts/convert_kandinsky_to_diffusers.py"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e9fabe500303f04e007b0ccc5c8a02c912fbf52c0f84c342851d63649161d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): examples/cogview4-control/train_control_cogview4.py:71-73 | examples/flux-control/train_control_flux.py:66-68 | examples/flux-control/train_control_lora_flux.py:69-71 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b465d0cbb480e871433f476fe048b92e351f1ac7651e1a10d3c75de45f728be1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): examples/community/ip_adapter_face_id.py:447-450 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:524-527 | examples/community/pipeline_stable_diffusion_xl_instantid.py:524-527 \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":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada1bd28874915941cc2610bf3b58fcba2d9b8f70b0dbeac0db7415bfbe72e52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:189-192 | examples/community/stable_diffusion_tensorrt_inpaint.py:193-196 | examples/community/stable_diffusion_tensorrt_txt2img.py:176-179 | scripts/convert_stable_diffusion_controlnet_to_onnx.py:43-46 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"759d887ff4be8cf6f79d684d676387bcc0207bce65a74c166a9e892e4966851f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:422-425 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:479-482 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"21466f51daa38f6e031406ff1213570aebf718e064f5f2e734e1694aac90c702"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 3\u002B corresponding lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:411-413 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:254-256 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:398-400 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:389-391 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:377-379 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:86-88 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3585667eafc677ae51c778d22f2af92062ff4649c62a119b926d5585321186"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): examples/community/pipeline_prompt2prompt.py:984-987 | examples/community/pipeline_stable_diffusion_boxdiff.py:211-214 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1546a1f38c57828f423ba561c278f0b2af25658c5044917ed779ea8b2b51b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:437-440 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:101-104 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:425-428 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:415-418 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:448-451 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"b214b3f20d7ce8e6ea56f431909a4ecb7e3db6f33d8943287186407034fa2383"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:579-580 | examples/community/stable_diffusion_tensorrt_inpaint.py:583-584 | examples/community/stable_diffusion_tensorrt_txt2img.py:566-567 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6960501a6422897ffdccf538ac45bbc49004e765dd1d67ff57502cf8a0fd88c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 4\u002B corresponding lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:366-369 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:209-212 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:353-356 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:344-347 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:332-335 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:192-195 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"d229e5d221c443503b6f0e28c529d4fd641822236da1db97fce0311a05f31488"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/research_projects/autoencoder_rae/train_autoencoder_rae.py:182-184 | scripts/convert_rae_to_diffusers.py:196-203 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/autoencoder_rae/train_autoencoder_rae.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00ee9570a2c852e557a13665d1bb1290c03af11f34150481a0e4b48f72df67f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:431-434 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:95-98 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:419-422 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:409-412 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:442-445 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"604dfb98767cd281204f2fe3aa208c83cfb68cfb8803abdce1ceef6629c344d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:650-651 | examples/community/stable_diffusion_tensorrt_inpaint.py:654-655 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"195b55f0083e7594a3cd4267502e33abd0fcbe7417ad8ff5c6b20d3a84ca5dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:547-547 | examples/community/stable_diffusion_tensorrt_inpaint.py:551-551 | examples/community/stable_diffusion_tensorrt_txt2img.py:534-534 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5092283bd7395523977b3a0294182667816fa9e6296b91de3c8e33cbe3445e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:614-614 | examples/community/stable_diffusion_tensorrt_inpaint.py:618-618 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd80171e92ad98ffdaf93b089206ab1437f9ccf3d435a9b8566ea03fb2c0669"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:135-137 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:134-136 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"809caede8d15090691e58fb56f6856d7d43a5ebf701d4efa1133f0be5d14a0e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:429-430 | examples/community/stable_diffusion_tensorrt_inpaint.py:433-434 | examples/community/stable_diffusion_tensorrt_txt2img.py:416-417 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbe8731edfd227fee7dd31eaa51f39a1f60025ce5eb96a902c91b4bddce138c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): examples/instruct_pix2pix/train_instruct_pix2pix.py:417-418 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:474-475 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02098a22ccf7291ab2894209ea0cf377e01c26d09e741c67bb4bc4ecdd1f838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): scripts/convert_ltx2_to_diffusers.py:1256-1261 | scripts/convert_ltx_to_diffusers.py:185-192 \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":"scripts/convert_ltx2_to_diffusers.py"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada2abc5a1f4de135e527d0c9ee338edc94b29348b8f378006a362a225c7f17b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:195-198 | examples/community/stable_diffusion_tensorrt_inpaint.py:199-202 | examples/community/stable_diffusion_tensorrt_txt2img.py:182-185 | scripts/convert_stable_diffusion_controlnet_to_onnx.py:49-52 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f34b450d0373b00384d2451635c39e4875933beb5903a2e2b23c5127a87c822"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:136-139 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:142-145 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:118-121 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:124-127 | examples/research_projects/controlnet/train_controlnet_webdataset.py:116-119 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c45486136576175b9fed20a364ce91e0cb49a484216e2212f983aa510ef915"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:932-934 | examples/community/stable_diffusion_tensorrt_inpaint.py:1015-1017 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"39932b255539757a1e1a21e054f06096d044bdc9bf9eab0ea56f0c88ef3c2c02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:398-401 | examples/community/stable_diffusion_tensorrt_inpaint.py:402-405 | examples/community/stable_diffusion_tensorrt_txt2img.py:385-388 \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":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"9090b544b96bc6177c5e7461fca4f1b5a5f255d2078aa608a71fa293e148e311"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:535-538 | examples/community/stable_diffusion_tensorrt_inpaint.py:539-542 | examples/community/stable_diffusion_tensorrt_txt2img.py:522-525 \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":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f7f2c6a17eb26fa63d53a623e748fc9121b89f30eb36c38c3614cffd2ddd09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): examples/community/stable_diffusion_tensorrt_img2img.py:598-601 | examples/community/stable_diffusion_tensorrt_inpaint.py:602-605 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9d6c8657c6e42d9dcd93fcc56ec3c4d596e02f7c27ed0a66b6f2d82fdca437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (188\u2013189 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:901-1089 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1240-1427 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd09ea1e533d55fa710deb532d8631aa8e0641fd94f9509e63bd0c12ff2de24e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (112\u2013154 lines \u00D7 5): examples/community/fresco_v2v.py:2082-2201 | examples/community/pipeline_animatediff_controlnet.py:777-888 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:590-743 | examples/community/pipeline_stable_diffusion_xl_instantid.py:586-739 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:938-1058 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1021 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2082\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fa0f5710bf11585f2acea3cf5f3160bcf9d2159dad9756b005fe261d345492"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (145\u2013151 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:85-235 | examples/cogvideo/train_cogvideox_lora.py:76-220 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:85\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"28451102ff2f8484ea77a6c0e42509f34fd5b6e3f0f6c79adc989c8568f9ac77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (143 lines \u00D7 4): examples/community/lpw_stable_diffusion_xl.py:1437-1592 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1838-1980 | examples/community/pipeline_sdxl_style_aligned.py:1409-1560 | examples/community/pipeline_stable_diffusion_xl_ipex.py:759-909 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 832 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1437\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04bcb0285de91a779d13e9bbd9f7cc7797cdfbb7321d3bcac00df3e4794ba33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (193\u2013195 lines \u00D7 2): examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:56-250 | examples/unconditional_image_generation/train_unconditional.py:74-266 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 1025 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a58d24dd9cd2ef95fb6db669ff3d287dafc598c8103241605367eb0ddd622c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (105\u2013111 lines \u00D7 2): examples/community/stable_diffusion_controlnet_inpaint.py:767-871 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:755-865 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py\u0060 as WHOLE FILES: this scan already matched 68 separate duplicated blocks between them, totalling at least 1028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"59351581aa5768cf9935c88ea21ba6c8868bac44d92ad6dc565bfd16ac27f7fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (107\u2013109 lines \u00D7 2): examples/community/pipeline_stg_ltx.py:589-695 | examples/community/pipeline_stg_ltx_image2video.py:649-757 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_ltx.py:589\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":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8d14b4e8c66d5198f85a70a7aabc680e1c80f4b40b6bf2184d84e974f418b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (103 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1018-1120 | examples/cogvideo/train_cogvideox_lora.py:1039-1141 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde81969dbcc04fce0d39f50dca68439d88cb75fa3add110ae5d35020371c44a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (103 lines \u00D7 2): examples/dreambooth/train_dreambooth.py:925-1027 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:968-1070 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 173 separate duplicated blocks between them, totalling at least 3201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:925\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"b179ddb77b622a8e09b3b108db539242cd1210ecb3db67ac12220d38a07ee2f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (163\u2013166 lines \u00D7 2): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:409-571 | examples/textual_inversion/textual_inversion_flax.py:425-590 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 and \u0060examples/textual_inversion/textual_inversion_flax.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 848 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/textual_inversion/textual_inversion_flax.py:425\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"824f8a8d7df8b75176d2ad1894d398980da40316c65aa0c86752274ea86ed848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (144 lines \u00D7 4): examples/community/stable_diffusion_controlnet_reference.py:375-518 | examples/community/stable_diffusion_reference.py:1027-1170 | examples/community/stable_diffusion_xl_controlnet_reference.py:782-925 | examples/community/stable_diffusion_xl_reference.py:638-781 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_reference.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa11e9cb86264b8c4d9a4869c1978c82df21f4cda08ab776897d110d24aa532"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (90 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:393-482 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:323-412 | examples/text_to_image/train_text_to_image_sdxl.py:327-416 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lpl/train_sdxl_lpl.py:393\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f55cfe6e1dd436a74c6dd64f7c9ddd132b0e82a474ad7b88c47f227813df696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (87 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:492-578 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:294-380 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:466-552 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:470-556 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:489-575 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:492\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32e07e1698ac2d46a42cc93ea2a0533dfb19b761c07520d69dcf5015a69a382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (84 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:715-798 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:542-625 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:695-778 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:715\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdd26101fe90529c4ecd78a51f5822eccd98b2e7b9969487749e71aab904523"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (178 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1832-2009 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1928-2105 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py\u0060 as WHOLE FILES: this scan already matched 211 separate duplicated blocks between them, totalling at least 4020 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1832\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":"examples/dreambooth/train_dreambooth_lora_qwenimage21.py"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40c7c833d9c4d9afee33c12a9c3c73ed7043490de4943a1316863ca254b5609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (144 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1154-1297 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1155-1298 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 97 separate duplicated blocks between them, totalling at least 2013 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"3687500cc87b023018a247264764ee72f30036a61f40592741d9244766397f9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (81 lines \u00D7 2): examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:612-692 | examples/unconditional_image_generation/train_unconditional.py:664-744 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 1025 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab555792441c98e21bc30b325e00a284c1f1461e7e5e2288812dedc2929f2e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (217 lines \u00D7 2): scripts/convert_i2vgen_to_diffusers.py:229-445 | scripts/convert_ms_text_to_video_to_diffusers.py:185-401 \u2014 before extracting anything, compare \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 and \u0060scripts/convert_ms_text_to_video_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_i2vgen_to_diffusers.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e1d743e1058a2732f72401cbc7626dc640856ff5b62460e5be7e4a18d4cf57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (184 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:660-843 | examples/text_to_image/train_text_to_image_lora_sdxl.py:686-869 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 169 separate duplicated blocks between them, totalling at least 3160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:660\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":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a52ce47ac89d650dd3afe81c39f4b6ad1b4118dec2f505ef946f7db1116ace6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 2): examples/community/latent_consistency_img2img.py:698-775 | examples/community/latent_consistency_txt2img.py:606-683 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cb2d6bb4a2c070dd18d69e08044571881ae0e33ac617b704e9832ae60f1b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 2): examples/dreambooth/train_dreambooth.py:1370-1447 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1433-1510 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 173 separate duplicated blocks between them, totalling at least 3201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:1370\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":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02315f82f9154452892d9b0faad1621dc06f6f34e92380266d3b7cb1ee29894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (77 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:350-426 | examples/cogvideo/train_cogvideox_lora.py:335-411 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:350\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, \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:427\u0060 calls \u0060add_argument\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py:413\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":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"36407eeba85ea2f073c33762690adaff3093e89d02a5efaf8b1354dfca351c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (186\u2013187 lines \u00D7 2): examples/flux-control/train_control_flux.py:959-1144 | examples/flux-control/train_control_lora_flux.py:1104-1290 \u2014 before extracting anything, compare \u0060examples/flux-control/train_control_flux.py\u0060 and \u0060examples/flux-control/train_control_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 123 separate duplicated blocks between them, totalling at least 2489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/flux-control/train_control_flux.py:959\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":"examples/flux-control/train_control_flux.py"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"36aab8c14c188e71fc56ba4d86493e131c3ab5dfdf03a3f93bf6b18269b9a18f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (76 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:883-958 | examples/cogvideo/train_cogvideox_lora.py:905-980 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b79b8bbaa2c85e1e322eae8c7ae64c091f6dd3ee9f6b4a1f6aa9c6d2765802c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (76 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1104-1179 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1060-1135 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"1397f4b0766f2a0b9e4cb3cb7b6d53739e9daf177d3e537d4d853363232dd4e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (76 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_sd_wds.py:979-1054 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1039-1114 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1038\u0060 calls \u0060to\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:978\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":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfab970110dd5513f268931a158c3eac7bd15717474badf383e7fb9bbf0b30c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (108 lines \u00D7 2): examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:302-409 | examples/unconditional_image_generation/train_unconditional.py:311-418 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 1025 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a85bf96081de0a324a7d571e65c4968a6a495437e40fc6cd47fc456fbfee04c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (130 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora.py:957-1086 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:974-1103 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 162 separate duplicated blocks between them, totalling at least 2821 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora.py:957\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f7969c7ec0e31700ed2136f3a2ed92f93d54dff2abb2dba686a0f14bb9e2a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (74 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:316-389 | examples/community/stable_diffusion_tensorrt_inpaint.py:320-393 | examples/community/stable_diffusion_tensorrt_txt2img.py:303-376 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"1986683a83991d146defb2203e48b7e0e138b6ca2c9045b77e14bb60f796d995"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (73\u201374 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1170-1242 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1575-1648 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd37ebbcf35a89e53d210932544b769049d6373dd1e72fc57e5883fcdb98426a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (140\u2013141 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:770-909 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:766-905 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:884-1024 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:770\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":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"3302d158b2f5cfb146699b9ec92d7784482a2a79198179aa9921a48e28a412e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (71 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_sd_wds.py:693-763 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:718-788 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:693\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"3679bea04488a3e1cd83861c6aee8aaf9f9e7308b2465bfa0e75d129ae379432"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67\u201369 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1547-1613 | examples/dreambooth/train_dreambooth_lora_flux.py:1235-1302 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1420-1488 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1547\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e432b2b2f3eb680e8784c535fbc27f524e6289451cd24e61b42feb89b68289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (239 lines \u00D7 2): examples/dreambooth/train_dreambooth.py:341-579 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:341-579 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 173 separate duplicated blocks between them, totalling at least 3201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:341\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"66357a873ecce348e24cdb5386e17d205fe75443c4899d905d22e86b6fa88a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53\u201367 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:1042-1103 | examples/community/stable_diffusion_tensorrt_inpaint.py:1126-1192 | examples/community/stable_diffusion_tensorrt_txt2img.py:974-1026 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_tensorrt_img2img.py:1042\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":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d500a7d9b6c2918c7184f903f25f26bfc2ea8a209679b420679f4a66e6c0a03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sd3.py:1520-1588 | examples/dreambooth/train_dreambooth_sd3.py:1359-1427 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 188 separate duplicated blocks between them, totalling at least 3169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:1520\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"2749bb1f602f0035f4e12a1b88ab7af03e89436f501aace3d507df8904bb12f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:466-532 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:464-530 \u2014 before extracting anything, compare \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1487 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90476a872b5c1d82dfd4ed398b1185b5789b188d22f0391c25bd9835986ffe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63\u201366 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:963-1028 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:980-1042 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:963\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89ea7b4b2876d677c8560a8e0d5d08f0ab2c40d8db688780cb8fb453d0f9de1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (66 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora.py:877-942 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:896-961 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 162 separate duplicated blocks between them, totalling at least 2821 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora.py:877\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8e0388069878ae0abe260d59fcb5fd033c446a40cc6b7d8752642e4985af08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64 lines \u00D7 2): examples/dreambooth/train_dreambooth.py:128-191 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:128-191 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 173 separate duplicated blocks between them, totalling at least 3201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5a030c6b1ab46992ab9f412f2f0a1e8be75aeec7691c13d7285cf020342ad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62\u201364 lines \u00D7 2): scripts/convert_ddpm_original_checkpoint_to_diffusers.py:140-201 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:279-342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_ddpm_original_checkpoint_to_diffusers.py:140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_ddpm_original_checkpoint_to_diffusers.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"965790e9560d88ba550d28604388cbc28193f87454dbe1251b06d2d80d0b640d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 3): examples/community/img2img_inpainting.py:154-229 | examples/community/multilingual_stable_diffusion.py:157-218 | examples/community/seed_resize_stable_diffusion.py:92-154 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/multilingual_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 373 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/img2img_inpainting.py:154\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":"examples/community/img2img_inpainting.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"198037e601f8565502707fdab49a132ff176e3768cac0c64290339e5a4b01ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1143-1204 | examples/cogvideo/train_cogvideox_lora.py:1164-1225 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1143\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":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"7277163197eb8f8e7c2b9930c42750face4e2f3307716e57a73da386ee7e9321"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61\u201362 lines \u00D7 2): scripts/convert_cogview3_to_diffusers.py:89-150 | scripts/convert_cogview4_to_diffusers.py:98-158 \u2014 before extracting anything, compare \u0060scripts/convert_cogview3_to_diffusers.py\u0060 and \u0060scripts/convert_cogview4_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_cogview3_to_diffusers.py:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"scripts/convert_cogview3_to_diffusers.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"603b6459c2b9d9b481f2b5d8bc94c03ea36bc4278cd619c61e0c7cdc8212e2d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (114 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:263-376 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:354-467 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:263\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"a707137295ac9ef7f09dbde418829bcd8b970ff99dcab20d2c6cffd5971a47ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2): scripts/convert_kakao_brain_unclip_to_diffusers.py:737-796 | scripts/convert_kandinsky_to_diffusers.py:688-747 \u2014 before extracting anything, compare \u0060scripts/convert_kakao_brain_unclip_to_diffusers.py\u0060 and \u0060scripts/convert_kandinsky_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 385 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e31cbdd0ad3cc50f4abcbb7ea7eaa3525be4c3ef9574a9c891c07ea25b99855"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56\u201359 lines \u00D7 4): examples/research_projects/multi_token_textual_inversion/textual_inversion.py:304-359 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:316-374 | examples/textual_inversion/textual_inversion.py:343-401 | examples/textual_inversion/textual_inversion_sdxl.py:344-399 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 and \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1488 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:304\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"34edc8d3692f9cf747eb8593f5c29a8a41af6bc21151f3a806a452285c73a9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:162-220 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:187-245 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:185-243 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:162\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"b412786d7d57bd6dbc5779d63a3f37891d837c37f42143095116c5fdccb64730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:286-344 | examples/community/pipeline_stable_diffusion_xl_instantid.py:286-344 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:286\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7dcd546a2e7cf5d4bf62ece305f2e83eeaac8202a05cde35d4e921dcc4fe15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 22): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:736-793 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:728-785 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:725-782 | examples/dreambooth/train_dreambooth_lora_flux.py:627-684 | examples/dreambooth/train_dreambooth_lora_flux2.py:665-722 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:643-700 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:675-732 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:644-701 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:775-832 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:762-819 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:672-729 | examples/dreambooth/train_dreambooth_lora_hidream.py:640-697 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:752-809 | examples/dreambooth/train_dreambooth_lora_krea2.py:748-805 | examples/dreambooth/train_dreambooth_lora_lumina2.py:550-607 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:643-700 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:664-721 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:680-737 | examples/dreambooth/train_dreambooth_lora_sana.py:572-629 | examples/dreambooth/train_dreambooth_lora_sd3.py:622-679 | examples/dreambooth/train_dreambooth_lora_z_image.py:659-716 | examples/research_projects/sana/train_sana_sprint_diffusers.py:620-677 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1907 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:736\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb19bc277d5a9c14b7caec70d318081e1244d44fb6e090822917ce2c22188d8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55\u201357 lines \u00D7 4): examples/research_projects/ip_adapter/tutorial_train_faceid.py:161-217 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:163-219 | examples/research_projects/ip_adapter/tutorial_train_plus.py:179-235 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:223-277 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/ip_adapter/tutorial_train_sdxl.py:278\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py:217\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":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"36dc0330813d519bbc4a955ee3412fa90472e7a3f26de496234a80d3a7c5e08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2): examples/research_projects/lpl/train_sdxl_lpl.py:1499-1555 | examples/text_to_image/train_text_to_image_sdxl.py:1247-1303 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 171 separate duplicated blocks between them, totalling at least 3126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lpl/train_sdxl_lpl.py:1499\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cecdcfb76519bb21f8e35f87bec1ea6d838ce81b2ee634fce0b485e27efebd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2): scripts/convert_kakao_brain_unclip_to_diffusers.py:827-883 | scripts/convert_kandinsky_to_diffusers.py:778-834 \u2014 before extracting anything, compare \u0060scripts/convert_kakao_brain_unclip_to_diffusers.py\u0060 and \u0060scripts/convert_kandinsky_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 385 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f097d53152002293202d6f5c173d2ad9e9684c5da91953834e897da58c4d7b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:417-472 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:416-471 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:417\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3bb4e5a0435f24827c8790257e022e3ccacc030d0e6d571a5e413083744f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): scripts/convert_if.py:376-431 | scripts/convert_if.py:964-1019 \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":"scripts/convert_if.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"11616e0e3e42c9c75dfa31034b889f86a236cbbed6122ecaed29ca7384ce996e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): scripts/convert_kakao_brain_unclip_to_diffusers.py:52-107 | scripts/convert_kandinsky_to_diffusers.py:50-105 \u2014 before extracting anything, compare \u0060scripts/convert_kakao_brain_unclip_to_diffusers.py\u0060 and \u0060scripts/convert_kandinsky_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 385 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1645741189e2ac2b9b1f5da3bb36c2b0cca6f97c296abc17947c20dd1a04dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 4): scripts/convert_kakao_brain_unclip_to_diffusers.py:106-160 | scripts/convert_kandinsky_to_diffusers.py:104-158 | scripts/convert_shap_e_to_diffusers.py:110-164 | scripts/convert_shap_e_to_diffusers.py:312-366 \u2014 before extracting anything, compare \u0060scripts/convert_kakao_brain_unclip_to_diffusers.py\u0060 and \u0060scripts/convert_kandinsky_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 385 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6884d6c3a20991a0d16324cc05954657a137477b080bad8a6e61e096df9bd2fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sdxl.py:1460-1514 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1496-1550 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1460\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, \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1515\u0060 calls \u0060is_available\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1551\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":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e431b91ea1ca92642df1d541c49f2754b514f320b49d3666f130b0f8f63e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (74 lines \u00D7 2): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:529-602 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:573-646 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:529\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb088ff835d3a04f5ace69b8b5c2a0e49e6fd0361717bdade3466d6feaee65b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): scripts/convert_kandinsky_to_diffusers.py:292-346 | scripts/convert_kandinsky_to_diffusers.py:423-477 \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":"scripts/convert_kandinsky_to_diffusers.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e2c79c2c63c35a6217baeb4abe0f21447f21425d1f9efe1def68f4879269f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:699-752 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:846-899 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3c3e891a704d14ceeb582a6509bfeefa15f09f2349b150bcbab64b81dc7dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (77 lines \u00D7 4): examples/community/stable_diffusion_controlnet_reference.py:648-724 | examples/community/stable_diffusion_reference.py:1310-1386 | examples/community/stable_diffusion_xl_controlnet_reference.py:1055-1131 | examples/community/stable_diffusion_xl_reference.py:911-987 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_reference.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0071454d1e91acf6bba286b701f2dcaac6356bd12556e1937b231573ba0e55a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): scripts/convert_kakao_brain_unclip_to_diffusers.py:411-463 | scripts/convert_kakao_brain_unclip_to_diffusers.py:506-558 \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":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2d4324e86a8a6dce8b1c11494b340153c7eeaf640f289e198aee42c140766b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46\u201352 lines \u00D7 5): examples/community/lpw_stable_diffusion_xl.py:739-790 | examples/community/pipeline_controlnet_xl_kolors.py:245-290 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:266-312 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:318-363 | examples/community/pipeline_kolors_inpainting.py:505-550 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 264 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4d3c3b7d70eaacfe5602eb7631e108b77f9450da30d0abd3e011a4e9835722"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201352 lines \u00D7 2): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:353-401 | examples/textual_inversion/textual_inversion_flax.py:366-417 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 and \u0060examples/textual_inversion/textual_inversion_flax.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 848 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/textual_inversion/textual_inversion_flax.py:366\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad51235eedff551094df290d694f31a12b5afb1c8a55fdc3eb1b545401351221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50\u201351 lines \u00D7 3): examples/cogview4-control/train_control_cogview4.py:520-569 | examples/flux-control/train_control_flux.py:512-561 | examples/flux-control/train_control_lora_flux.py:539-589 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:520\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc790802459793f9ea0a4d0aea6f731c6aff0a6daf6a60f96d224506ef9d0193"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48\u201351 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_sd_wds.py:928-978 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:990-1037 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:928\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe845f27b0ed4830c1fcb61079f7b88095ab5a2d4aed90c4d12f5771ee4aef3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): examples/research_projects/lpl/train_sdxl_lpl.py:1216-1266 | examples/text_to_image/train_text_to_image_sdxl.py:1082-1132 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 171 separate duplicated blocks between them, totalling at least 3126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ed40b076a5c3a1f7e117f06a3504c15286cefa1c5757f99255554c3bf9cf20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 10): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1353-1402 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1242-1291 | examples/dreambooth/train_dreambooth_lora_flux2.py:1306-1355 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1256-1305 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1309-1358 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1250-1299 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1398-1447 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1348-1397 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1447-1496 | examples/dreambooth/train_dreambooth_lora_z_image.py:1288-1337 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1353\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7735411f6bc68ffc024569787f03229b4010bdaf9f79387d5ac06f9bcaa4e60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2219-2268 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1762-1811 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1806-1855 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2219\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2219}}}],"partialFingerprints":{"codehealthFindingId/v1":"07414e5a73f1b9f58fb4a9ba2b72add0b2c83555b5e97317121f6a047444c3c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 3): examples/instruct_pix2pix/train_instruct_pix2pix.py:148-197 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:194-243 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:199-248 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:148\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34836bd77bb99bae97a08b9bc38f70cc674656f27a23d71afb832db1d9ac97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1314-1363 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1272-1321 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9f17742714e29e25edb3228553358212b41251d239ebec657f81097b48f388"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_sd_wds.py:228-277 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:246-295 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:228\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa423579041ded752535b7ea6486986729aacd6d034da742e791d9e4eb0a1c4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_sd_wds.py:1228-1277 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1326-1375 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:1228\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1376\u0060 calls \u0060to\u0060, \u0060items\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:1278\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":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8a6cb186801156bcc6fac37f4c416e1f1a0769949d8e0b086145426e168929"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:937-985 | examples/community/stable_diffusion_tensorrt_inpaint.py:1020-1068 | examples/community/stable_diffusion_tensorrt_txt2img.py:871-919 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"f289104605d5b9c18fb0c024dd35a7d37b734e0d2e466acf6e1e41c8ce1d52f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1087-1135 | examples/text_to_image/train_text_to_image.py:1094-1142 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 and \u0060examples/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2447 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33f48935de006fbb876fd5e9795636817daeda693bf57ff3c4e182e66380bad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (189 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:901-1089 | examples/text_to_image/train_text_to_image_lora_sdxl.py:933-1121 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 169 separate duplicated blocks between them, totalling at least 3160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:901\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":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"9286ea0db8440ffc2c708cda4b7cf909f2b0a8364b9fb650e054b991a41037f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): scripts/convert_kakao_brain_unclip_to_diffusers.py:634-681 | scripts/convert_kandinsky_to_diffusers.py:585-632 \u2014 before extracting anything, compare \u0060scripts/convert_kakao_brain_unclip_to_diffusers.py\u0060 and \u0060scripts/convert_kandinsky_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 385 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"45021d47b41394a65f4f62e1742c7edefc916387c59d6df9f75cb72832a78e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201347 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:684-730 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:513-557 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:664-710 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:662-708 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:687-733 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:684\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9a42897963095591abef0828682437453e309dfbca8874c221c2f8ce066651"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (81 lines \u00D7 3): examples/cogview4-control/train_control_cogview4.py:405-485 | examples/flux-control/train_control_flux.py:397-477 | examples/flux-control/train_control_lora_flux.py:429-509 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:405\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"d481b59a3bbe4a1d5694c2b47d915925b9cd7682e0392f4c772b4caea8fcf834"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 3): examples/controlnet/train_controlnet_sd3.py:988-1034 | examples/dreambooth/train_dreambooth_lora_sd3.py:1169-1215 | examples/dreambooth/train_dreambooth_sd3.py:1094-1140 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 965 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:988\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e13f98e82f39a0d93f2aff3551ae0d4c39d58dee15e680a973544ca79e03bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1052-1098 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1067-1113 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58136901bbf4eab9fff3d9cc354bf3b251bc5cbb3f54448ab7b8f8e58f26d66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201347 lines \u00D7 2): examples/dreambooth/train_dreambooth_flux.py:1247-1288 | examples/dreambooth/train_dreambooth_sd3.py:1214-1260 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 168 separate duplicated blocks between them, totalling at least 2750 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a215b761309e8cfc5dd9fdb1b7576890074ac3e2101758f622b99e9db08d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:158-205 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:165-212 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"90003c05cc73ad32aa6f39cf335d2fb3fea3c0289c2db9c893f59f059db274a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 2): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:794-861 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:776-843 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69285b155aea24dc03c454678fdf39e97e91af32f12490234432454af2127f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201347 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1287-1333 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1267-1311 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 169 separate duplicated blocks between them, totalling at least 3160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c28f6e7abc5c4c027b97cf855fba6f7dc9a299540823689b45d59e868294fb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): scripts/convert_original_audioldm_to_diffusers.py:781-828 | scripts/convert_original_musicldm_to_diffusers.py:787-833 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm_to_diffusers.py\u0060 and \u0060scripts/convert_original_musicldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 996 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm_to_diffusers.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"6551c3abc5a49f1183bed17cc6e8ff60c69ca524d57d92df27c00905a907b3cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1659-1704 | examples/dreambooth/train_dreambooth_lora_flux.py:1343-1388 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1542-1587 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1659}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ea71408bec459d2cec54a92ddd3e69d0c0a19dca400bb4cd5b38db27e3dc6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201346 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1376-1405 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1324-1355 | examples/dreambooth/train_dreambooth_lora_krea2.py:1345-1390 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1345\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"af23467eca176ebb34bc5628fb3e8330c03dd78044becdc3811d42f2fd9c9453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:525-570 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:634-679 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:525\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd308e9aad53e48e2af579f428f8bacc1b602988d52444fb8353a5e8ad7b461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): examples/cogview4-control/train_control_cogview4.py:1193-1238 | examples/flux-control/train_control_flux.py:1200-1245 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. 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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b511c9c4c4e9299236a2d643e8cf58959b604a065e3bc26cfc597eef522f1e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201346 lines \u00D7 2): scripts/convert_if.py:211-256 | scripts/convert_if.py:779-823 \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 \u0060scripts/convert_if.py:211\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/convert_if.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1834e45a49dd8863442ab407126682de1a71e80a8d2265c453c2331f4b2a23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 4): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:562-606 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:660-704 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:621-665 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:728-772 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:657\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:559\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":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bee4b56a7f925d692b96d6e80ff44c6aef3c9debc75dc19ae61765f0d0676c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 3): examples/community/pipeline_kolors_inpainting.py:158-202 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:354-398 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:204-248 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8192aeb8700b6868106851727616d31f4dd2eee3a61b0ec4fd7d8d7618c2a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:753-797 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:919-963 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"249ad90b8d4674ae268eb8863e1e3a2cd257ac436786d5b779ea4b7f6d484da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (190 lines \u00D7 2): examples/instruct_pix2pix/train_instruct_pix2pix.py:702-891 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:794-983 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bdb1c3d5fdecba04ea72ea9542413b069b30724d1127cc41a1c6d6f6365e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57\u201361 lines \u00D7 2): examples/community/rerender_a_video.py:842-898 | examples/community/rerender_a_video.py:1020-1080 \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":"examples/community/rerender_a_video.py"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"6114342faa5f950a838f7164807c8d9e368636030cb079092638226765a06910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201344 lines \u00D7 2): examples/community/stable_diffusion_controlnet_img2img.py:435-478 | examples/community/stable_diffusion_controlnet_inpaint.py:532-571 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 931 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_img2img.py:435\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c6dda6a78de8bedef30f4ff4e251199035ac627e8ed40c1472d726ce999cc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201344 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sd3.py:1896-1938 | examples/dreambooth/train_dreambooth_sd3.py:1709-1752 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 188 separate duplicated blocks between them, totalling at least 3169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"a545e4571df612789560e3e4ef0cf584fbad220661885468a27451a1fff1426e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:636-679 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:783-826 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:635\u0060 calls \u0060train\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:782\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ca3680b7ba0a1fa470676f8a9c3d3a926e5ecef71a837444a803b7cec397d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): scripts/convert_diffusers_to_original_sdxl.py:222-265 | scripts/convert_diffusers_to_original_stable_diffusion.py:234-277 \u2014 before extracting anything, compare \u0060scripts/convert_diffusers_to_original_sdxl.py\u0060 and \u0060scripts/convert_diffusers_to_original_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_diffusers_to_original_sdxl.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"befce47116a72b16928d5b63a61a5bf8048c550aeaece52641a10d5a60d6ac7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201343 lines \u00D7 6): examples/dreambooth/train_dreambooth.py:450-492 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:319-359 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:331-373 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:450-492 | examples/textual_inversion/textual_inversion.py:358-400 | examples/textual_inversion/textual_inversion_sdxl.py:359-399 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 621 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:450\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:360\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth.py:492\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":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"95dcef848660f959e090b409416b5391f758b19eab6cc517f92713b55680657c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 4): examples/research_projects/ip_adapter/tutorial_train_faceid.py:215-257 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:217-259 | examples/research_projects/ip_adapter/tutorial_train_plus.py:233-275 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:279-320 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py:215\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/ip_adapter/tutorial_train_sdxl.py:278\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py:215\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":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1100ec8f393b12ec722fcd886a3851ab51a73ebe26af6f55d554c88f97380b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 3): examples/cogview4-control/train_control_cogview4.py:997-1039 | examples/flux-control/train_control_flux.py:986-1028 | examples/flux-control/train_control_lora_flux.py:1131-1173 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:997\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"635bf3cc7e8d44ff9857bfca0f9392c5236401d488c35e6fc93e5196253c86e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201343 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1424-1466 | examples/cogvideo/train_cogvideox_lora.py:1449-1488 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1424\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, \u0060examples/cogvideo/train_cogvideox_lora.py:1446\u0060 calls \u0060add_noise\u0060, \u0060transformer\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1424\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":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"f198ca1a38e908548384d3a9736ad7aaa8f72230e3c4580e101d5850285f5c04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora.py:1403-1444 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1438-1480 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 162 separate duplicated blocks between them, totalling at least 2821 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora.py:1403\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce1b1a3e5a7a55b379fc947bc7513fa50d77c2febc63d765c17df1c5e352851"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1952-1994 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1902-1944 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1952\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1952}}}],"partialFingerprints":{"codehealthFindingId/v1":"132dbb5cdf54e61005a50e90e45b45b6d6964196781542e43fbcd10d3da6c528"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201343 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:753-794 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:728-770 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:515-518 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:753\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"808e5ed465b3f8fc3476bec59fbccdfe4bcb7078ae1e9e0a0c8e0bc4a68a876f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:808-850 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:782-824 \u2014 before extracting anything, compare \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1487 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb13682ebca954235e693161cef7698f2d9c4fb8beb444e3846558cf9f4510d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201342 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:197-230 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:211-248 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:179-212 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:193-230 | examples/research_projects/controlnet/train_controlnet_webdataset.py:231-272 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"993cfa5e129054a2a42fdeb6bf0ea8712caa3bec6e308ee5dd2f63c33f2479d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:490-531 | examples/cogvideo/train_cogvideox_lora.py:474-515 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"53779d8fa0883005c7fa92f82399f90caaecc74838f26f1b4072e86b02afe603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): examples/community/stable_diffusion_controlnet_inpaint.py:594-635 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:551-592 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py\u0060 as WHOLE FILES: this scan already matched 68 separate duplicated blocks between them, totalling at least 1028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e5fbd0d056b46681cc1eeecb9bd4cb3e79d48859ce6efd84f7be1c8eae8f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1363-1404 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1366-1407 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 97 separate duplicated blocks between them, totalling at least 2013 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1363\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":"examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae33ac5b53841acf4e90815fc61f8b8fd8616459697202b8050461655e8ea1ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora.py:486-527 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:477-518 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 162 separate duplicated blocks between them, totalling at least 2821 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora.py:486\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"687286fd50b932ffc4cd61ce504782f9e6fdf307e6fe78857060a8762038c3b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (216 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1176-1391 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1267-1482 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py\u0060 as WHOLE FILES: this scan already matched 211 separate duplicated blocks between them, totalling at least 4020 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwenimage21.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a29422e736c06cb083fa626e586bafb9a93e61963c65487f44484558dee581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): examples/research_projects/controlnet/train_controlnet_webdataset.py:553-594 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:331-372 \u2014 before extracting anything, compare \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 and \u0060examples/t2i_adapter/train_t2i_adapter_sdxl.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 2078 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:553\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":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df4316923efb93f337a8a82f6a4ccd123bd2cff16eb69c9b24f641bb342844b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 6): examples/controlnet/train_controlnet.py:498-538 | examples/controlnet/train_controlnet_flax.py:402-442 | examples/controlnet/train_controlnet_flux.py:515-555 | examples/controlnet/train_controlnet_sdxl.py:543-583 | examples/research_projects/controlnet/train_controlnet_webdataset.py:737-777 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:515-555 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:498\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"834774645906012069f16950868fc5b2404965dabd6135aaf4aec7e269e70dd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:801-841 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:623-663 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:781-821 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:766-806 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:791-831 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:801\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c43db9114ec71946a96ef278eb52623af1a90f9f2ab4fa4e6fce7dcae07bb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201341 lines \u00D7 4): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1079-1114 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1094-1134 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1037-1070 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1097-1135 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1079\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:1036\u0060 calls \u0060enable_xformers_memory_efficient_attention\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1079\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ed3affa30c03bbdb2a6078fb34c7031f4071d758784950280b39ae40fb3272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201341 lines \u00D7 3): examples/community/pipeline_controlnet_xl_kolors.py:1295-1335 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1498-1537 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1812-1851 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"5683ab5b2872580474e8ae3cffbc01933ed1f40a73044bd6d8fb86da989c9763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:768-808 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:931-971 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:941-981 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 84 separate duplicated blocks between them, totalling at least 1625 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d280fd5aee202dcf0a193c81293a63861024910760cfd6eaa4b856ccb89dd04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201341 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:694-727 | examples/dreambooth/train_dreambooth_lora_sd3.py:573-613 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 144 separate duplicated blocks between them, totalling at least 2435 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:694\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"329c1a2c02ee5dfb875c8093ffe7f77e339fd70684f9fc4d9ec492819a255a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (119 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1270-1388 | examples/cogvideo/train_cogvideox_lora.py:1286-1404 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cogvideo/train_cogvideox_lora.py:1283\u0060 calls \u0060permute\u0060, \u0060to\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1268\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3c7a857147a99126c61ce3bf72b964479fe3ac58cec6bc38a88081c9c5b5ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:1047-1086 | examples/dreambooth/train_dreambooth_lora.py:1075-1113 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1090-1129 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1092-1130 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:1047\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a14bd9c3e7f8e39dd7867f59f2f28488cc42ebbb38d6f666166b80c341a7c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1097-1136 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1049-1088 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1052-1091 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"988363814b7a06d955a3b30ecee8364a345408c5ae5ab66efadc9af0a29fd09e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): examples/cogview4-control/train_control_cogview4.py:823-862 | examples/flux-control/train_control_flux.py:813-852 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1c1bffec990fe116a4dec6eb8af789281c39bffeef21354080b9a2840fc2fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): examples/community/latent_consistency_img2img.py:334-374 | examples/community/latent_consistency_txt2img.py:249-289 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/latent_consistency_img2img.py:334\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cae2c3ac18681cfb800b614dfa410df266dce3afcdb9f636a8ae3ca2009963b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201341 lines \u00D7 2): examples/community/pipeline_animatediff_ipex.py:957-997 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1375-1414 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_ipex.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73f48f1d5ca648e0f079ff8b3b4587e19add71f110ed21107295d07da4266ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:335-374 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:336-375 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:335\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b0e47fdaf1bb408fc7cf021908a3602c6b71177ff048692b0af7d956e97a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sdxl.py:1254-1293 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1290-1329 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a36f2e3887d4b54c4d9a0a6e6cc7a18eaea0ff05629450fe3c7726afae24b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201340 lines \u00D7 2): scripts/convert_hunyuan_image_to_diffusers.py:174-208 | scripts/convert_hunyuan_video1_5_to_diffusers.py:157-196 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuan_image_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuan_video1_5_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 384 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_hunyuan_image_to_diffusers.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"d379f707498b9a9f66cf982c0805aab6528746497c7dd94ade7fcd9e38570160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201340 lines \u00D7 2): scripts/convert_stable_diffusion_controlnet_to_onnx.py:340-379 | scripts/convert_stable_diffusion_controlnet_to_onnx.py:396-431 \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 \u0060scripts/convert_stable_diffusion_controlnet_to_onnx.py:340\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/convert_stable_diffusion_controlnet_to_onnx.py:338\u0060 calls \u0060randn\u0060, \u0060to\u0060, \u0060rand\u0060 and \u0060scripts/convert_stable_diffusion_controlnet_to_onnx.py:395\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":"scripts/convert_stable_diffusion_controlnet_to_onnx.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a00b4610f82ab31d534cfe2dca9e021b78fad3b7bb5c0eb365e9eb1f6b5a0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201339 lines \u00D7 21): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:586-623 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:472-503 | examples/dreambooth/train_dreambooth_flux.py:445-483 | examples/dreambooth/train_dreambooth_lora_flux.py:479-517 | examples/dreambooth/train_dreambooth_lora_flux2.py:517-555 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:501-533 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:527-565 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:502-534 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:524-562 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:588-626 | examples/dreambooth/train_dreambooth_lora_sd3.py:465-496 | examples/dreambooth/train_dreambooth_lora_sdxl.py:480-511 | examples/dreambooth/train_dreambooth_lora_z_image.py:511-549 | examples/dreambooth/train_dreambooth_sd3.py:431-462 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:233-263 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:313-343 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:297-327 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:273-305 | examples/research_projects/realfill/train_realfill.py:264-294 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:477-508 | examples/vqgan/train_vqgan.py:367-397 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:586\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4a418e20eb9b8586b2251fb3fd6124c4e68bd921d8c7111ba0fa99e742442d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:526-564 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:457-495 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:573-611 | examples/dreambooth/train_dreambooth_lora_krea2.py:543-581 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:443-481 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:462-500 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:478-516 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 186 separate duplicated blocks between them, totalling at least 3314 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:526\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cda1cffe732820b13a881003bd1a8f70d322ee353bfee3d67e830b1b06822d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_krea2.py:1794-1832 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1690-1728 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1742-1780 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1794\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":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":1794}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacb2e9a4449c13b51c5c3d35581a1f2a15f5a04182c1d2b7d3bd982498336c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 3): examples/instruct_pix2pix/train_instruct_pix2pix.py:625-663 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:680-718 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:717-755 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"82acd5eca81f3fd40cf2f0f4b5c9e2cf80c116e44b9794fe70ad72a0fcc34238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201339 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:605-640 | examples/text_to_image/train_text_to_image.py:593-631 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 and \u0060examples/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2447 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/text_to_image/train_text_to_image.py:593\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a535459f0e4a3f99e8f261e1234b607c8c80d8a72a9141af8eb6bb3ac11ff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:532-570 | examples/text_to_image/train_text_to_image_lora.py:541-579 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 135 separate duplicated blocks between them, totalling at least 2248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa4722e213c25b442852c0758a2a7a17ff086a1641b7e7cd03a34c56fa555a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): scripts/convert_hunyuan_image_to_diffusers.py:880-918 | scripts/convert_hunyuan_image_to_diffusers.py:953-991 \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":"scripts/convert_hunyuan_image_to_diffusers.py"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5493e08b5c9df26fb1142e85eaa713ab12a1dc91523d29f38320ffbb8c1295"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 9): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:335-372 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:356-393 | examples/dreambooth/train_dreambooth_lora_flux2.py:260-297 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:261-298 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:260-297 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:262-299 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:373-410 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:380-417 | examples/dreambooth/train_dreambooth_lora_z_image.py:260-297 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:335\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f46bee4679720fed9305d62f53282bf2ff9b15991fe3428d8a27a9a4756b3e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201338 lines \u00D7 6): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1566-1591 | examples/dreambooth/train_dreambooth_lora_flux.py:1254-1280 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1379-1402 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1327-1352 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1439-1466 | examples/dreambooth/train_dreambooth_lora_krea2.py:1350-1387 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1564\u0060 calls \u0060gradient_checkpointing_enable\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1377\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a044b3d5da3a3764492b7d1847f9833168120133ff845365e85ca0571aa6c27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 6): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:620-657 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:453-490 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:600-637 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:598-635 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:623-660 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:436-473 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:620\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"f711b7e2f49a6c99112ecf127a75e677f867f6d0b875779d68f9b7ccc60fa07c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 5): examples/research_projects/lpl/train_sdxl_lpl.py:252-289 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:189-226 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:182-219 | examples/text_to_image/train_text_to_image_lora_sdxl.py:236-273 | examples/text_to_image/train_text_to_image_sdxl.py:186-223 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 2028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lpl/train_sdxl_lpl.py:252\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"094c92fa79e4f426d6fca58b1ba3342f8c90e3515d0ec477132609329d4bdf2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68\u201369 lines \u00D7 5): examples/research_projects/lpl/train_sdxl_lpl.py:464-531 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:349-417 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:394-461 | examples/text_to_image/train_text_to_image_lora_sdxl.py:396-464 | examples/text_to_image/train_text_to_image_sdxl.py:398-465 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 2028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:349\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, \u0060examples/research_projects/lpl/train_sdxl_lpl.py:463\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:349\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":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6e6cd8994d12ef909b7923d3aef41e4ca48d04e79e13deb0d20a79f097831c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1447-1484 | examples/dreambooth/train_dreambooth_flux.py:1138-1175 | examples/dreambooth/train_dreambooth_lora_flux.py:1178-1215 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1363-1400 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1447\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"711f9e266c21e1d3c32d2beec18404cefbd61faedf231e31522f923676422b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2219-2255 | examples/dreambooth/train_dreambooth_flux.py:1647-1684 | examples/dreambooth/train_dreambooth_lora_flux.py:1786-1822 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2219\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, \u0060examples/dreambooth/train_dreambooth_lora_flux.py:1826\u0060 calls \u0060chunk\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2261\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2219}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baac93546bf74354441cbc0769095f88f5fd997e4a9dc6d1b5a4c99e6e976ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 3): examples/dreambooth/train_dreambooth_flux.py:1451-1488 | examples/dreambooth/train_dreambooth_lora_flux.py:1575-1612 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1842-1879 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:1451\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccc86a1e76e2c61fdc7f1eebc7449e7b77a96f8ca4b4a12eaad4f1c606b0ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:676-713 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:562-599 | examples/text_to_image/train_text_to_image_sdxl.py:560-597 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"5668d73c474f379b08e06eb2bcb594b05b9ce8209a7dc1c14b946ea5b7c7c656"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201338 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sana.py:1563-1597 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1740-1777 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sana.py\u0060 and \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1540 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py:1740\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, \u0060examples/dreambooth/train_dreambooth_lora_sana.py:1558\u0060 calls \u0060to\u0060, \u0060load_lora_weights\u0060 and \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py:1740\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":"examples/dreambooth/train_dreambooth_lora_sana.py"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a12a03370bbad6ee97e57f931b551be1eb496c16bdd78d719ea99974f884a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:1469-1505 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1255-1291 | examples/text_to_image/train_text_to_image_sdxl.py:1217-1253 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afbfb9b6d6515c7a3319d7f36b90a20d85ee49a5fb4d77d902e515a7c58adde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): examples/community/pipeline_stg_ltx.py:756-792 | examples/community/pipeline_stg_ltx_image2video.py:828-864 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa90430e431d7f166847e1753316797e7b1cf655db12c010ebe2d7fe78d3e7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): examples/controlnet/train_controlnet_flux.py:988-1024 | examples/controlnet/train_controlnet_sdxl.py:982-1018 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 2214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4eff742eae2536407e2457a09a9bad1bbf32a8bcf873022366b70dad1ae9ecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201337 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1616-1648 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1681-1717 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3548 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1616\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"b186e021f8a2796f603ff2191d6632279fbce22698a4cac442a07c178d351634"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2.py:342-378 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:342-378 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 207 separate duplicated blocks between them, totalling at least 3698 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:342\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced17909fcb87de6c912fe80b0fabe4d385b7d223e21cc40243dc8ab8da26a35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1132-1168 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1142-1178 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 169 separate duplicated blocks between them, totalling at least 3160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea1c0608746586b92387184f54d2691f4892797e6cdef853e5fd1d8d35a8d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201337 lines \u00D7 2): scripts/convert_cogview4_to_diffusers.py:194-226 | scripts/convert_cogview4_to_diffusers_megatron.py:306-342 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_cogview4_to_diffusers.py:194\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/convert_cogview4_to_diffusers.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b0e5c32abc8c8df9b735ea54b262635b7a837d66b0ae8085c83ef0cef58e1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): scripts/convert_original_audioldm2_to_diffusers.py:964-1000 | scripts/convert_original_musicldm_to_diffusers.py:909-945 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 and \u0060scripts/convert_original_musicldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 56 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8803e0e4567d1d90e2ded406f93937413832c72d4fbbb9befe1c35cd63b4c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 14): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:504-539 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:503-538 | examples/dreambooth/train_dreambooth_lora_flux2.py:435-470 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:419-454 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:435-470 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:420-455 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:551-586 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:551-586 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:437-472 | examples/dreambooth/train_dreambooth_lora_krea2.py:521-556 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:421-456 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:440-475 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:456-491 | examples/dreambooth/train_dreambooth_lora_z_image.py:429-464 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:504\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f056bcfb0d87d3298837fd4f14a11770e12634292747b01c259f951e0c1558"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 9): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:856-891 | examples/dreambooth/train_dreambooth_lora_flux2.py:798-833 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:803-838 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:903-938 | examples/dreambooth/train_dreambooth_lora_krea2.py:865-900 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:757-792 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:790-825 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:825-860 | examples/dreambooth/train_dreambooth_lora_z_image.py:787-822 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"56917606836a141378b7ed7c9a3167c522696c8bc285ab376e6e03a55f32e557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:248-283 | examples/dreambooth/train_dreambooth_lora.py:234-269 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:248-283 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:225-260 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:248\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":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5726dee391500b82ed2ef77479588af79049f87d7abdfceef7487cf68105ca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201336 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:174-209 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:196-230 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:222-255 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:229-262 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:174\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1a6d4dd44e4403df5628d3aa8b86acfea201d4289f69d4213e1695530d693d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201336 lines \u00D7 2): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1334-1369 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1623-1657 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 119 separate duplicated blocks between them, totalling at least 2012 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b7af3bd7b40e08aeb8eaf274f645d033b572c8d722b12c6d9051de3d09103e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): examples/controlnet/train_controlnet_flux.py:461-496 | examples/controlnet/train_controlnet_sdxl.py:479-514 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 2214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"9512568d93d68f1858b36368a4c42f7273da7b055f52420d11d264d5506dac86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_hidream.py:268-303 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:236-271 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 182 separate duplicated blocks between them, totalling at least 3091 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:268\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":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4731bdaebf4dcb1cb138d9c01ba0b391656d1bfdb1245560c220ca6d446ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_lumina2.py:1205-1240 | examples/dreambooth/train_dreambooth_lora_sana.py:1228-1263 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sana.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:1205\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_lumina2.py"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8869eb4b256d343fa6c0ce2db1ce07c678a5ee9afc111cebd7b9a521875a28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:237-272 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:233-268 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:237\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"153f871abf12b84775fc6b56220e458eade6cf4ef090307606f82a8744db7466"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:615-650 | examples/textual_inversion/textual_inversion_flax.py:642-677 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 and \u0060examples/textual_inversion/textual_inversion_flax.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 848 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:615\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0fd5c3f23886c221f5ca07ef5c9d71ff7fbea234ea8e4588ea4b058fbb2b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): scripts/convert_unidiffuser_to_diffusers.py:399-434 | scripts/convert_unidiffuser_to_diffusers.py:450-485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_unidiffuser_to_diffusers.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"174942701608c83b311f218e13717f32ed02e4e2a75e57b248f4e838909acdf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): scripts/convert_versatile_diffusion_to_diffusers.py:260-295 | scripts/convert_versatile_diffusion_to_diffusers.py:299-334 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"scripts/convert_versatile_diffusion_to_diffusers.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a325df70a1f8393e49573016568607484175375c065ed62205cc0b58e36538"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201335 lines \u00D7 14): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:433-460 | examples/dreambooth/train_dreambooth_lora_flux2.py:364-391 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:364-391 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:364-391 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:365-392 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:480-507 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:496-523 | examples/dreambooth/train_dreambooth_lora_hidream.py:379-409 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:438-472 | examples/dreambooth/train_dreambooth_lora_krea2.py:444-474 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:347-377 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:366-396 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:382-412 | examples/dreambooth/train_dreambooth_lora_z_image.py:357-385 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:433\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a04051a90b202a2860e2c3d7f93ba192ef36f1295af4e9651ffdf31f3e8dd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201335 lines \u00D7 10): examples/dreambooth/train_dreambooth_flax.py:175-200 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:223-248 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:219-244 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:180-205 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:170-195 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:295-320 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:307-332 | examples/text_to_image/train_text_to_image_flax.py:197-231 | examples/textual_inversion/textual_inversion.py:334-359 | examples/textual_inversion/textual_inversion_sdxl.py:335-360 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 647 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_flax.py:172\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:177\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"978716231b1cae371927dfc8d32d293a280cf5c9ff11adba197734f83cf981c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:493-527 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:602-636 | examples/dreambooth/train_dreambooth_lora_sdxl.py:501-535 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:498-532 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:493\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2dd3c1e4e11b39c7b527bc4f63b10a651b570616530ce546af004dff29fe22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:673-707 | examples/dreambooth/train_dreambooth_lora.py:638-672 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:693-727 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:633-667 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58d6e987afb2a8cac30e1f1f92b3755a9835481137bfa91a864ca0fb455239f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201335 lines \u00D7 3): examples/community/kohya_hires_fix.py:201-235 | examples/community/matryoshka.py:3018-3052 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:759-786 \u2014 before extracting anything, compare \u0060examples/community/kohya_hires_fix.py\u0060 and \u0060examples/community/matryoshka.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/kohya_hires_fix.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbfc1353d792f032f7b67958c61eb9c1fb7b2f4c9c0e77111bb04eed14f6a26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): examples/dreambooth/train_dreambooth_flux.py:1376-1410 | examples/dreambooth/train_dreambooth_lora_flux.py:1486-1520 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1730-1764 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:1376\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, \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1765\u0060 calls \u0060cpu\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py:1521\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":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"152291816ef5bb5d98c45d6a9cf706912d304fe3f9f7a4c096740f06d7161272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 3): examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:677-711 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:566-599 | examples/text_to_image/train_text_to_image_lora.py:575-608 \u2014 before extracting anything, compare \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 92 separate duplicated blocks between them, totalling at least 1539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:677\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"13397aeb3f1508b7b8ac8a39436f751d6e6dbf94a008a2923662ef6cfeabe6f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:1012-1046 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:911-945 | examples/text_to_image/train_text_to_image_sdxl.py:899-933 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"5139c8eb52dfe5da70120a8b8785f05d979a6e6ef656c97acfededfd4c6720fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (85 lines \u00D7 2): examples/community/lpw_stable_diffusion_xl.py:1111-1195 | examples/community/pipeline_sdxl_style_aligned.py:934-1018 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 1530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:1111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68befd960d90bfb3788fb5e0b660473b4f018242b468da39f6c84d29c4f9b2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): examples/community/stable_diffusion_xl_controlnet_reference.py:1252-1286 | examples/community/stable_diffusion_xl_reference.py:1072-1106 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_xl_reference.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 1016 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_xl_controlnet_reference.py:1252\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":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"da763b1786c32185225c3e6f5f5452e333b938ecea41f782dd37508342b9b081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_qwenimage21.py:218-263 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:222-267 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py\u0060 as WHOLE FILES: this scan already matched 211 separate duplicated blocks between them, totalling at least 4020 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwenimage21.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a57d90b5ecb57aea06b6470fa6ec7ebf9b211da3139f769f0feef79c0713a77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): examples/instruct_pix2pix/train_instruct_pix2pix.py:970-1003 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1077-1111 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be852f10cf1b6bd591f6f77882d460d34fcc9cfa848eb7d8e877c8a294d9a21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): scripts/convert_original_audioldm_to_diffusers.py:228-262 | scripts/convert_original_musicldm_to_diffusers.py:225-259 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm_to_diffusers.py\u0060 and \u0060scripts/convert_original_musicldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 996 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm_to_diffusers.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b301beb741af8f76c6f28b57b0d5b540c4efb9e7706123db9cde2a252b7b926f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 9): examples/cogview4-control/train_control_cogview4.py:280-313 | examples/controlnet/train_controlnet.py:313-346 | examples/controlnet/train_controlnet_flux.py:328-361 | examples/controlnet/train_controlnet_sd3.py:354-387 | examples/controlnet/train_controlnet_sdxl.py:355-388 | examples/flux-control/train_control_flux.py:272-305 | examples/flux-control/train_control_lora_flux.py:283-316 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:200-233 | examples/research_projects/gligen/train_gligen_text.py:133-166 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:280\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ee010f30499c076a7f882ad4ee7ae0123e95a81a2d31c933ad9c626e300ac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1263-1296 | examples/dreambooth/train_dreambooth_flux.py:949-982 | examples/dreambooth/train_dreambooth_lora_flux.py:995-1028 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1169-1202 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"222448c73273693246a6dc14ac6dd49a7298a6aa7b8a830ff9f6d9f52d168217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): examples/dreambooth/train_dreambooth.py:353-386 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:288-321 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:353-386 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 1180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:353\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f468b8845bc21b1d1aa814e2da4ddb0b402aa26565b209dec126d48a004cd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): examples/instruct_pix2pix/train_instruct_pix2pix.py:280-313 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:337-370 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:331-364 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:280\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20d1c2dd498235ec29c69f8a821d0536f9e96dcadec582195cc7606a88d6549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:818-851 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:721-754 | examples/text_to_image/train_text_to_image_sdxl.py:702-735 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lpl/train_sdxl_lpl.py:818\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"4373d14fed26aef08216d0b70a512463fd7c6b499558a1b0c286cae0032ed0a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): examples/research_projects/multi_token_textual_inversion/textual_inversion.py:640-673 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:682-715 | examples/textual_inversion/textual_inversion.py:710-743 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 and \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1488 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:640\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":"examples/research_projects/multi_token_textual_inversion/textual_inversion.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"9608f033be25019ddfa9627db81a87f601c2a0133e15bca059f7028f74ed093e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): scripts/convert_original_audioldm2_to_diffusers.py:889-922 | scripts/convert_original_audioldm_to_diffusers.py:826-859 | scripts/convert_original_musicldm_to_diffusers.py:831-864 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"e290c4eb1529e4c26d82fb4ce2d667e18c1821198d0d504f0b8951471701a3e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 2): examples/community/lpw_stable_diffusion_xl.py:1677-1709 | examples/community/pipeline_sdxl_style_aligned.py:1638-1671 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 1530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1677}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a88ab75eb372b041870b66e8c609c692c7807021b998c2cdd84a04ec193f7e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_ipex.py:913-946 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1217-1250 \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":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"110cdbdb7da7438b4eb8219a82e663f86486e4df1916bd90dcb99b5134b0fbb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1227-1260 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1178-1211 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"9266ffd3cdb2eb9109030f731c8034a48d5476b11d4112cfa87892f47cfe9eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1271-1323 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1219-1271 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1271\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":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9efc43bfdd59cb67f7ea1369708a17fc950a2db6b6b70a3ea5d7336f7213d18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sdxl.py:1669-1702 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1690-1723 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fc8eac2276e729bcaffa5d4e725f4c8e025639a7c61c521417a9b1c88a2e3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sdxl.py:1959-1992 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:2000-2033 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1959\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":1959}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c916abd1cec26313dc77e8bbffc9d2d598c33be11c9e935a2ff15dfc91deff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): examples/instruct_pix2pix/train_instruct_pix2pix.py:77-110 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:126-159 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef37b925675b1d51b31bdd2acf4b22fb17fef68d19967e336d6dd76e5580aa1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): examples/research_projects/anytext/anytext_controlnet.py:216-249 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:142-175 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext_controlnet.py\u0060 and \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"345e16d61f81203db72b52c3f9f6f00988c86821e2b7702a53979c542d7e8cf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): examples/research_projects/controlnet/train_controlnet_webdataset.py:484-517 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:247-280 \u2014 before extracting anything, compare \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 and \u0060examples/t2i_adapter/train_t2i_adapter_sdxl.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 2078 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:484\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"c073f4472b005d4f3b6c356f118baf8ae22509ea961aa6d2af1fd098e46d90b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:56-89 | examples/research_projects/ip_adapter/tutorial_train_plus.py:56-89 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_plus.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 438 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9f80896d6862293acb57ad3832687f024cda8462fbac3c0bf554bd623ea4be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 45): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:555-587 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:441-473 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:543-575 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:262-294 | examples/cogvideo/train_cogvideox_lora.py:253-285 | examples/custom_diffusion/train_custom_diffusion.py:455-487 | examples/dreambooth/train_dreambooth_flux.py:414-446 | examples/dreambooth/train_dreambooth_lora.py:348-380 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:565-597 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:562-594 | examples/dreambooth/train_dreambooth_lora_flux.py:448-480 | examples/dreambooth/train_dreambooth_lora_flux2.py:486-518 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:470-502 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:496-528 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:471-503 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:612-644 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:599-631 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:493-525 | examples/dreambooth/train_dreambooth_lora_hidream.py:479-511 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:557-589 | examples/dreambooth/train_dreambooth_lora_krea2.py:582-614 | examples/dreambooth/train_dreambooth_lora_lumina2.py:389-421 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:482-514 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:501-533 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:517-549 | examples/dreambooth/train_dreambooth_lora_sana.py:407-439 | examples/dreambooth/train_dreambooth_lora_sd3.py:434-466 | examples/dreambooth/train_dreambooth_lora_sdxl.py:449-481 | examples/dreambooth/train_dreambooth_lora_z_image.py:480-512 | examples/dreambooth/train_dreambooth_sd3.py:400-432 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:259-291 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:284-316 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:282-314 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:266-298 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:242-274 | examples/research_projects/lpl/train_sdxl_lpl.py:342-374 | examples/research_projects/realfill/train_realfill.py:233-265 | examples/research_projects/sana/train_sana_sprint_diffusers.py:441-473 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:339-371 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:446-478 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:278-310 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:272-304 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:303-335 | examples/text_to_image/train_text_to_image_lora_sdxl.py:325-357 | examples/text_to_image/train_text_to_image_sdxl.py:276-308 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:555\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc63ce6458c45d440c23e2d61aab1d77a404123ff9a6ce1e1b3259b77d442c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 18): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1437-1469 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1326-1358 | examples/dreambooth/train_dreambooth_lora_flux2.py:1390-1422 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1340-1372 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1393-1425 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1334-1366 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1482-1514 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1432-1464 | examples/dreambooth/train_dreambooth_lora_hidream.py:1228-1260 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1531-1563 | examples/dreambooth/train_dreambooth_lora_krea2.py:1445-1477 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1080-1112 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1352-1384 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1394-1426 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1485-1517 | examples/dreambooth/train_dreambooth_lora_sana.py:1103-1135 | examples/dreambooth/train_dreambooth_lora_z_image.py:1372-1404 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:774-806 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcaebd2e1a48760375d45e73874aba3b59cc56e09d37dfdd55ee1cd505aec94e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 8): examples/community/lpw_stable_diffusion_xl.py:1046-1078 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:829-861 | examples/community/pipeline_kolors_differential_img2img.py:571-603 | examples/community/pipeline_kolors_inpainting.py:919-951 | examples/community/pipeline_sdxl_style_aligned.py:869-901 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1191-1223 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1053-1085 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:615-647 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_kolors_differential_img2img.py:566\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:611\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a02715579999217f48f72e71213a0f7b3db850ba807155203e573c2d01063e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 6): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:528-560 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:330-362 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:502-534 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:506-538 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:525-557 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:495-526 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:528\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc707389fce34be5e1aa19abf8fc0bcc8d24f48786132d3715602b3a3fa1743"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 6): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:191-222 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:84-115 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:84-115 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:194-225 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:203-235 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:196-227 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:191\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70df7184450c7f3429af500e74450f9021d488cbd22b25f481004a1543ddb1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1220-1252 | examples/dreambooth/train_dreambooth_flux.py:906-938 | examples/dreambooth/train_dreambooth_lora_flux.py:952-984 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1126-1158 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78f1c73d65b1c3357c45339e2a57d14d5f03f72e3aa67a3e00445a31e530fdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 4): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:224-256 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:249-281 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:247-279 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:230-261 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:224\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:261\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:256\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":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f531acea5a1e4dc7584f4ad2586250ca3694ca342441de4574e3c3cc65d96bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 3): examples/community/pipeline_controlnet_xl_kolors.py:1027-1059 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1214-1246 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1428-1460 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2714672a21cf6c0418ee87dc38555df620c89e2cad5cb978e13d6515173e8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): examples/community/stable_diffusion_controlnet_img2img.py:732-764 | examples/community/stable_diffusion_controlnet_inpaint.py:865-897 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 931 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_img2img.py:732\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, \u0060examples/community/stable_diffusion_controlnet_inpaint.py:899\u0060 calls \u0060prepare_mask_image\u0060 and \u0060examples/community/stable_diffusion_controlnet_img2img.py:767\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":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd78e2d525e45010dc31209c9b1f8d835b2961948a1648939c5dc4fb1364f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:936-968 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:901-933 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cc1275e03b1a31ac18d5a36cefc92326f53c0462c0a3650cdfe2c7988fa565"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): examples/controlnet/train_controlnet_sdxl.py:774-806 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:728-760 \u2014 \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 and \u0060examples/t2i_adapter/train_t2i_adapter_sdxl.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 118 separate duplicated blocks between them, totalling at least 2008 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":"examples/controlnet/train_controlnet_sdxl.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4734c5e7660b9bcbbd6d25e3edc4e13605dcaca4a770357498b3915ffb24c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1995-2027 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2093-2125 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3548 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1995}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7abb8812e916ce964a58da71e0d17d41ff22c86bbeb421774d508a92b4a6dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sdxl.py:392-424 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:389-421 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:392\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":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5f9d5f0bcb20ec6a4fb12fc84cb1b847805d12cc5403dc2c278afb934fcb0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (84 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sdxl.py:1854-1937 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1896-1979 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":1854}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c25fefb4266baea779cb71bde40d48a306df4a5053f912959f7a3dadbe157b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:622-684 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:472-534 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:622\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e52bdb0e04b9f0d94948012346e11e6e3c4f4e8f42f43e1b61d82b105bbe3cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 10): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:2015-2046 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1833-1864 | examples/dreambooth/train_dreambooth_lora_flux2.py:2007-2038 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1900-1931 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1977-2008 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1850-1881 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2113-2144 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1983-2014 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:2095-2126 | examples/dreambooth/train_dreambooth_lora_z_image.py:1863-1894 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"731a01ada558b9e1ae8540e54303a3691fbe22ed44e9c4f54e2d9b5ecea4f7e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_flux.py:114-145 | examples/dreambooth/train_dreambooth_lora_flux2.py:127-158 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:127-158 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:127-158 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:127-158 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:118-149 | examples/dreambooth/train_dreambooth_lora_z_image.py:127-158 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux.py:114\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df4893724b6c698dee14d231761b992387593637ccbe821261b69c78efcc1d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201332 lines \u00D7 5): examples/controlnet/train_controlnet_flux.py:306-325 | examples/controlnet/train_controlnet_sdxl.py:333-352 | examples/research_projects/controlnet/train_controlnet_webdataset.py:532-551 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:352-383 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:310-329 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 2214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flux.py:306\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e874e43ed6ecf20455a055212b336bb1b936a6d8b3b037fcdade9d96cf7263"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201332 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:1258-1286 | examples/dreambooth/train_dreambooth_lora.py:1266-1297 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1313-1340 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1294-1324 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:1258\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08ddbcad7a45e014a6f785a540fcccf44d4782a0b0b9e358a99307a4deded55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201332 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1129-1160 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1130-1161 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1139-1168 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 97 separate duplicated blocks between them, totalling at least 2013 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1129\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc1f6b7249600f64878972edc50ec2d97c94500f547c62be1fce191b83be299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201332 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1622-1648 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1687-1717 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1608-1639 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3548 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1607\u0060 calls \u0060load_image\u0060, \u0060convert\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1621\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1f1200d6789c61b9bd57ad1a985e63a5e14276754265dbf6bb93aaa324dde0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_sd3.py:1416-1447 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1358-1389 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1394-1425 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2381 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"c614f632c1ca53ed5bbc8af3ebfd971913fee8e3519f067640c47782e7e61ce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:604-635 | examples/text_to_image/train_text_to_image_flax.py:577-608 | examples/textual_inversion/textual_inversion_flax.py:631-662 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43a434b823625837b6470564f2b8b33fa709cf9a49632297be7ec74ea6c178d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:730-761 | examples/cogvideo/train_cogvideox_lora.py:752-783 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cogvideo/train_cogvideox_lora.py:747\u0060 calls \u0060stack\u0060, \u0060pt_to_numpy\u0060, \u0060numpy_to_pil\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:729\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b307d419630f26d2411250dd4dce6ed78ae22bbffbd9aa0cc98d8ee479781d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): examples/community/mod_controlnet_tile_sr_sdxl.py:584-615 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1452-1483 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ed96e70620ca09c2e8d80bdff356e9f0a1835a2931a20fa2c178d263caa80a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201332 lines \u00D7 3): examples/community/stable_diffusion_controlnet_img2img.py:360-391 | examples/community/stable_diffusion_controlnet_inpaint.py:459-490 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:492-497 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 931 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py:492\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ecda8daf71a19442fac0460563d5ca9628b0504b19baad0cf5010137839628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (79 lines \u00D7 2): examples/community/stable_diffusion_reference.py:147-225 | examples/community/stable_diffusion_repaint.py:202-280 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_reference.py\u0060 and \u0060examples/community/stable_diffusion_repaint.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 504 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_reference.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"33823774b5ecdac66ca5c8af177050feafcec8c817d05897b3b97c9c58dd97f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (72 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_sd_wds.py:1358-1429 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1461-1532 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:1358\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"d086a9130d29c4ad5c8610ccb3f1efaff2d6989237c07c314db1e1cc93af25a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora.py:1370-1401 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1407-1438 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 162 separate duplicated blocks between them, totalling at least 2821 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora.py:1370\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":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c313fbfdc135e62578f2452f880f65b565ccdafd48393b68dafbc2aac57ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux.py:1712-1743 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1978-2009 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 183 separate duplicated blocks between them, totalling at least 3210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2011\u0060 calls \u0060sample\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py:1744\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux.py"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df0f30c9cf7f7c10bcf8c831d4132fe507226d7a77ba00187543aa9f994e4d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:411-442 | examples/unconditional_image_generation/train_unconditional.py:428-459 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 1025 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:444\u0060 calls \u0060ORT_FP16_Optimizer\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py:466\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":"examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7427b70e6e5c1d2cddbfacfb3057022e4ea2ab853ec7bf03a1bc7fdd80b6eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 20): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1053-1083 | examples/dreambooth/train_dreambooth_flux.py:703-733 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:873-903 | examples/dreambooth/train_dreambooth_lora_flux.py:752-782 | examples/dreambooth/train_dreambooth_lora_flux2.py:815-845 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:820-850 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:920-950 | examples/dreambooth/train_dreambooth_lora_hidream.py:759-789 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:888-918 | examples/dreambooth/train_dreambooth_lora_krea2.py:882-912 | examples/dreambooth/train_dreambooth_lora_lumina2.py:678-708 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:774-804 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:807-837 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:842-872 | examples/dreambooth/train_dreambooth_lora_sana.py:693-723 | examples/dreambooth/train_dreambooth_lora_sd3.py:746-776 | examples/dreambooth/train_dreambooth_lora_sdxl.py:742-772 | examples/dreambooth/train_dreambooth_lora_z_image.py:804-834 | examples/dreambooth/train_dreambooth_sd3.py:678-708 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:746-776 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1869 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b38ed2ce90701dbfb204e234013f3314979989a86c7659ce1ff4ef85e7615e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201331 lines \u00D7 18): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:692-720 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:689-717 | examples/dreambooth/train_dreambooth_lora_flux.py:589-619 | examples/dreambooth/train_dreambooth_lora_flux2.py:627-657 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:605-635 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:637-667 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:606-636 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:739-767 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:726-754 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:634-664 | examples/dreambooth/train_dreambooth_lora_hidream.py:605-632 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:714-744 | examples/dreambooth/train_dreambooth_lora_lumina2.py:515-542 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:608-635 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:627-656 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:643-672 | examples/dreambooth/train_dreambooth_lora_sana.py:534-564 | examples/dreambooth/train_dreambooth_lora_z_image.py:621-651 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:692\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux.py:589\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:692\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"626649ea8b66fd46d6d0491e3766b170e78af02ba61ae912fb6c1b96ec74cbc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 11): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:173-207 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:195-227 | examples/dreambooth/train_dreambooth_lora_flux.py:113-144 | examples/dreambooth/train_dreambooth_lora_flux2.py:126-157 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:126-157 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:126-157 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:126-157 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:221-251 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:228-258 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:117-148 | examples/dreambooth/train_dreambooth_lora_z_image.py:126-157 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:173\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7810f111a57140052117c14772e166e54fa4565f7c16fd9efba536e70c9aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 8): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:92-120 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:76-106 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:194-222 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:71-99 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:206-234 | examples/textual_inversion/textual_inversion.py:227-255 | examples/textual_inversion/textual_inversion_flax.py:71-99 | examples/textual_inversion/textual_inversion_sdxl.py:225-253 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:92\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:121\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:106\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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2489224b727f986f89dcbe3038c310c234ddeede94bae231dba62f9503c26b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 4): examples/cogview4-control/train_control_cogview4.py:422-452 | examples/controlnet/train_controlnet_flux.py:487-517 | examples/flux-control/train_control_flux.py:414-444 | examples/flux-control/train_control_lora_flux.py:446-476 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1536 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/cogview4-control/train_control_cogview4.py:453\u0060 calls \u0060add_argument\u0060 and \u0060examples/controlnet/train_controlnet_flux.py:518\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4879e9dec0d26bec785cce74e00fff798aef8ca78690779e033f68f52e8882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 4): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:576-605 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:403-432 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:554-583 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:350-380 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:576\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"9461d2cb000065b2d097075f9c789c1a0d195a15ed0ed195c74d7d88c1075c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201331 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:835-860 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:758-788 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:754-784 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:872-902 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 139 separate duplicated blocks between them, totalling at least 2531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:835\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a9e0f804f9e6dde3757fb158b3a2f84618745452a78c458fc18a34aeeb014a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201331 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:563-593 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:586-616 | examples/research_projects/sana/train_sana_sprint_diffusers.py:407-433 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 97 separate duplicated blocks between them, totalling at least 2013 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:563\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be2ca3dd90cbc17528ec161ecfbb4dc42825b3de2a1349efcd3683c3f9a8276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): examples/controlnet/train_controlnet.py:541-571 | examples/controlnet/train_controlnet_sd3.py:618-648 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:558-588 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 1830 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:541\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, \u0060examples/controlnet/train_controlnet_sd3.py:651\u0060 calls \u0060ValueError\u0060 and \u0060examples/controlnet/train_controlnet.py:573\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5095f8f6d42c92df64a3c6391b465c960b2cbbbc8e19c00fd117efca5e900e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux2.py:2059-2089 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:2029-2059 | examples/dreambooth/train_dreambooth_lora_z_image.py:1915-1945 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 207 separate duplicated blocks between them, totalling at least 3698 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:2059\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e47363af6f1513f87610126de52e2a4f999fc922c4b451cf8b2b0d352f3392"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:1545-1575 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1320-1350 | examples/text_to_image/train_text_to_image_sdxl.py:1293-1323 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bc9d4b8b7f51640ce7e5b1e5623f76fd35a9c8433309a7683c513b233a2db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1084-1114 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:537-567 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1035 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:569\u0060 calls \u0060set_verbosity_warning\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1116\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab1ef554f9c272ca8de55fb61f0f92ae3241a8715fe81af6543270d51b210ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:2067-2096 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2479-2509 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:2067\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":2067}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc94406868a8623e4a8efd6a5eb2aeb5cdbcfb5e823aa142d829b028160c0526"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/community/adaptive_mask_inpainting.py:1073-1103 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1536-1566 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:1073\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aba2887b021aca570bf5fb8b927613686eb974c6484e0d2ca107aaab38fc972"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/community/clip_guided_stable_diffusion.py:133-163 | examples/community/clip_guided_stable_diffusion_img2img.py:268-298 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 311 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_stable_diffusion.py:133\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"730ae57dec082f9e3d3c06fa9bc6cec425e25b0317c62de40117026886f16717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/community/latent_consistency_img2img.py:82-112 | examples/community/latent_consistency_txt2img.py:80-110 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"34dfdb9ddad1ba6727eef08166615557c8211d219bf005df1a5a50fe72c8225b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/community/latent_consistency_img2img.py:617-647 | examples/community/latent_consistency_txt2img.py:529-559 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d93a585a4d524ef1bdf8f4859b25d5611516271014254c668e6372eabb9a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): examples/community/latent_consistency_interpolate.py:81-109 | examples/community/latent_consistency_interpolate.py:132-162 \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":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f199859aa76f1e2f91d4f16df37f08973fc1aa72eb867731bf15233a5c01ee29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1093-1123 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1431-1461 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d66ad46fa9280d6d4c1a39416b0823c03bd7de5f6fd81d0ebf0c62aa36b25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): examples/community/stable_diffusion_controlnet_img2img.py:767-797 | examples/community/stable_diffusion_controlnet_inpaint.py:902-931 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 931 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/stable_diffusion_controlnet_inpaint.py:899\u0060 calls \u0060prepare_mask_image\u0060 and \u0060examples/community/stable_diffusion_controlnet_img2img.py:764\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":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"27edd015c88dcdf7f92426cad17dc547df9488797c7d6c41a16c9c1d4e008f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201331 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1283-1313 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1268-1269 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1331-1361 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"444ca06f1247e718c35f8893a2b7415ab567aab2ca9d1fc19a311f5f8944a388"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/controlnet/train_controlnet_flux.py:256-286 | examples/controlnet/train_controlnet_sdxl.py:283-313 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 2214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flux.py:256\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"d715033d5b33f59d88cd2a88f404e06b7a8617c8208f5ae964c0b32d44aa99a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/controlnet/train_controlnet_flux.py:578-608 | examples/flux-control/train_control_lora_flux.py:520-550 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/flux-control/train_control_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1580 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flux.py:578\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2a17337da987e7c9845267b4e1924120f3e871c43b1a0c258cf0fe1e76ba61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_hidream.py:1155-1185 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1016-1046 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 as WHOLE FILES: this scan already matched 178 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1155\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ee7b663fec107e9e72068639a0f73fec1253c3b752b6b961433c6f64f7a3c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:777-807 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:616-646 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:615\u0060 calls \u0060train\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:776\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcb09262fc148da698aabb47b5ab440cf8878c5d89fb3a8cd63738379eac930"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:354-384 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:353-383 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b1d5d842d7964002ff70049f1e923541485335a16f1814cf71c854f893af9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:646-676 | examples/textual_inversion/textual_inversion.py:673-703 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1688 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b67f468ec45fec22b4afc74b8b2e083d577c10bd5fae1a73b8043a4ec8fa1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:906-936 | examples/textual_inversion/textual_inversion.py:963-993 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1688 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1fc0cbc6398d826d9ef6fa30516149feb1181820516799f17c98a1c326ee35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): scripts/convert_sana_to_diffusers.py:217-246 | scripts/convert_sana_video_to_diffusers.py:186-216 \u2014 before extracting anything, compare \u0060scripts/convert_sana_to_diffusers.py\u0060 and \u0060scripts/convert_sana_video_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_sana_to_diffusers.py:217\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/convert_sana_to_diffusers.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd32f35abd8b2d08d0801df496c3d31d3d98e22f8c1fc149b8acdda544ac725"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): scripts/convert_sana_to_diffusers.py:264-294 | scripts/convert_sana_video_to_diffusers.py:220-250 \u2014 before extracting anything, compare \u0060scripts/convert_sana_to_diffusers.py\u0060 and \u0060scripts/convert_sana_video_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_sana_to_diffusers.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f97b1f8ad767bc676bb882525f766d94ef098141d1688d81eb721e10d9b33e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 25): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:332-361 | examples/dreambooth/train_dreambooth_flux.py:266-295 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:365-394 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:386-414 | examples/dreambooth/train_dreambooth_lora_flux.py:286-315 | examples/dreambooth/train_dreambooth_lora_flux2.py:290-319 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:291-320 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:290-319 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:292-321 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:403-432 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:410-439 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:300-329 | examples/dreambooth/train_dreambooth_lora_hidream.py:312-341 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:351-380 | examples/dreambooth/train_dreambooth_lora_krea2.py:377-406 | examples/dreambooth/train_dreambooth_lora_lumina2.py:225-254 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:280-309 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:299-328 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:303-332 | examples/dreambooth/train_dreambooth_lora_sana.py:245-274 | examples/dreambooth/train_dreambooth_lora_sd3.py:276-305 | examples/dreambooth/train_dreambooth_lora_sdxl.py:296-325 | examples/dreambooth/train_dreambooth_lora_z_image.py:290-319 | examples/dreambooth/train_dreambooth_sd3.py:252-281 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:293-322 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:332\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9579a08596ee0a7959d74b2380e8f3353090a6209d6e61c9198e8859b0c03e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 23): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:752-780 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:744-772 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:741-769 | examples/dreambooth/train_dreambooth_lora_flux.py:643-671 | examples/dreambooth/train_dreambooth_lora_flux2.py:681-709 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:659-687 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:691-719 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:660-688 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:791-819 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:778-806 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:688-716 | examples/dreambooth/train_dreambooth_lora_hidream.py:656-684 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:768-796 | examples/dreambooth/train_dreambooth_lora_krea2.py:764-792 | examples/dreambooth/train_dreambooth_lora_lumina2.py:566-594 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:659-687 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:680-708 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:696-724 | examples/dreambooth/train_dreambooth_lora_sana.py:588-616 | examples/dreambooth/train_dreambooth_lora_sd3.py:638-666 | examples/dreambooth/train_dreambooth_lora_z_image.py:675-703 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:416-445 | examples/research_projects/sana/train_sana_sprint_diffusers.py:636-664 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1907 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:752\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"011679e4df1c33c922664bc237d43e66d4d399ec3c6f284148851e6e5e4006bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 11): examples/instruct_pix2pix/train_instruct_pix2pix.py:192-221 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:238-267 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:134-163 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:140-169 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:243-272 | examples/research_projects/lora/train_text_to_image_lora.py:144-173 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:340-369 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:165-194 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:212-241 | examples/text_to_image/train_text_to_image_lora.py:216-245 | examples/text_to_image/train_text_to_image_lora_sdxl.py:259-288 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:192\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14b8ac3d5784bfbe5a4c78a2b05af8dc5d09d33e7063745585a0d8277bbef84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 7): examples/controlnet/train_controlnet.py:488-517 | examples/controlnet/train_controlnet_flax.py:392-421 | examples/controlnet/train_controlnet_flux.py:505-534 | examples/controlnet/train_controlnet_sd3.py:556-585 | examples/controlnet/train_controlnet_sdxl.py:533-562 | examples/research_projects/controlnet/train_controlnet_webdataset.py:727-756 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:505-534 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:488\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"1689e75bc0fdf469532e175a29a3cd7775d30a9baedaba91b23766806e2c48e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2166-2195 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1711-1739 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1755-1783 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1751\u0060 calls \u0060NotImplementedError\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2162\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2166}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ae1cef102f90c1cf2bbe20ace87556a0f49ba183e51ff65df055063f8b657e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 3): examples/cogview4-control/train_control_cogview4.py:1207-1234 | examples/flux-control/train_control_flux.py:1214-1241 | examples/flux-control/train_control_lora_flux.py:1369-1398 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:1207\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"a322b4993dff17e15d1c2a4ac2f7dfd413efc2c98483d0b5e3c1afa45493f1bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:218-247 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:376-405 | examples/vqgan/train_vqgan.py:288-317 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:218\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0142bc27ef0d8d5272f38edc84c3359adeed9f117201af6ef98f5a6446516dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:979-1008 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:957-986 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:960-989 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"2032799031f81b3a61add1d4a42ba559976dd1c81dbb8323acd670336dbf7ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 3): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:250-278 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:246-274 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:282-311 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:282\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, \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:275\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:280\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b00269b675b59c408a0c9be95564eb5cea275ac2d9c9e188a5681817be7223"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:1588-1617 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1360-1389 | examples/text_to_image/train_text_to_image_sdxl.py:1336-1365 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba805787c38cea989dbf276692cf6cca0e1346b2e544b7f4bfb80cb8b354e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 3): examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:466-495 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:592-620 | examples/text_to_image/train_text_to_image.py:580-608 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 1977 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:466\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cca860dbb47c4d9012f7d3609ef14da2095e77ad3c5a189aa840c6a627f851e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): scripts/convert_kakao_brain_unclip_to_diffusers.py:175-204 | scripts/convert_kandinsky_to_diffusers.py:173-202 | scripts/convert_shap_e_to_diffusers.py:172-201 \u2014 before extracting anything, compare \u0060scripts/convert_kakao_brain_unclip_to_diffusers.py\u0060 and \u0060scripts/convert_kandinsky_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 385 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b5b646f1034a91fdb5a2cb2c7ebc40d7f0f7f5abf33e4d24290a3871226aee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1511-1540 | examples/cogvideo/train_cogvideox_lora.py:1532-1560 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6cb9eea3cb8d10ad1e593d6defbf27bc358356239dd25d372a86f7c5778760c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): examples/community/clip_guided_stable_diffusion.py:302-331 | examples/community/clip_guided_stable_diffusion_img2img.py:455-484 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 311 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d259a5210583aea20746e6716115ce511965b6f53006c79e71a44ac065c459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:265-294 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:282-311 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:263\u0060 calls \u0060to\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:279\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fe5959e54ae7e521b45177e542e3844e7088e33045db4f11c56ecf44b2bac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201330 lines \u00D7 3): examples/controlnet/train_controlnet_sdxl.py:1060-1089 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1129-1132 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1009-1038 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 and \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1925 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sdxl.py:1060\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sdxl.py"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5d320b8617c99394c754c6a5875814ac8ebf9a1a1224fcd47f7fea78347a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2.py:1606-1635 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1566-1595 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 207 separate duplicated blocks between them, totalling at least 3698 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"e290d48cf80ecc3554fe4c413a1a9f4d0f1957b4f9deed80b4d22dec2a1b6a1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sd3.py:532-561 | examples/dreambooth/train_dreambooth_sd3.py:498-527 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 188 separate duplicated blocks between them, totalling at least 3169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:532\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d0dccab6a651f50414d749d6fd17815e214772acf0ee11ebe6a805f8a107c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): examples/instruct_pix2pix/train_instruct_pix2pix.py:479-508 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:537-566 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:479\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15965e416a6d05e81e8f5f9887a4a8d033d84073000519d9fb968a5e13b48d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:149-178 | examples/textual_inversion/textual_inversion_flax.py:162-191 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 and \u0060examples/textual_inversion/textual_inversion_flax.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 848 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e9a65f56fc177ded2159510e3637ef36b365b3c919d69901bb69cefcd2ab4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:476-505 | examples/unconditional_image_generation/train_unconditional.py:513-542 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 1025 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:507\u0060 calls \u0060ORTModule\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py:544\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":"examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ad398bab729d3776f4d7d8ed2fd2961945e64d1a18ad05393d03bbcb1cefee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 51): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:565-593 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:451-479 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:553-581 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:272-300 | examples/cogvideo/train_cogvideox_lora.py:263-291 | examples/controlnet/train_controlnet.py:325-353 | examples/controlnet/train_controlnet_flux.py:340-368 | examples/controlnet/train_controlnet_sd3.py:366-394 | examples/controlnet/train_controlnet_sdxl.py:367-395 | examples/custom_diffusion/train_custom_diffusion.py:465-493 | examples/dreambooth/train_dreambooth_flux.py:424-452 | examples/dreambooth/train_dreambooth_lora.py:358-386 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:575-603 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:572-600 | examples/dreambooth/train_dreambooth_lora_flux.py:458-486 | examples/dreambooth/train_dreambooth_lora_flux2.py:496-524 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:480-508 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:506-534 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:481-509 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:622-650 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:609-637 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:503-531 | examples/dreambooth/train_dreambooth_lora_hidream.py:489-517 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:567-595 | examples/dreambooth/train_dreambooth_lora_krea2.py:592-620 | examples/dreambooth/train_dreambooth_lora_lumina2.py:399-427 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:492-520 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:511-539 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:527-555 | examples/dreambooth/train_dreambooth_lora_sana.py:417-445 | examples/dreambooth/train_dreambooth_lora_sd3.py:444-472 | examples/dreambooth/train_dreambooth_lora_sdxl.py:459-487 | examples/dreambooth/train_dreambooth_lora_z_image.py:490-518 | examples/dreambooth/train_dreambooth_sd3.py:410-438 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:212-240 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:269-297 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:294-322 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:292-320 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:276-304 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:252-280 | examples/research_projects/gligen/train_gligen_text.py:145-173 | examples/research_projects/lpl/train_sdxl_lpl.py:352-380 | examples/research_projects/realfill/train_realfill.py:243-271 | examples/research_projects/sana/train_sana_sprint_diffusers.py:451-479 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:349-377 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:456-484 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:288-316 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:282-310 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:313-341 | examples/text_to_image/train_text_to_image_lora_sdxl.py:335-363 | examples/text_to_image/train_text_to_image_sdxl.py:286-314 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:565\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6d3b7e64a505cb874210bd93d2ed6ee518eccac04088690e3fc9bd48140f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201329 lines \u00D7 30): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:370-395 | examples/controlnet/train_controlnet.py:461-486 | examples/controlnet/train_controlnet_sd3.py:529-554 | examples/controlnet/train_controlnet_sdxl.py:506-531 | examples/instruct_pix2pix/train_instruct_pix2pix.py:136-164 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:182-210 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:206-231 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:99-124 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:99-124 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:209-234 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:364-389 | examples/research_projects/controlnet/train_controlnet_webdataset.py:700-725 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:187-215 | examples/research_projects/lora/train_text_to_image_lora.py:103-128 | examples/research_projects/lpl/train_sdxl_lpl.py:231-256 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:138-163 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:275-300 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:220-245 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:124-149 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:168-193 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:161-186 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:219-244 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:211-236 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:478-503 | examples/text_to_image/train_text_to_image.py:226-251 | examples/text_to_image/train_text_to_image_flax.py:80-105 | examples/text_to_image/train_text_to_image_lora.py:175-200 | examples/text_to_image/train_text_to_image_lora_sdxl.py:215-240 | examples/text_to_image/train_text_to_image_sdxl.py:165-190 | examples/vqgan/train_vqgan.py:276-301 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/controlnet/train_controlnet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 526 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:370\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad161ccca524a72f0f00d1bd33aacd103a676f103408c8eb6385b424b5fafd3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 29): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:617-645 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:726-754 | examples/cogview4-control/train_control_cogview4.py:384-412 | examples/controlnet/train_controlnet.py:410-438 | examples/controlnet/train_controlnet_flux.py:434-462 | examples/controlnet/train_controlnet_sd3.py:481-509 | examples/controlnet/train_controlnet_sdxl.py:452-480 | examples/custom_diffusion/train_custom_diffusion.py:550-578 | examples/dreambooth/train_dreambooth.py:442-470 | examples/dreambooth/train_dreambooth_flux.py:587-615 | examples/dreambooth/train_dreambooth_lora.py:443-471 | examples/dreambooth/train_dreambooth_lora_sdxl.py:605-633 | examples/dreambooth/train_dreambooth_sd3.py:572-600 | examples/flux-control/train_control_flux.py:376-404 | examples/flux-control/train_control_lora_flux.py:408-436 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:313-341 | examples/research_projects/controlnet/train_controlnet_webdataset.py:649-677 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:366-394 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:385-413 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:383-411 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:367-395 | examples/research_projects/gligen/train_gligen_text.py:220-247 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:369-397 | examples/research_projects/realfill/train_realfill.py:326-354 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:442-470 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:434-462 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:602-630 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:432-460 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:427-455 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:617\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"770a48ec8a9019add867c1c9232e2c5465b24f53dc3e68b2f814ed7d7bd62ebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 27): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1796-1824 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1467-1495 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1805-1833 | examples/dreambooth/train_dreambooth_flux.py:1310-1338 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1494-1522 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1383-1411 | examples/dreambooth/train_dreambooth_lora_flux.py:1420-1448 | examples/dreambooth/train_dreambooth_lora_flux2.py:1447-1475 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1397-1425 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1450-1478 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1391-1419 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1539-1567 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1489-1517 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1619-1647 | examples/dreambooth/train_dreambooth_lora_hidream.py:1285-1313 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1588-1616 | examples/dreambooth/train_dreambooth_lora_krea2.py:1502-1530 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1137-1165 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1409-1437 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1451-1479 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1542-1570 | examples/dreambooth/train_dreambooth_lora_sana.py:1160-1188 | examples/dreambooth/train_dreambooth_lora_sd3.py:1459-1487 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1401-1429 | examples/dreambooth/train_dreambooth_lora_z_image.py:1429-1457 | examples/dreambooth/train_dreambooth_sd3.py:1297-1325 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1437-1465 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08ff84ae283faef76a5a2998dcb210646c45a42df7b22b8966bf661794fd159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201329 lines \u00D7 24): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:540-568 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:342-370 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:514-542 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:518-546 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:537-565 | examples/instruct_pix2pix/train_instruct_pix2pix.py:372-396 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:429-453 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:387-411 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:284-309 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:291-316 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:391-416 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:706-730 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:423-447 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:507-532 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:437-461 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:341-365 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:393-418 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:391-416 | examples/text_to_image/train_text_to_image.py:459-483 | examples/text_to_image/train_text_to_image_lora.py:392-416 | examples/textual_inversion/textual_inversion.py:410-434 | examples/textual_inversion/textual_inversion_sdxl.py:401-425 | examples/unconditional_image_generation/train_unconditional.py:254-278 | examples/vqgan/train_vqgan.py:495-519 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:540\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:371\u0060 calls \u0060add_argument\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:540\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8bb345cd26e9bccde831009ae28cb4362f3f9ff3aad486b54d25e6baa745e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201329 lines \u00D7 17): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:436-464 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:456-482 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:471-497 | examples/dreambooth/train_dreambooth_lora_flux.py:364-390 | examples/dreambooth/train_dreambooth_lora_flux2.py:387-413 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:387-413 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:387-413 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:388-414 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:503-529 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:519-545 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:389-415 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:468-494 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:373-399 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:392-418 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:408-434 | examples/dreambooth/train_dreambooth_lora_sana.py:329-354 | examples/dreambooth/train_dreambooth_lora_z_image.py:381-407 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1907 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a630270be7ede6964c0602a00b6b07af0de8abfc0fbfee01ff92fb96c7edfa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201329 lines \u00D7 13): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:974-999 | examples/instruct_pix2pix/train_instruct_pix2pix.py:608-636 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:663-691 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:609-637 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:459-487 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:453-481 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:596-624 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:700-728 | examples/research_projects/lora/train_text_to_image_lora.py:600-628 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:605-626 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:838-866 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:615-643 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:598-626 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 496 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:974\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, \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:598\u0060 calls \u0060ORT_FP16_Optimizer\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:974\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":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b13562256a5320af64739e4af2de55c317c2357840c1303f8594d1119aef75f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 8): examples/cogview4-control/train_control_cogview4.py:477-505 | examples/controlnet/train_controlnet.py:530-558 | examples/controlnet/train_controlnet_sd3.py:607-635 | examples/controlnet/train_controlnet_sdxl.py:575-603 | examples/flux-control/train_control_flux.py:469-497 | examples/flux-control/train_control_lora_flux.py:501-529 | examples/research_projects/controlnet/train_controlnet_webdataset.py:769-797 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:547-575 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:477\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dac9e620d732d20ae65df14b6c248121763ee43b8fd6aa6121fa893c593d3d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 8): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:233-261 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:242-270 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:171-199 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:253-281 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:252-280 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:244-272 | examples/text_to_image/train_text_to_image.py:259-287 | examples/vqgan/train_vqgan.py:303-331 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:233\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1db11c76727ce4665cff07eafb76343bae6e8c9581414cf1731223e4d1deab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 6): examples/instruct_pix2pix/train_instruct_pix2pix.py:298-326 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:355-383 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:349-377 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:275-303 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:357-385 | examples/vqgan/train_vqgan.py:415-443 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:298\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74019e2f377f7af8cee29588a0bc1aedd5cbe5c13776abde59b91bc72d023a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201329 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1766-1794 | examples/dreambooth/train_dreambooth_lora_sd3.py:1424-1448 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1366-1390 | examples/dreambooth/train_dreambooth_sd3.py:1261-1286 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1402-1426 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 125 separate duplicated blocks between them, totalling at least 1905 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccce645cc35389fe1570dbd671a4c2bb37a255a0f4b4f3ec5f9a1d778c70142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 5): examples/community/fresco_v2v.py:1645-1673 | examples/community/pipeline_animatediff_ipex.py:398-426 | examples/community/pipeline_kolors_inpainting.py:462-490 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:663-691 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:764-792 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"0772add69c6bd4c2049766f530e364ff993544e18dddd56ec5633a013eee8dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:879-945 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:711-777 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:874-940 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:844-910 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:884-950 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc98d12c5c37b34dd895e99d8c30f4615153201a875898a7e94e2f1952c00c3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1254-1282 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1239-1267 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1302-1330 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1205-1232 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1303-1330 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:1233\u0060 calls \u0060guidance_scale_embedding\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1283\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f42f537b8912bbd37aa0fccc9fff334b68bd581b05b91ba46d418ac3b75a51d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 5): examples/research_projects/lora/train_text_to_image_lora.py:345-373 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:361-389 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:349-377 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:383-411 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:236-264 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 822 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lora/train_text_to_image_lora.py:345\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":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"771eb7d6c0222b6afd76d903c1b34e242e893a982a9f15b1730db064c02f8db2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:466-494 | examples/custom_diffusion/train_custom_diffusion.py:388-416 | examples/dreambooth/train_dreambooth_lora_sdxl.py:367-395 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:364-392 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 841 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:466\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33e1b8c6191bff3aabf86bd7b3682f309f624e9f659c5d51540ad750e362171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 4): examples/cogview4-control/train_control_cogview4.py:491-518 | examples/controlnet/train_controlnet_flux.py:573-601 | examples/flux-control/train_control_flux.py:483-510 | examples/flux-control/train_control_lora_flux.py:515-543 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1536 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:491\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"84258bf1c143089f54ea6472dfaad5a19ce479568f2d56baa66731df41ae4547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1227-1255 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1116-1144 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1219-1246 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1310-1337 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1227\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1214\u0060 calls \u0060to\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1221\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f9ac2205aedf1df2bfebe04c66b3b2e39c7ce189473e238d62b1024ee87ffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1308-1335 | examples/dreambooth/train_dreambooth_lora_flux.py:1040-1068 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1214-1242 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"940a6c1b74340f91b1bfcd2f07dc4d325ea9506a96067c604c84d11621c05723"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1449-1477 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1105-1133 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1165-1193 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1449\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba775459216407c02624741f5ec4fb11804787ed8862dd0d3d43f34d6e728a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2414-2442 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1946-1973 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1986-2014 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2414\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2414}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0802c4fc7e752c4b8458b958aa116b48e1e00ed1edc2e2ffaf86b3be860b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2450-2478 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1982-2010 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:2023-2051 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2450\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2450}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb756040499d3048ca092304155f14264ce630c5cfccbeb950a2a31a34adebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1410-1438 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1311-1338 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1413-1440 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 as WHOLE FILES: this scan already matched 84 separate duplicated blocks between them, totalling at least 1608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1410\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82980a44234de963246b7feca7e9303834638f0f7b8783f2c980e1aa72d3f1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): examples/controlnet/train_controlnet.py:679-707 | examples/controlnet/train_controlnet_flax.py:591-619 | examples/controlnet/train_controlnet_sd3.py:756-784 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"201361f88ff05ad686cdc5b84462505bb6ff8a10e0150a452d2f400a873d882f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:95-123 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:95-123 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:93-121 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"433189638cd240efe4fa681add0ba2a6f1709fdddf5a07b187393c64e9e1b771"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176-204 | examples/textual_inversion/textual_inversion.py:191-219 | examples/textual_inversion/textual_inversion_sdxl.py:195-223 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1688 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:176\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":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"10add33f7423d0a2960777e5fdbdc1702e1af0ebf28f67d707e5c92739d8721f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): examples/community/pipeline_controlnet_xl_kolors.py:996-1024 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1183-1211 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fbef88e127d25f05005e4905a9eb4c0cd76393a40d236d7eea6bd81494deff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1295-1347 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1712-1764 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d518edb69d2e3f9581c6f5a651954fbf2c7af1878bd64f4698ba69ab2f5864"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:802-830 | examples/community/pipeline_stable_diffusion_xl_instantid.py:794-822 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:802\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"d428da281a5927e09e5edcb51684c49b5043fa575c79aa661b4b4329d741f582"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): examples/community/stable_diffusion_repaint.py:43-71 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:59-92 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_repaint.py\u0060 and \u0060src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_repaint.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef6a16b956dc6701a79b636eebcc8cf02a9629046af030150f78f46efe298b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1280-1308 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1319-1347 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3548 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1280\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e4f919d2519b91afa6152d6b1474a159b116c51696b68716376cb4f650a127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1169-1197 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1267-1295 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 144 separate duplicated blocks between them, totalling at least 2652 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1169\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"44191737c0adc8ec05de87bff6d0d3b27ba09625d50957991b54a5f353082e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1555-1583 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1506-1534 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d02752ea1a9db661217ad749b06d18f898ad94ea1f46eeab5712d60cd4455bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): examples/research_projects/lpl/train_sdxl_lpl.py:717-745 | examples/text_to_image/train_text_to_image_sdxl.py:601-629 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 171 separate duplicated blocks between them, totalling at least 3126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e9154186d45e30e26dfc175b6c6752aeb76463b8ec2ff80b8ab6b00d67dc31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:674-702 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:657-685 \u2014 before extracting anything, compare \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1487 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:674\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf94447ec30c45528ecb3447a84c517e4de03bd55142821f5b6cebbf9dbeedac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): scripts/convert_hunyuandit_controlnet_to_diffusers.py:166-194 | scripts/convert_hunyuandit_to_diffusers.py:151-179 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuandit_controlnet_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuandit_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_hunyuandit_controlnet_to_diffusers.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"5315d00ae6a26af16b48b4a58a229d0802c57fcb7c4bcd3b6ad772df154975ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): scripts/convert_pixart_alpha_to_diffusers.py:123-151 | scripts/convert_pixart_sigma_to_diffusers.py:135-163 \u2014 before extracting anything, compare \u0060scripts/convert_pixart_alpha_to_diffusers.py\u0060 and \u0060scripts/convert_pixart_sigma_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_pixart_alpha_to_diffusers.py:123\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/convert_pixart_alpha_to_diffusers.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6a0a3af1a3057c029b294381c9addcc2ae66b59b8ab91e1defd846a747cab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): scripts/convert_sana_to_diffusers.py:48-76 | scripts/convert_sana_video_to_diffusers.py:36-64 \u2014 before extracting anything, compare \u0060scripts/convert_sana_to_diffusers.py\u0060 and \u0060scripts/convert_sana_video_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_sana_to_diffusers.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef355c2381832701d40f7448e7845d19e38eae60ab4a3a7d8964d8c9ab4b76f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 40): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:320-345 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:92-119 | examples/cogvideo/train_cogvideox_lora.py:83-110 | examples/dreambooth/train_dreambooth_flux.py:254-279 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:353-378 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:374-399 | examples/dreambooth/train_dreambooth_lora_flux.py:274-299 | examples/dreambooth/train_dreambooth_lora_flux2.py:278-303 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:279-304 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:278-303 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:280-305 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:391-416 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:398-423 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:288-313 | examples/dreambooth/train_dreambooth_lora_hidream.py:300-325 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:339-364 | examples/dreambooth/train_dreambooth_lora_krea2.py:365-390 | examples/dreambooth/train_dreambooth_lora_lumina2.py:213-238 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:268-293 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:287-312 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:291-316 | examples/dreambooth/train_dreambooth_lora_sana.py:233-258 | examples/dreambooth/train_dreambooth_lora_sd3.py:264-289 | examples/dreambooth/train_dreambooth_lora_sdxl.py:284-309 | examples/dreambooth/train_dreambooth_lora_z_image.py:278-303 | examples/dreambooth/train_dreambooth_sd3.py:240-265 | examples/instruct_pix2pix/train_instruct_pix2pix.py:128-153 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:174-199 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:179-204 | examples/research_projects/lpl/train_sdxl_lpl.py:223-248 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:281-306 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:212-237 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:116-141 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:160-185 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:153-178 | examples/text_to_image/train_text_to_image.py:218-243 | examples/text_to_image/train_text_to_image_flax.py:72-97 | examples/text_to_image/train_text_to_image_lora.py:167-192 | examples/text_to_image/train_text_to_image_lora_sdxl.py:207-232 | examples/text_to_image/train_text_to_image_sdxl.py:157-182 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 788 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:320\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11aae61df96ffff89ac5e4042fe96afc96bca27b1d0c1737405bdbbf78f6752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 10): examples/cogview4-control/train_control_cogview4.py:462-489 | examples/controlnet/train_controlnet.py:515-542 | examples/controlnet/train_controlnet_flax.py:419-446 | examples/controlnet/train_controlnet_flux.py:532-559 | examples/controlnet/train_controlnet_sd3.py:592-619 | examples/controlnet/train_controlnet_sdxl.py:560-587 | examples/flux-control/train_control_flux.py:454-481 | examples/flux-control/train_control_lora_flux.py:486-513 | examples/research_projects/controlnet/train_controlnet_webdataset.py:754-781 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:532-559 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:462\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet_sd3.py:590\u0060 calls \u0060add_argument\u0060 and \u0060examples/controlnet/train_controlnet.py:514\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e12ab653a096e2536c03ff4e4f630c89172e2e2d78075ffdb0510768d9b99f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 9): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:303-328 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:207-234 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:208-235 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:307-332 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:261-286 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:419-446 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:343-368 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:258-285 | examples/text_to_image/train_text_to_image_lora.py:309-336 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:329\u0060 calls \u0060add_argument\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:234\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace3524e0937e284b68864199603ddea60a8e7bf5b5f1f5b773908d041d2d476"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 8): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:938-964 | examples/dreambooth/train_dreambooth_lora_flux2.py:880-906 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:885-911 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:985-1011 | examples/dreambooth/train_dreambooth_lora_krea2.py:947-973 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:839-865 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:872-899 | examples/dreambooth/train_dreambooth_lora_z_image.py:869-895 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"17cf5b8edee7935f4af8df53d0d83ac3bcd68907194ad131a04460c9318a8247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 7): examples/controlnet/train_controlnet.py:450-477 | examples/controlnet/train_controlnet_flux.py:477-503 | examples/controlnet/train_controlnet_sd3.py:518-545 | examples/controlnet/train_controlnet_sdxl.py:495-522 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:353-380 | examples/research_projects/controlnet/train_controlnet_webdataset.py:689-716 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:467-494 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:450\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet.py:448\u0060 calls \u0060add_argument\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py:517\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"84cf024f3eb08b3dd58c3f1a7a49e7955ebb080c588cd27b523973922659ee84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 6): examples/research_projects/lpl/train_sdxl_lpl.py:495-522 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:381-408 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:425-452 | examples/text_to_image/train_text_to_image_flax.py:197-223 | examples/text_to_image/train_text_to_image_lora_sdxl.py:428-455 | examples/text_to_image/train_text_to_image_sdxl.py:429-456 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 2028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lpl/train_sdxl_lpl.py:495\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"d459fb00fcce54b073cf26823270b450a5a91409b6f5870e1cf570a72dacf61a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:752-779 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:579-606 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:732-759 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:709-736 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:734-761 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:752\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ce897cae03e86c2fc4bc7c8fa9c968198baa43df880c43dbecdeee2eea4365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 4): examples/cogvideo/train_cogvideox_image_to_video_lora.py:86-113 | examples/cogvideo/train_cogvideox_lora.py:77-104 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:66-91 | examples/unconditional_image_generation/train_unconditional.py:84-109 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab12b7d9a865543d67a32a5155af0da6dc329aafa14c1a5f266213c62514a867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4): examples/community/interpolate_stable_diffusion.py:272-299 | examples/community/multilingual_stable_diffusion.py:307-334 | examples/community/speech_to_image_diffusion.py:162-189 | examples/community/wildcard_stable_diffusion.py:316-343 \u2014 before extracting anything, compare \u0060examples/community/interpolate_stable_diffusion.py\u0060 and \u0060examples/community/multilingual_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 332 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/interpolate_stable_diffusion.py:272\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":"examples/community/interpolate_stable_diffusion.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e04b3f4709143544616528b0602b7fcfcdfd6bea69665922b49ef6783d9c94e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:711-738 | examples/dreambooth/train_dreambooth_lora.py:676-702 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:731-758 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:671-697 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth.py:739\u0060 calls \u0060cat\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py:703\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":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e649ed0e3da0ce058867ad6fa4b8170cd6e6d8bc032e69ee11d0e8123a1b1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:1088-1115 | examples/dreambooth/train_dreambooth_lora.py:1115-1142 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1131-1158 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1132-1159 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:1088\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba29b27d356ee0e15ab516696004a283dd1b1a4af0b4f760e54eecfe830ed480"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4): examples/dreambooth/train_dreambooth_flax.py:124-151 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:146-173 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:142-169 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:251-278 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 647 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flax.py:124\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_flax.py:122\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:144\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":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02a61213fbf0ee17491f0ec2889b0c15146898c43c13c10eb678e06d435f9c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 3): examples/cogview4-control/train_control_cogview4.py:717-771 | examples/flux-control/train_control_flux.py:709-763 | examples/flux-control/train_control_lora_flux.py:739-793 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:717\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c31aa25ee88fde9848baeeb4e492b92a42e8ba08ee915bc0404463d744007f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201328 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:985-1012 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:852-876 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:999-1026 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:985\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"8667ae9e0aa2df30c603899644f871178fa91b91cd84fda376fbaea6bcbcac96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux2.py:1817-1844 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1774-1801 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1917-1944 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 207 separate duplicated blocks between them, totalling at least 3698 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1817}}}],"partialFingerprints":{"codehealthFindingId/v1":"5748cc246c6de97e948c19dfac5c177255507e395f214cc202e98294db78ef1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1539-1566 | examples/dreambooth/train_dreambooth_lora_krea2.py:1589-1616 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1496-1523 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 148 separate duplicated blocks between them, totalling at least 2538 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1539\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_klein.py"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad01b88574e1ae481c5d17e21003594dd88a161867a668d9ed1006f0219ebf95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:1071-1128 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:964-1021 | examples/text_to_image/train_text_to_image_sdxl.py:955-1012 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/text_to_image/train_text_to_image_sdxl.py:952\u0060 calls \u0060is_torch_npu_available\u0060, \u0060empty_cache\u0060, \u0060is_available\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:963\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c40dbf128f1fa083fbc2d4f2267e3c2299504ed27c5088975b16e221574498"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:1255-1282 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1156-1183 | examples/text_to_image/train_text_to_image_sdxl.py:1121-1148 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b243cd016d09a219596bb477d526f33759d1dd69244604d2a0a75b551459e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (114\u2013116 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:234-347 | examples/cogvideo/train_cogvideox_lora.py:225-340 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:234\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e1d0c3bb618b54c94a2bac7f653463a91d104fec4be4b5e1815f76c08a62e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:534-561 | examples/cogvideo/train_cogvideox_lora.py:518-545 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e4cbd6e572e2eb988b9254eae1a3863a080fee2f358be218cc31db7e00db02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): examples/cogview4-control/train_control_cogview4.py:773-800 | examples/flux-control/train_control_flux.py:766-793 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:773\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab33729b5b853378175be771d99db030ca85dfa33bae3cff72aa1001fad51d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): examples/community/matryoshka.py:2942-2969 | examples/community/matryoshka.py:3391-3418 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/matryoshka.py:3387\u0060 calls \u0060size\u0060 and \u0060examples/community/matryoshka.py:2940\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":2942}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec1d203db1361e852f00525ef44a37721f3adffd71b93a64810e9edde99e3f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (121 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2.py:1171-1291 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1121-1241 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1d1180b74748949d9ffa65d0a38fa2a258d667359348835d457748589a5ee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2.py:1540-1567 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1492-1518 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"adeedecb3cf2a6ab9a1fdb3ef9a987ad36764da4423bf4842ef2afc778c3cab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (119 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1176-1294 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1117-1235 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 150 separate duplicated blocks between them, totalling at least 2884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_klein.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"c371a8445734fff2fca4e3b6bd8d20a1fd9eeda1180a0b15ca7ff862f9bb878b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_qwen_image.py:1184-1210 | examples/dreambooth/train_dreambooth_lora_z_image.py:1161-1188 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_z_image.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2585 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py:1184\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py:1179\u0060 calls \u0060to\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_z_image.py:1155\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwen_image.py"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1117195b22c74df0cbfa8565edac7bb535ce12c99e1225fdabca4d014494645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:729-756 | examples/textual_inversion/textual_inversion.py:755-782 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1688 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:729\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"d894d705b875a0d29dd6b220b4d8355836b504b1c924233e9862f4b60a62fd63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 29): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:709-735 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:587-613 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:696-722 | examples/dreambooth/train_dreambooth_flux.py:557-583 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:701-727 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:698-724 | examples/dreambooth/train_dreambooth_lora_flux.py:600-626 | examples/dreambooth/train_dreambooth_lora_flux2.py:638-664 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:616-642 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:648-674 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:617-643 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:748-774 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:735-761 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:645-671 | examples/dreambooth/train_dreambooth_lora_hidream.py:613-639 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:725-751 | examples/dreambooth/train_dreambooth_lora_krea2.py:721-747 | examples/dreambooth/train_dreambooth_lora_lumina2.py:523-549 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:616-642 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:637-663 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:653-679 | examples/dreambooth/train_dreambooth_lora_sana.py:545-571 | examples/dreambooth/train_dreambooth_lora_sd3.py:595-621 | examples/dreambooth/train_dreambooth_lora_sdxl.py:575-601 | examples/dreambooth/train_dreambooth_lora_z_image.py:632-658 | examples/dreambooth/train_dreambooth_sd3.py:542-568 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:383-407 | examples/research_projects/sana/train_sana_sprint_diffusers.py:595-619 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:572-598 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:709\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e98ca2c0bd02f4f64a64366a118d03a19710e220b18657ad26812e21f96dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 14): examples/instruct_pix2pix/train_instruct_pix2pix.py:187-213 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:233-259 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:129-155 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:135-161 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:238-264 | examples/research_projects/lora/train_text_to_image_lora.py:139-165 | examples/research_projects/lpl/train_sdxl_lpl.py:270-296 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:335-361 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:160-186 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:207-233 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:200-226 | examples/text_to_image/train_text_to_image_lora.py:211-237 | examples/text_to_image/train_text_to_image_lora_sdxl.py:254-280 | examples/text_to_image/train_text_to_image_sdxl.py:204-230 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:187\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, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:185\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py:269\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c77b9afcf5f50eb715db59eccd3c4c56ce69eb83fd35fd7311caf9688bcfc78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 8): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:214-240 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:215-241 | examples/research_projects/lpl/train_sdxl_lpl.py:455-480 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:426-452 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:265-291 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:385-410 | examples/text_to_image/train_text_to_image_lora.py:316-342 | examples/text_to_image/train_text_to_image_sdxl.py:389-414 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/lpl/train_sdxl_lpl.py:480\u0060 calls \u0060add_argument\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:240\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da228ebc2d2b4871572007f2ba472a94211bfc73adc0a09deb141a268bbd4a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 6): examples/community/pipeline_zero1to3.py:256-282 | examples/community/stable_diffusion_controlnet_img2img.py:248-274 | examples/community/stable_diffusion_controlnet_inpaint.py:347-373 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:332-358 | examples/community/stable_diffusion_ipex.py:379-405 | examples/community/stable_diffusion_repaint.py:352-378 \u2014 before extracting anything, compare \u0060examples/community/pipeline_zero1to3.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_zero1to3.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f16ec0aaab3eac8c2d03591b825ca075852272b965aa968e98d64a80d169fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): examples/community/img2img_inpainting.py:101-127 | examples/community/interpolate_stable_diffusion.py:92-118 | examples/community/multilingual_stable_diffusion.py:104-130 | examples/community/wildcard_stable_diffusion.py:126-152 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/interpolate_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/img2img_inpainting.py:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d1dd71f5efd6c3e6c47f62876e6794971ba7ab48cf6072950cdc7f3a080fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 4): examples/controlnet/train_controlnet_sd3.py:435-461 | examples/dreambooth/train_dreambooth_lora_sd3.py:513-538 | examples/dreambooth/train_dreambooth_sd3.py:479-504 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:375-400 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 965 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:435\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fe134cb80384897dd00594901f9875aeed18e636d1fb0cb0d030ca06acc3df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:517-541 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:532-558 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:641-667 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:517\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d48d12e03f402931a9b0a60fa91cb4cdb098528fc11079dabfb294c36671ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1553-1579 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1178-1204 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1232-1258 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1546\u0060 calls \u0060is_available\u0060, \u0060ValueError\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1229\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7dc9fdabfdd2d1b64dde15d1b0e34bf1925b8253b2559d79b261dbc1017c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): examples/cogview4-control/train_control_cogview4.py:109-135 | examples/flux-control/train_control_flux.py:104-130 | examples/flux-control/train_control_lora_flux.py:114-140 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:109\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02300505b2edd4348a948f5b7fa7d2a4d2e719de56405242aa814372b19fa2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_hidream.py:405-431 | examples/dreambooth/train_dreambooth_lora_lumina2.py:315-341 | examples/dreambooth/train_dreambooth_lora_sd3.py:354-380 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 as WHOLE FILES: this scan already matched 178 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:405\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"a349d556a8f81a7d5aac4e9316d4eda67c32931e468e7bb365fdc7c7b475fbad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:184-210 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:283-309 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:293-319 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f62339f5e3790f55344eb06855fb7ae97b81c4de8d457d13eac1cccce7e18e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 3): examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:96-121 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:295-321 | examples/unconditional_image_generation/train_unconditional.py:114-139 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 1025 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:96\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":"examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec4aaa1a63018c2b2e94f4f11a7921ffe5673ca3d21c07b88df167501fea721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): examples/community/lpw_stable_diffusion_xl.py:1596-1622 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1984-2009 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 832 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"48da4ce70a37284d5a4374c7fcde1bad526961c1742881c7386988a6711f3a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1175-1201 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1387-1413 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 119 separate duplicated blocks between them, totalling at least 2012 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6aceba440416c85f5119d6d392bb55f183e0e1649e35518a04af83068ac8ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): examples/community/pipeline_faithdiff_stable_diffusion_xl.py:912-938 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:959-985 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py:958\u0060 calls \u0060_gaussian_weights\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py:911\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":"examples/community/pipeline_faithdiff_stable_diffusion_xl.py"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4643f14851d55b6ebd5c2f9d4fdd84d49dae422127ef7731eca4679b34d6ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201327 lines \u00D7 2): examples/community/stable_diffusion_controlnet_inpaint.py:971-997 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:946-969 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py\u0060 as WHOLE FILES: this scan already matched 68 separate duplicated blocks between them, totalling at least 1028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_inpaint.py:971\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a1c7989cb027dbaab175ec8793c4c6d9e863b778596f7f15c391336a61f198"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): examples/controlnet/train_controlnet.py:854-880 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1051-1077 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 1724 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:1050\u0060 calls \u0060requires_grad_\u0060 and \u0060examples/controlnet/train_controlnet.py:852\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"4731511cc58fcaffc8546cb98698d5a3a5b6c9846680c80f31f8e38fa50adf95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1790-1816 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1676-1702 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc9424cb8e019348a2aeebb29686f60a630c62319cfa33b8344dda74ed9e073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_krea2.py:1678-1704 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1578-1604 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1678\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"df22b2667b7ab349773f0b3d5d7088e9f10af8c64f49b29a514d3c3fec9d1fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sd3.py:1800-1826 | examples/dreambooth/train_dreambooth_sd3.py:1611-1637 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 188 separate duplicated blocks between them, totalling at least 3169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:1827\u0060 calls \u0060chunk\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py:1640\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":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"f708ea78edc348e8bce2e6bb5a1a3c365bc337e56976ed289897e64a5744019e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201327 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:577-603 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:569-592 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 88 separate duplicated blocks between them, totalling at least 1341 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:577\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"880dbdea860fc58d68cb2b421aded773d4fcf578c6f4cc91dbf1e3f75edccbdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): examples/research_projects/anytext/anytext.py:2108-2134 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1064-1089 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext.py\u0060 and \u0060examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/anytext/anytext.py:2108\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext.py"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c8c2312c28781949ccf5d3052ecd6a41e87b4a8128cff2af54e5a610008ec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201327 lines \u00D7 2): examples/research_projects/controlnet/train_controlnet_webdataset.py:1210-1236 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:847-869 \u2014 before extracting anything, compare \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 837 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:1210\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe5a422f898ca09f390c845bad271c0cbf2191b16b164b24facf97731d2965b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:863-889 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:791-817 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 140 separate duplicated blocks between them, totalling at least 2226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:863\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":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bec7a39fe092d60debf2628855fa1487883d680afb3829ab1c6142ddcaa8d5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:342-368 | examples/text_to_image/train_text_to_image_lora_sdxl.py:389-415 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 169 separate duplicated blocks between them, totalling at least 3160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:342\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2de5e4ce4728df358c17f9a0e442a628be4dd9148da25541cbee1d2e704fdfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (179 lines \u00D7 2): scripts/convert_hunyuan_image_to_diffusers.py:659-837 | scripts/convert_hunyuan_video1_5_to_diffusers.py:425-603 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuan_image_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuan_video1_5_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 384 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_hunyuan_image_to_diffusers.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"2937df0a4e4432737a2b7b3ff87d9eb7f874389f7b8b82bcf77fc9e1da351bd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201326 lines \u00D7 85): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:608-630 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:487-512 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:596-621 | examples/amused/train_amused.py:185-207 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:302-324 | examples/cogvideo/train_cogvideox_lora.py:293-315 | examples/cogview4-control/train_control_cogview4.py:328-350 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:637-660 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:470-493 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:617-640 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:615-638 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:640-663 | examples/controlnet/train_controlnet.py:355-377 | examples/controlnet/train_controlnet_flux.py:370-392 | examples/controlnet/train_controlnet_sd3.py:401-423 | examples/controlnet/train_controlnet_sdxl.py:397-419 | examples/dreambooth/train_dreambooth.py:387-409 | examples/dreambooth/train_dreambooth_flux.py:467-490 | examples/dreambooth/train_dreambooth_lora.py:388-410 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:605-628 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:602-625 | examples/dreambooth/train_dreambooth_lora_flux.py:501-524 | examples/dreambooth/train_dreambooth_lora_flux2.py:539-562 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:516-540 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:549-572 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:517-541 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:652-675 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:639-662 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:546-569 | examples/dreambooth/train_dreambooth_lora_hidream.py:519-541 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:610-633 | examples/dreambooth/train_dreambooth_lora_lumina2.py:429-451 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:522-544 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:541-563 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:557-579 | examples/dreambooth/train_dreambooth_lora_sana.py:447-469 | examples/dreambooth/train_dreambooth_lora_sd3.py:480-503 | examples/dreambooth/train_dreambooth_lora_sdxl.py:495-520 | examples/dreambooth/train_dreambooth_lora_z_image.py:533-556 | examples/dreambooth/train_dreambooth_sd3.py:446-469 | examples/flux-control/train_control_flux.py:320-342 | examples/flux-control/train_control_lora_flux.py:352-374 | examples/instruct_pix2pix/train_instruct_pix2pix.py:268-290 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:325-347 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:248-271 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:167-189 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:453-476 | examples/research_projects/controlnet/train_controlnet_webdataset.py:596-618 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:311-333 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:330-352 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:328-350 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:312-334 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:188-210 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:184-206 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:288-312 | examples/research_projects/gligen/train_gligen_text.py:175-197 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:319-341 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:139-161 | examples/research_projects/lora/train_text_to_image_lora.py:258-280 | examples/research_projects/lpl/train_sdxl_lpl.py:382-404 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:322-344 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:89-111 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:256-278 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:244-266 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:268-290 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:402-424 | examples/research_projects/realfill/train_realfill.py:279-301 | examples/research_projects/sana/train_sana_sprint_diffusers.py:481-503 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:387-409 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:379-401 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:492-517 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:326-348 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:241-263 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:318-340 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:312-334 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:343-365 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:374-396 | examples/text_to_image/train_text_to_image.py:332-354 | examples/text_to_image/train_text_to_image_flax.py:168-189 | examples/text_to_image/train_text_to_image_lora.py:292-314 | examples/text_to_image/train_text_to_image_lora_sdxl.py:365-387 | examples/text_to_image/train_text_to_image_sdxl.py:316-338 | examples/textual_inversion/textual_inversion.py:289-311 | examples/textual_inversion/textual_inversion_sdxl.py:287-309 | examples/vqgan/train_vqgan.py:382-405 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:608\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:161\u0060 calls \u0060add_argument\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.py:189\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6f1ad09027f7d7b0790587c97458ee922f43bf666b513eba2a5e68ae349bf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 36): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:424-448 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:364-388 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:455-479 | examples/custom_diffusion/train_custom_diffusion.py:377-401 | examples/dreambooth/train_dreambooth_flux.py:332-356 | examples/dreambooth/train_dreambooth_lora.py:271-295 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:444-468 | examples/dreambooth/train_dreambooth_lora_flux.py:352-376 | examples/dreambooth/train_dreambooth_lora_flux2.py:375-399 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:375-399 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:375-399 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:376-400 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:491-515 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:507-531 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:377-401 | examples/dreambooth/train_dreambooth_lora_hidream.py:392-417 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:456-480 | examples/dreambooth/train_dreambooth_lora_krea2.py:457-482 | examples/dreambooth/train_dreambooth_lora_lumina2.py:303-327 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:360-385 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:379-404 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:395-420 | examples/dreambooth/train_dreambooth_lora_sana.py:317-341 | examples/dreambooth/train_dreambooth_lora_sd3.py:342-366 | examples/dreambooth/train_dreambooth_lora_sdxl.py:356-380 | examples/dreambooth/train_dreambooth_lora_z_image.py:369-393 | examples/dreambooth/train_dreambooth_sd3.py:318-342 | examples/research_projects/lpl/train_sdxl_lpl.py:263-287 | examples/research_projects/sana/train_sana_sprint_diffusers.py:362-386 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:262-286 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:353-377 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:200-224 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:193-217 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:238-262 | examples/text_to_image/train_text_to_image_lora_sdxl.py:247-271 | examples/text_to_image/train_text_to_image_sdxl.py:197-221 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:424\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fac4203e0b10b1a4d7779f5b3882ac5a0cd058be235ee109b4927f9c09af6b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 13): examples/community/gluegen.py:160-187 | examples/community/ip_adapter_face_id.py:97-124 | examples/community/lpw_stable_diffusion_xl.py:542-569 | examples/community/pipeline_animatediff_img2video.py:205-232 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1129-1156 | examples/community/pipeline_null_text_inversion.py:22-48 | examples/community/pipeline_sdxl_style_aligned.py:335-362 | examples/community/pipeline_stable_diffusion_boxdiff.py:328-355 | examples/community/pipeline_stable_diffusion_pag.py:300-325 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:458-485 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:124-151 | examples/community/pipeline_stable_diffusion_xl_ipex.py:120-147 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:108-135 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"db17a12f6d315b931cc00842289fb960ddc725c7edf87954d7749e0f65eb04c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201326 lines \u00D7 13): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:866-891 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:844-863 | examples/dreambooth/train_dreambooth_lora_flux2.py:808-833 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:767-792 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:813-838 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:763-788 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:913-938 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:881-906 | examples/dreambooth/train_dreambooth_lora_krea2.py:875-900 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:767-792 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:800-825 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:835-860 | examples/dreambooth/train_dreambooth_lora_z_image.py:797-822 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"15eb4be80d33af73e5d880b2286122e5ab41ebbe58fed94ade7cb779ac17d9a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 9): examples/cogview4-control/train_control_cogview4.py:485-510 | examples/controlnet/train_controlnet.py:538-563 | examples/controlnet/train_controlnet_flux.py:567-592 | examples/controlnet/train_controlnet_sd3.py:615-640 | examples/controlnet/train_controlnet_sdxl.py:583-608 | examples/flux-control/train_control_flux.py:477-502 | examples/flux-control/train_control_lora_flux.py:509-534 | examples/research_projects/controlnet/train_controlnet_webdataset.py:777-802 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:555-580 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:485\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c881de53c9e6e5f86cc428ac7b1578f7941ef23b6383c5c9d287c0ee8b0d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201326 lines \u00D7 7): examples/amused/train_amused.py:69-90 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:486-511 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:288-313 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:460-485 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:464-489 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:483-508 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:194-217 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/amused/train_amused.py:69\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/amused/train_amused.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b575df7ba94556c69588f13d88d84f8c68e62da4ae82e182589f668192ef5da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 7): examples/custom_diffusion/train_custom_diffusion.py:675-700 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:341-363 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:354-376 | examples/research_projects/lora/train_text_to_image_lora.py:409-431 | examples/research_projects/lpl/train_sdxl_lpl.py:734-756 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:564-586 | examples/text_to_image/train_text_to_image_sdxl.py:618-640 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 469 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:675\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, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:365\u0060 calls \u0060set_verbosity_warning\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py:702\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":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"0531bf459d76331d6635fd78359bbb40a12111114b888c364ba14335df93b9d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 7): examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1288-1313 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1269-1294 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1724-1748 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:955-979 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:798-823 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1095-1120 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1095-1120 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 140 separate duplicated blocks between them, totalling at least 2226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:951\u0060 calls \u0060randn_like\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1091\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"12530c26676718e72490bc97cb3e1380787ab00dddaf82db903e637e7b4fa629"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 6): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:252-277 | examples/research_projects/lora/train_text_to_image_lora.py:350-375 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:366-391 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:354-379 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:388-413 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:241-266 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 687 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:252\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e7b04a24deac69c13d3948b5bb9c4f98ba24ba3716a2400a6bcc37ce6be09f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201326 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1343-1368 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1333-1354 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1400-1425 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1301-1326 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1403-1428 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1343\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1332\u0060 calls \u0060to\u0060, \u0060items\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1342\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a25f748c70f2657c9fb2765ea1159a1f413283f1ab4ba89e05910319f077bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora.py:257-282 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:355-380 | examples/dreambooth/train_dreambooth_lora_sdxl.py:342-367 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:248-273 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:339-364 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 1058 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora.py:257\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"907e0621d957cfb0c392f10f2fdf8f11d280c21e9caa5d380cfb2c3662de1f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:374-399 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:328-353 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:419-444 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:374\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"229c85075f185f2676e84d7fd86e012ea7e2bfa9230a937f06744cbe937b8405"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): examples/cogview4-control/train_control_cogview4.py:138-163 | examples/flux-control/train_control_flux.py:133-158 | examples/flux-control/train_control_lora_flux.py:143-168 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:138\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9af63582141d81fdb1ce03171cb6d3e79338a0a81c3da2e3e804cf976ace8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:990-1015 | examples/community/stable_diffusion_tensorrt_inpaint.py:1073-1098 | examples/community/stable_diffusion_tensorrt_txt2img.py:924-949 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"819b05f77427ac8c66bf296170bf43a036d7045f8f002d10abb205e92ec45335"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): examples/controlnet/train_controlnet.py:831-856 | examples/controlnet/train_controlnet_sdxl.py:950-975 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1027-1052 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet_sdxl.py:976\u0060 calls \u0060requires_grad_\u0060 and \u0060examples/controlnet/train_controlnet.py:857\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed79eb23980d428d02dd4ae55fd983e9b3473c0a7d59993ed8d3e6c15cd4e202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:712-737 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:708-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:826-851 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cac0f3ec68d5286db51f8433000d4d22ae1c05cc653693f82ded9b530e34c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 3): examples/instruct_pix2pix/train_instruct_pix2pix.py:437-460 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:495-520 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:495-518 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:495\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, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:436\u0060 calls \u0060join\u0060, \u0060ProjectConfiguration\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:495\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bda4ec0e6a4364f8974b356ed1c20a4da4efb91491eea33b654b2c9155ec25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:283-308 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:187-212 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:294-319 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:283\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b887a169d46d513046f5888bc988645c74e51241bbab381703f3c53fd49d83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:181-206 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:179-204 | examples/vqgan/train_vqgan.py:261-286 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:181\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cf0922e1b8583adf5c429eda1f4d7384006e0eb2bd8bb77f8e7258ecb22573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201344 lines \u00D7 2): examples/community/clip_guided_stable_diffusion.py:209-250 | examples/community/clip_guided_stable_diffusion_img2img.py:371-414 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 311 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_stable_diffusion.py:209\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":"examples/community/clip_guided_stable_diffusion.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5e667a8843da0dde5222489107ee14e64ba6e52de5a98ada65b1e5b2397b41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): examples/community/imagic_stable_diffusion.py:239-264 | examples/community/imagic_stable_diffusion.py:281-306 \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":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a7c9207cd973bb8f1d74fc5a8191b9d92760cad22b3d0d6cc1bc886abf6a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): examples/community/llm_grounded_diffusion.py:1319-1344 | examples/community/pipeline_prompt2prompt.py:337-362 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060examples/community/pipeline_prompt2prompt.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 776 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/llm_grounded_diffusion.py:1319\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e09e5b958d0d9c84e48cfcf5ae1228fbfab9800022ba01825c70ff0a6d171b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): examples/community/lpw_stable_diffusion_xl.py:2191-2216 | examples/community/pipeline_demofusion_sdxl.py:1307-1332 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":2191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab520e82a9ecc2ea0a0e3d4563901bbad26f42ebf2eaaf9a38e2aa9c137afbf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): examples/community/matryoshka.py:813-838 | examples/community/matryoshka.py:1087-1112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"315c5004d3745a1e4c9229656ef5f0c39cd4e7414a9edce600043ac5906733f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): examples/community/pipeline_stable_diffusion_3_differential_img2img.py:226-251 | examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py:272-297 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 772 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_3_differential_img2img.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"0964b2d5b234a0c25d76cc656c8d929ed7c53de95540dda22684c914fde6ece9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): examples/community/pipeline_stable_diffusion_boxdiff.py:1232-1257 | examples/community/pipeline_stable_diffusion_boxdiff.py:1282-1306 \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":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e8f7fdd120ada9600b92150524b8014ad989cb8b7750d5f929149034bdd824"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): examples/community/stable_diffusion_repaint.py:784-809 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:539-563 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_repaint.py\u0060 and \u0060src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_repaint.py:784\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":"examples/community/stable_diffusion_repaint.py"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2c83ec5e52102a22e38f9129e0950883b4cf0d083873972cfdab220bd96299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): examples/controlnet/train_controlnet.py:1081-1106 | examples/controlnet/train_controlnet_sdxl.py:1269-1294 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:1081\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1e6755f7e2eaf248dac11828a7b6fd5a5581fc712d5e23be6e60ff7374ee13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_lumina2.py:982-1007 | examples/dreambooth/train_dreambooth_lora_sana.py:995-1020 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sana.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:982\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_lumina2.py"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18a817454383261b9d095078f62dd05461f5e565f5f500cc4c810db751eb0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sana.py:1510-1535 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1692-1716 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sana.py\u0060 and \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1540 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sana.py:1510\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sana.py"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83ad3af517d19eda233ec47f7c26668a2c0c238c6c8ddece172f18fdb84aa18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sd3.py:1023-1048 | examples/dreambooth/train_dreambooth_sd3.py:949-974 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 188 separate duplicated blocks between them, totalling at least 3169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:1023\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":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1ab8b7979f7ea615755a4fc884d6d2a6f17eacea822149c44d6001e2a384ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:705-730 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:717-740 \u2014 \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py\u0060 and \u0060examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.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 98 separate duplicated blocks between them, totalling at least 1512 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:705\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:716\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:705\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":"examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f96296936fced9493360be6dc1ca93df869ba5e71ba35e17c6933d56ef7e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): examples/text_to_image/train_text_to_image.py:781-806 | examples/text_to_image/train_text_to_image_lora.py:657-682 \u2014 before extracting anything, compare \u0060examples/text_to_image/train_text_to_image.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 116 separate duplicated blocks between them, totalling at least 1851 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/text_to_image/train_text_to_image.py:781\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/text_to_image/train_text_to_image.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"15be594acf1c7f4062fd89408b49cb6720aca0e5ecd83d12dc261a659173a99a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 56): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:575-597 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:461-483 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:563-585 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:282-304 | examples/cogvideo/train_cogvideox_lora.py:273-295 | examples/controlnet/train_controlnet.py:335-357 | examples/controlnet/train_controlnet_flux.py:350-372 | examples/controlnet/train_controlnet_sd3.py:376-398 | examples/controlnet/train_controlnet_sdxl.py:377-399 | examples/custom_diffusion/train_custom_diffusion.py:475-497 | examples/dreambooth/train_dreambooth.py:365-389 | examples/dreambooth/train_dreambooth_flux.py:434-456 | examples/dreambooth/train_dreambooth_lora.py:368-390 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:585-607 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:582-604 | examples/dreambooth/train_dreambooth_lora_flux.py:468-490 | examples/dreambooth/train_dreambooth_lora_flux2.py:506-528 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:490-512 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:516-538 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:491-513 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:632-654 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:619-641 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:513-535 | examples/dreambooth/train_dreambooth_lora_hidream.py:499-521 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:577-599 | examples/dreambooth/train_dreambooth_lora_krea2.py:602-624 | examples/dreambooth/train_dreambooth_lora_lumina2.py:409-431 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:502-524 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:521-543 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:537-559 | examples/dreambooth/train_dreambooth_lora_sana.py:427-449 | examples/dreambooth/train_dreambooth_lora_sd3.py:454-476 | examples/dreambooth/train_dreambooth_lora_sdxl.py:469-491 | examples/dreambooth/train_dreambooth_lora_z_image.py:500-522 | examples/dreambooth/train_dreambooth_sd3.py:420-442 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:222-244 | examples/research_projects/controlnet/train_controlnet_webdataset.py:576-598 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:279-301 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:304-326 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:302-324 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:286-308 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:262-284 | examples/research_projects/gligen/train_gligen_text.py:155-177 | examples/research_projects/lpl/train_sdxl_lpl.py:362-384 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:300-324 | examples/research_projects/realfill/train_realfill.py:253-275 | examples/research_projects/sana/train_sana_sprint_diffusers.py:461-483 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:365-389 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:359-381 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:466-488 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:298-320 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:292-314 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:323-345 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:354-376 | examples/text_to_image/train_text_to_image_lora_sdxl.py:345-367 | examples/text_to_image/train_text_to_image_sdxl.py:296-318 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:575\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"735d6b9033db4005bb1ef4ea9aa6552339759ae3a1d4cbec2f0b70f75e50040b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 50): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:734-758 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:612-636 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:721-745 | examples/cogview4-control/train_control_cogview4.py:379-403 | examples/controlnet/train_controlnet.py:405-429 | examples/controlnet/train_controlnet_flux.py:429-453 | examples/controlnet/train_controlnet_sd3.py:476-500 | examples/controlnet/train_controlnet_sdxl.py:447-471 | examples/custom_diffusion/train_custom_diffusion.py:545-569 | examples/dreambooth/train_dreambooth.py:437-461 | examples/dreambooth/train_dreambooth_flux.py:582-606 | examples/dreambooth/train_dreambooth_lora.py:438-462 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:726-750 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:723-747 | examples/dreambooth/train_dreambooth_lora_flux.py:625-649 | examples/dreambooth/train_dreambooth_lora_flux2.py:663-687 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:641-665 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:673-697 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:642-666 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:773-797 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:760-784 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:670-694 | examples/dreambooth/train_dreambooth_lora_hidream.py:638-662 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:750-774 | examples/dreambooth/train_dreambooth_lora_krea2.py:746-770 | examples/dreambooth/train_dreambooth_lora_lumina2.py:548-572 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:641-665 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:662-686 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:678-702 | examples/dreambooth/train_dreambooth_lora_sana.py:570-594 | examples/dreambooth/train_dreambooth_lora_sd3.py:620-644 | examples/dreambooth/train_dreambooth_lora_sdxl.py:600-624 | examples/dreambooth/train_dreambooth_lora_z_image.py:657-681 | examples/dreambooth/train_dreambooth_sd3.py:567-591 | examples/flux-control/train_control_flux.py:371-395 | examples/flux-control/train_control_lora_flux.py:403-427 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:308-332 | examples/research_projects/controlnet/train_controlnet_webdataset.py:644-668 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:361-385 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:380-404 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:378-402 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:362-386 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:364-388 | examples/research_projects/realfill/train_realfill.py:321-345 | examples/research_projects/sana/train_sana_sprint_diffusers.py:618-642 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:437-461 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:429-453 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:597-621 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:427-451 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:422-446 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:734\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9717b07395253831766c4ea8db3ff2b5992219727bf15619c07fb67cbc5032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 34): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:486-510 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:410-433 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:507-531 | examples/dreambooth/train_dreambooth.py:310-333 | examples/dreambooth/train_dreambooth_flux.py:378-402 | examples/dreambooth/train_dreambooth_lora.py:317-340 | examples/dreambooth/train_dreambooth_lora_flux.py:412-436 | examples/dreambooth/train_dreambooth_lora_hidream.py:448-471 | examples/dreambooth/train_dreambooth_lora_lumina2.py:358-381 | examples/dreambooth/train_dreambooth_lora_sana.py:376-399 | examples/dreambooth/train_dreambooth_lora_sd3.py:397-421 | examples/dreambooth/train_dreambooth_lora_sdxl.py:413-437 | examples/dreambooth/train_dreambooth_sd3.py:364-388 | examples/instruct_pix2pix/train_instruct_pix2pix.py:225-248 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:211-234 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:276-299 | examples/research_projects/lora/train_text_to_image_lora.py:177-199 | examples/research_projects/lpl/train_sdxl_lpl.py:314-337 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:201-224 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:301-325 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:310-333 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:308-331 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:410-434 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:283-306 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:198-221 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:245-269 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:244-267 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:274-298 | examples/text_to_image/train_text_to_image.py:289-312 | examples/text_to_image/train_text_to_image_flax.py:136-159 | examples/text_to_image/train_text_to_image_lora.py:249-272 | examples/text_to_image/train_text_to_image_lora_sdxl.py:292-316 | examples/text_to_image/train_text_to_image_sdxl.py:248-271 | examples/vqgan/train_vqgan.py:333-356 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:486\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:485\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:301\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dba237e9f04987585215c52db39eaa128e0467acb344cdcd0805731c0cb9070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 33): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:463-484 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:386-408 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:483-505 | examples/custom_diffusion/train_custom_diffusion.py:405-427 | examples/dreambooth/train_dreambooth.py:286-308 | examples/dreambooth/train_dreambooth_flax.py:99-121 | examples/dreambooth/train_dreambooth_flux.py:354-376 | examples/dreambooth/train_dreambooth_lora.py:293-315 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:481-502 | examples/dreambooth/train_dreambooth_lora_flux.py:389-410 | examples/dreambooth/train_dreambooth_lora_flux2.py:412-433 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:412-433 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:528-549 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:414-435 | examples/dreambooth/train_dreambooth_lora_hidream.py:425-446 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:493-514 | examples/dreambooth/train_dreambooth_lora_krea2.py:498-519 | examples/dreambooth/train_dreambooth_lora_lumina2.py:335-356 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:398-419 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:417-438 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:433-454 | examples/dreambooth/train_dreambooth_lora_sana.py:353-374 | examples/dreambooth/train_dreambooth_lora_sd3.py:374-395 | examples/dreambooth/train_dreambooth_lora_sdxl.py:384-408 | examples/dreambooth/train_dreambooth_lora_z_image.py:406-427 | examples/dreambooth/train_dreambooth_sd3.py:340-362 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:101-123 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:122-144 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:118-140 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:227-249 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:286-308 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:284-306 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:381-405 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:386\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:461\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:483\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc365aa03817ee6ef31c3de67a590afbc90a38a4d5578649d277559bf37d2a31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 30): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:630-654 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:739-763 | examples/cogview4-control/train_control_cogview4.py:397-421 | examples/controlnet/train_controlnet.py:423-447 | examples/controlnet/train_controlnet_flux.py:447-471 | examples/controlnet/train_controlnet_sd3.py:494-518 | examples/controlnet/train_controlnet_sdxl.py:465-489 | examples/custom_diffusion/train_custom_diffusion.py:563-587 | examples/dreambooth/train_dreambooth_flux.py:600-624 | examples/dreambooth/train_dreambooth_lora.py:456-480 | examples/dreambooth/train_dreambooth_lora_sdxl.py:618-642 | examples/dreambooth/train_dreambooth_sd3.py:585-609 | examples/flux-control/train_control_flux.py:389-413 | examples/flux-control/train_control_lora_flux.py:421-445 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:326-350 | examples/research_projects/controlnet/train_controlnet_webdataset.py:662-686 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:379-403 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:398-422 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:396-420 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:380-404 | examples/research_projects/gligen/train_gligen_text.py:232-256 | examples/research_projects/lpl/train_sdxl_lpl.py:506-530 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:447-471 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:615-639 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:392-416 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:436-460 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:445-469 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:440-464 | examples/text_to_image/train_text_to_image_lora_sdxl.py:439-463 | examples/text_to_image/train_text_to_image_sdxl.py:440-464 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:630\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, \u0060examples/research_projects/lpl/train_sdxl_lpl.py:531\u0060 calls \u0060add_argument\u0060 and \u0060examples/controlnet/train_controlnet.py:448\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f417ae330b058db831433fd68f6ead859a1911a8f2577e6d92019ccde68e61f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 28): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:315-339 | examples/dreambooth/train_dreambooth_flux.py:249-273 | examples/dreambooth/train_dreambooth_lora_flux.py:269-293 | examples/dreambooth/train_dreambooth_lora_hidream.py:295-319 | examples/dreambooth/train_dreambooth_lora_krea2.py:360-384 | examples/dreambooth/train_dreambooth_lora_lumina2.py:208-232 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:263-287 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:282-306 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:286-310 | examples/dreambooth/train_dreambooth_lora_sana.py:228-252 | examples/dreambooth/train_dreambooth_lora_sd3.py:259-283 | examples/dreambooth/train_dreambooth_lora_sdxl.py:279-303 | examples/dreambooth/train_dreambooth_sd3.py:235-259 | examples/instruct_pix2pix/train_instruct_pix2pix.py:123-147 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:169-193 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:174-198 | examples/research_projects/lpl/train_sdxl_lpl.py:218-242 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:249-273 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:276-300 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:207-231 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:111-135 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:155-179 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:148-172 | examples/text_to_image/train_text_to_image.py:213-237 | examples/text_to_image/train_text_to_image_flax.py:67-91 | examples/text_to_image/train_text_to_image_lora.py:162-186 | examples/text_to_image/train_text_to_image_lora_sdxl.py:202-226 | examples/text_to_image/train_text_to_image_sdxl.py:152-176 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:315\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2747b057538a227300b8b00512961719dbd2fb6ed0f16188ff5d8bacb1eebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 26): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:413-433 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:589-613 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:416-439 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:567-591 | examples/dreambooth/train_dreambooth.py:313-333 | examples/dreambooth/train_dreambooth_lora.py:320-340 | examples/dreambooth/train_dreambooth_lora_hidream.py:451-471 | examples/dreambooth/train_dreambooth_lora_lumina2.py:361-381 | examples/dreambooth/train_dreambooth_lora_sana.py:379-399 | examples/instruct_pix2pix/train_instruct_pix2pix.py:228-248 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:214-234 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:279-299 | examples/research_projects/lpl/train_sdxl_lpl.py:317-337 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:204-224 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:305-325 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:313-333 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:311-331 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:286-306 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:201-221 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:247-267 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:277-298 | examples/text_to_image/train_text_to_image.py:292-312 | examples/text_to_image/train_text_to_image_flax.py:139-159 | examples/text_to_image/train_text_to_image_lora.py:252-272 | examples/text_to_image/train_text_to_image_sdxl.py:251-271 | examples/vqgan/train_vqgan.py:336-356 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 26 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 26 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:413\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:251\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:328\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"17454dfee842a7a2b608aaed3594573dc686806cf3f40483a5831e5d891ddc2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 25): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:348-370 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:302-324 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:393-415 | examples/dreambooth/train_dreambooth_flux.py:282-304 | examples/dreambooth/train_dreambooth_lora_flux.py:302-324 | examples/dreambooth/train_dreambooth_lora_flux2.py:306-328 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:307-331 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:306-328 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:308-332 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:426-450 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:316-340 | examples/dreambooth/train_dreambooth_lora_hidream.py:328-350 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:367-391 | examples/dreambooth/train_dreambooth_lora_krea2.py:393-415 | examples/dreambooth/train_dreambooth_lora_lumina2.py:241-263 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:296-318 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:315-337 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:319-343 | examples/dreambooth/train_dreambooth_lora_sana.py:261-283 | examples/dreambooth/train_dreambooth_lora_sd3.py:292-314 | examples/dreambooth/train_dreambooth_lora_sdxl.py:312-334 | examples/dreambooth/train_dreambooth_lora_z_image.py:306-328 | examples/dreambooth/train_dreambooth_sd3.py:268-290 | examples/research_projects/sana/train_sana_sprint_diffusers.py:333-355 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:309-331 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:348\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:372\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:331\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"556980ab5719630d3e42a6077ac6970262d0cbb69494e3e6700668eff751cdb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 23): examples/amused/train_amused.py:217-239 | examples/cosmos/train_cosmos_predict25_lora.py:141-163 | examples/instruct_pix2pix/train_instruct_pix2pix.py:348-370 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:405-427 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:363-385 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:260-282 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:267-289 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:367-389 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:399-421 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:229-249 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:231-251 | examples/research_projects/ip_adapter/tutorial_train_plus.py:247-267 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:292-312 | examples/research_projects/lora/train_text_to_image_lora.py:321-343 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:325-347 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:485-509 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:413-435 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:317-339 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:369-391 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:367-389 | examples/text_to_image/train_text_to_image.py:435-457 | examples/text_to_image/train_text_to_image_lora.py:368-390 | examples/vqgan/train_vqgan.py:471-493 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 23 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 23 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/amused/train_amused.py:217\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/amused/train_amused.py:240\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:509\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":"examples/amused/train_amused.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"71792f24132a87846b7a99f6d7588163c643f501ab607a00bc7c0d668ee2ec44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 19): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2257-2281 | examples/dreambooth/train_dreambooth_flux.py:1686-1710 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1931-1955 | examples/dreambooth/train_dreambooth_lora_flux.py:1825-1849 | examples/dreambooth/train_dreambooth_lora_flux2.py:1915-1939 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1887-1911 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2029-2053 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2130-2154 | examples/dreambooth/train_dreambooth_lora_hidream.py:1621-1645 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:2006-2030 | examples/dreambooth/train_dreambooth_lora_krea2.py:1915-1939 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1421-1445 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1794-1818 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1862-1886 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1958-1982 | examples/dreambooth/train_dreambooth_lora_sana.py:1436-1460 | examples/dreambooth/train_dreambooth_lora_sd3.py:1826-1850 | examples/dreambooth/train_dreambooth_lora_z_image.py:1773-1797 | examples/dreambooth/train_dreambooth_sd3.py:1636-1660 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1930\u0060 calls \u0060chunk\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2255\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2257}}}],"partialFingerprints":{"codehealthFindingId/v1":"09670526d6b02598a88410fcf7819d6b5bc314a1b01f2e6ca7e719e706bea672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201325 lines \u00D7 18): examples/dreambooth/train_dreambooth_flux.py:107-126 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:173-192 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:195-214 | examples/dreambooth/train_dreambooth_lora_flux.py:113-132 | examples/dreambooth/train_dreambooth_lora_flux2.py:126-145 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:126-145 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:126-145 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:126-145 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:221-240 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:228-247 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:117-136 | examples/dreambooth/train_dreambooth_lora_hidream.py:98-119 | examples/dreambooth/train_dreambooth_lora_lumina2.py:97-121 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:119-140 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:143-164 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:145-166 | examples/dreambooth/train_dreambooth_lora_z_image.py:126-145 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:91-114 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1894 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:107\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be66dcb44f6ae3abf688f7df0ef0b4ff72a89c941cfc9dd3b25d7044d39081f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 18): examples/instruct_pix2pix/train_instruct_pix2pix.py:336-359 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:393-416 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:351-374 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:248-271 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:255-278 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:355-378 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:199-222 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:387-410 | examples/research_projects/lora/train_text_to_image_lora.py:309-332 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:313-336 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:472-496 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:400-424 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:304-328 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:357-380 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:355-378 | examples/text_to_image/train_text_to_image.py:422-446 | examples/text_to_image/train_text_to_image_lora.py:355-379 | examples/vqgan/train_vqgan.py:458-482 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:336\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":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b53115611faad49a96a127e5e2caf5957104b64b78e8c56c2b3d39205b1df69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 16): examples/instruct_pix2pix/train_instruct_pix2pix.py:250-274 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:307-331 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:274-298 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:178-202 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:170-194 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:166-190 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:301-325 | examples/research_projects/lora/train_text_to_image_lora.py:240-264 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:226-250 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:384-408 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:308-332 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:223-247 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:285-309 | examples/text_to_image/train_text_to_image.py:314-338 | examples/text_to_image/train_text_to_image_lora.py:274-298 | examples/vqgan/train_vqgan.py:358-382 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:250\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"03dec800f8d93d15315966e1f62b4a0d234b1194a6eef197a0ab645de0347409"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 11): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:491-515 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:512-535 | examples/dreambooth/train_dreambooth_flux.py:383-406 | examples/dreambooth/train_dreambooth_lora_flux.py:417-440 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:462-485 | examples/dreambooth/train_dreambooth_lora_sd3.py:402-426 | examples/dreambooth/train_dreambooth_lora_sdxl.py:418-441 | examples/dreambooth/train_dreambooth_sd3.py:369-392 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:415-438 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:250-273 | examples/text_to_image/train_text_to_image_lora_sdxl.py:297-320 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:491\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b31aaeae0fc4d0b2c3b8b40cc284b159bd2bf9b5d9204d71e87d549eb40ba4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 11): examples/cogview4-control/train_control_cogview4.py:416-438 | examples/controlnet/train_controlnet.py:454-478 | examples/controlnet/train_controlnet_flux.py:481-503 | examples/controlnet/train_controlnet_sd3.py:522-546 | examples/controlnet/train_controlnet_sdxl.py:499-523 | examples/flux-control/train_control_flux.py:408-430 | examples/flux-control/train_control_lora_flux.py:440-462 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:357-381 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:317-341 | examples/research_projects/controlnet/train_controlnet_webdataset.py:693-717 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:471-495 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:416\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e212f974ab64441b49edc89c655193afdeeed985550cafcb4915eafb7a699da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 11): examples/research_projects/lpl/train_sdxl_lpl.py:490-513 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:466-490 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:395-418 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:299-322 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:376-399 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:420-443 | examples/text_to_image/train_text_to_image.py:417-440 | examples/text_to_image/train_text_to_image_lora.py:350-373 | examples/text_to_image/train_text_to_image_lora_sdxl.py:423-446 | examples/text_to_image/train_text_to_image_sdxl.py:424-447 | examples/vqgan/train_vqgan.py:453-476 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 836 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lpl/train_sdxl_lpl.py:490\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":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c183ba93349899da697cb9a653a0cdeadb51b696860a18e7f869084cf981d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 10): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1736-1760 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1570-1594 | examples/dreambooth/train_dreambooth_lora_flux2.py:1719-1743 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1622-1646 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1676-1700 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1570-1594 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1819-1843 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1705-1729 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1812-1836 | examples/dreambooth/train_dreambooth_lora_z_image.py:1604-1628 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ddd73934a5077e172d93563ca49f258cf5274dcd3c06868f91494b867ec636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 9): examples/controlnet/train_controlnet.py:894-918 | examples/controlnet/train_controlnet_sd3.py:1110-1134 | examples/controlnet/train_controlnet_sdxl.py:1022-1046 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1091-1115 | examples/research_projects/lpl/train_sdxl_lpl.py:917-941 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:730-753 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:814-838 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:971-995 | examples/text_to_image/train_text_to_image_sdxl.py:801-825 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 1830 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:894\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d1cafa0f241c7262c5d252274b658bccde2a760166384ba10eff44e05691ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 7): examples/dreambooth/train_dreambooth.py:448-472 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:317-341 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:329-353 | examples/research_projects/realfill/train_realfill.py:332-356 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:448-472 | examples/textual_inversion/textual_inversion.py:356-380 | examples/textual_inversion/textual_inversion_sdxl.py:357-381 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 621 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:448\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d697533c8a4ff4577eec2e059d4838924553502e0f9580bfe0356d116a639b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 5): examples/community/lpw_stable_diffusion_xl.py:1578-1602 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1966-1990 | examples/community/pipeline_sdxl_style_aligned.py:1546-1570 | examples/community/pipeline_stable_diffusion_xl_ipex.py:895-919 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1199-1223 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 832 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca64b438b784da8d0db737ac59976be2c415db7298bd17b77d972419b2f02985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:107-131 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:113-137 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:89-113 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:95-119 | examples/research_projects/controlnet/train_controlnet_webdataset.py:87-111 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:107\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a87d665965a6cae48a063a1dfaf23714c7cf423aa16021fac9a95d64171487"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1081-1105 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:940-964 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1096-1120 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1038-1061 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1098-1121 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:940\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, \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1080\u0060 calls \u0060enable_xformers_memory_efficient_attention\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:940\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"1243ee4744e1f87ae7fb1c635d158f0d41d80bd130cdafce94ab15dbbca40277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2230-2253 | examples/dreambooth/train_dreambooth_flux.py:1658-1682 | examples/dreambooth/train_dreambooth_lora_flux.py:1797-1820 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1090-1113 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1087\u0060 calls \u0060to\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2227\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2230}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a99ea9092819cdc4abe433f4c877f13ade6d4d1bd84644c892786ca1cebab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 4): examples/cogview4-control/train_control_cogview4.py:905-928 | examples/controlnet/train_controlnet_flux.py:1123-1147 | examples/flux-control/train_control_flux.py:895-918 | examples/flux-control/train_control_lora_flux.py:1040-1063 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1536 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:905\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded81d65d1b3f3bb502ea6a499bf182773ae1693497700dd19aac93aebe77cd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 4): examples/community/adaptive_mask_inpainting.py:1008-1032 | examples/community/masked_stable_diffusion_img2img.py:120-143 | examples/community/pipeline_prompt2prompt.py:674-698 | examples/community/stable_diffusion_reference.py:952-976 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/masked_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:1008\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"195f56b9fa3ef28f2c456012a6d964c015b8ab89a9262f3c93328a448b4aa83f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:1027-1051 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:507-530 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:925-949 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1070-1094 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 870 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:1027\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":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9e400af1c2d5e16019f728c7074383af86662069c432fc1b39836fdfec379b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 4): examples/instruct_pix2pix/train_instruct_pix2pix.py:164-186 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:210-232 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:215-237 | examples/vqgan/train_vqgan.py:235-259 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:164\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"4675ca5c7c83d14443903933c17651b7488550aae1ac143e992f34d54443451c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): examples/amused/train_amused.py:209-233 | examples/dreambooth/train_dreambooth.py:480-504 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:480-504 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/amused/train_amused.py:209\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/amused/train_amused.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"7094ca0837e03f2cb57f485893c676142dae218d833aa20a8568892781f0c01c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 3): examples/cogview4-control/train_control_cogview4.py:515-539 | examples/cosmos/train_cosmos_predict25_lora.py:112-132 | examples/flux-control/train_control_flux.py:507-531 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:515\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2142ffe11c8b6e6501c3ad44801a6e2ce219de2120698972b69316dabf21a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 3): examples/cogview4-control/train_control_cogview4.py:1144-1204 | examples/flux-control/train_control_flux.py:1151-1211 | examples/flux-control/train_control_lora_flux.py:1297-1357 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f211c136e716e44d3958b0d0b4a437183cfe5f57cfc6d7e1368cc2389f9b03e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:885-912 | examples/community/stable_diffusion_tensorrt_inpaint.py:968-995 | examples/community/stable_diffusion_tensorrt_txt2img.py:841-868 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f1f565f4d8d2e1db6b4fd03a24b077b4312395548678abf5d96be03f1dbc78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): examples/controlnet/train_controlnet_flux.py:274-298 | examples/controlnet/train_controlnet_sd3.py:312-336 | examples/controlnet/train_controlnet_sdxl.py:301-325 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1591 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flux.py:274\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed7061f62a464a78504b536d50d131316a357d755e34f84dacb3e729e9b9c61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1456-1480 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1450-1474 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1548-1572 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"08867a13a43a1d4a29a9512040ad6feabe4ebe4304d402b30c09d6e5a1655c3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_sd3.py:1843-1867 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1854-1876 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1896-1918 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2381 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90be030f60aac7f0cb2ab68c3868942ef600d9d445417f4193aa4dbfa73bd28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:157-181 | examples/research_projects/lora/train_text_to_image_lora.py:89-113 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:124-148 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 594 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d53a2bf9ce7f02e2e5d0972667532c89d05e8c9b1c5eacff84f592cc2d77d7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): examples/research_projects/lora/train_text_to_image_lora.py:659-683 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:657-681 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:783-807 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lora/train_text_to_image_lora.py:659\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"906836e92dc93d939bab219ec0bf289b36c035c9dd27df6acad83e4099bbbf68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:633-657 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:522-546 | examples/text_to_image/train_text_to_image_sdxl.py:517-541 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01447dcbfb8f768ef44e6d165f72e70c6c653b78ed7865e634cd9a004b4b360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): examples/community/lpw_stable_diffusion_xl.py:884-908 | examples/community/pipeline_demofusion_sdxl.py:348-372 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion_xl.py:884\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9098ed496cdd3c066b30db19780debdc2d863c0942909c0e404f8a746ce6310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1002-1026 | examples/community/pipeline_stable_diffusion_xl_instantid.py:991-1015 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1002\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bfa101bfa796aac4b05b8d08c272bd572e410fbb6a079fcc82a30eeeb49fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): examples/community/stable_diffusion_tensorrt_img2img.py:781-805 | examples/community/stable_diffusion_tensorrt_txt2img.py:697-721 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_txt2img.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 699 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"243ff654292848784d0ffdb4b2d6cafaf85eff9f7d7cfc7fd12333a30203067e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): examples/controlnet/train_controlnet.py:608-632 | examples/controlnet/train_controlnet_sdxl.py:662-686 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"6529a6733eba935abd8762d646ae0919e39c62b9d04a3a8a1ee95e91dc106ba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): examples/dreambooth/train_dreambooth_flax.py:276-300 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:302-326 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 420 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b68c989fc417c7083f5505d47eae6b56606e4c3a141d74e0b407d027f0079a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1632-1656 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1725-1749 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py\u0060 as WHOLE FILES: this scan already matched 211 separate duplicated blocks between them, totalling at least 4020 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1632\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":"examples/dreambooth/train_dreambooth_lora_qwenimage21.py"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb8d7fb156331162f1a1db9915c8cf6283e9730f823608d8a72aaa76e3d1b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): examples/flux-control/train_control_flux.py:753-777 | examples/flux-control/train_control_lora_flux.py:783-807 \u2014 before extracting anything, compare \u0060examples/flux-control/train_control_flux.py\u0060 and \u0060examples/flux-control/train_control_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 123 separate duplicated blocks between them, totalling at least 2489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/flux-control/train_control_flux.py:753\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/flux-control/train_control_flux.py"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"063b0f4d731a51974176dcf0f56f45e7ebba9fe9543f27c4ff915a53ddf52f64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:992-1016 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:995-1019 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1942 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ab859ab539d720aa7fe9d85c06ad3952221d8c542625c440771a8790cf1805"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:617-639 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:997-1021 \u2014 \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.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 58 separate duplicated blocks between them, totalling at least 869 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:997\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, \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:615\u0060 calls \u0060register_for_checkpointing\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:997\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":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae37f213974a24c523ca1a8a9b65562349e64247979c933a1ce3cd1907acd96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 2): examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:369-390 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:447-471 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_sdxl.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/ip_adapter/tutorial_train_sdxl.py:447\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c26b36771418356d2de20461c6f0e867279dece73c97b95ca89ee4fe0f2963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:564-588 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:505-529 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 140 separate duplicated blocks between them, totalling at least 2226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:564\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d752e3e675ac8ab9e6e5112109a2b1eb65b154700e5d0801559dc9cc9db38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): scripts/convert_kandinsky_to_diffusers.py:974-998 | scripts/convert_vq_diffusion_to_diffusers.py:226-250 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_kandinsky_to_diffusers.py:974\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/convert_kandinsky_to_diffusers.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89aeec29a637f6d6e90f5832557ac26fb9a945f3bf5d58683edbd0c58c4a81d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): scripts/convert_kandinsky_to_diffusers.py:1052-1076 | scripts/convert_vq_diffusion_to_diffusers.py:304-328 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_kandinsky_to_diffusers.py:1052\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/convert_kandinsky_to_diffusers.py"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2d989392ff37f1bfccc7c914f659ca6f415ea6a5f902510ab36f44f16cbd6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 57): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:326-346 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:98-120 | examples/cogvideo/train_cogvideox_lora.py:89-111 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:367-390 | examples/controlnet/train_controlnet.py:459-481 | examples/controlnet/train_controlnet_sd3.py:527-549 | examples/controlnet/train_controlnet_sdxl.py:504-526 | examples/dreambooth/train_dreambooth_flux.py:260-280 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:359-379 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:380-400 | examples/dreambooth/train_dreambooth_lora_flux.py:280-300 | examples/dreambooth/train_dreambooth_lora_flux2.py:284-304 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:285-305 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:284-304 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:286-306 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:397-417 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:404-424 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:294-314 | examples/dreambooth/train_dreambooth_lora_hidream.py:306-326 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:345-365 | examples/dreambooth/train_dreambooth_lora_krea2.py:371-391 | examples/dreambooth/train_dreambooth_lora_lumina2.py:219-239 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:274-294 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:293-313 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:297-317 | examples/dreambooth/train_dreambooth_lora_sana.py:239-259 | examples/dreambooth/train_dreambooth_lora_sd3.py:270-290 | examples/dreambooth/train_dreambooth_lora_sdxl.py:290-310 | examples/dreambooth/train_dreambooth_lora_z_image.py:284-304 | examples/dreambooth/train_dreambooth_sd3.py:246-266 | examples/instruct_pix2pix/train_instruct_pix2pix.py:134-156 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:180-202 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:204-226 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:97-119 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:97-119 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:207-229 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:362-384 | examples/research_projects/controlnet/train_controlnet_webdataset.py:698-720 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:185-207 | examples/research_projects/lora/train_text_to_image_lora.py:101-123 | examples/research_projects/lpl/train_sdxl_lpl.py:229-251 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:136-158 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:273-295 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:287-307 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:218-240 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:122-144 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:166-188 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:159-181 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:217-239 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:209-231 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:476-498 | examples/text_to_image/train_text_to_image.py:224-246 | examples/text_to_image/train_text_to_image_flax.py:78-100 | examples/text_to_image/train_text_to_image_lora.py:173-195 | examples/text_to_image/train_text_to_image_lora_sdxl.py:213-235 | examples/text_to_image/train_text_to_image_sdxl.py:163-185 | examples/vqgan/train_vqgan.py:274-296 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 788 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:326\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea183d0afa2ca3f71f519192525008832a614c71efce524aa3c881d4f39e60d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 46): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:552-573 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:438-459 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:540-561 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:259-280 | examples/cogvideo/train_cogvideox_lora.py:250-271 | examples/custom_diffusion/train_custom_diffusion.py:452-473 | examples/dreambooth/train_dreambooth_flux.py:411-432 | examples/dreambooth/train_dreambooth_lora.py:345-366 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:562-583 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:559-580 | examples/dreambooth/train_dreambooth_lora_flux.py:445-466 | examples/dreambooth/train_dreambooth_lora_flux2.py:483-504 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:467-488 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:493-514 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:468-489 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:609-630 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:596-617 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:490-511 | examples/dreambooth/train_dreambooth_lora_hidream.py:476-497 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:554-575 | examples/dreambooth/train_dreambooth_lora_krea2.py:579-600 | examples/dreambooth/train_dreambooth_lora_lumina2.py:386-407 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:479-500 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:498-519 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:514-535 | examples/dreambooth/train_dreambooth_lora_sana.py:404-425 | examples/dreambooth/train_dreambooth_lora_sd3.py:431-452 | examples/dreambooth/train_dreambooth_lora_sdxl.py:446-467 | examples/dreambooth/train_dreambooth_lora_z_image.py:477-498 | examples/dreambooth/train_dreambooth_sd3.py:397-418 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:256-277 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:281-302 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:279-300 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:263-284 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:239-260 | examples/research_projects/lpl/train_sdxl_lpl.py:339-360 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:275-298 | examples/research_projects/realfill/train_realfill.py:230-251 | examples/research_projects/sana/train_sana_sprint_diffusers.py:438-459 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:336-357 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:443-464 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:275-296 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:269-290 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:300-321 | examples/text_to_image/train_text_to_image_lora_sdxl.py:322-343 | examples/text_to_image/train_text_to_image_sdxl.py:273-294 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:552\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:260\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:556\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c79dad3bbcbd2f511e020497f26f0bd039c51e723d7122e4034f0ca18d2e52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 40): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:319-340 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:91-114 | examples/cogvideo/train_cogvideox_lora.py:82-105 | examples/dreambooth/train_dreambooth_flux.py:253-274 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:352-373 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:373-394 | examples/dreambooth/train_dreambooth_lora_flux.py:273-294 | examples/dreambooth/train_dreambooth_lora_flux2.py:277-298 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:278-299 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:277-298 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:279-300 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:390-411 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:397-418 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:287-308 | examples/dreambooth/train_dreambooth_lora_hidream.py:299-320 | examples/dreambooth/train_dreambooth_lora_krea2.py:364-385 | examples/dreambooth/train_dreambooth_lora_lumina2.py:212-233 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:267-288 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:286-307 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:290-311 | examples/dreambooth/train_dreambooth_lora_sana.py:232-253 | examples/dreambooth/train_dreambooth_lora_sd3.py:263-284 | examples/dreambooth/train_dreambooth_lora_sdxl.py:283-304 | examples/dreambooth/train_dreambooth_lora_z_image.py:277-298 | examples/dreambooth/train_dreambooth_sd3.py:239-260 | examples/instruct_pix2pix/train_instruct_pix2pix.py:127-148 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:173-194 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:178-199 | examples/research_projects/lpl/train_sdxl_lpl.py:222-243 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:253-274 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:280-301 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:211-232 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:115-136 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:159-180 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:152-173 | examples/text_to_image/train_text_to_image.py:217-238 | examples/text_to_image/train_text_to_image_flax.py:71-92 | examples/text_to_image/train_text_to_image_lora.py:166-187 | examples/text_to_image/train_text_to_image_lora_sdxl.py:206-227 | examples/text_to_image/train_text_to_image_sdxl.py:156-177 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 788 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:319\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7cde68d451427fce68f2a0be70e8257a52d5c5d6b7d0cd863aae1dcdc2796e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 29): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1788-1811 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1459-1482 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1797-1820 | examples/dreambooth/train_dreambooth_flux.py:1302-1325 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1486-1509 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1375-1398 | examples/dreambooth/train_dreambooth_lora_flux.py:1412-1435 | examples/dreambooth/train_dreambooth_lora_flux2.py:1439-1462 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1389-1412 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1442-1465 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1383-1406 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1531-1554 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1481-1504 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1611-1634 | examples/dreambooth/train_dreambooth_lora_hidream.py:1277-1300 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1580-1603 | examples/dreambooth/train_dreambooth_lora_krea2.py:1494-1517 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1129-1152 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1401-1424 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1443-1466 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1534-1557 | examples/dreambooth/train_dreambooth_lora_sana.py:1152-1175 | examples/dreambooth/train_dreambooth_lora_sd3.py:1451-1474 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1393-1416 | examples/dreambooth/train_dreambooth_lora_z_image.py:1421-1444 | examples/dreambooth/train_dreambooth_sd3.py:1289-1312 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:836-859 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1429-1452 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:822-845 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"295e606e45bda5549723676a13678ac0710c68317f493593c411b548678cf185"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 28): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1353-1376 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1343-1366 | examples/cogvideo/train_cogvideox_lora.py:998-1021 | examples/controlnet/train_controlnet_sd3.py:944-967 | examples/dreambooth/train_dreambooth_flux.py:1043-1066 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1144-1167 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1079-1102 | examples/dreambooth/train_dreambooth_lora_flux.py:1086-1109 | examples/dreambooth/train_dreambooth_lora_flux2.py:1086-1109 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1084-1107 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1091-1114 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1080-1103 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1191-1214 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1182-1205 | examples/dreambooth/train_dreambooth_lora_hidream.py:951-974 | examples/dreambooth/train_dreambooth_lora_krea2.py:1168-1191 | examples/dreambooth/train_dreambooth_lora_lumina2.py:874-897 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1108-1131 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1142-1165 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1233-1256 | examples/dreambooth/train_dreambooth_lora_sana.py:885-908 | examples/dreambooth/train_dreambooth_lora_sd3.py:1078-1101 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1001-1024 | examples/dreambooth/train_dreambooth_lora_z_image.py:1076-1099 | examples/dreambooth/train_dreambooth_sd3.py:1003-1026 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:602-625 | examples/research_projects/sana/train_sana_sprint_diffusers.py:955-978 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:637-660 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b22097efad62191d438ae99d917d0de9854b3b44cb778e1b4cb99e001cd8f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 21): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:432-455 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:452-474 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:467-489 | examples/dreambooth/train_dreambooth_lora_flux.py:360-382 | examples/dreambooth/train_dreambooth_lora_flux2.py:383-405 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:383-405 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:383-405 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:384-406 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:499-521 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:515-537 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:385-407 | examples/dreambooth/train_dreambooth_lora_hidream.py:401-421 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:464-486 | examples/dreambooth/train_dreambooth_lora_lumina2.py:311-331 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:369-391 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:388-410 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:404-426 | examples/dreambooth/train_dreambooth_lora_sana.py:325-347 | examples/dreambooth/train_dreambooth_lora_sd3.py:350-370 | examples/dreambooth/train_dreambooth_lora_z_image.py:377-399 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:246-268 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1907 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:432\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c2a8cbd6e8fb512ceab30ddd553209e8be10f9558895886814571102c52dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 17): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:643-664 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:752-773 | examples/custom_diffusion/train_custom_diffusion.py:576-599 | examples/dreambooth/train_dreambooth.py:490-511 | examples/dreambooth/train_dreambooth_flux.py:613-634 | examples/dreambooth/train_dreambooth_lora.py:469-490 | examples/dreambooth/train_dreambooth_lora_sdxl.py:631-652 | examples/dreambooth/train_dreambooth_sd3.py:598-619 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:392-413 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:411-432 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:409-430 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:393-414 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:441-462 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:490-511 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:460-481 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:628-649 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:458-479 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:643\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_flux.py:635\u0060 calls \u0060add_argument\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py:599\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f26da22ea47a2417f50c4df050f845a804994dd00f314da191206104cd99ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 11): examples/cogview4-control/train_control_cogview4.py:279-300 | examples/controlnet/train_controlnet.py:312-333 | examples/controlnet/train_controlnet_flux.py:327-348 | examples/controlnet/train_controlnet_sd3.py:353-374 | examples/controlnet/train_controlnet_sdxl.py:354-375 | examples/dreambooth/train_dreambooth.py:340-363 | examples/flux-control/train_control_flux.py:271-292 | examples/flux-control/train_control_lora_flux.py:282-303 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:199-220 | examples/research_projects/gligen/train_gligen_text.py:132-153 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:340-363 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:279\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"363d1ee3cef2639961c04dfa241612e3133bf978248bf7acdcabd5bfd0fd80ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 9): examples/cogview4-control/train_control_cogview4.py:475-498 | examples/controlnet/train_controlnet.py:528-551 | examples/controlnet/train_controlnet_sd3.py:605-628 | examples/controlnet/train_controlnet_sdxl.py:573-596 | examples/flux-control/train_control_flux.py:467-490 | examples/flux-control/train_control_lora_flux.py:499-522 | examples/research_projects/controlnet/train_controlnet_webdataset.py:767-790 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:325-348 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:545-568 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:475\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36a2300d20f202d5df1c60b12e5226dc25991fb53b07b11ea477f2b8179d2c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 9): examples/dreambooth/train_dreambooth_flux.py:1352-1375 | examples/dreambooth/train_dreambooth_lora_flux.py:1462-1485 | examples/dreambooth/train_dreambooth_lora_hidream.py:1318-1341 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1170-1193 | examples/dreambooth/train_dreambooth_lora_sana.py:1193-1216 | examples/dreambooth/train_dreambooth_lora_sd3.py:1502-1525 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1444-1467 | examples/dreambooth/train_dreambooth_sd3.py:1341-1364 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1480-1503 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:1352\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb52dddcd057a049ef63688c61820efcece1177a247583d98dcd408faff6f7c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 9): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1310-1333 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1199-1222 | examples/dreambooth/train_dreambooth_lora_flux2.py:1250-1273 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1200-1223 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1254-1277 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1195-1218 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1349-1372 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1297-1320 | examples/dreambooth/train_dreambooth_lora_z_image.py:1240-1262 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cea03f9a97bf1876cc372e87eea1e2c089f73e6ba6b344f7c41d9a44098fc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 9): examples/instruct_pix2pix/train_instruct_pix2pix.py:595-618 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:650-673 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:596-619 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:446-469 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:440-463 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:584-606 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:710-733 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:586-608 | examples/text_to_image/train_text_to_image.py:708-731 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:595\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad02b5bde8957f6a5dc249d2016ec2141482b899f50561053b1b6cb995aea7ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 8): examples/dreambooth/train_dreambooth.py:252-275 | examples/dreambooth/train_dreambooth_flax.py:66-89 | examples/dreambooth/train_dreambooth_lora.py:238-261 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:67-90 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:89-112 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:85-108 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:252-275 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:229-252 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 463 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:252\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c584677f70cb1c6601ee413572152f61533814b9a920b465817776ab7e66632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 8): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:122-145 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:112-135 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:224-247 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:101-124 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:236-259 | examples/textual_inversion/textual_inversion.py:257-280 | examples/textual_inversion/textual_inversion_flax.py:101-124 | examples/textual_inversion/textual_inversion_sdxl.py:255-278 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:122\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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b45d6dff78fba509a57e46a6286d703ed3f3d404bc4701ae8e4fe670d803445"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 7): examples/cogview4-control/train_control_cogview4.py:490-513 | examples/controlnet/train_controlnet_flux.py:572-595 | examples/controlnet/train_controlnet_sdxl.py:588-611 | examples/flux-control/train_control_flux.py:482-505 | examples/flux-control/train_control_lora_flux.py:514-537 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:406-429 | examples/research_projects/controlnet/train_controlnet_webdataset.py:782-805 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1536 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:490\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8f1426cf4f8523d1aaf99b51af16c66734bc70b754ddcea99eb537708ce2fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 6): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1704-1727 | examples/dreambooth/train_dreambooth_lora_sd3.py:1368-1390 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1307-1330 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1343-1366 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:756-778 | examples/text_to_image/train_text_to_image_lora_sdxl.py:782-804 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 125 separate duplicated blocks between them, totalling at least 1905 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45a6e604aa8b53b37206719b0fa2da6ae1548f5a1564424a3ac9888aafb8761"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 6): examples/community/pipeline_zero1to3.py:305-328 | examples/community/stable_diffusion_controlnet_img2img.py:297-320 | examples/community/stable_diffusion_controlnet_inpaint.py:396-419 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:381-404 | examples/community/stable_diffusion_ipex.py:432-455 | examples/community/stable_diffusion_repaint.py:405-428 \u2014 before extracting anything, compare \u0060examples/community/pipeline_zero1to3.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 376 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_zero1to3.py:305\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":"examples/community/pipeline_zero1to3.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed4b80f8d23810eeeea8d7923e98a8b97600435845234d6f55a13ebe80206b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 6): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:524-548 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:326-350 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:498-522 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:502-526 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:521-545 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:589-612 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:524\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0a1229adbff5d62012c69ef6405c65d00017b724c7af63d26eb91bf69c583e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 6): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:319-342 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:377-400 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:289-312 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:526-549 | examples/textual_inversion/textual_inversion.py:554-577 | examples/textual_inversion/textual_inversion_flax.py:302-325 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:319\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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f0bf68481067cb18725dfbad72067753c76e1ab1906fd7c9d7900987a672be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201351 lines \u00D7 5): examples/cogview4-control/train_control_cogview4.py:1152-1200 | examples/controlnet/train_controlnet_flux.py:1352-1400 | examples/controlnet/train_controlnet_sdxl.py:1294-1344 | examples/flux-control/train_control_flux.py:1159-1207 | examples/flux-control/train_control_lora_flux.py:1305-1353 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1536 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"11129f82c1c63f2628a80177ea527367b7ea172bdd79edbe52453e66a2d340f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:776-799 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:603-626 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:756-779 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:741-764 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:766-789 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:776\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"b975683c7e91cc7ef21e395e26808e32889246579933cb324cadbecfe4e4bfc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 5): examples/flux-control/train_control_lora_flux.py:1013-1036 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:639-662 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:735-758 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:710-733 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:817-840 \u2014 before extracting anything, compare \u0060examples/flux-control/train_control_lora_flux.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 648 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/flux-control/train_control_lora_flux.py:1013\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/flux-control/train_control_lora_flux.py"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73d939f5846164b8fadbd608d0afa407f787db4033ddee8d052f6b7ed502b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 5): examples/instruct_pix2pix/train_instruct_pix2pix.py:145-168 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:191-214 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:196-219 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:73-94 | examples/unconditional_image_generation/train_unconditional.py:91-112 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:145\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:95\u0060 calls \u0060add_argument\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:168\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af1d7362193b9316dd736bcfb6579ae40a9cdc9711637bd8b5d36b287802f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201324 lines \u00D7 5): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:55-72 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:55-72 | examples/research_projects/lora/train_text_to_image_lora.py:58-76 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:89-110 | examples/research_projects/realfill/train_realfill.py:74-97 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/realfill/train_realfill.py:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"356fc4f08e2f8857bb68de700f8efc518ba8ea2e7ad20b13b3c8455a2548457d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 4): examples/amused/train_amused.py:157-178 | examples/dreambooth/train_dreambooth.py:357-380 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:292-315 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:357-380 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/amused/train_amused.py:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/amused/train_amused.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4582ec62a09ddd3c79ce3f3b718b1d315c0bce9de8fae66a9e4049e4b78c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): examples/cogview4-control/train_control_cogview4.py:604-627 | examples/controlnet/train_controlnet_flux.py:694-717 | examples/flux-control/train_control_flux.py:596-619 | examples/flux-control/train_control_lora_flux.py:624-647 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1536 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:604\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73c6b749a467e3252d961087b23865a88a7ce618cc348bcf58606a824ade0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): examples/controlnet/train_controlnet_flux.py:250-273 | examples/controlnet/train_controlnet_sdxl.py:277-300 | examples/research_projects/controlnet/train_controlnet_webdataset.py:479-502 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:242-265 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 2214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flux.py:250\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":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd09b8ad5eab91704499f975606013832be201b033fca93c92b9f84f409a6c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:829-852 | examples/dreambooth/train_dreambooth_lora.py:782-805 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:872-895 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:800-823 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth.py:826\u0060 calls \u0060is_available\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:870\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":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"269f330cb34f02a29fab4f6de2ade4f51547a1c97fc713f9a06463b4625ac591"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_sd3.py:1538-1561 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1492-1513 | examples/dreambooth/train_dreambooth_sd3.py:1377-1399 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1528-1549 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2381 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:1538\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1515\u0060 calls \u0060is_available\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1551\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":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"970678545b88b5d3a03986e34d2534de00aa1c61afb9535a10936831b63dedd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): examples/research_projects/ip_adapter/tutorial_train_faceid.py:388-411 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:395-418 | examples/research_projects/ip_adapter/tutorial_train_plus.py:418-441 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:493-516 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c7abfac7e051bca24d8b1eda3ff7008cc828e67127e6afa762ef5e307d5a93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 4): examples/research_projects/lora/train_text_to_image_lora.py:272-295 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:314-337 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:311-332 | examples/vqgan/train_vqgan.py:405-426 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 932 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lora/train_text_to_image_lora.py:272\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:333\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py:295\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec89f7fcae24f1462060cc30f2d126ff4e4da7b6850623b6b8fab187043fe10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:268-291 | examples/community/stable_diffusion_tensorrt_inpaint.py:272-295 | examples/community/stable_diffusion_tensorrt_txt2img.py:255-278 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80377cecf9ad1eb2ba509c7bfa9172a4af9c15406979e526f66113301ba8c40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_sana.py:1569-1592 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1749-1772 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1117-1140 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sana.py\u0060 and \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1540 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sana.py"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e91e355a0a3a942cfc169cdf4d1e9a912581decbdc6d5a6f2ed8c0f8955e27c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 3): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:689-712 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:716-738 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:552-574 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:689\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9a97792ec3876b7fbd3ef061c9b44f8a6eb3fd13aa9b70d54c2b183a56f486"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:833-856 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:998-1021 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b349eaf88c0fc8ea3096520f1b82361ae96c09fc0d5562520b612e5cdd71da9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1165-1188 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1420-1443 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e460bd4ec7f9de8e722985e2f27030b9e00dcfa80929e60ac9d6c91e67e3c82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): examples/community/kohya_hires_fix.py:335-358 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:857-878 \u2014 before extracting anything, compare \u0060examples/community/kohya_hires_fix.py\u0060 and \u0060examples/community/pipeline_faithdiff_stable_diffusion_xl.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 364 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/kohya_hires_fix.py:335\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/kohya_hires_fix.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2a1308b70d5e05f6081d53eda5d2a913b956d0222f189fbe03ddc29b0512cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/community/latent_consistency_interpolate.py:162-185 | examples/community/pipeline_animatediff_img2video.py:132-155 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_interpolate.py\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 471 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"225587bae7b6cf02667031fa808d0aec8ead134e81adb1306c0975694e561837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/community/mixture_tiling.py:90-113 | examples/community/mixture_tiling_sdxl.py:124-147 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b00919f84811d391227e180000726b435bc04842405baf10428bf63cb4f426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201324 lines \u00D7 2): examples/community/pipeline_sdxl_style_aligned.py:1802-1815 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1066-1089 \u2014 before extracting anything, compare \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_ipex.py\u0060 as WHOLE FILES: this scan already matched 87 separate duplicated blocks between them, totalling at least 1309 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_sdxl_style_aligned.py"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ecad1743e0c5ccec9e3a88faae247be6db5cf3a55806f7bb467a65a312d2c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_ipex.py:1256-1279 | examples/community/stable_diffusion_xl_reference.py:553-576 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_ipex.py\u0060 and \u0060examples/community/stable_diffusion_xl_reference.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 412 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"6831c3f17f96f7ea399a0beab76b6b3f76fd4d0c9684a88cc3fa7e72762e8bd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/community/stable_diffusion_tensorrt_img2img.py:617-640 | examples/community/stable_diffusion_tensorrt_inpaint.py:621-644 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec8da7805918718e55bfbed809d20429070a3d5eb8345fbf20425832b69e754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/community/stable_diffusion_xl_controlnet_reference.py:296-319 | examples/community/stable_diffusion_xl_reference.py:242-265 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_xl_reference.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 1016 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"49fdd0db4aa793f6e888bd0b9420aa8c1c20b00b99f8c6e177296e10241025d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): examples/dreambooth/train_dreambooth_flax.py:146-167 | examples/text_to_image/train_text_to_image_flax.py:159-182 \u2014 \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.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 28 separate duplicated blocks between them, totalling at least 452 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/text_to_image/train_text_to_image_flax.py:159\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68c6f39184ce8f1c8bbdfd3235d18ebbfb4f1dc723eebe6ca319313ced4efbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:2066-2089 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2164-2187 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3548 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:2066\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":2066}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ecd507496f4dc534856b94937441b74d73ea927779a8fc371286245c1a52f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sd3.py:983-1006 | examples/dreambooth/train_dreambooth_sd3.py:909-932 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 188 separate duplicated blocks between them, totalling at least 3169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c4217721099d240504babfd4352efe9cdbe13403c4ffa08ebe7dfeaba92ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/research_projects/colossalai/train_dreambooth_colossalai.py:210-233 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:433-456 \u2014 before extracting anything, compare \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 and \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 298 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py:210\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/colossalai/train_dreambooth_colossalai.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"1012c2b22127edd72996e8bc6a244180f8d1f0366b834e74956325857f36815e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:134-157 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:132-155 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1942 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"2def66d309ba2751f501ecd2c35150bfadf355929729cd36c421a373c83f8d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:372-395 | examples/text_to_image/train_text_to_image.py:478-501 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 and \u0060examples/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 108 separate duplicated blocks between them, totalling at least 1684 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:372\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efe7203f6ca47deebfcec89bf8d101bb4aa166d193446da5767c56d75ca6b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (82 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:871-952 | examples/text_to_image/train_text_to_image.py:890-971 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 and \u0060examples/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2447 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbf478f327fd2d0bf3a62c6a2a5a99c5285f3a803acecdcd7f44d6c5f070248"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): scripts/convert_kandinsky_to_diffusers.py:1078-1101 | scripts/convert_vq_diffusion_to_diffusers.py:330-353 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_kandinsky_to_diffusers.py:1078\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/convert_kandinsky_to_diffusers.py"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"387599cc85025e99ff735c67bca601eebd8339c1797feeb1cd110d1c3e3fb75b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): scripts/convert_stable_diffusion_controlnet_to_onnx.py:201-224 | scripts/convert_vae_diff_to_onnx.py:41-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_stable_diffusion_controlnet_to_onnx.py:200\u0060 calls \u0060inference_mode\u0060, \u0060autocast\u0060 and \u0060scripts/convert_vae_diff_to_onnx.py:38\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/convert_stable_diffusion_controlnet_to_onnx.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10b40f4248c61415e6df2d5e113e9453a93c8f27992ce4e65a3794ae7cff008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 72): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:762-784 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:634-656 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:743-765 | examples/cogview4-control/train_control_cogview4.py:401-423 | examples/controlnet/train_controlnet.py:427-448 | examples/controlnet/train_controlnet_flux.py:451-472 | examples/controlnet/train_controlnet_sd3.py:498-520 | examples/controlnet/train_controlnet_sdxl.py:469-490 | examples/cosmos/train_cosmos_predict25_lora.py:135-156 | examples/custom_diffusion/train_custom_diffusion.py:567-589 | examples/dreambooth/train_dreambooth_flux.py:604-626 | examples/dreambooth/train_dreambooth_lora.py:460-482 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:754-776 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:751-773 | examples/dreambooth/train_dreambooth_lora_flux.py:653-675 | examples/dreambooth/train_dreambooth_lora_flux2.py:691-713 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:669-691 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:701-723 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:670-692 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:801-823 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:788-810 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:698-720 | examples/dreambooth/train_dreambooth_lora_hidream.py:666-688 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:778-800 | examples/dreambooth/train_dreambooth_lora_krea2.py:774-796 | examples/dreambooth/train_dreambooth_lora_lumina2.py:576-598 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:669-691 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:690-712 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:706-728 | examples/dreambooth/train_dreambooth_lora_sana.py:598-620 | examples/dreambooth/train_dreambooth_lora_sd3.py:648-670 | examples/dreambooth/train_dreambooth_lora_sdxl.py:622-644 | examples/dreambooth/train_dreambooth_lora_z_image.py:685-707 | examples/dreambooth/train_dreambooth_sd3.py:589-611 | examples/flux-control/train_control_flux.py:393-415 | examples/flux-control/train_control_lora_flux.py:425-447 | examples/instruct_pix2pix/train_instruct_pix2pix.py:341-363 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:398-420 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:356-378 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:253-275 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:260-282 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:360-382 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:330-351 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:204-224 | examples/research_projects/controlnet/train_controlnet_webdataset.py:666-687 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:383-405 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:402-424 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:400-422 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:384-406 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:427-447 | examples/research_projects/gligen/train_gligen_text.py:236-257 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:392-414 | examples/research_projects/lora/train_text_to_image_lora.py:314-336 | examples/research_projects/lpl/train_sdxl_lpl.py:510-530 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:318-340 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:478-500 | examples/research_projects/sana/train_sana_sprint_diffusers.py:646-668 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:451-473 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:619-641 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:406-428 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:310-332 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:396-416 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:440-460 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:449-471 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:362-384 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:360-382 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:444-465 | examples/text_to_image/train_text_to_image.py:428-450 | examples/text_to_image/train_text_to_image_lora.py:361-383 | examples/text_to_image/train_text_to_image_lora_sdxl.py:443-463 | examples/text_to_image/train_text_to_image_sdxl.py:444-464 | examples/vqgan/train_vqgan.py:464-486 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:762\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cosmos/train_cosmos_predict25_lora.py:133\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:634\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f602675846b7e42b5ebec7a9964a3ee34f59a31eef2aa5b9143890b59d546d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 57): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:566-588 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:452-474 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:554-576 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:273-295 | examples/cogvideo/train_cogvideox_lora.py:264-286 | examples/controlnet/train_controlnet.py:326-348 | examples/controlnet/train_controlnet_flux.py:341-363 | examples/controlnet/train_controlnet_sd3.py:367-389 | examples/controlnet/train_controlnet_sdxl.py:368-390 | examples/custom_diffusion/train_custom_diffusion.py:466-488 | examples/dreambooth/train_dreambooth_flux.py:425-447 | examples/dreambooth/train_dreambooth_lora.py:359-381 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:576-598 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:573-595 | examples/dreambooth/train_dreambooth_lora_flux.py:459-481 | examples/dreambooth/train_dreambooth_lora_flux2.py:497-519 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:481-503 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:507-529 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:482-504 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:623-645 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:610-632 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:504-526 | examples/dreambooth/train_dreambooth_lora_hidream.py:490-512 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:568-590 | examples/dreambooth/train_dreambooth_lora_krea2.py:593-615 | examples/dreambooth/train_dreambooth_lora_lumina2.py:400-422 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:493-515 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:512-534 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:528-550 | examples/dreambooth/train_dreambooth_lora_sana.py:418-440 | examples/dreambooth/train_dreambooth_lora_sd3.py:445-467 | examples/dreambooth/train_dreambooth_lora_sdxl.py:460-482 | examples/dreambooth/train_dreambooth_lora_z_image.py:491-513 | examples/dreambooth/train_dreambooth_sd3.py:411-433 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:289-311 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:296-318 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:396-418 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:213-235 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:711-730 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:270-292 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:295-317 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:293-315 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:277-299 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:253-275 | examples/research_projects/gligen/train_gligen_text.py:146-168 | examples/research_projects/lpl/train_sdxl_lpl.py:353-375 | examples/research_projects/realfill/train_realfill.py:244-266 | examples/research_projects/sana/train_sana_sprint_diffusers.py:452-474 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:350-372 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:457-479 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:289-311 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:283-305 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:314-336 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:398-420 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:396-418 | examples/text_to_image/train_text_to_image_lora_sdxl.py:336-358 | examples/text_to_image/train_text_to_image_sdxl.py:287-309 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:566\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11ce8f0b731ce6fcd7395747c80ae7334dc1471c716bf9aa08ea62645743158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 35): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:484-506 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:408-430 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:505-527 | examples/dreambooth/train_dreambooth.py:308-330 | examples/dreambooth/train_dreambooth_flux.py:376-398 | examples/dreambooth/train_dreambooth_lora.py:315-337 | examples/dreambooth/train_dreambooth_lora_flux.py:410-432 | examples/dreambooth/train_dreambooth_lora_hidream.py:446-468 | examples/dreambooth/train_dreambooth_lora_lumina2.py:356-378 | examples/dreambooth/train_dreambooth_lora_sana.py:374-396 | examples/dreambooth/train_dreambooth_lora_sd3.py:395-417 | examples/dreambooth/train_dreambooth_lora_sdxl.py:411-433 | examples/dreambooth/train_dreambooth_sd3.py:362-384 | examples/instruct_pix2pix/train_instruct_pix2pix.py:223-245 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:144-163 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:140-159 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:209-231 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:274-296 | examples/research_projects/lora/train_text_to_image_lora.py:175-197 | examples/research_projects/lpl/train_sdxl_lpl.py:312-334 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:249-268 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:199-221 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:308-330 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:306-328 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:408-430 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:281-303 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:196-218 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:243-265 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:242-264 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:272-294 | examples/text_to_image/train_text_to_image.py:287-309 | examples/text_to_image/train_text_to_image_lora.py:247-269 | examples/text_to_image/train_text_to_image_lora_sdxl.py:290-312 | examples/text_to_image/train_text_to_image_sdxl.py:246-268 | examples/vqgan/train_vqgan.py:331-353 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:484\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b96f959d3ef78b6067d8324ae85979a0de2556bb881ba2991172e07085601ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 26): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:336-358 | examples/dreambooth/train_dreambooth_flux.py:270-292 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:369-391 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:390-412 | examples/dreambooth/train_dreambooth_lora_flux.py:290-312 | examples/dreambooth/train_dreambooth_lora_flux2.py:294-316 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:295-317 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:294-316 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:296-318 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:407-429 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:414-436 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:304-326 | examples/dreambooth/train_dreambooth_lora_hidream.py:316-338 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:355-377 | examples/dreambooth/train_dreambooth_lora_krea2.py:381-403 | examples/dreambooth/train_dreambooth_lora_lumina2.py:229-251 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:284-306 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:303-325 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:307-329 | examples/dreambooth/train_dreambooth_lora_sana.py:249-271 | examples/dreambooth/train_dreambooth_lora_sd3.py:280-302 | examples/dreambooth/train_dreambooth_lora_sdxl.py:300-322 | examples/dreambooth/train_dreambooth_lora_z_image.py:294-316 | examples/dreambooth/train_dreambooth_sd3.py:256-278 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:168-187 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:297-319 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:336\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:188\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:358\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1d5ca2ee42f85d39ccbef967dcae44f54034bf687ce2032c7d7573aa0b8c6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 25): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:645-666 | examples/cogview4-control/train_control_cogview4.py:534-556 | examples/controlnet/train_controlnet_flux.py:617-637 | examples/dreambooth/train_dreambooth_flux.py:505-526 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:643-664 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:640-661 | examples/dreambooth/train_dreambooth_lora_flux.py:539-560 | examples/dreambooth/train_dreambooth_lora_flux2.py:577-598 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:555-576 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:587-608 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:556-577 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:690-711 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:677-698 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:584-605 | examples/dreambooth/train_dreambooth_lora_hidream.py:556-577 | examples/dreambooth/train_dreambooth_lora_krea2.py:662-683 | examples/dreambooth/train_dreambooth_lora_lumina2.py:466-487 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:559-580 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:578-599 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:594-615 | examples/dreambooth/train_dreambooth_lora_sana.py:484-505 | examples/dreambooth/train_dreambooth_lora_z_image.py:571-592 | examples/flux-control/train_control_flux.py:526-548 | examples/flux-control/train_control_lora_flux.py:554-576 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:327-348 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogview4-control/train_control_cogview4.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 478 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:645\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a86d11782e14cd4e1eaf67652cf2040292141070884fc3a43c95cdc6f4bec77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 24): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:249-271 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:340-362 | examples/cogview4-control/train_control_cogview4.py:230-252 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:480-502 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:282-304 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:454-476 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:458-480 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:477-499 | examples/dreambooth/train_dreambooth_flax.py:48-70 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:268-290 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:272-294 | examples/dreambooth/train_dreambooth_lora_sdxl.py:265-287 | examples/flux-control/train_control_flux.py:225-247 | examples/flux-control/train_control_lora_flux.py:236-258 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:175-197 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:173-195 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:171-193 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:149-171 | examples/research_projects/lpl/train_sdxl_lpl.py:204-226 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:262-284 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:141-163 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:134-156 | examples/text_to_image/train_text_to_image_lora_sdxl.py:188-210 | examples/text_to_image/train_text_to_image_sdxl.py:138-160 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:249\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f8ea5afd4d02cb726f24991af1ded92ae64435eb97bb05d2ee4d0511056e86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 23): examples/dreambooth/train_dreambooth.py:266-288 | examples/dreambooth/train_dreambooth_flux.py:308-329 | examples/dreambooth/train_dreambooth_lora.py:252-274 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:408-429 | examples/dreambooth/train_dreambooth_lora_flux.py:328-349 | examples/dreambooth/train_dreambooth_lora_flux2.py:332-353 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:332-353 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:445-466 | examples/dreambooth/train_dreambooth_lora_hidream.py:354-375 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:410-431 | examples/dreambooth/train_dreambooth_lora_krea2.py:419-440 | examples/dreambooth/train_dreambooth_lora_lumina2.py:267-288 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:322-343 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:341-362 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:351-372 | examples/dreambooth/train_dreambooth_lora_sana.py:287-308 | examples/dreambooth/train_dreambooth_lora_sd3.py:318-339 | examples/dreambooth/train_dreambooth_lora_sdxl.py:338-359 | examples/dreambooth/train_dreambooth_lora_z_image.py:332-353 | examples/dreambooth/train_dreambooth_sd3.py:294-315 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:266-288 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:243-265 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:335-356 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:266\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, \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py:443\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth.py:266\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5a1ac9b83a83e57596daa45398f929c05b755eed188871d8a61457d6d4d8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 22): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:430-450 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:450-470 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:465-485 | examples/dreambooth/train_dreambooth_lora_flux.py:358-378 | examples/dreambooth/train_dreambooth_lora_flux2.py:381-401 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:381-401 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:381-401 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:382-402 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:497-517 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:513-533 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:383-403 | examples/dreambooth/train_dreambooth_lora_hidream.py:399-419 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:462-482 | examples/dreambooth/train_dreambooth_lora_krea2.py:464-486 | examples/dreambooth/train_dreambooth_lora_lumina2.py:309-329 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:367-387 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:386-406 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:402-422 | examples/dreambooth/train_dreambooth_lora_sana.py:323-343 | examples/dreambooth/train_dreambooth_lora_sd3.py:348-368 | examples/dreambooth/train_dreambooth_lora_z_image.py:375-395 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:244-264 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1907 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:430\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:423\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:454\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"42940a43c94ed1c41fb13fc6c6a368bb0e7548260587e17ec688ee0ea976dbac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 22): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:660-682 | examples/dreambooth/train_dreambooth_flux.py:520-542 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:658-680 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:655-677 | examples/dreambooth/train_dreambooth_lora_flux.py:554-576 | examples/dreambooth/train_dreambooth_lora_flux2.py:592-614 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:570-592 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:602-624 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:571-593 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:705-727 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:692-714 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:599-621 | examples/dreambooth/train_dreambooth_lora_hidream.py:571-593 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:679-701 | examples/dreambooth/train_dreambooth_lora_krea2.py:677-699 | examples/dreambooth/train_dreambooth_lora_lumina2.py:481-503 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:574-596 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:593-615 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:609-631 | examples/dreambooth/train_dreambooth_lora_sana.py:499-521 | examples/dreambooth/train_dreambooth_lora_z_image.py:586-608 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:394-414 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:660\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"1962a8276d8bf9b39aae7d24cf5caf9a9dc0ee0196af6e5ed4294e1fa85b985a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201323 lines \u00D7 19): examples/dreambooth/train_dreambooth_flux.py:107-122 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:173-188 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:195-210 | examples/dreambooth/train_dreambooth_lora_flux.py:113-128 | examples/dreambooth/train_dreambooth_lora_flux2.py:126-141 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:126-141 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:126-141 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:126-141 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:221-236 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:228-243 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:117-132 | examples/dreambooth/train_dreambooth_lora_hidream.py:98-115 | examples/dreambooth/train_dreambooth_lora_lumina2.py:97-115 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:119-136 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:143-160 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:145-162 | examples/dreambooth/train_dreambooth_lora_sana.py:114-136 | examples/dreambooth/train_dreambooth_lora_z_image.py:126-141 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:91-106 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1894 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:107\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:117\u0060 calls \u0060training\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:119\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":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"22448e1f5006e26b60bc26b8a3f00e0761c2ff6e9fd0414e34ed054013b52639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 17): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:255-277 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:346-368 | examples/controlnet/train_controlnet_flux.py:269-291 | examples/controlnet/train_controlnet_sdxl.py:296-318 | examples/dreambooth/train_dreambooth_flax.py:54-76 | examples/dreambooth/train_dreambooth_lora_hidream.py:287-309 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:255-277 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:274-296 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:278-300 | examples/dreambooth/train_dreambooth_lora_sdxl.py:271-293 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:155-177 | examples/research_projects/lpl/train_sdxl_lpl.py:210-232 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:268-290 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:147-169 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:140-162 | examples/text_to_image/train_text_to_image_lora_sdxl.py:194-216 | examples/text_to_image/train_text_to_image_sdxl.py:144-166 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:255\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33cc4d2da4b31d097266cdee5f383c27dde157798c682d6776e6a85070359c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 15): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:412-433 | examples/dreambooth/train_dreambooth_flux.py:321-341 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:421-441 | examples/dreambooth/train_dreambooth_lora_flux.py:341-361 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:360-380 | examples/dreambooth/train_dreambooth_lora_hidream.py:367-389 | examples/dreambooth/train_dreambooth_lora_krea2.py:432-454 | examples/dreambooth/train_dreambooth_lora_lumina2.py:280-300 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:335-357 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:354-376 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:370-392 | examples/dreambooth/train_dreambooth_lora_sana.py:300-320 | examples/dreambooth/train_dreambooth_lora_sd3.py:331-351 | examples/dreambooth/train_dreambooth_lora_z_image.py:345-366 | examples/dreambooth/train_dreambooth_sd3.py:307-327 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:412\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1a3ad2f4302e8c2240f78d3d4bd659a000220854c752009d56464fb2729332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 15): examples/dreambooth/train_dreambooth_flux.py:314-335 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:414-435 | examples/dreambooth/train_dreambooth_lora_flux.py:334-355 | examples/dreambooth/train_dreambooth_lora_flux2.py:338-359 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:338-359 | examples/dreambooth/train_dreambooth_lora_hidream.py:360-382 | examples/dreambooth/train_dreambooth_lora_krea2.py:425-447 | examples/dreambooth/train_dreambooth_lora_lumina2.py:273-294 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:328-350 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:347-369 | examples/dreambooth/train_dreambooth_lora_sana.py:293-314 | examples/dreambooth/train_dreambooth_lora_sd3.py:324-345 | examples/dreambooth/train_dreambooth_lora_z_image.py:338-360 | examples/dreambooth/train_dreambooth_sd3.py:300-321 | examples/research_projects/ip_adapter/tutorial_train_plus.py:162-182 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1894 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:314\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f304d06922fc9ee3c632203ab8050aac2c60c178f6632de46d45bb299265d5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 14): examples/cogvideo/train_cogvideox_image_to_video_lora.py:80-102 | examples/cogvideo/train_cogvideox_lora.py:71-93 | examples/controlnet/train_controlnet.py:267-287 | examples/custom_diffusion/train_custom_diffusion.py:336-356 | examples/dreambooth/train_dreambooth.py:241-261 | examples/dreambooth/train_dreambooth_flax.py:81-101 | examples/dreambooth/train_dreambooth_lora.py:227-247 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:348-368 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:104-124 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:100-120 | examples/research_projects/sana/train_sana_sprint_diffusers.py:321-343 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:241-261 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:218-238 | examples/textual_inversion/textual_inversion.py:216-235 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:80\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py:346\u0060 calls \u0060add_argument\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:79\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":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c55df6824c2dc493cbdaf6f091460d3e6e5672e0bc2bf82ce5dc2badac0dcf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 13): examples/cogview4-control/train_control_cogview4.py:277-299 | examples/controlnet/train_controlnet.py:310-332 | examples/controlnet/train_controlnet_flux.py:325-347 | examples/controlnet/train_controlnet_sd3.py:351-373 | examples/controlnet/train_controlnet_sdxl.py:352-374 | examples/dreambooth/train_dreambooth.py:338-360 | examples/flux-control/train_control_flux.py:269-291 | examples/flux-control/train_control_lora_flux.py:280-302 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:197-219 | examples/research_projects/controlnet/train_controlnet_webdataset.py:551-573 | examples/research_projects/gligen/train_gligen_text.py:130-152 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:338-360 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:329-351 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:277\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"5128a484fcb5a975a2e422286d044d32e64edf9d7a7763d457b434aff1179e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 13): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1525-1547 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1414-1436 | examples/dreambooth/train_dreambooth_lora_flux2.py:1478-1500 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1428-1450 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1481-1503 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1422-1444 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1570-1592 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1520-1542 | examples/dreambooth/train_dreambooth_lora_krea2.py:1533-1555 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1440-1462 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1482-1504 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1573-1595 | examples/dreambooth/train_dreambooth_lora_z_image.py:1460-1482 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1525\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5689d9c95df8f837004aec22396f90fc0bc2409fce34753019f216ba0da99d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 12): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:298-318 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:202-222 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:203-223 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:302-322 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:256-276 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:414-434 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:338-358 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:253-273 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:330-352 | examples/text_to_image/train_text_to_image.py:344-366 | examples/text_to_image/train_text_to_image_lora.py:304-324 | examples/text_to_image/train_text_to_image_lora_sdxl.py:377-399 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:298\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c7d314b042c8dfc050d4805334913d9986817393255751a1e3ab2cc4fde96f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 11): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:357-379 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:448-470 | examples/custom_diffusion/train_custom_diffusion.py:372-392 | examples/dreambooth/train_dreambooth_lora.py:266-286 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:354-374 | examples/dreambooth/train_dreambooth_lora_lumina2.py:298-318 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:364-385 | examples/dreambooth/train_dreambooth_lora_sana.py:312-332 | examples/dreambooth/train_dreambooth_lora_sdxl.py:351-371 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:257-277 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:348-368 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:357\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"8596ab6c491a0a792052ad86216b50b6e508e1045582d029962af3f199c8e390"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 11): examples/dreambooth/train_dreambooth_flax.py:180-200 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:228-248 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:224-244 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:185-205 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:175-195 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:119-140 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:300-322 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:312-334 | examples/text_to_image/train_text_to_image_flax.py:211-231 | examples/textual_inversion/textual_inversion.py:339-361 | examples/textual_inversion/textual_inversion_sdxl.py:340-362 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 647 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flax.py:180\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:249\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:140\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":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8a156e7e85f2fbc2b282e6c8af3607aab796cd76b5a27f791d00818bd9fc11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 10): examples/cogview4-control/train_control_cogview4.py:473-495 | examples/controlnet/train_controlnet.py:526-548 | examples/controlnet/train_controlnet_flux.py:543-565 | examples/controlnet/train_controlnet_sd3.py:603-625 | examples/controlnet/train_controlnet_sdxl.py:571-593 | examples/flux-control/train_control_flux.py:465-487 | examples/flux-control/train_control_lora_flux.py:497-519 | examples/research_projects/controlnet/train_controlnet_webdataset.py:765-787 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:323-345 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:543-565 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:473\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"626278b053d2f40b8018241e8ffdd9d75137a906bbba498a486ae81ec1bfa019"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 10): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1296-1318 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1185-1207 | examples/dreambooth/train_dreambooth_lora_flux2.py:1236-1258 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1186-1208 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1240-1262 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1181-1203 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1335-1357 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1283-1305 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1368-1389 | examples/dreambooth/train_dreambooth_lora_z_image.py:1226-1247 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1296\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, \u0060examples/dreambooth/train_dreambooth_lora_ideogram4.py:1394\u0060 calls \u0060getattr\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1320\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0989c4a1dd56347588ce668543b6e05cd4a1c52fbcd689dd0452a887ab26e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 9): examples/cogview4-control/train_control_cogview4.py:241-261 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:498-520 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:300-322 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:472-494 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:476-498 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:495-517 | examples/flux-control/train_control_flux.py:236-256 | examples/flux-control/train_control_lora_flux.py:247-267 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:164-184 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc2306819a1a5d5ad43d5ff8fd52d94112de4d8105c5b5712e93e696d7b1cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 9): examples/cogview4-control/train_control_cogview4.py:621-643 | examples/controlnet/train_controlnet.py:630-652 | examples/controlnet/train_controlnet_flax.py:542-564 | examples/controlnet/train_controlnet_flux.py:711-733 | examples/controlnet/train_controlnet_sd3.py:710-732 | examples/controlnet/train_controlnet_sdxl.py:684-706 | examples/flux-control/train_control_flux.py:613-635 | examples/flux-control/train_control_lora_flux.py:641-663 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:649-671 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6200ad387e7e79e1fc5fae0cdf1a839e6fbdf0a2ac800894d555d75f1770b41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 7): examples/controlnet/train_controlnet.py:279-297 | examples/controlnet/train_controlnet_flux.py:282-300 | examples/controlnet/train_controlnet_sd3.py:320-338 | examples/controlnet/train_controlnet_sdxl.py:309-327 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:402-424 | examples/research_projects/controlnet/train_controlnet_webdataset.py:508-526 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:277-295 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:279\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet.py:298\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:424\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"259bea27efc677c9fc11ba2220d81251fd97dc28d7bb6ccdb5b96f5136e9ab33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 7): examples/research_projects/autoencoderkl/train_autoencoderkl.py:500-522 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:760-782 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:730-752 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:595-617 | examples/text_to_image/train_text_to_image.py:728-750 | examples/text_to_image/train_text_to_image_lora.py:604-626 | examples/vqgan/train_vqgan.py:748-770 \u2014 before extracting anything, compare \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:527\u0060 calls \u0060info\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:787\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/autoencoderkl/train_autoencoderkl.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ef7dbec1b7f763360a794e0a6eb1ab25ae65eb078eb65f76199e8f99c7910d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_hidream.py:275-297 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:243-265 | examples/instruct_pix2pix/train_instruct_pix2pix.py:166-185 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:212-231 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:217-236 | examples/vqgan/train_vqgan.py:237-259 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 182 separate duplicated blocks between them, totalling at least 3091 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8547f93bc4363e8841e9362d16a6e3ea976c8dd1c9d15bde37bad52869757e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 6): scripts/convert_gligen_to_diffusers.py:203-223 | scripts/convert_i2vgen_to_diffusers.py:142-164 | scripts/convert_ms_text_to_video_to_diffusers.py:147-169 | scripts/convert_original_audioldm2_to_diffusers.py:304-326 | scripts/convert_original_audioldm_to_diffusers.py:314-335 | scripts/convert_original_musicldm_to_diffusers.py:310-331 \u2014 before extracting anything, compare \u0060scripts/convert_gligen_to_diffusers.py\u0060 and \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_original_audioldm2_to_diffusers.py:327\u0060 calls \u0060startswith\u0060 and \u0060scripts/convert_gligen_to_diffusers.py:224\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/convert_gligen_to_diffusers.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fffb504c16ac9c9f1e06da1f1e4dd13450c0f7973c03cd7e1c14fba12a9a621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201323 lines \u00D7 5): examples/controlnet/train_controlnet_flax.py:859-881 | examples/dreambooth/train_dreambooth_flax.py:522-544 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:503-520 | examples/text_to_image/train_text_to_image_flax.py:471-493 | examples/textual_inversion/textual_inversion_flax.py:522-539 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flax.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b96e57b65d5884a917aa28aac790605a0f19a365c176d7c82b3288cc6b4bb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 5): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:191-213 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:290-312 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:145-167 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:300-322 | examples/unconditional_image_generation/train_unconditional.py:163-185 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:191\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"addcae95d1392c34a46ac829ee5d7428dfb3bd64ed7e4594158e7b5dcefeeb9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 4): examples/cogview4-control/train_control_cogview4.py:659-680 | examples/controlnet/train_controlnet_flux.py:762-784 | examples/flux-control/train_control_flux.py:651-672 | examples/flux-control/train_control_lora_flux.py:679-700 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1536 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"be52a0204c1233a15fc7bcfad8515404fcc00d269157e512f68e8e60846b5c01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1152-1174 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1202-1224 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1108-1130 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1203-1225 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b23eec91d0fd433c9ae985a2a9573b22d0828e7798ea0665e5ed873109e3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:453-475 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:184-206 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:209-231 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:207-229 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 753 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:453\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa670e7fbd7acb3914a34888e47353396f53768efae42cdb355bcee63688a583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201323 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_krea2.py:1339-1361 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1270-1283 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1312-1325 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1403-1416 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1339\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd03d65c35a646549964f9ae6660952a7ce86371f9bcb921a76e06bc661d57f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 4): examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:58-79 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:187-209 | examples/textual_inversion/textual_inversion.py:202-224 | examples/textual_inversion/textual_inversion_sdxl.py:206-228 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 and \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 575 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:58\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":"examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6cc680b675ebd5cd82abde2b3fb3d596a3f927ff5a91f15fa4b3a252bddb3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 3): examples/cogvideo/train_cogvideox_image_to_video_lora.py:145-167 | examples/controlnet/train_controlnet.py:273-293 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:271-291 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/controlnet/train_controlnet.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"81292d33bd6646c777e0e450871d24d7146480e0d2b2f0fc965e863d0f550ec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): examples/community/clip_guided_images_mixing_stable_diffusion.py:403-425 | examples/community/clip_guided_stable_diffusion.py:294-316 | examples/community/clip_guided_stable_diffusion_img2img.py:447-469 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py:403\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":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd768968741ce1ad8827c8abd7c6326eb6e9523c4b0372718f2a1077125ed75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 3): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1337-1359 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1626-1647 | examples/community/pipeline_kolors_inpainting.py:1493-1515 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 119 separate duplicated blocks between them, totalling at least 2012 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"882db0a7895d350203bbddfac28c569ed200fdd2d461a667518b4a8870ff1079"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 3): examples/community/pipeline_stable_diffusion_boxdiff.py:1234-1255 | examples/community/pipeline_stable_diffusion_boxdiff.py:1284-1304 | examples/community/pipeline_stable_diffusion_boxdiff.py:1602-1624 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_boxdiff.py:1234\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_boxdiff.py"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf777b2f09f9bbfade4dec6d80234b792688ab592f2a4642921bb44517c1bd0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): examples/dreambooth/train_dreambooth_flux.py:1183-1205 | examples/dreambooth/train_dreambooth_lora_flux.py:1220-1242 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1405-1427 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce35c0be36d2453ea24f4ec4dd0ef8580ca710d4a66cc330c8424249bc6fab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): examples/dreambooth/train_dreambooth_flux.py:1835-1857 | examples/dreambooth/train_dreambooth_lora_flux.py:1973-1995 | examples/dreambooth/train_dreambooth_sd3.py:1786-1808 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:1835\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":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5ecb2a49e33d8d6b34ef32a2c3bda77bd819f873694cf65f8c7c75f87bff0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux2.py:1624-1646 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1584-1606 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1710-1732 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 207 separate duplicated blocks between them, totalling at least 3698 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1624}}}],"partialFingerprints":{"codehealthFindingId/v1":"914e27798b2bba9d2188d9f48f1a49ff32abfd82b2c72666f7a82c3201252f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_qwen_image.py:1876-1898 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1945-1967 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:2041-2063 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 215 separate duplicated blocks between them, totalling at least 3669 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwen_image.py"},"region":{"startLine":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aec8eefb49ab4cae10ac39bf6e04b93de9eb56eecd6787266c7279bc50e9727"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:582-604 | examples/cogvideo/train_cogvideox_lora.py:597-619 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:582\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":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"98713adb3d40349528b0136d0033210234489acde5f4b2f02811158411756d3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:706-729 | examples/cogvideo/train_cogvideox_lora.py:723-746 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/cogvideo/train_cogvideox_lora.py:747\u0060 calls \u0060stack\u0060, \u0060pt_to_numpy\u0060, \u0060numpy_to_pil\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:730\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a15928bd22d06d5e47750a82fcb34c4ec78bccaa8c33afaae927616ebcac6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): examples/community/gluegen.py:721-743 | examples/community/pipeline_stable_diffusion_boxdiff.py:1520-1538 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_boxdiff.py\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 648 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:721\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"0357cb9d919de2aee4e3f2b9dbef00728f97f2d87cf5c330fd935e06a3d4f1c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1296-1318 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1554-1576 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 119 separate duplicated blocks between them, totalling at least 2012 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"275719ca131975378d7ddd2de7920bbee743f2a36e5cd1656fa84d30ad43035e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/community/pipeline_controlnet_xl_kolors_img2img.py:1452-1474 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1772-1794 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 119 separate duplicated blocks between them, totalling at least 2012 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79233905b50f18c35c1f141c6b51b1bc8818e35ca3dc389b926eae71655578e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): examples/community/pipeline_stable_diffusion_pag.py:124-146 | examples/community/pipeline_stable_diffusion_pag.py:239-258 \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":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77d803131bb61784fbbad98721e9227bc6eb7faab029d20259c10daa4b413fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/community/stable_diffusion_controlnet_img2img.py:840-862 | examples/community/stable_diffusion_controlnet_inpaint.py:993-1015 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 931 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d402525582b67756f9032cedca5c682690c3ef5f8c7379c7698552f9dd2c0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/dreambooth/train_dreambooth.py:1142-1164 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1180-1202 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 173 separate duplicated blocks between them, totalling at least 3201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:1142\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"823b08163cfd275a07a6e6e7968633ae342ec9d866119392b8169e70fa1404ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sdxl.py:1516-1538 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1551-1573 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1515\u0060 calls \u0060is_available\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1550\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":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"242e4e024e2e093275a8f7cb469fd8bf76e4b12c9164801d88e3c4bc35ea2d0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:721-762 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:753-794 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:721\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f64aee5b1cb6cf36dbb5a2375e03a66cc97b4830a4439a0c7dbabce59fa6ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:163-185 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:197-218 \u2014 \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py\u0060 and \u0060examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.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 98 separate duplicated blocks between them, totalling at least 1512 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1066688e8a2937ed6c7dd03179d53df37c41a7439d54dbf051dcb6a4b8f97939"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:665-687 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:759-781 \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":"examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c09ca3a7c4c99e1881cd00e7a13be6727556dad483dde3eb90badbc23473d89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): scripts/convert_original_audioldm2_to_diffusers.py:641-663 | scripts/convert_original_musicldm_to_diffusers.py:621-643 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 and \u0060scripts/convert_original_musicldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 56 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"3803db7093698489a5f00207aae3a4c992d2477398d2b3efd68d9ecd6a5d2e6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): scripts/convert_stable_diffusion_controlnet_to_onnx.py:103-125 | scripts/convert_stable_diffusion_controlnet_to_onnx.py:159-180 \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 \u0060scripts/convert_stable_diffusion_controlnet_to_onnx.py:103\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/convert_stable_diffusion_controlnet_to_onnx.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ee625da5e96f3bc03af8ce8f4ed90ff5b2f37377e1eddb9fe0e29e3d1c8514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 79): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:614-634 | examples/amused/train_amused.py:191-211 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:308-328 | examples/cogvideo/train_cogvideox_lora.py:299-319 | examples/cogview4-control/train_control_cogview4.py:334-354 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:644-664 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:477-497 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:624-644 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:622-642 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:647-667 | examples/controlnet/train_controlnet.py:361-381 | examples/controlnet/train_controlnet_flux.py:376-396 | examples/controlnet/train_controlnet_sd3.py:407-427 | examples/controlnet/train_controlnet_sdxl.py:403-423 | examples/dreambooth/train_dreambooth.py:393-413 | examples/dreambooth/train_dreambooth_flux.py:474-494 | examples/dreambooth/train_dreambooth_lora.py:394-414 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:611-632 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:608-629 | examples/dreambooth/train_dreambooth_lora_flux.py:508-528 | examples/dreambooth/train_dreambooth_lora_flux2.py:546-566 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:523-544 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:556-576 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:524-545 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:658-679 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:645-666 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:553-573 | examples/dreambooth/train_dreambooth_lora_hidream.py:525-545 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:617-637 | examples/dreambooth/train_dreambooth_lora_krea2.py:631-651 | examples/dreambooth/train_dreambooth_lora_lumina2.py:435-455 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:528-548 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:547-567 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:563-583 | examples/dreambooth/train_dreambooth_lora_sana.py:453-473 | examples/dreambooth/train_dreambooth_lora_sd3.py:487-507 | examples/dreambooth/train_dreambooth_lora_z_image.py:540-560 | examples/dreambooth/train_dreambooth_sd3.py:453-473 | examples/flux-control/train_control_flux.py:326-346 | examples/flux-control/train_control_lora_flux.py:358-378 | examples/instruct_pix2pix/train_instruct_pix2pix.py:274-294 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:331-351 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:173-192 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:460-481 | examples/research_projects/controlnet/train_controlnet_webdataset.py:602-622 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:317-337 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:336-356 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:334-354 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:318-338 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:194-213 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:190-209 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:295-316 | examples/research_projects/gligen/train_gligen_text.py:181-201 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:325-345 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:145-163 | examples/research_projects/lora/train_text_to_image_lora.py:264-283 | examples/research_projects/lpl/train_sdxl_lpl.py:388-408 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:328-348 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:95-113 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:262-282 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:250-270 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:274-294 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:408-428 | examples/research_projects/realfill/train_realfill.py:285-305 | examples/research_projects/sana/train_sana_sprint_diffusers.py:487-507 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:393-413 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:385-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:332-352 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:247-267 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:324-344 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:318-338 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:349-369 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:380-400 | examples/text_to_image/train_text_to_image.py:338-358 | examples/text_to_image/train_text_to_image_lora.py:298-318 | examples/text_to_image/train_text_to_image_lora_sdxl.py:371-391 | examples/text_to_image/train_text_to_image_sdxl.py:322-342 | examples/textual_inversion/textual_inversion.py:295-315 | examples/textual_inversion/textual_inversion_sdxl.py:293-313 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 79 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 79 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:614\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:213\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:163\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"268d80d8f994e706e36d932a38725ede2113cbc9374572a1f2f0b89235524ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 48): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:308-328 | examples/amused/train_amused.py:57-77 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:74-94 | examples/cogvideo/train_cogvideox_lora.py:65-85 | examples/custom_diffusion/train_custom_diffusion.py:330-350 | examples/dreambooth/train_dreambooth.py:235-255 | examples/dreambooth/train_dreambooth_flax.py:75-95 | examples/dreambooth/train_dreambooth_flux.py:242-262 | examples/dreambooth/train_dreambooth_lora.py:221-241 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:330-350 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:351-371 | examples/dreambooth/train_dreambooth_lora_flux.py:262-282 | examples/dreambooth/train_dreambooth_lora_flux2.py:255-275 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:256-276 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:255-275 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:257-277 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:368-388 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:375-395 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:314-334 | examples/dreambooth/train_dreambooth_lora_lumina2.py:201-221 | examples/dreambooth/train_dreambooth_lora_sana.py:221-241 | examples/dreambooth/train_dreambooth_lora_sd3.py:252-272 | examples/dreambooth/train_dreambooth_lora_z_image.py:255-275 | examples/dreambooth/train_dreambooth_sd3.py:228-248 | examples/instruct_pix2pix/train_instruct_pix2pix.py:116-136 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:56-76 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:98-118 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:94-114 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:167-187 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:81-100 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:65-84 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:182-202 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:183-202 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:195-214 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:248-268 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:242-262 | examples/research_projects/realfill/train_realfill.py:171-191 | examples/research_projects/sana/train_sana_sprint_diffusers.py:315-336 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:235-255 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:212-232 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:200-220 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:104-124 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:190-210 | examples/text_to_image/train_text_to_image.py:206-226 | examples/text_to_image/train_text_to_image_flax.py:60-80 | examples/text_to_image/train_text_to_image_lora.py:155-175 | examples/textual_inversion/textual_inversion.py:210-230 | examples/textual_inversion/textual_inversion_sdxl.py:214-233 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 48 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 48 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:308\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:240\u0060 calls \u0060add_argument\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:114\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"882e8ee2b8d5c4eabe976d546f71d9a2d4fb5834f1e46b35d6f49fa77d95d9c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 29): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:677-697 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:567-585 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:676-694 | examples/dreambooth/train_dreambooth_flux.py:537-555 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:675-695 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:672-692 | examples/dreambooth/train_dreambooth_lora_flux.py:571-589 | examples/dreambooth/train_dreambooth_lora_flux2.py:609-627 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:587-605 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:619-637 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:588-606 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:722-742 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:709-729 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:616-634 | examples/dreambooth/train_dreambooth_lora_hidream.py:588-607 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:696-714 | examples/dreambooth/train_dreambooth_lora_krea2.py:694-713 | examples/dreambooth/train_dreambooth_lora_lumina2.py:498-517 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:591-610 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:610-631 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:626-647 | examples/dreambooth/train_dreambooth_lora_sana.py:516-534 | examples/dreambooth/train_dreambooth_lora_sd3.py:556-574 | examples/dreambooth/train_dreambooth_lora_sdxl.py:555-573 | examples/dreambooth/train_dreambooth_lora_z_image.py:603-621 | examples/dreambooth/train_dreambooth_sd3.py:522-540 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:364-384 | examples/research_projects/sana/train_sana_sprint_diffusers.py:576-596 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:552-570 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:677\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"765045546f6ff3d77d40ee45063572fc76e008255427293c174786eef5c3f365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 24): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:384-405 | examples/controlnet/train_controlnet.py:475-496 | examples/controlnet/train_controlnet_sd3.py:543-564 | examples/controlnet/train_controlnet_sdxl.py:520-541 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:113-133 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:223-244 | examples/research_projects/controlnet/train_controlnet_webdataset.py:714-735 | examples/research_projects/lora/train_text_to_image_lora.py:117-137 | examples/research_projects/lpl/train_sdxl_lpl.py:245-266 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:152-173 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:289-310 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:270-291 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:234-255 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:138-158 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:182-203 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:175-196 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:233-254 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:225-246 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:492-513 | examples/text_to_image/train_text_to_image.py:240-261 | examples/text_to_image/train_text_to_image_flax.py:94-115 | examples/text_to_image/train_text_to_image_lora.py:189-209 | examples/text_to_image/train_text_to_image_lora_sdxl.py:229-250 | examples/text_to_image/train_text_to_image_sdxl.py:179-200 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/controlnet/train_controlnet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 526 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:384\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1da914fba2beb9365e507fcfb6eec1a922104822e9df9804b1e649730c33bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 20): examples/cogvideo/train_cogvideox_image_to_video_lora.py:935-956 | examples/cogvideo/train_cogvideox_lora.py:957-978 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1512-1533 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1401-1422 | examples/dreambooth/train_dreambooth_lora_flux2.py:1465-1486 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1415-1436 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1468-1489 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1409-1430 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1557-1578 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1507-1528 | examples/dreambooth/train_dreambooth_lora_hidream.py:1303-1324 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1606-1627 | examples/dreambooth/train_dreambooth_lora_krea2.py:1520-1541 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1155-1176 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1427-1448 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1469-1490 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1560-1581 | examples/dreambooth/train_dreambooth_lora_sana.py:1178-1199 | examples/dreambooth/train_dreambooth_lora_z_image.py:1447-1468 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:876-897 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1540\u0060 calls \u0060ValueError\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_ideogram4.py:1629\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee86bc92af62ce392de7105b327cd94043a4a28d231cdfabf84827fb73f8d94f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 15): examples/instruct_pix2pix/train_instruct_pix2pix.py:202-223 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:248-269 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:144-165 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:150-171 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:203-224 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:228-249 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:226-247 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:253-274 | examples/research_projects/lora/train_text_to_image_lora.py:154-175 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:350-371 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:175-196 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:222-243 | examples/text_to_image/train_text_to_image_flax.py:113-134 | examples/text_to_image/train_text_to_image_lora.py:226-247 | examples/text_to_image/train_text_to_image_lora_sdxl.py:269-290 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5b45eedb5057258d652ad4aff3c3bc3674df919172a8a7b299ba4a912415de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 10): examples/controlnet/train_controlnet_flax.py:226-247 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:341-362 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:362-383 | examples/dreambooth/train_dreambooth_lora_flux2.py:266-287 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:267-288 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:266-287 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:268-289 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:379-400 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:386-407 | examples/dreambooth/train_dreambooth_lora_z_image.py:266-287 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flax.py:226\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flax.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eefa211d7fbfbc44dbfc8258c249698e3421844955e867ddb05f8964b26bea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 8): examples/community/stable_diffusion_controlnet_reference.py:529-547 | examples/community/stable_diffusion_controlnet_reference.py:569-590 | examples/community/stable_diffusion_reference.py:1181-1202 | examples/community/stable_diffusion_reference.py:1226-1247 | examples/community/stable_diffusion_xl_controlnet_reference.py:936-954 | examples/community/stable_diffusion_xl_controlnet_reference.py:976-997 | examples/community/stable_diffusion_xl_reference.py:792-810 | examples/community/stable_diffusion_xl_reference.py:832-853 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_reference.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_reference.py:569\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c704ef29dad096cebbed23ec681d66e50c8e76613a10a5e426639cf0cb507ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 8): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:291-312 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:195-216 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:196-217 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:295-316 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:150-169 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:305-325 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:302-322 | examples/unconditional_image_generation/train_unconditional.py:168-187 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:291\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39b5e4c2e48743630066175fb3aa837efaa2cd68a90874f57c0f5402ce5b66d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201322 lines \u00D7 7): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:354-375 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:445-466 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:319-335 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:320-336 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:438-454 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:328-344 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:331-347 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:354\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"081445e74da69ec21e6b825def83e0f8d5ee660f36b3ed35d1e4c0547af381d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 6): examples/community/imagic_stable_diffusion.py:447-468 | examples/community/img2img_inpainting.py:414-435 | examples/community/interpolate_stable_diffusion.py:352-373 | examples/community/multilingual_stable_diffusion.py:387-408 | examples/community/seed_resize_stable_diffusion.py:319-340 | examples/community/wildcard_stable_diffusion.py:396-417 \u2014 before extracting anything, compare \u0060examples/community/imagic_stable_diffusion.py\u0060 and \u0060examples/community/img2img_inpainting.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a3b39600cc8e7be7cfbf245a0848fe18ae80c0506e31cb3e7f87f854b15b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_flux2.py:458-479 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:442-463 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:443-464 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:574-595 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:529-550 | examples/dreambooth/train_dreambooth_lora_z_image.py:452-473 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:458\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27ea5a45f2cb73cb1dc7843b0dbbbc592cf46fbaf2d6533eefbbaa90174c9e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_flux2.py:1609-1630 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1550-1571 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1569-1590 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1501-1522 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1726-1747 | examples/dreambooth/train_dreambooth_lora_z_image.py:1541-1562 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:1609\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e54502b907cc778aa3ca28a0d987d1a4871ca65a76559d327ba6474fd539cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 6): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:161-182 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:186-207 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:184-205 | examples/research_projects/lora/train_text_to_image_lora.py:93-114 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:128-149 | examples/vqgan/train_vqgan.py:266-287 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"36aff23aff0189b3d690ba986883ac6c6268a39d9583cc231dada5db4acc9977"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:499-518 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:608-627 | examples/controlnet/train_controlnet_flax.py:293-314 | examples/dreambooth/train_dreambooth_lora_sdxl.py:507-526 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:504-523 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:499\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"f086351f9e9aa16b3895d1c29263f734bf98c7754f015b469de27d4c32833f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5): examples/community/pipeline_controlnet_xl_kolors.py:1226-1247 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1430-1451 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1750-1771 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:987-1008 | examples/community/pipeline_stable_diffusion_xl_instantid.py:976-997 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:987\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62fbad6a30e67e9660284d1b973d8a04b023a83a2d6e85aaa13454fca507cbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1379-1400 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1371-1392 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1442-1463 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1341-1362 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1444-1465 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1379\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7bf247178a89f3ee6842f8a4d611fba0fa8e04bf64005709cb0bec7e59f154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:351-372 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:352-373 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:365-386 | examples/dreambooth/train_dreambooth_lora_lumina2.py:285-306 | examples/dreambooth/train_dreambooth_lora_sana.py:305-326 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:351\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b93b3933e92b3ec9b72b78835f82f345326b96894e41f468fc38414de2ab101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:85-106 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:81-102 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:151-172 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:153-174 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:213-234 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:85\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9da1c53e61764b722e50e9a771b677ba44aed5bfef4e85f58ca49fddea45b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 4): examples/cogview4-control/train_control_cogview4.py:709-730 | examples/controlnet/train_controlnet_flux.py:818-839 | examples/flux-control/train_control_flux.py:701-722 | examples/flux-control/train_control_lora_flux.py:734-752 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1536 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:709\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"728d473efa1fefd2c7fa648ac473421f73f190c0d85b854a9935ca3cc2344c4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): examples/community/interpolate_stable_diffusion.py:305-326 | examples/community/multilingual_stable_diffusion.py:340-361 | examples/community/speech_to_image_diffusion.py:195-216 | examples/community/wildcard_stable_diffusion.py:349-370 \u2014 before extracting anything, compare \u0060examples/community/interpolate_stable_diffusion.py\u0060 and \u0060examples/community/multilingual_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 332 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/interpolate_stable_diffusion.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb32a3963e570af46193f790489e96ab8228b9225618571ce6131dbe70de91f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_flux2.py:1744-1765 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1701-1722 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1844-1865 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1730-1751 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 207 separate duplicated blocks between them, totalling at least 3698 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"f280faf910a0b09548c369aa410c4ef1c75427e15c525c617d85943532634d6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:955-978 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:951-974 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1070-1093 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:997-1020 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d4d81231b7f4140db5c8f9265fb575b2351f341e2e19ec66a7b908e10c026a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_krea2.py:1389-1410 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1296-1317 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1338-1359 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1429-1450 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddae51a8bc18dd494e3a0b7a24fc3491b003b73ad16d02503c46efb5391a86be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:874-895 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:899-920 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1083-1104 | examples/text_to_image/train_text_to_image.py:1090-1111 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 81 separate duplicated blocks between them, totalling at least 1218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bc64ec16efc4e94c59fe18bc4228015b96312dc379f76843a4d3fcd2e726d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:670-688 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:779-798 | examples/dreambooth/train_dreambooth_lora_sdxl.py:656-677 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:670\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:669\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:656\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7096ff59923a8becd410da1b233d2c8536b33500e2986fa04c06df25163cc42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 3): examples/community/stable_diffusion_controlnet_img2img.py:850-893 | examples/community/stable_diffusion_controlnet_inpaint.py:1003-1046 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:980-1023 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 931 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e8c31fe825ee4328c0b5be8407867509b2a6189b696c798a70e5b1da10f54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:818-839 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:952-972 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1011-1031 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1402 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:818\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd722f031b00947b9978f218874ccefc73b2cc6649342af134a51903f313524a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 3): examples/custom_diffusion/train_custom_diffusion.py:427-447 | examples/dreambooth/train_dreambooth_flax.py:123-141 | examples/text_to_image/train_text_to_image_flax.py:134-155 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 318 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:427\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_flax.py:122\u0060 calls \u0060add_argument\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.py:134\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33ae8c766193ed00ff9e2ad1b39e1f64fe6510707468dfb0f65652cae367285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): examples/dreambooth/train_dreambooth.py:819-840 | examples/dreambooth/train_dreambooth_lora.py:772-793 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:695-716 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:819\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"4820b576a455e9065b59ab16956e65d2da7d5b5d376ada50ae70a955c6eac78d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): examples/instruct_pix2pix/train_instruct_pix2pix.py:884-905 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1082-1103 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:976-997 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:883\u0060 calls \u0060text_encoder\u0060, \u0060tokenize_captions\u0060, \u0060to\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1080\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":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c1ed53ac736d1929f35d70a3673d2302b36aa28c89cb635ccd1c640ce6164e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:317-338 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:321-342 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:321-342 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:317\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9d42947213f5e64993a11ccb7ff12b1b3d13f01ca216e673edef91890afd89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:364-386 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:105-126 | examples/unconditional_image_generation/train_unconditional.py:123-144 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:364\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65351c3e589e4b23c20b639373f34369c93727336d75bcf1e53b9ecb2942d92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:878-899 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:372-393 | examples/unconditional_image_generation/train_unconditional.py:381-402 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:878\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":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc37005819a20b47d1c3fad0ba8c487e2d5c44e2500a992f626ef162e768531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:281-304 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:360-381 | examples/textual_inversion/textual_inversion.py:387-408 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py\u0060 and \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:281\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:382\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:304\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":"examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e91ba190bcc3c0e12faa361ee7b8005dcc5fa92a41b33958bd6f82e570ff1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:247-268 | examples/dreambooth/train_dreambooth_lora_flux.py:201-222 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8dd7033234f25fef62a9d907585f6ad2fb9874cf02d3787dbe6f194c610b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2361-2382 | examples/dreambooth/train_dreambooth_lora_flux.py:1903-1924 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2361}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a61bc49696885b53b715731562c231be142237121dbef6bbe6fd96f36cdd48d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1212-1233 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1497-1518 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe067f5bcf63e40d6d7d9ea7150b94ee5c1f83a61a0350a8ff71188781c9822"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:829-850 | examples/cogvideo/train_cogvideox_lora.py:851-872 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"863e991b5e606f1aa80b8817d60ef36ceeab765a7887fd530f7d4c6f1abc6313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/community/pipeline_zero1to3.py:351-372 | examples/community/pipeline_zero1to3.py:526-547 \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":"examples/community/pipeline_zero1to3.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea275e0484c3c2f8793ace2c400ce656bae8f83faa1383083eea744508f0e5f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201322 lines \u00D7 3): examples/community/stable_diffusion_controlnet_inpaint.py:152-173 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:151-172 | examples/community/stable_diffusion_repaint.py:126-127 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py\u0060 as WHOLE FILES: this scan already matched 68 separate duplicated blocks between them, totalling at least 1028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/stable_diffusion_controlnet_inpaint.py:173\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/stable_diffusion_repaint.py:127\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"840eff71a3a6d92d0b7fda3e1afd8ae8871e2a4c4b93adc81f4ca5eeeed5b6ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): examples/controlnet/train_controlnet.py:805-826 | examples/controlnet/train_controlnet_sdxl.py:925-945 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:805\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"824f91fa4db00d6520ee031d7bd983a760897d8637da041d9d3cc828545541f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/dreambooth/train_dreambooth.py:1233-1254 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1265-1286 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 173 separate duplicated blocks between them, totalling at least 3201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"338499903dce7e0f89c5861e8049ef9de7de63f6553ec1028b845980d15bab98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1619-1640 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1571-1592 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1619\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"d188af0c4bfbce26e46d71bf7da10a19d06e3cefa934b11f469ed0256332b252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_hidream.py:1753-1774 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1917-1938 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 182 separate duplicated blocks between them, totalling at least 3091 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1753\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"187a233ea180e2608afc3644ea627890f39ebfbcfcc1154c43d4752fe912f742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_ideogram4.py:1837-1858 | examples/dreambooth/train_dreambooth_lora_z_image.py:1629-1649 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_ideogram4.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_z_image.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2595 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_ideogram4.py"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5bfcedadfe6729162fcb0a7ae19d3d75d70604f7827858db412c3d33a060da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sdxl.py:2012-2033 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:2052-2073 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:2012\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":2012}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b109e03fd39b8b4129f8fe5239645908f31b822c2d4cfa83653711389b9cec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/instruct_pix2pix/train_instruct_pix2pix.py:522-543 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:578-599 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab559bd082cb7c33b7dbf4c3a34840b76afd55ec64f3333d69d9431ed7cd3b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201322 lines \u00D7 3): examples/instruct_pix2pix/train_instruct_pix2pix.py:723-744 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:815-836 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:872-875 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fa0ffcde8314d0e5077dfcd58a1368df630591ee57fda78099bef344041804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:311-335 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:260-281 \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 \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:311\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ad1fcdb29a5f00a5f2bb85f21e786fc805909ac2a455c6698f0bd6973acf8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:119-140 | examples/textual_inversion/textual_inversion_flax.py:125-146 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 and \u0060examples/textual_inversion/textual_inversion_flax.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 848 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e815a462a8c894ae98621a5cb4e0a27b9c458a754097c5f82e1aaa144cdf1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201353 lines \u00D7 2): examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:509-561 | examples/unconditional_image_generation/train_unconditional.py:544-594 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 1025 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:507\u0060 calls \u0060ORTModule\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py:542\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":"examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"6766fdb88cca58c68c3905a05bf4981ecc305e7ff0dcaf91ef4831ac56ddbc0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:141-162 | examples/text_to_image/train_text_to_image.py:142-163 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 and \u0060examples/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2447 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfb338414a8063dda6d433b189901998d1f3680d9b39f95b2b63012476ccdb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:450-470 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:638-659 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1541 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8f124c4f81634581ff0f793b989f07963943fb0ebe0b07f82fb14b8811b4cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:658-679 | examples/text_to_image/train_text_to_image_lora.py:674-695 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 135 separate duplicated blocks between them, totalling at least 2248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/text_to_image/train_text_to_image_lora.py:667\u0060 calls \u0060getattr\u0060, \u0060upper\u0060, \u0060ValueError\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:655\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3581966feabe51812b5572ae8c98199ee7852712770d37c3f0c4424f76bb1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1188-1210 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1194-1216 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 169 separate duplicated blocks between them, totalling at least 3160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f7be6ca684a6effffc7be6f863ebcb19b81b10c5a8e1487e3040a9d58b5937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 56): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:620-638 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:314-332 | examples/cogvideo/train_cogvideox_lora.py:305-323 | examples/cogview4-control/train_control_cogview4.py:340-358 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:650-670 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:483-503 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:630-650 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:628-648 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:653-673 | examples/controlnet/train_controlnet.py:367-385 | examples/controlnet/train_controlnet_flux.py:382-400 | examples/controlnet/train_controlnet_sd3.py:413-431 | examples/controlnet/train_controlnet_sdxl.py:409-427 | examples/dreambooth/train_dreambooth.py:399-417 | examples/dreambooth/train_dreambooth_flux.py:480-498 | examples/dreambooth/train_dreambooth_lora.py:400-418 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:618-636 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:615-633 | examples/dreambooth/train_dreambooth_lora_flux.py:514-532 | examples/dreambooth/train_dreambooth_lora_flux2.py:552-570 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:530-548 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:562-580 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:531-549 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:665-683 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:652-670 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:559-577 | examples/dreambooth/train_dreambooth_lora_hidream.py:531-549 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:623-641 | examples/dreambooth/train_dreambooth_lora_krea2.py:637-655 | examples/dreambooth/train_dreambooth_lora_lumina2.py:441-459 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:534-552 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:553-571 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:569-587 | examples/dreambooth/train_dreambooth_lora_sana.py:459-477 | examples/dreambooth/train_dreambooth_lora_sd3.py:493-511 | examples/dreambooth/train_dreambooth_lora_z_image.py:546-564 | examples/dreambooth/train_dreambooth_sd3.py:459-477 | examples/flux-control/train_control_flux.py:332-350 | examples/flux-control/train_control_lora_flux.py:364-382 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:269-287 | examples/research_projects/controlnet/train_controlnet_webdataset.py:608-626 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:323-341 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:342-360 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:340-358 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:324-342 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:302-320 | examples/research_projects/gligen/train_gligen_text.py:187-205 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:334-352 | examples/research_projects/realfill/train_realfill.py:291-309 | examples/research_projects/sana/train_sana_sprint_diffusers.py:493-511 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:399-417 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:391-409 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:355-373 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:386-404 | examples/textual_inversion/textual_inversion.py:301-321 | examples/textual_inversion/textual_inversion_sdxl.py:299-319 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 788 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:620\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:670\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:638\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae4f105a6fce5e47cd71523bd2e84d40ce7fc2920521adb6d0a6ab25450f137"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 51): examples/cogvideo/train_cogvideox_image_to_video_lora.py:296-315 | examples/cogvideo/train_cogvideox_lora.py:287-306 | examples/cogview4-control/train_control_cogview4.py:322-341 | examples/controlnet/train_controlnet.py:349-368 | examples/controlnet/train_controlnet_flux.py:364-383 | examples/controlnet/train_controlnet_sd3.py:395-414 | examples/controlnet/train_controlnet_sdxl.py:391-410 | examples/custom_diffusion/train_custom_diffusion.py:489-508 | examples/dreambooth/train_dreambooth.py:381-400 | examples/dreambooth/train_dreambooth_lora.py:382-401 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:599-619 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:596-616 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:646-666 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:633-653 | examples/dreambooth/train_dreambooth_lora_hidream.py:513-532 | examples/dreambooth/train_dreambooth_lora_lumina2.py:423-442 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:516-535 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:535-554 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:551-570 | examples/dreambooth/train_dreambooth_lora_sana.py:441-460 | examples/flux-control/train_control_flux.py:314-333 | examples/flux-control/train_control_lora_flux.py:346-365 | examples/instruct_pix2pix/train_instruct_pix2pix.py:262-281 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:319-338 | examples/research_projects/controlnet/train_controlnet_webdataset.py:590-609 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:182-201 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:178-197 | examples/research_projects/gligen/train_gligen_text.py:169-188 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:313-332 | examples/research_projects/lora/train_text_to_image_lora.py:252-271 | examples/research_projects/lpl/train_sdxl_lpl.py:376-395 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:316-335 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:250-269 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:238-257 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:262-281 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:396-415 | examples/research_projects/sana/train_sana_sprint_diffusers.py:475-494 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:381-400 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:373-392 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:320-339 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:235-254 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:312-331 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:306-325 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:337-356 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:368-387 | examples/text_to_image/train_text_to_image.py:326-345 | examples/text_to_image/train_text_to_image_lora.py:286-305 | examples/text_to_image/train_text_to_image_lora_sdxl.py:359-378 | examples/text_to_image/train_text_to_image_sdxl.py:310-329 | examples/textual_inversion/textual_inversion.py:283-302 | examples/textual_inversion/textual_inversion_sdxl.py:281-300 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:296\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf5e55914683022c3ce7ff8062e4c6e22f9d01b170f4487224bc55c728b997c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 51): examples/cogvideo/train_cogvideox_image_to_video_lora.py:292-311 | examples/cogvideo/train_cogvideox_lora.py:283-302 | examples/cogview4-control/train_control_cogview4.py:318-337 | examples/controlnet/train_controlnet.py:345-364 | examples/controlnet/train_controlnet_flux.py:360-379 | examples/controlnet/train_controlnet_sdxl.py:387-406 | examples/cosmos/train_cosmos_predict25_lora.py:108-127 | examples/custom_diffusion/train_custom_diffusion.py:485-504 | examples/dreambooth/train_dreambooth.py:377-396 | examples/dreambooth/train_dreambooth_lora.py:378-397 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:595-615 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:592-612 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:642-662 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:629-649 | examples/dreambooth/train_dreambooth_lora_hidream.py:509-528 | examples/dreambooth/train_dreambooth_lora_lumina2.py:419-438 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:512-531 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:531-550 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:547-566 | examples/dreambooth/train_dreambooth_lora_sana.py:437-456 | examples/flux-control/train_control_flux.py:310-329 | examples/flux-control/train_control_lora_flux.py:342-361 | examples/instruct_pix2pix/train_instruct_pix2pix.py:258-277 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:315-334 | examples/research_projects/controlnet/train_controlnet_webdataset.py:586-605 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:178-197 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:174-193 | examples/research_projects/gligen/train_gligen_text.py:165-184 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:309-328 | examples/research_projects/lora/train_text_to_image_lora.py:248-267 | examples/research_projects/lpl/train_sdxl_lpl.py:372-391 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:312-331 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:246-265 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:234-253 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:258-277 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:392-411 | examples/research_projects/sana/train_sana_sprint_diffusers.py:471-490 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:377-396 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:369-388 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:316-335 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:231-250 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:308-327 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:302-321 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:333-352 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:364-383 | examples/text_to_image/train_text_to_image.py:322-341 | examples/text_to_image/train_text_to_image_lora.py:282-301 | examples/text_to_image/train_text_to_image_lora_sdxl.py:355-374 | examples/text_to_image/train_text_to_image_sdxl.py:306-325 | examples/textual_inversion/textual_inversion.py:279-298 | examples/textual_inversion/textual_inversion_sdxl.py:277-296 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:292\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cosmos/train_cosmos_predict25_lora.py:107\u0060 calls \u0060add_argument\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:291\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"559c95469f74baf3bcd79b1b0b1c66d900598960032003366842132b8dafc8fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 42): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:319-339 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:91-113 | examples/cogvideo/train_cogvideox_lora.py:82-104 | examples/dreambooth/train_dreambooth_flux.py:253-273 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:352-372 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:373-393 | examples/dreambooth/train_dreambooth_lora_flux.py:273-293 | examples/dreambooth/train_dreambooth_lora_flux2.py:277-297 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:278-298 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:277-297 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:279-299 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:390-410 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:397-417 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:287-307 | examples/dreambooth/train_dreambooth_lora_hidream.py:299-319 | examples/dreambooth/train_dreambooth_lora_krea2.py:364-384 | examples/dreambooth/train_dreambooth_lora_lumina2.py:212-232 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:267-287 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:286-306 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:290-310 | examples/dreambooth/train_dreambooth_lora_sana.py:232-252 | examples/dreambooth/train_dreambooth_lora_sd3.py:263-283 | examples/dreambooth/train_dreambooth_lora_sdxl.py:283-303 | examples/dreambooth/train_dreambooth_lora_z_image.py:277-297 | examples/dreambooth/train_dreambooth_sd3.py:239-259 | examples/instruct_pix2pix/train_instruct_pix2pix.py:127-147 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:173-193 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:178-198 | examples/research_projects/lpl/train_sdxl_lpl.py:222-242 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:71-91 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:253-273 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:280-300 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:211-231 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:115-135 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:159-179 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:152-172 | examples/text_to_image/train_text_to_image.py:217-237 | examples/text_to_image/train_text_to_image_flax.py:71-91 | examples/text_to_image/train_text_to_image_lora.py:166-186 | examples/text_to_image/train_text_to_image_lora_sdxl.py:206-226 | examples/text_to_image/train_text_to_image_sdxl.py:156-176 | examples/unconditional_image_generation/train_unconditional.py:89-109 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 788 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:319\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"c187a9800bb6439cfb1ad5c97a636671cf917f4b434f6968efec2734aa63814c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 41): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:320-340 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:92-114 | examples/cogvideo/train_cogvideox_lora.py:83-105 | examples/dreambooth/train_dreambooth_flux.py:254-274 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:353-373 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:374-394 | examples/dreambooth/train_dreambooth_lora_flux.py:274-294 | examples/dreambooth/train_dreambooth_lora_flux2.py:278-298 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:279-299 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:278-298 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:280-300 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:391-411 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:398-418 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:288-308 | examples/dreambooth/train_dreambooth_lora_hidream.py:300-320 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:338-359 | examples/dreambooth/train_dreambooth_lora_krea2.py:365-385 | examples/dreambooth/train_dreambooth_lora_lumina2.py:213-233 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:268-288 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:287-307 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:291-311 | examples/dreambooth/train_dreambooth_lora_sana.py:233-253 | examples/dreambooth/train_dreambooth_lora_sd3.py:264-284 | examples/dreambooth/train_dreambooth_lora_sdxl.py:284-304 | examples/dreambooth/train_dreambooth_lora_z_image.py:278-298 | examples/dreambooth/train_dreambooth_sd3.py:240-260 | examples/instruct_pix2pix/train_instruct_pix2pix.py:128-148 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:174-194 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:179-199 | examples/research_projects/lpl/train_sdxl_lpl.py:223-243 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:254-274 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:281-301 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:212-232 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:116-136 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:160-180 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:153-173 | examples/text_to_image/train_text_to_image.py:218-238 | examples/text_to_image/train_text_to_image_flax.py:72-92 | examples/text_to_image/train_text_to_image_lora.py:167-187 | examples/text_to_image/train_text_to_image_lora_sdxl.py:207-227 | examples/text_to_image/train_text_to_image_sdxl.py:157-177 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 788 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:320\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b941d45640a2a03498910a998bc271801a01166657f6ede4c02ba0e1c2bc96ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 31): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:418-436 | examples/dreambooth/train_dreambooth.py:318-336 | examples/dreambooth/train_dreambooth_lora.py:325-343 | examples/dreambooth/train_dreambooth_lora_flux2.py:463-481 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:447-465 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:448-466 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:579-596 | examples/dreambooth/train_dreambooth_lora_hidream.py:456-474 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:534-552 | examples/dreambooth/train_dreambooth_lora_lumina2.py:366-384 | examples/dreambooth/train_dreambooth_lora_sana.py:384-402 | examples/dreambooth/train_dreambooth_lora_z_image.py:457-475 | examples/instruct_pix2pix/train_instruct_pix2pix.py:233-250 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:290-307 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:219-237 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:284-301 | examples/research_projects/lpl/train_sdxl_lpl.py:322-339 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:209-226 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:310-330 | examples/research_projects/sana/train_sana_sprint_diffusers.py:418-436 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:318-336 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:316-334 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:291-308 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:206-223 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:252-269 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:282-300 | examples/text_to_image/train_text_to_image.py:297-314 | examples/text_to_image/train_text_to_image_flax.py:144-161 | examples/text_to_image/train_text_to_image_lora.py:257-274 | examples/text_to_image/train_text_to_image_sdxl.py:256-273 | examples/vqgan/train_vqgan.py:341-358 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 965 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:418\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:436\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:596\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"392fca2a0edfaeb9cf4cf3683ef991b5a15fbef80945f51825b0f21ca2f8ba4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201321 lines \u00D7 29): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:666-685 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:555-575 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:664-684 | examples/dreambooth/train_dreambooth_flux.py:526-545 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:664-683 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:661-680 | examples/dreambooth/train_dreambooth_lora_flux.py:560-579 | examples/dreambooth/train_dreambooth_lora_flux2.py:598-617 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:576-595 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:608-627 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:577-596 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:711-730 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:698-717 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:605-624 | examples/dreambooth/train_dreambooth_lora_hidream.py:577-596 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:685-704 | examples/dreambooth/train_dreambooth_lora_krea2.py:683-702 | examples/dreambooth/train_dreambooth_lora_lumina2.py:487-506 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:580-599 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:599-618 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:615-634 | examples/dreambooth/train_dreambooth_lora_sana.py:505-524 | examples/dreambooth/train_dreambooth_lora_sd3.py:545-564 | examples/dreambooth/train_dreambooth_lora_sdxl.py:543-563 | examples/dreambooth/train_dreambooth_lora_z_image.py:592-611 | examples/dreambooth/train_dreambooth_sd3.py:511-530 | examples/research_projects/sana/train_sana_sprint_diffusers.py:565-584 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:540-560 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:400-415 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:666\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06df7f0246d5d986013ae6306bf19604b19c123a2a7ccaf02efc5eeea4e5941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 24): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:752-773 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:744-765 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:741-762 | examples/dreambooth/train_dreambooth_lora_flux.py:643-664 | examples/dreambooth/train_dreambooth_lora_flux2.py:681-702 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:659-680 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:691-712 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:660-681 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:791-812 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:778-799 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:688-709 | examples/dreambooth/train_dreambooth_lora_hidream.py:656-677 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:768-789 | examples/dreambooth/train_dreambooth_lora_krea2.py:627-647 | examples/dreambooth/train_dreambooth_lora_krea2.py:764-785 | examples/dreambooth/train_dreambooth_lora_lumina2.py:566-587 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:659-680 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:680-701 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:696-717 | examples/dreambooth/train_dreambooth_lora_sana.py:588-609 | examples/dreambooth/train_dreambooth_lora_sd3.py:638-659 | examples/dreambooth/train_dreambooth_lora_z_image.py:675-696 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:416-438 | examples/research_projects/sana/train_sana_sprint_diffusers.py:636-657 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1907 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:752\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee229de989063b63a1e8da01e69960b6209ae0e6bbafc3b99892889e7942102"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 23): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1085-1105 | examples/dreambooth/train_dreambooth_flux.py:735-755 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:905-925 | examples/dreambooth/train_dreambooth_lora_flux.py:784-804 | examples/dreambooth/train_dreambooth_lora_flux2.py:847-867 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:815-835 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:852-872 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:811-831 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:952-972 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:929-949 | examples/dreambooth/train_dreambooth_lora_hidream.py:791-811 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:920-940 | examples/dreambooth/train_dreambooth_lora_krea2.py:914-934 | examples/dreambooth/train_dreambooth_lora_lumina2.py:710-730 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:806-826 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:839-859 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:885-905 | examples/dreambooth/train_dreambooth_lora_sana.py:725-745 | examples/dreambooth/train_dreambooth_lora_sd3.py:778-798 | examples/dreambooth/train_dreambooth_lora_sdxl.py:774-794 | examples/dreambooth/train_dreambooth_lora_z_image.py:836-856 | examples/dreambooth/train_dreambooth_sd3.py:710-730 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:778-798 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1869 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"92cda60017988ca44850d52b9c38d010b2ed43c3c67f7a4963cc8637eb143b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 22): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:370-390 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:324-344 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:415-435 | examples/dreambooth/train_dreambooth_flux.py:304-324 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:404-424 | examples/dreambooth/train_dreambooth_lora_flux.py:324-344 | examples/dreambooth/train_dreambooth_lora_flux2.py:328-348 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:328-348 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:441-461 | examples/dreambooth/train_dreambooth_lora_hidream.py:350-370 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:406-426 | examples/dreambooth/train_dreambooth_lora_krea2.py:415-435 | examples/dreambooth/train_dreambooth_lora_lumina2.py:263-283 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:318-338 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:337-357 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:347-367 | examples/dreambooth/train_dreambooth_lora_sana.py:283-303 | examples/dreambooth/train_dreambooth_lora_sd3.py:314-334 | examples/dreambooth/train_dreambooth_lora_sdxl.py:334-354 | examples/dreambooth/train_dreambooth_lora_z_image.py:328-348 | examples/dreambooth/train_dreambooth_sd3.py:290-310 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:331-351 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:370\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c6cb196d537982c8a3ffccb526e994fecbfbe5e3a33d591190e256b19a0324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 19): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1433-1453 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1322-1342 | examples/dreambooth/train_dreambooth_lora_flux2.py:1386-1406 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1336-1356 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1389-1409 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1330-1350 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1478-1498 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1428-1448 | examples/dreambooth/train_dreambooth_lora_hidream.py:1224-1244 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1527-1547 | examples/dreambooth/train_dreambooth_lora_krea2.py:1441-1461 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1076-1096 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1348-1368 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1390-1410 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1481-1501 | examples/dreambooth/train_dreambooth_lora_sana.py:1099-1119 | examples/dreambooth/train_dreambooth_lora_z_image.py:1368-1388 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:789-809 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:770-790 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1457\u0060 calls \u0060is_available\u0060 and \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:811\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"1add5d26f04cf2d3aede5a658bd31bb39aebbfa031ca29ab8379b7f567aa495c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 18): examples/controlnet/train_controlnet.py:745-763 | examples/controlnet/train_controlnet_sdxl.py:846-864 | examples/cosmos/train_cosmos_predict25_lora.py:467-485 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:454-473 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:455-474 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:579-597 | examples/research_projects/controlnet/train_controlnet_webdataset.py:910-928 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:481-499 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:523-541 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:513-531 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:620-638 | examples/research_projects/gligen/train_gligen_text.py:287-305 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:425-445 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:456-475 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:454-473 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:794-812 | examples/text_to_image/train_text_to_image.py:541-559 | examples/text_to_image/train_text_to_image_lora.py:465-483 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:454\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, \u0060examples/controlnet/train_controlnet.py:741\u0060 calls \u0060Path\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py:842\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c228beeda9f90a6ed21146eb99a2d00c0c83128f608fb3848251c000b86c3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 16): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:989-1008 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:470-490 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:613-633 | examples/research_projects/lora/train_text_to_image_lora.py:617-637 | examples/research_projects/lpl/train_sdxl_lpl.py:956-976 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:615-635 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:741-761 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:606-626 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:849-869 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:855-875 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:632-652 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:615-635 | examples/text_to_image/train_text_to_image.py:739-759 | examples/text_to_image/train_text_to_image_lora.py:615-635 | examples/text_to_image/train_text_to_image_lora_sdxl.py:875-895 | examples/text_to_image/train_text_to_image_sdxl.py:840-860 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:989\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":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"34eab247ee920ef0f31c679165a764ca1efc689fb41913e3c30660c02932e10a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 11): examples/controlnet/train_controlnet_flax.py:193-213 | examples/controlnet/train_controlnet_flax.py:227-246 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:342-361 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:363-382 | examples/dreambooth/train_dreambooth_lora_flux2.py:267-286 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:268-287 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:267-286 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:269-288 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:380-399 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:387-406 | examples/dreambooth/train_dreambooth_lora_z_image.py:267-286 \u2014 there are 11 copies across 10 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 11 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flax.py:193\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flax.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d4b6f5592bcdb4f2e28dc3169d7e23014fa2fd67f892c5d8f59036f974bc3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 9): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1069-1089 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1021-1041 | examples/dreambooth/train_dreambooth_lora_flux2.py:1011-1031 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1016-1036 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1116-1136 | examples/dreambooth/train_dreambooth_lora_krea2.py:1081-1101 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:973-993 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1007-1027 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1098-1118 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ceb751b3019f0540027bba6cdc222220307e46b7852f447952ee2b29b91f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 7): examples/community/imagic_stable_diffusion.py:412-432 | examples/community/img2img_inpainting.py:370-390 | examples/community/interpolate_stable_diffusion.py:312-332 | examples/community/multilingual_stable_diffusion.py:347-367 | examples/community/seed_resize_stable_diffusion.py:279-299 | examples/community/speech_to_image_diffusion.py:202-222 | examples/community/wildcard_stable_diffusion.py:356-376 \u2014 before extracting anything, compare \u0060examples/community/imagic_stable_diffusion.py\u0060 and \u0060examples/community/img2img_inpainting.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/img2img_inpainting.py:393\u0060 calls \u0060cat\u0060 and \u0060examples/community/imagic_stable_diffusion.py:433\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":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a84f8739c5d50b9cb4b3ff4178e47e40dce2680429cc24f740aa903c4e9741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 7): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:954-974 | examples/flux-control/train_control_lora_flux.py:1016-1036 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:642-662 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:738-758 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:713-733 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:820-840 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:597-615 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/flux-control/train_control_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 430 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:951\u0060 calls \u0060enable_gradient_checkpointing\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:595\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdeb992d50f6a48491f9094972fcf29d9941b2a4cb34720a0d6e25281dc5b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 7): examples/dreambooth/train_dreambooth_flax.py:87-105 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:448-468 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:358-378 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:359-379 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:490-510 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:110-128 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:106-124 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flax.py:87\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_flax.py:106\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:468\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":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"64495e9ea9b43be7a7fb236bf054d711b4d94e25b64deacd3872880a7b1691c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:2087-2107 | examples/dreambooth/train_dreambooth_lora_flux2.py:2087-2107 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:2057-2077 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2185-2205 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:2055-2075 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:2182-2202 | examples/dreambooth/train_dreambooth_lora_z_image.py:1943-1963 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:2087\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb85d9c0394ea3ef335b1ccebb974d9d07e6d7cb0838f7fbcee760427fcdcd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_hidream.py:275-295 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:243-263 | examples/instruct_pix2pix/train_instruct_pix2pix.py:166-185 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:212-231 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:217-236 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:283-303 | examples/vqgan/train_vqgan.py:237-257 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 182 separate duplicated blocks between them, totalling at least 3091 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"c126605ec76719887d9923cc6463f17b02750ad8e855384c1507f6db7929ca6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 7): examples/instruct_pix2pix/train_instruct_pix2pix.py:309-329 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:366-386 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:360-380 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:286-306 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:368-388 | examples/text_to_image/train_text_to_image.py:391-410 | examples/vqgan/train_vqgan.py:426-446 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:309\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, \u0060examples/text_to_image/train_text_to_image.py:389\u0060 calls \u0060add_argument\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:309\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":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec5653618e80efcef0a2046f0a0ab8b37a813cb7aca9e9bbc3b028641122724"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 7): examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:575-595 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:516-536 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:668-688 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:465-484 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:369-388 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:422-441 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:466-485 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 140 separate duplicated blocks between them, totalling at least 2226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:575\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a9382c1d69c635dfd653a8325043b88aeee3815f3a0acee1ae308f370d9675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 6): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:293-313 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:166-186 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:310-330 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:271-291 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:289-309 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:245-265 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"78436004d81027e45159d5c30df9e90fb37b29543851cc0da8e86fe62cb28b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 6): examples/cosmos/train_cosmos_predict25_lora.py:223-243 | examples/discrete_diffusion/sample_llada2.py:57-77 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:138-157 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:128-147 | examples/research_projects/lora/train_text_to_image_lora.py:212-232 | examples/textual_inversion/textual_inversion_flax.py:117-136 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cosmos/train_cosmos_predict25_lora.py:223\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cosmos/train_cosmos_predict25_lora.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c159f85ad1d14b558710c62ebe1c0491dbbff3745fefc48c2703e4c0eadd296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:783-803 | examples/dreambooth/train_dreambooth_lora_flux2.py:725-745 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:730-750 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:830-850 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:807-827 | examples/dreambooth/train_dreambooth_lora_z_image.py:714-734 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:783\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce02579b97419e82ea2547cdcea29a61d67f3594947987dd9fd289508d19bf12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 6): examples/instruct_pix2pix/train_instruct_pix2pix.py:149-169 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:195-215 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:168-188 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:193-213 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:191-211 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:200-220 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:149\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ccadb1ddd96241206ef9f095caf7543d1d80c97db3949b62d83b2b77542f17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:454-474 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:185-205 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:210-230 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:208-228 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:200-220 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 753 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:454\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4e32f778e6e2c68efb0e179c1e7d0dbae6fb804acacd57c75865f36d82aa58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 5): examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:928-947 | examples/research_projects/lpl/train_sdxl_lpl.py:1080-1100 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:878-897 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:973-993 | examples/text_to_image/train_text_to_image_sdxl.py:964-984 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 1099 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ba33364022462558558cd0a024d1396c2997ac49b869cc9eb66857583102f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2186-2227 | examples/dreambooth/train_dreambooth_flux.py:1613-1655 | examples/dreambooth/train_dreambooth_lora_flux.py:1753-1794 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1043-1084 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1087\u0060 calls \u0060to\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2230\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2186}}}],"partialFingerprints":{"codehealthFindingId/v1":"316e5c4ca1f60286b60b84abab1e79735628de39922df75f905ae3d3800368f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 4): examples/cogvideo/train_cogvideox_image_to_video_lora.py:217-235 | examples/cogvideo/train_cogvideox_lora.py:202-222 | examples/discrete_diffusion/sample_llada2.py:45-65 | examples/research_projects/lora/train_text_to_image_lora.py:207-226 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:217\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acffc542c44be76582d422ec6a0d8854775fb3f0445323348d8053a81423f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:209-229 | examples/dreambooth/train_dreambooth_lora.py:195-215 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:209-229 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:186-206 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ed7ee8dab0e2857008f2028ff2072df7621737b76687f764fa96bb5d7e6c1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:541-560 | examples/dreambooth/train_dreambooth_lora.py:494-514 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:541-560 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:485-505 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:541\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"848b803a093ca030cc35b05e68858347c12e230f2ad5423af0aef5ad1523a66e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 4): examples/dreambooth/train_dreambooth_flux.py:1829-1849 | examples/dreambooth/train_dreambooth_lora_flux.py:1970-1987 | examples/dreambooth/train_dreambooth_lora_sd3.py:1973-1990 | examples/dreambooth/train_dreambooth_sd3.py:1780-1800 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:1829\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, \u0060examples/dreambooth/train_dreambooth_lora_flux.py:1967\u0060 calls \u0060load_lora_weights\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py:1829\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":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b0a146ae266c5c80678e4bd702800483df3b80edfd296eb4d5be821b3090c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 4): examples/instruct_pix2pix/train_instruct_pix2pix.py:160-180 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:206-226 | examples/research_projects/gligen/train_gligen_text.py:100-117 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:211-231 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:160\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/gligen/train_gligen_text.py:118\u0060 calls \u0060add_argument\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:180\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":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1dc02419944c278931d4b9f8e96e513fb3e891407c910d8b34ab0f682661180"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 4): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:186-205 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:285-304 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:77-97 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:295-314 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:186\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:185\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:77\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6330a678759851997750206cf616af029e00da5fc301b04e458849f38c67654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 4): examples/research_projects/ip_adapter/tutorial_train_faceid.py:345-365 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:342-362 | examples/research_projects/ip_adapter/tutorial_train_plus.py:365-385 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:416-435 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py:345\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d495d7fcba1192bee077eb0870d3341855bb5e3bebf18ab2a7897391e3b5c9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): examples/cogview4-control/train_control_cogview4.py:1057-1077 | examples/flux-control/train_control_flux.py:1048-1067 | examples/flux-control/train_control_lora_flux.py:1193-1213 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ff7dbb51059f4faa0a4a19a2bb956ec2404bc1ddad97688ee82745fc4b49c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): examples/community/clip_guided_images_mixing_stable_diffusion.py:189-209 | examples/community/clip_guided_stable_diffusion.py:117-137 | examples/community/clip_guided_stable_diffusion_img2img.py:252-272 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b416ad420da1e261259046b27a7daf777495df1e62a1e26e7c78ecc1685e17e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): examples/community/pipeline_kolors_inpainting.py:215-237 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:411-433 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:261-283 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"de27c3e8d02281a0291641046990ea25a808e3efcdc738761e9e293b0a1be1d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): examples/community/stable_diffusion_reference.py:701-721 | examples/community/stable_diffusion_xl_controlnet_reference.py:246-266 | examples/community/stable_diffusion_xl_reference.py:192-212 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_reference.py\u0060 and \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_reference.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"2090ae8e405ddac2aec3d319b912311f17061c3a3333d795680a4ff6ec2211e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:133-153 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:239-259 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:257-277 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1402 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93b38a678a660254eeb125201acdb21e25d4acb7032ce4a526da95794c554b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): examples/controlnet/train_controlnet_flux.py:566-586 | examples/dreambooth/train_dreambooth.py:473-493 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:473-493 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 761 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flux.py:566\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e760e2134bf2a4a62463c5d27974c6aebe55353d1cbfaa485dd354f7f3e7d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:2057-2077 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2155-2175 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:2025-2045 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3548 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:2057\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96981364825f6b2a835ffa83ab4419abbf4e67e9ca566675dff36c874cd40b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1565-1593 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1516-1546 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1632-1662 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6451923dd97629d868b225ba8859589f664d2131ba6b5ffb4a9555a07a5a45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:400-420 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:381-401 | examples/textual_inversion/textual_inversion_flax.py:394-414 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b9ddeee9a9d46d164adda882b05bf2b7d3ba10cf673dcb5b79a04cb1885f7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 3): examples/research_projects/ip_adapter/tutorial_train_faceid.py:27-47 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:34-52 | examples/research_projects/ip_adapter/tutorial_train_plus.py:34-52 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:53\u0060 calls \u0060CLIPImageProcessor\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py:49\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":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"620f3ccc2012cf7c4e5336fcc3665880599c5dd08d4523aba86028503087c9b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:63-82 | examples/research_projects/ip_adapter/tutorial_train_plus.py:63-82 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:100-120 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_plus.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 438 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b73a1b5d99a4fc99dce6185d890135a5cc8ca0c4ad1893d36b3f157d884470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1044-1064 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:859-879 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 148 separate duplicated blocks between them, totalling at least 2602 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2e7a5e0dc909706a84f4b3dc66bad7e681e6ca996d4e887809466789061a3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:156-189 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:187-220 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:156\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e2b7aeb6437e20a7339be39750d9c27256986a55fcc0f2396a56ec5238d342"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:801-821 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:966-986 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0337ca99d0f7c2599f8869a60888047661ec35636a841f85f58a3e47d63fb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1553-1573 | examples/cogvideo/train_cogvideox_lora.py:1573-1593 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1553\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c88bafa8241a00d418c921fa4161503dfd284e5dd51ecb0a3ac7fe8e16dd3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/community/clip_guided_images_mixing_stable_diffusion.py:377-397 | examples/community/clip_guided_stable_diffusion_img2img.py:421-441 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py:377\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"97905a3311965c5ef591783ae2272767138e6200710f4f96d3c69d5a18b45b4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/community/clip_guided_stable_diffusion.py:70-90 | examples/community/clip_guided_stable_diffusion_img2img.py:144-164 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 311 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afa32b36ae32954b104435aa23f5efce7950ca64db8f9c4c1669187583058e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/community/latent_consistency_img2img.py:294-314 | examples/community/latent_consistency_txt2img.py:220-240 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c68dd4376b081894da6e8c8b133580e378c6ebcaaff6c61f93c39d8bd7259f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/community/latent_consistency_interpolate.py:814-834 | examples/community/latent_consistency_interpolate.py:848-868 \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 \u0060examples/community/latent_consistency_interpolate.py:814\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fa148c1230e7834842c564de0b1fb178c347c4ed8765be6e82609409aeabf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/community/lpw_stable_diffusion.py:118-138 | examples/community/lpw_stable_diffusion_xl.py:133-153 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f7677aaea66d9ad5997cd221b58a2a21135f9e6df85c9029d2ff9e54e3b69b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 2): examples/community/pipeline_animatediff_img2video.py:75-92 | examples/community/pipeline_animatediff_img2video.py:113-133 \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":"examples/community/pipeline_animatediff_img2video.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ad6c489d0793ad717341ca6b934d42bc629155122dbd9e37977f55df2b7eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/community/pipeline_controlnet_xl_kolors_img2img.py:791-811 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:867-887 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 119 separate duplicated blocks between them, totalling at least 2012 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors_img2img.py"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9389ab9ee282df44aa6f183cf3edc32fac547ce2ece7f42f3fd9ed716b78444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1150-1170 | examples/community/stable_diffusion_ipex.py:681-701 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 and \u0060examples/community/stable_diffusion_ipex.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_ipex.py:681\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bc8199d82686848a645bc1e184efe224e7b3a163b1d90ee201599e7d3d7d08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/community/rerender_a_video.py:757-777 | examples/community/stable_diffusion_controlnet_reference.py:267-287 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/stable_diffusion_controlnet_reference.py:262\u0060 calls \u0060is_compiled_module\u0060 and \u0060examples/community/rerender_a_video.py:752\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/rerender_a_video.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d63e0600dfe832925682008edc6636c788feb272e767a10be9e48813200b46e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1029-1049 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1044-1064 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1043\u0060 calls \u0060to\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1028\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa07b9299eefdf5f763c119c4bc0fac87256f2708ed44c2b4d1676f4cf892aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): examples/controlnet/train_controlnet.py:869-889 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:707-726 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py\u0060 as WHOLE FILES: this scan already matched 84 separate duplicated blocks between them, totalling at least 1317 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:707\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, \u0060examples/controlnet/train_controlnet.py:868\u0060 calls \u0060enable_xformers_memory_efficient_attention\u0060 and \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:707\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c42bb6d61591361379c350c872d0b99ea50f4283a0e44dfda00520324ea01d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/controlnet/train_controlnet_sd3.py:822-842 | examples/dreambooth/train_dreambooth_sd3.py:875-895 \u2014 \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.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 76 separate duplicated blocks between them, totalling at least 1141 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":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"76bda0dc433295d3249100caad8f78e30465af425a193acee6988125a0d023fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora.py:1394-1414 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1937-1957 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1367 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1937\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4224faa36c8ae369919425f2df1023997831210b4e42a24a36c926eb9c2ea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:293-313 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:314-334 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bae571e5e95eb132120e9cdda3f0e88b9c0d0b1193ee1857bf128a83514bed1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_lumina2.py:953-973 | examples/dreambooth/train_dreambooth_lora_sana.py:966-986 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sana.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_lumina2.py"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c679a71bbad63e2be0a4b4e4f6258d93815109a3d8599b59c527b496b122fce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_qwenimage21.py:743-763 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:778-798 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py\u0060 as WHOLE FILES: this scan already matched 211 separate duplicated blocks between them, totalling at least 4020 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwenimage21.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b1ca85c887a3f8c61c70004768ac8cd3d2549063adff30bdfafa33a744035f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1041-1061 | examples/unconditional_image_generation/train_unconditional.py:455-474 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1041\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c138546bb32f1eb022120d03b46e237567bce54d8cf3b70affeebd1d5796db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:423-443 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:440-460 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 111 separate duplicated blocks between them, totalling at least 1755 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:423\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":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"064c871184ce5316faa816bbb4f6af4b0aed220a1c4d356e570073bac30de6b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:932-952 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1087-1106 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:932\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66b053fe756304b1dbe03c9d975cdaec1a8e40929d94b41991a97d01257a25a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:682-708 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:789-815 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1942 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:682\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"f725db4b6c5a67e8fd965d90c67be4df29f6f3035957d433008e881d2ed6e83f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:639-659 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:674-694 \u2014 \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py\u0060 and \u0060examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.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 98 separate duplicated blocks between them, totalling at least 1512 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":"examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"3783a853e50f262ce1d8664492baf6e2ec3ac050451d68490a020f05abe8c915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:99-118 | examples/text_to_image/train_text_to_image_flax.py:122-142 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 286 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:99\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":"examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"594151cdb21d8918fd7c80907b2598bf791551f15234a1a7e69c74a2d460e54d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/research_projects/lora/train_text_to_image_lora.py:550-570 | examples/textual_inversion/textual_inversion_sdxl.py:740-760 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/textual_inversion/textual_inversion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 566 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lora/train_text_to_image_lora.py:550\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"78df851f775f9b41b06949be2dd6ed1840b346bee5847c5340440b9010079cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:879-899 | examples/textual_inversion/textual_inversion.py:904-924 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1688 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"230f0fec25e88b8fbb0c19dbc5fe0ade0a53a8d4031f2697af6222009ff6d0b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/research_projects/sana/train_sana_sprint_diffusers.py:1482-1502 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1556-1576 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/sana/train_sana_sprint_diffusers.py"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6ad9a1648b1979702851d7b2b40343359e919f64d986d999bd22b1620d6075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:868-888 | examples/text_to_image/train_text_to_image_lora.py:921-941 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 135 separate duplicated blocks between them, totalling at least 2248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9bde0534f5862882b41eb975df1235d21e74ec2dd84046e208a5c635f1c69e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): scripts/convert_i2vgen_to_diffusers.py:56-76 | scripts/convert_ms_text_to_video_to_diffusers.py:52-72 \u2014 before extracting anything, compare \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 and \u0060scripts/convert_ms_text_to_video_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_i2vgen_to_diffusers.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a960faa2f9f7f8ae6d52c310998b6133208705ed8dc0af6adf2452dbe595371"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): scripts/convert_kandinsky_to_diffusers.py:952-972 | scripts/convert_vq_diffusion_to_diffusers.py:204-224 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_kandinsky_to_diffusers.py:952\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/convert_kandinsky_to_diffusers.py"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8235e35e7bfa1440cf1c03b862dc9181ffbbbbe34157ff54c85e0416885b8df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 54): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:312-330 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:260-278 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:351-369 | examples/amused/train_amused.py:61-79 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:78-96 | examples/cogvideo/train_cogvideox_lora.py:69-87 | examples/custom_diffusion/train_custom_diffusion.py:334-352 | examples/dreambooth/train_dreambooth.py:239-257 | examples/dreambooth/train_dreambooth_flax.py:59-77 | examples/dreambooth/train_dreambooth_flax.py:79-97 | examples/dreambooth/train_dreambooth_flux.py:246-264 | examples/dreambooth/train_dreambooth_lora.py:225-243 | examples/dreambooth/train_dreambooth_lora_flux.py:266-284 | examples/dreambooth/train_dreambooth_lora_hidream.py:292-310 | examples/dreambooth/train_dreambooth_lora_krea2.py:357-375 | examples/dreambooth/train_dreambooth_lora_lumina2.py:205-223 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:260-278 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:279-297 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:283-301 | examples/dreambooth/train_dreambooth_lora_sana.py:225-243 | examples/dreambooth/train_dreambooth_lora_sd3.py:256-274 | examples/dreambooth/train_dreambooth_lora_sdxl.py:276-294 | examples/dreambooth/train_dreambooth_sd3.py:232-250 | examples/instruct_pix2pix/train_instruct_pix2pix.py:120-138 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:60-78 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:102-120 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:98-116 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:160-178 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:171-189 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:85-100 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:69-84 | examples/research_projects/lpl/train_sdxl_lpl.py:215-233 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:186-204 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:187-202 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:199-214 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:252-270 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:246-264 | examples/research_projects/realfill/train_realfill.py:175-193 | examples/research_projects/sana/train_sana_sprint_diffusers.py:319-338 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:239-257 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:216-234 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:273-291 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:204-222 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:108-126 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:152-170 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:145-163 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:194-212 | examples/text_to_image/train_text_to_image.py:210-228 | examples/text_to_image/train_text_to_image_flax.py:64-82 | examples/text_to_image/train_text_to_image_lora.py:159-177 | examples/text_to_image/train_text_to_image_lora_sdxl.py:199-217 | examples/text_to_image/train_text_to_image_sdxl.py:149-167 | examples/textual_inversion/textual_inversion.py:214-232 | examples/textual_inversion/textual_inversion_sdxl.py:218-233 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:312\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd0ebda655de46b9c980aad583d22d7a5f86757d23e531bb00b28e68c3022c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 42): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:478-496 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:402-420 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:499-517 | examples/dreambooth/train_dreambooth.py:302-320 | examples/dreambooth/train_dreambooth_flux.py:370-388 | examples/dreambooth/train_dreambooth_lora.py:309-327 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:496-514 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:496-513 | examples/dreambooth/train_dreambooth_lora_flux.py:404-422 | examples/dreambooth/train_dreambooth_lora_flux2.py:427-445 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:412-429 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:427-445 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:413-430 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:543-561 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:544-561 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:429-447 | examples/dreambooth/train_dreambooth_lora_hidream.py:440-458 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:508-526 | examples/dreambooth/train_dreambooth_lora_krea2.py:513-531 | examples/dreambooth/train_dreambooth_lora_lumina2.py:350-368 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:413-431 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:432-450 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:448-466 | examples/dreambooth/train_dreambooth_lora_sana.py:368-386 | examples/dreambooth/train_dreambooth_lora_sd3.py:389-407 | examples/dreambooth/train_dreambooth_lora_z_image.py:421-439 | examples/dreambooth/train_dreambooth_sd3.py:356-374 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:117-135 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:138-156 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:134-152 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:202-221 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:115-131 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:243-261 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:53-69 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:217-233 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:229-245 | examples/research_projects/realfill/train_realfill.py:211-228 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:302-320 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:300-318 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:266-284 | examples/textual_inversion/textual_inversion.py:250-266 | examples/textual_inversion/textual_inversion_sdxl.py:248-264 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:478\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:134\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/realfill/train_realfill.py:229\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bfec549f108b44e10a97fc5b3e5a161559cf5466bf6254e8ce6e0da58bf062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 38): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306-323 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:70-89 | examples/cogvideo/train_cogvideox_lora.py:61-80 | examples/custom_diffusion/train_custom_diffusion.py:328-345 | examples/dreambooth/train_dreambooth.py:233-250 | examples/dreambooth/train_dreambooth_flux.py:240-257 | examples/dreambooth/train_dreambooth_lora.py:219-236 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:328-345 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:349-366 | examples/dreambooth/train_dreambooth_lora_flux.py:260-277 | examples/dreambooth/train_dreambooth_lora_flux2.py:253-270 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:254-271 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:253-270 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:255-272 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:366-383 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:373-390 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:267-284 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:312-329 | examples/dreambooth/train_dreambooth_lora_lumina2.py:199-216 | examples/dreambooth/train_dreambooth_lora_sana.py:219-236 | examples/dreambooth/train_dreambooth_lora_sd3.py:250-267 | examples/dreambooth/train_dreambooth_lora_z_image.py:253-270 | examples/dreambooth/train_dreambooth_sd3.py:226-243 | examples/instruct_pix2pix/train_instruct_pix2pix.py:114-131 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:54-71 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:155-172 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:165-182 | examples/research_projects/lora/train_text_to_image_lora.py:87-104 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:180-197 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:246-263 | examples/research_projects/realfill/train_realfill.py:169-186 | examples/research_projects/sana/train_sana_sprint_diffusers.py:313-330 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:233-250 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:210-227 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:102-119 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:188-205 | examples/text_to_image/train_text_to_image_flax.py:58-75 | examples/text_to_image/train_text_to_image_lora.py:153-170 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 788 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:306\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"3885d3a7f9a409eb3a74596376d9f28eb8488a719c479965ec5ca7f565be5c6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 37): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:631-649 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:519-538 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:628-647 | examples/dreambooth/train_dreambooth_flux.py:491-509 | examples/dreambooth/train_dreambooth_lora.py:411-428 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:629-647 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:626-644 | examples/dreambooth/train_dreambooth_lora_flux.py:525-543 | examples/dreambooth/train_dreambooth_lora_flux2.py:563-581 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:541-559 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:573-591 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:542-560 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:676-694 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:663-681 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:570-588 | examples/dreambooth/train_dreambooth_lora_hidream.py:542-560 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:634-652 | examples/dreambooth/train_dreambooth_lora_krea2.py:648-666 | examples/dreambooth/train_dreambooth_lora_lumina2.py:452-470 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:545-563 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:564-582 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:580-598 | examples/dreambooth/train_dreambooth_lora_sana.py:470-488 | examples/dreambooth/train_dreambooth_lora_sd3.py:504-522 | examples/dreambooth/train_dreambooth_lora_sdxl.py:527-546 | examples/dreambooth/train_dreambooth_lora_z_image.py:557-575 | examples/dreambooth/train_dreambooth_sd3.py:470-488 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:334-351 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:353-370 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:351-368 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:335-352 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:313-331 | examples/research_projects/gligen/train_gligen_text.py:198-214 | examples/research_projects/sana/train_sana_sprint_diffusers.py:504-521 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:402-419 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:524-543 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:366-384 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:631\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora.py:428\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/gligen/train_gligen_text.py:214\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df44a3bd7b04c29c6f3677aaa987fe6f2d0e2c82c141b6d95989776a6636b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 32): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:313-332 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:261-280 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:352-371 | examples/dreambooth/train_dreambooth_flux.py:247-266 | examples/dreambooth/train_dreambooth_lora_flux.py:267-286 | examples/dreambooth/train_dreambooth_lora_hidream.py:293-312 | examples/dreambooth/train_dreambooth_lora_krea2.py:358-377 | examples/dreambooth/train_dreambooth_lora_lumina2.py:206-225 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:261-280 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:280-299 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:284-303 | examples/dreambooth/train_dreambooth_lora_sana.py:226-245 | examples/dreambooth/train_dreambooth_lora_sd3.py:257-276 | examples/dreambooth/train_dreambooth_lora_sdxl.py:277-296 | examples/dreambooth/train_dreambooth_sd3.py:233-252 | examples/instruct_pix2pix/train_instruct_pix2pix.py:121-140 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:167-186 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:161-178 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:172-191 | examples/research_projects/lpl/train_sdxl_lpl.py:216-235 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:247-266 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:274-293 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:205-224 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:109-128 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:153-172 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:146-165 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:195-212 | examples/text_to_image/train_text_to_image.py:211-230 | examples/text_to_image/train_text_to_image_flax.py:65-84 | examples/text_to_image/train_text_to_image_lora.py:160-179 | examples/text_to_image/train_text_to_image_lora_sdxl.py:200-219 | examples/text_to_image/train_text_to_image_sdxl.py:150-169 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:313\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ba97599b80834ec4eac440c5788b362ba13fd615af4dba8efefd38476c9a66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 29): examples/cogview4-control/train_control_cogview4.py:873-888 | examples/controlnet/train_controlnet.py:885-904 | examples/controlnet/train_controlnet_flux.py:1019-1038 | examples/controlnet/train_controlnet_sd3.py:1101-1120 | examples/controlnet/train_controlnet_sdxl.py:1013-1032 | examples/dreambooth/train_dreambooth.py:1019-1038 | examples/flux-control/train_control_flux.py:863-878 | examples/flux-control/train_control_lora_flux.py:1007-1022 | examples/instruct_pix2pix/train_instruct_pix2pix.py:581-596 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:636-651 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:726-741 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1082-1101 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:633-648 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:729-744 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:704-719 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:672-687 | examples/research_projects/lora/train_text_to_image_lora.py:558-573 | examples/research_projects/lpl/train_sdxl_lpl.py:912-927 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:921-936 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:569-584 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1062-1081 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:696-711 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:561-576 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:809-824 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:962-981 | examples/text_to_image/train_text_to_image.py:694-709 | examples/text_to_image/train_text_to_image_lora.py:570-585 | examples/text_to_image/train_text_to_image_sdxl.py:796-811 | examples/textual_inversion/textual_inversion_sdxl.py:748-763 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:885\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, \u0060examples/cogview4-control/train_control_cogview4.py:869\u0060 calls \u0060enable_gradient_checkpointing\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:629\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f5e11008b7e15c4b3d8a6123dc15ee0429d5014d732960d6fb9a95e8c75434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 22): examples/cogview4-control/train_control_cogview4.py:316-335 | examples/flux-control/train_control_flux.py:308-327 | examples/instruct_pix2pix/train_instruct_pix2pix.py:256-275 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:313-332 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:280-299 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:184-203 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:176-195 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:172-191 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:307-326 | examples/research_projects/lora/train_text_to_image_lora.py:246-265 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:244-263 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:232-251 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:256-275 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:390-409 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:314-333 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:229-248 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:291-310 | examples/text_to_image/train_text_to_image.py:320-339 | examples/text_to_image/train_text_to_image_lora.py:280-299 | examples/textual_inversion/textual_inversion.py:277-296 | examples/textual_inversion/textual_inversion_sdxl.py:275-294 | examples/vqgan/train_vqgan.py:364-383 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:316\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfe369ef93f008ee92121befc1210ebb29898fa9d89eb01ee6b4da6de2b5aec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 20): examples/instruct_pix2pix/train_instruct_pix2pix.py:367-384 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:424-441 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:382-399 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:279-296 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:286-303 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:386-403 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:418-435 | examples/research_projects/lora/train_text_to_image_lora.py:340-359 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:356-375 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:344-363 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:378-397 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:432-449 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:336-353 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:388-405 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:386-403 | examples/text_to_image/train_text_to_image.py:454-471 | examples/text_to_image/train_text_to_image_lora.py:387-404 | examples/textual_inversion/textual_inversion.py:405-422 | examples/textual_inversion/textual_inversion_sdxl.py:396-413 | examples/vqgan/train_vqgan.py:490-507 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:367\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"13470d04cd33cec49e7dae1a8a8af1c809e2e521c2d9a925e1d71fc89cd593bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 18): examples/cogview4-control/train_control_cogview4.py:882-901 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1095-1114 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1110-1129 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1051-1070 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1111-1130 | examples/flux-control/train_control_flux.py:872-891 | examples/instruct_pix2pix/train_instruct_pix2pix.py:590-608 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:645-663 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:591-609 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:441-459 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:435-453 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:579-596 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:559-577 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:578-596 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1194-1213 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:705-723 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:581-598 | examples/text_to_image/train_text_to_image.py:703-721 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 18 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 18 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1092\u0060 calls \u0060enable_gradient_checkpointing\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:439\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f5f04eb9a09c1d69c4179137147790af381f30d83d78e2fe2934990e611429"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 14): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1539-1558 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1428-1447 | examples/dreambooth/train_dreambooth_lora_flux2.py:1492-1511 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1442-1461 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1495-1514 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1436-1455 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1584-1603 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1534-1553 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1694-1713 | examples/dreambooth/train_dreambooth_lora_krea2.py:1547-1566 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1454-1473 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1496-1515 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1587-1606 | examples/dreambooth/train_dreambooth_lora_z_image.py:1474-1493 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1539\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1b9a512bc75b52586998e2a17ac2d593b61dce25332254b9a2cfaf7c1bca55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 13): examples/controlnet/train_controlnet_sdxl.py:886-905 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1095-1114 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:766-781 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:563-582 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:553-572 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:660-679 | examples/research_projects/lpl/train_sdxl_lpl.py:780-799 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1155-1174 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:591-610 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:683-702 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:837-856 | examples/text_to_image/train_text_to_image_lora_sdxl.py:610-629 | examples/text_to_image/train_text_to_image_sdxl.py:664-683 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 830 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sdxl.py"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae267b42d2564d9840eeab80663b2db47d2389f40f22bedbd45b15a20b9c6e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 11): examples/dreambooth/train_dreambooth_lora_hidream.py:1479-1498 | examples/dreambooth/train_dreambooth_lora_krea2.py:1713-1732 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1274-1293 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1613-1632 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1665-1684 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1758-1777 | examples/dreambooth/train_dreambooth_lora_sana.py:1296-1315 | examples/dreambooth/train_dreambooth_lora_sd3.py:1645-1664 | examples/dreambooth/train_dreambooth_sd3.py:1466-1485 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:949-968 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:882-901 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1479\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97712799dfa6c62898eff500b4ada53595f94373c0d5a6d8437464a1b45dd17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 10): examples/cogview4-control/train_control_cogview4.py:574-593 | examples/controlnet/train_controlnet.py:573-592 | examples/controlnet/train_controlnet_flax.py:477-496 | examples/controlnet/train_controlnet_flux.py:664-683 | examples/controlnet/train_controlnet_sd3.py:653-672 | examples/controlnet/train_controlnet_sdxl.py:627-646 | examples/flux-control/train_control_flux.py:566-585 | examples/flux-control/train_control_lora_flux.py:594-613 | examples/research_projects/controlnet/train_controlnet_webdataset.py:829-848 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:593-612 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cogview4-control/train_control_cogview4.py:569\u0060 calls \u0060ValueError\u0060 and \u0060examples/controlnet/train_controlnet.py:570\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"90048bc45f3ba28d08b945e18548212bc95276c37fed1aab34ef5e58821e41e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 8): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:523-545 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:325-347 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:497-519 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:501-523 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:520-542 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:260-279 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:587-609 | examples/vqgan/train_vqgan.py:394-413 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:523\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:521\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:260\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9702df10b408f3f79f4418b588f4da5c2376a22d8dacb2c04e4e609be53d8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 8): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1657-1676 | examples/dreambooth/train_dreambooth_lora_flux2.py:1645-1664 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1605-1624 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1731-1750 | examples/dreambooth/train_dreambooth_lora_krea2.py:1636-1655 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1536-1555 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1583-1602 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1683-1702 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0874e20f373d76043bbb9fda1cab8677dc2388a11a3a9e789361639456cae6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 8): examples/instruct_pix2pix/train_instruct_pix2pix.py:386-403 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:443-460 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:263-282 | examples/research_projects/lora/train_text_to_image_lora.py:361-380 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:377-396 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:399-418 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:252-271 | examples/textual_inversion/textual_inversion_sdxl.py:415-432 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:386\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"3363ae8a1b8b4b525f34ec7e5ac985ca93a9d5969ad23c0145042385d0f5e5bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:804-822 | examples/dreambooth/train_dreambooth_lora_flux2.py:746-764 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:751-769 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:851-869 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:828-846 | examples/dreambooth/train_dreambooth_lora_krea2.py:812-831 | examples/dreambooth/train_dreambooth_lora_z_image.py:735-753 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:800\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:809\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"f607606ec2d73f829cedb0c09dc1baa03869d81f1547e997c060e8d7f34017f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_hidream.py:274-293 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:242-261 | examples/instruct_pix2pix/train_instruct_pix2pix.py:165-184 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:211-230 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:216-235 | examples/vqgan/train_vqgan.py:236-255 | scripts/convert_pan2_to_diffusers.py:219-238 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 182 separate duplicated blocks between them, totalling at least 3091 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:274\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21e6684b877992bacff9f33a6946fa5a7328539a5086c1ff4e74ddf711e1be3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 7): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:165-184 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:168-187 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:96-115 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:170-189 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:172-191 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:170-189 | examples/text_to_image/train_text_to_image.py:176-195 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00f6ab5b42fa9370c9ab8cf2c5b8e3e91753b401fa8ea0c9685d07067db6792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 7): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:222-241 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:223-242 | examples/research_projects/lora/train_text_to_image_lora.py:283-302 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:434-453 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:273-292 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:325-344 | examples/text_to_image/train_text_to_image_lora.py:324-343 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0b2465239ce96b690bffb746d299995e50c23ab2c1a0bdddf78f6b26d35eeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): examples/community/img2img_inpainting.py:110-129 | examples/community/interpolate_stable_diffusion.py:101-120 | examples/community/multilingual_stable_diffusion.py:113-132 | examples/community/text_inpainting.py:100-119 | examples/community/wildcard_stable_diffusion.py:135-154 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/interpolate_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/img2img_inpainting.py:110\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":"examples/community/img2img_inpainting.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"306e3da3568db3e2a2fe17e249df6f52f44d276aed968f5ab2b94eacba4d8671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): examples/research_projects/lora/train_text_to_image_lora.py:545-564 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:649-668 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:691-710 | examples/textual_inversion/textual_inversion.py:719-738 | examples/textual_inversion/textual_inversion_sdxl.py:735-754 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 822 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"341afd2e79493efd346760405dd7df3b8ff6b2984449165d6818ce5a4455f5f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): examples/research_projects/lpl/train_sdxl_lpl.py:948-967 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:841-860 | examples/text_to_image/train_text_to_image_flax.py:300-319 | examples/text_to_image/train_text_to_image_lora_sdxl.py:867-886 | examples/text_to_image/train_text_to_image_sdxl.py:832-851 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 2028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e8a77b13acc7f6a7a6d84025b78c8d5949b8c5e23e9df366a3c28ece02defa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1262-1281 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1559-1578 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1184-1203 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1238-1257 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1558\u0060 calls \u0060to\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1260\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a3f2566b141db55db2665714607a72f9c84aed89e4d3add2d5bb243c52327b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): examples/cogview4-control/train_control_cogview4.py:1213-1232 | examples/controlnet/train_controlnet_sd3.py:1441-1460 | examples/flux-control/train_control_flux.py:1220-1239 | examples/flux-control/train_control_lora_flux.py:1377-1396 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:1213\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e18ebe6c294fb0f7d632150c947c89b999fc2f559048678aa2d752060ef829e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:1434-1451 | examples/dreambooth/train_dreambooth_lora.py:1446-1465 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1497-1514 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1481-1500 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora.py:1446\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af3c7391a86b5f86f8401ce39b7b2a46740c2ccfe4cf82e4f661ba877b583d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): examples/dreambooth/train_dreambooth_flux.py:1453-1472 | examples/dreambooth/train_dreambooth_lora_flux.py:1577-1596 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1844-1863 | examples/dreambooth/train_dreambooth_lora_sd3.py:1616-1635 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:1453\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab7d42b9be64cbe9ad447e3c8c2e16fbdb6df9c7051c9f9583a8ed7f469b272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_hidream.py:1774-1793 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1938-1957 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:2009-2028 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:2105-2124 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 182 separate duplicated blocks between them, totalling at least 3091 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff74a70bdf9259205964dc7ccf7138980d3e157a90265cf511ad40b33c383580"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1006-1025 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:847-866 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1168-1187 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1183-1202 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 117 separate duplicated blocks between them, totalling at least 1902 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1004\u0060 calls \u0060unet\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1166\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":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"158982309e3d4731bc2bd102f246edeb4dc616d9c9828b1a6d38f70251bfed5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1241-1260 | examples/dreambooth/train_dreambooth_lora_sdxl.py:904-923 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:903-922 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc0706678adc763a45990297e80911d55b5b1d16872552570a3de874362a0d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2407-2426 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1431-1450 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1979-1998 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 83 separate duplicated blocks between them, totalling at least 1232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2407\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"5542364656aa0897cfa47f0cf6e47e6079fd5b348083b5d4f9eb6e877b3d5cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/community/pipeline_controlnet_xl_kolors.py:1177-1196 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1375-1394 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1695-1714 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"743cdfca787f2575f599043974dc7939810c952e1f0f2dd23b980a5379ea0d94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 3): examples/community/rerender_a_video.py:863-878 | examples/community/rerender_a_video.py:1040-1059 | examples/community/stable_diffusion_controlnet_reference.py:744-759 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/rerender_a_video.py"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5883d29cde02b26211f208426faf26684126cfa853883521fb287bf131897d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:795-815 | examples/community/stable_diffusion_tensorrt_inpaint.py:799-819 | examples/community/stable_diffusion_tensorrt_txt2img.py:711-731 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6abda45352a5a5443d4d7fecb580fbeba7bb0d9408f5e9ec579760679c37dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:830-849 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:643-658 | examples/text_to_image/train_text_to_image_lora_sdxl.py:662-677 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 644 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:830\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e84b8d37904db0777a14aa0eafde05967a397b4744d71858168ea8f4f3a24f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1342-1361 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1247-1266 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1345-1364 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 as WHOLE FILES: this scan already matched 84 separate duplicated blocks between them, totalling at least 1608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1342\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15de6121283188e156f81e4c502cf8dce35eb76ea9db59bd1f9d4d409e2a5db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_qwen_image.py:1235-1254 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1277-1296 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1368-1387 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 215 separate duplicated blocks between them, totalling at least 3669 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py:1235\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwen_image.py"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfd777d822799192cf92044d89ce79baf7167fd280b7f7d5653da74e3845e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_sd3.py:674-693 | examples/dreambooth/train_dreambooth_sd3.py:606-625 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:466-485 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 188 separate duplicated blocks between them, totalling at least 3169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:674\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"58edb2482a92338b5e69d8ee52acbb5a7050561614d3959586f39233a58e1827"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:414-432 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:85-104 | examples/unconditional_image_generation/train_unconditional.py:103-122 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:414\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3792297e97ac26614f049d2d3fb597181048d063aa67ff4b3c098ae0cc9a443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:714-759 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:850-895 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:832-877 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"48bdaf750ce2269ba4f6458bb398a9b4438c660f7daca2227c8c742976e2e3c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:579-598 | examples/textual_inversion/textual_inversion.py:604-623 | examples/textual_inversion/textual_inversion_sdxl.py:603-622 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1688 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:579\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"86065d1dadca11afb722570e20cfbf0e60c1a765b80f0285db7bac12ea8acf57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:635-654 | examples/textual_inversion/textual_inversion.py:662-681 | examples/textual_inversion/textual_inversion_sdxl.py:662-681 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1688 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:635\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac24c6c48f8f3d00112f3fc62a3f9094e25b8b2e4b9f9390e0efc848e14ab21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): scripts/convert_original_audioldm2_to_diffusers.py:264-283 | scripts/convert_original_audioldm_to_diffusers.py:272-291 | scripts/convert_original_musicldm_to_diffusers.py:269-288 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa19f4d46ad997ae4f5ec9ea78a3e789c0418710fca61f39ad250d95b63cf77d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): scripts/convert_original_audioldm2_to_diffusers.py:657-685 | scripts/convert_original_audioldm_to_diffusers.py:631-659 | scripts/convert_original_musicldm_to_diffusers.py:637-665 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa68f8ed504ffecf771a1a0a7169533f0695e739ab02d9f90a8c433cf49dfff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2305-2324 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2331-2350 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2331\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2305}}}],"partialFingerprints":{"codehealthFindingId/v1":"30642bf03966383712b6de8b979d71a7d44ada0c2d48a4f3a9e039ab898c186f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 2): examples/community/composable_stable_diffusion.py:214-275 | examples/community/sd_text2img_k_diffusion.py:165-226 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/sd_text2img_k_diffusion.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/composable_stable_diffusion.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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"055945756c42d2c938434901b9f23af992a655405cc2e3814dfd6a8fdcd97e7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/community/mixture_tiling.py:237-256 | examples/community/mixture_tiling_sdxl.py:985-1004 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"examples/community/mixture_tiling.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b224617f24ccf0dfc5d70078090f3de0669a3406538ef76eb9180cfbbf4c6e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): examples/community/pipeline_flux_differential_img2img.py:976-995 | examples/community/pipeline_z_image_differential_img2img.py:799-817 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d369722318508bb39498eaaff36b94ce46660a30fdbaed3a3c2e9910c447ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:472-491 | examples/community/pipeline_stable_diffusion_xl_instantid.py:472-491 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3ccf924ec848b26fc15a5c0a6b384a3dcbe57a49c2e0c161c2e39d0251b24d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:502-521 | examples/community/pipeline_stable_diffusion_xl_instantid.py:502-521 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"b899580d92c37a17558dfe48e2a2ee27824bcefa65965d9bb1ea13411a53b072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1433-1452 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1496-1515 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"405d51cc9055326713c5eaa0722d613d85a49566e522633910e0d1242219d044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:183-202 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:165-184 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 97 separate duplicated blocks between them, totalling at least 2013 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"142d251f2ed1896031c6d23520ee0242c4edfbcd8c22c2f9e82247e2700d7c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/controlnet/train_controlnet.py:942-961 | examples/research_projects/realfill/train_realfill.py:754-773 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/research_projects/realfill/train_realfill.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 773 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb6a0c85d473399185413a286fddcaca04037e8f8b9c13626fa11856ec2cc1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): examples/controlnet/train_controlnet.py:1168-1186 | examples/controlnet/train_controlnet_flux.py:1418-1437 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:1168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"1387346fcc47ed31a546d150edd190fb05d42c1bd83848504d0454213d17bb73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/dreambooth/train_dreambooth.py:1125-1144 | examples/dreambooth/train_dreambooth_lora.py:1152-1171 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:1125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"958fabbabc2a0d13405d9e7c21ad2d80bc69e50301ea829844ad69440b71e6fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1761-1780 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1595-1614 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85d66b9e9e14ab17cd73d605408293a5fc273d1ef54dd4debd8a82eadb65822"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:296-315 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:303-322 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d702956bc172a7ac21331bcf89f73d5fce023c954dc6c5e0c8942000ac75182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_hidream.py:1175-1194 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:720-739 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1665 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df901f7e534e1a31865e73e4bfe0ada23a0ce91d9b57c694829ef6598800c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_hidream.py:1704-1723 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1871-1890 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 182 separate duplicated blocks between them, totalling at least 3091 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1704\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"33296ac3e234d72869ff2e6d8b5d8925c936eb4885208710efd1667000111e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_lumina2.py:1502-1521 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1702-1720 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 and \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1415 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_lumina2.py"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1e86638ce8e079ca5ace63f1184a0a3439ea75c40a88b53a5f378241a1659f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:512-531 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:655-674 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:512\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"1136f68d5fdbb46019a0cb2c95c374c25b1051d42e46383a2393e8a7cc2a7e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:329-348 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:328-347 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6a4e46dc9bf28fd879a288d6b13a76e82e77c0b3856528309016d8f920f65b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:513-542 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:551-580 \u2014 \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py\u0060 and \u0060examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.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 98 separate duplicated blocks between them, totalling at least 1512 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0347b2eabf0476c8445601dbb1751d2e0505767eb14b8257c62432e76b5939"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:591-610 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:437-455 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:591\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"aced571eda7305446d4a242ca37ad6358be32cce08a8edded56f507d8292818f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:773-792 | examples/text_to_image/train_text_to_image_lora.py:854-873 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 135 separate duplicated blocks between them, totalling at least 2248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:773\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"e631f0e8c1064d382de04978b7d182153de5ab47e6633c831908c8cf4d5e05c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1360-1379 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1320-1337 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 169 separate duplicated blocks between them, totalling at least 3160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1360\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa18a55aae9238ce8927a638092f66924c434a9ad89533e88ea74828b461ce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): examples/text_to_image/train_text_to_image.py:499-518 | examples/text_to_image/train_text_to_image_lora.py:425-442 \u2014 before extracting anything, compare \u0060examples/text_to_image/train_text_to_image.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 116 separate duplicated blocks between them, totalling at least 1851 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/text_to_image/train_text_to_image.py:499\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/text_to_image/train_text_to_image.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc38ff6c671cf13ea024c076b997f8622838077f9103a34d9a87ce4f5f04a4d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): scripts/convert_wan_to_diffusers.py:1063-1101 | scripts/convert_wan_to_diffusers.py:1104-1142 \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 \u0060scripts/convert_wan_to_diffusers.py:1063\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/convert_wan_to_diffusers.py"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"4907b8852e72564585984b1071ff068fe53ad8202a95887cd83d7ec51df9ace5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 76): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:584-604 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:470-490 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:572-591 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:291-310 | examples/cogvideo/train_cogvideox_lora.py:282-301 | examples/cogview4-control/train_control_cogview4.py:317-336 | examples/controlnet/train_controlnet.py:344-363 | examples/controlnet/train_controlnet_flux.py:359-378 | examples/controlnet/train_controlnet_sdxl.py:386-405 | examples/cosmos/train_cosmos_predict25_lora.py:108-126 | examples/custom_diffusion/train_custom_diffusion.py:484-503 | examples/dreambooth/train_dreambooth.py:376-395 | examples/dreambooth/train_dreambooth_flux.py:443-463 | examples/dreambooth/train_dreambooth_lora.py:377-396 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:594-614 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:591-611 | examples/dreambooth/train_dreambooth_lora_flux.py:477-497 | examples/dreambooth/train_dreambooth_lora_flux2.py:515-535 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:499-519 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:525-545 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:500-520 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:641-661 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:628-648 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:522-542 | examples/dreambooth/train_dreambooth_lora_hidream.py:508-527 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:586-606 | examples/dreambooth/train_dreambooth_lora_lumina2.py:418-437 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:511-530 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:530-549 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:546-565 | examples/dreambooth/train_dreambooth_lora_sana.py:436-455 | examples/dreambooth/train_dreambooth_lora_sd3.py:463-483 | examples/dreambooth/train_dreambooth_lora_sdxl.py:478-498 | examples/dreambooth/train_dreambooth_lora_z_image.py:509-529 | examples/dreambooth/train_dreambooth_sd3.py:429-449 | examples/flux-control/train_control_flux.py:309-328 | examples/flux-control/train_control_lora_flux.py:342-360 | examples/instruct_pix2pix/train_instruct_pix2pix.py:257-276 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:314-333 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:281-300 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:185-204 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:231-250 | examples/research_projects/controlnet/train_controlnet_webdataset.py:585-604 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:311-330 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:295-314 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:177-196 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:173-192 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:271-291 | examples/research_projects/gligen/train_gligen_text.py:164-183 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:308-327 | examples/research_projects/lora/train_text_to_image_lora.py:247-266 | examples/research_projects/lpl/train_sdxl_lpl.py:371-390 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:311-330 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:245-264 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:233-252 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:257-276 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:391-410 | examples/research_projects/realfill/train_realfill.py:262-281 | examples/research_projects/sana/train_sana_sprint_diffusers.py:470-489 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:376-395 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:368-387 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:475-495 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:315-334 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:230-249 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:307-326 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:301-320 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:332-351 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:292-311 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:363-382 | examples/text_to_image/train_text_to_image.py:321-340 | examples/text_to_image/train_text_to_image_lora.py:281-300 | examples/text_to_image/train_text_to_image_lora_sdxl.py:354-373 | examples/text_to_image/train_text_to_image_sdxl.py:305-324 | examples/textual_inversion/textual_inversion.py:278-297 | examples/textual_inversion/textual_inversion_sdxl.py:276-295 | examples/vqgan/train_vqgan.py:365-384 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:584\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, \u0060examples/cosmos/train_cosmos_predict25_lora.py:107\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:584\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fa8553a257e3948026a1fa9436eed9f9a7cb223b8ac3722bd0e8122edd4dff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 55): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:307-324 | examples/amused/train_amused.py:56-73 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:73-90 | examples/cogvideo/train_cogvideox_lora.py:64-81 | examples/custom_diffusion/train_custom_diffusion.py:329-346 | examples/dreambooth/train_dreambooth.py:234-251 | examples/dreambooth/train_dreambooth.py:259-277 | examples/dreambooth/train_dreambooth_flax.py:73-91 | examples/dreambooth/train_dreambooth_flux.py:241-258 | examples/dreambooth/train_dreambooth_lora.py:220-237 | examples/dreambooth/train_dreambooth_lora.py:245-263 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:329-346 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:350-367 | examples/dreambooth/train_dreambooth_lora_flux.py:261-278 | examples/dreambooth/train_dreambooth_lora_flux2.py:254-271 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:255-272 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:254-271 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:256-273 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:367-384 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:374-391 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:313-330 | examples/dreambooth/train_dreambooth_lora_lumina2.py:200-217 | examples/dreambooth/train_dreambooth_lora_sana.py:220-237 | examples/dreambooth/train_dreambooth_lora_sd3.py:251-268 | examples/dreambooth/train_dreambooth_lora_z_image.py:254-271 | examples/dreambooth/train_dreambooth_sd3.py:227-244 | examples/instruct_pix2pix/train_instruct_pix2pix.py:115-132 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:55-72 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:156-173 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:96-114 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:92-110 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:166-183 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:79-97 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:63-81 | examples/research_projects/lora/train_text_to_image_lora.py:88-105 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:181-198 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:181-199 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:122-140 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:193-211 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:247-264 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:241-258 | examples/research_projects/realfill/train_realfill.py:170-187 | examples/research_projects/sana/train_sana_sprint_diffusers.py:314-331 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:234-251 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:259-277 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:211-228 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:236-254 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:198-216 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:103-120 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:189-206 | examples/text_to_image/train_text_to_image.py:204-222 | examples/text_to_image/train_text_to_image_flax.py:59-76 | examples/text_to_image/train_text_to_image_lora.py:154-171 | examples/textual_inversion/textual_inversion.py:208-226 | examples/textual_inversion/textual_inversion_sdxl.py:212-230 \u2014 there are 55 copies across 51 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 55 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:307\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:240\u0060 calls \u0060add_argument\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:114\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"84508a5236c056ad2a882d01e303b858b2b08048fc6c79918811d791806e3fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 52): examples/cogvideo/train_cogvideox_image_to_video_lora.py:297-316 | examples/cogvideo/train_cogvideox_lora.py:288-307 | examples/cogview4-control/train_control_cogview4.py:323-342 | examples/controlnet/train_controlnet.py:350-369 | examples/controlnet/train_controlnet_flux.py:365-384 | examples/controlnet/train_controlnet_sd3.py:396-415 | examples/controlnet/train_controlnet_sdxl.py:392-411 | examples/custom_diffusion/train_custom_diffusion.py:490-509 | examples/dreambooth/train_dreambooth.py:382-401 | examples/dreambooth/train_dreambooth_lora.py:383-402 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:600-620 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:597-617 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:647-667 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:634-654 | examples/dreambooth/train_dreambooth_lora_hidream.py:514-533 | examples/dreambooth/train_dreambooth_lora_lumina2.py:424-443 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:517-536 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:536-555 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:552-571 | examples/dreambooth/train_dreambooth_lora_sana.py:442-461 | examples/flux-control/train_control_flux.py:315-334 | examples/flux-control/train_control_lora_flux.py:347-366 | examples/instruct_pix2pix/train_instruct_pix2pix.py:263-282 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:320-339 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:163-181 | examples/research_projects/controlnet/train_controlnet_webdataset.py:591-610 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:183-202 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:179-198 | examples/research_projects/gligen/train_gligen_text.py:170-189 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:314-333 | examples/research_projects/lora/train_text_to_image_lora.py:253-272 | examples/research_projects/lpl/train_sdxl_lpl.py:377-396 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:317-336 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:251-270 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:239-258 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:263-282 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:397-416 | examples/research_projects/sana/train_sana_sprint_diffusers.py:476-495 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:382-401 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:374-393 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:321-340 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:236-255 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:313-332 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:307-326 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:338-357 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:369-388 | examples/text_to_image/train_text_to_image.py:327-346 | examples/text_to_image/train_text_to_image_lora.py:287-306 | examples/text_to_image/train_text_to_image_lora_sdxl.py:360-379 | examples/text_to_image/train_text_to_image_sdxl.py:311-330 | examples/textual_inversion/textual_inversion.py:284-303 | examples/textual_inversion/textual_inversion_sdxl.py:282-301 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:297\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, \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py:162\u0060 calls \u0060add_argument\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:297\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":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0095d2a5b3e38d3a17162fb5b336eff7fcba536707495d2b7daee0fa164a51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 42): examples/cogview4-control/train_control_cogview4.py:249-264 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:506-524 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:308-326 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:480-498 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:484-502 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:503-521 | examples/controlnet/train_controlnet.py:285-300 | examples/controlnet/train_controlnet_flux.py:288-303 | examples/controlnet/train_controlnet_sd3.py:326-341 | examples/controlnet/train_controlnet_sdxl.py:315-330 | examples/cosmos/train_cosmos_predict25_lora.py:82-96 | examples/flux-control/train_control_flux.py:244-259 | examples/flux-control/train_control_lora_flux.py:255-270 | examples/instruct_pix2pix/train_instruct_pix2pix.py:211-226 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:257-272 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:249-264 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:153-168 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:159-174 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:258-273 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:172-187 | examples/research_projects/controlnet/train_controlnet_webdataset.py:514-529 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:212-227 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:237-252 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:235-250 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:218-233 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:262-277 | examples/research_projects/lora/train_text_to_image_lora.py:163-178 | examples/research_projects/lpl/train_sdxl_lpl.py:300-315 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:187-202 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:359-374 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:269-284 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:184-199 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:231-246 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:230-245 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:268-283 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:260-275 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:283-298 | examples/text_to_image/train_text_to_image.py:275-290 | examples/text_to_image/train_text_to_image_lora.py:235-250 | examples/text_to_image/train_text_to_image_lora_sdxl.py:278-293 | examples/text_to_image/train_text_to_image_sdxl.py:234-249 | examples/vqgan/train_vqgan.py:319-334 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 42 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 42 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:249\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d97499b273d259cf8e87a845ad2cfff8a5bf1c66356f411ab02e91a067fa9bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 32): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:470-487 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:394-411 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:491-508 | examples/dreambooth/train_dreambooth.py:294-311 | examples/dreambooth/train_dreambooth_flax.py:107-122 | examples/dreambooth/train_dreambooth_flux.py:362-379 | examples/dreambooth/train_dreambooth_lora.py:301-318 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:488-505 | examples/dreambooth/train_dreambooth_lora_flux.py:396-413 | examples/dreambooth/train_dreambooth_lora_flux2.py:419-436 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:419-436 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:535-552 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:421-438 | examples/dreambooth/train_dreambooth_lora_hidream.py:432-449 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:500-517 | examples/dreambooth/train_dreambooth_lora_krea2.py:505-522 | examples/dreambooth/train_dreambooth_lora_lumina2.py:342-359 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:405-422 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:424-441 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:440-457 | examples/dreambooth/train_dreambooth_lora_sana.py:360-377 | examples/dreambooth/train_dreambooth_lora_sd3.py:381-398 | examples/dreambooth/train_dreambooth_lora_z_image.py:413-430 | examples/dreambooth/train_dreambooth_sd3.py:348-365 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:109-126 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:130-147 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:126-143 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:235-252 | examples/research_projects/realfill/train_realfill.py:202-220 | examples/research_projects/sana/train_sana_sprint_diffusers.py:375-391 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:294-311 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:292-309 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:470\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_flax.py:122\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:487\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e524a92a3f1c4fad05e58eee8f7c3da17d1edc67a1ceddf9548bafde923f25b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 32): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:378-396 | examples/controlnet/train_controlnet.py:469-487 | examples/controlnet/train_controlnet_sd3.py:537-555 | examples/controlnet/train_controlnet_sdxl.py:514-532 | examples/instruct_pix2pix/train_instruct_pix2pix.py:144-164 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:190-210 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:214-232 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:107-125 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:107-125 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:217-235 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:372-390 | examples/research_projects/controlnet/train_controlnet_webdataset.py:708-726 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:195-215 | examples/research_projects/lora/train_text_to_image_lora.py:111-129 | examples/research_projects/lpl/train_sdxl_lpl.py:239-257 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:146-164 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:72-92 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:283-301 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:228-246 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:132-150 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:176-194 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:169-187 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:227-245 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:219-237 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:486-504 | examples/text_to_image/train_text_to_image.py:234-252 | examples/text_to_image/train_text_to_image_flax.py:88-106 | examples/text_to_image/train_text_to_image_lora.py:183-201 | examples/text_to_image/train_text_to_image_lora_sdxl.py:223-241 | examples/text_to_image/train_text_to_image_sdxl.py:173-191 | examples/unconditional_image_generation/train_unconditional.py:90-110 | examples/vqgan/train_vqgan.py:284-302 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/controlnet/train_controlnet.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 526 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:378\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:95\u0060 calls \u0060add_argument\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:167\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80e09ffa027c862c115b4173a6789ba4ad308b7f53de4b6be400f8bdeafaff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 25): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:254-272 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:345-363 | examples/amused/train_amused.py:68-86 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:485-503 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:287-305 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:459-477 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:463-481 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:482-500 | examples/dreambooth/train_dreambooth_flax.py:53-71 | examples/dreambooth/train_dreambooth_lora_hidream.py:286-304 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:254-272 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:273-291 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:277-295 | examples/dreambooth/train_dreambooth_lora_sdxl.py:270-288 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:180-198 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:178-196 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:154-172 | examples/research_projects/lpl/train_sdxl_lpl.py:209-227 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:193-211 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:267-285 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:146-164 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:139-157 | examples/text_to_image/train_text_to_image_lora_sdxl.py:193-211 | examples/text_to_image/train_text_to_image_sdxl.py:143-161 | examples/vqgan/train_vqgan.py:260-278 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:254\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d2e988ce5357ae5a68c6a469d49ff57dd7fb18dc29cfde22b221c449d72b31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 20): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:437-457 | examples/controlnet/train_controlnet_flux.py:302-320 | examples/controlnet/train_controlnet_sdxl.py:329-347 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:457-476 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:472-491 | examples/dreambooth/train_dreambooth_lora_flux.py:365-384 | examples/dreambooth/train_dreambooth_lora_flux2.py:388-407 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:388-407 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:388-407 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:389-408 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:504-523 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:520-539 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:390-409 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:469-488 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:374-393 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:393-412 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:409-428 | examples/dreambooth/train_dreambooth_lora_sana.py:330-349 | examples/dreambooth/train_dreambooth_lora_z_image.py:382-401 | examples/research_projects/controlnet/train_controlnet_webdataset.py:528-546 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:437\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, \u0060examples/controlnet/train_controlnet_flux.py:301\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:437\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"067f1d122cbd160c9977155b237f15df73ec4adba71980cf39fb826a8d35adc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 19): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:985-1002 | examples/instruct_pix2pix/train_instruct_pix2pix.py:621-639 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:676-694 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:466-484 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:609-627 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:713-731 | examples/research_projects/lora/train_text_to_image_lora.py:613-631 | examples/research_projects/lpl/train_sdxl_lpl.py:952-970 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:611-629 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:737-755 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:602-620 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:845-863 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:851-869 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:628-646 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:611-629 | examples/text_to_image/train_text_to_image.py:735-753 | examples/text_to_image/train_text_to_image_lora.py:611-629 | examples/text_to_image/train_text_to_image_lora_sdxl.py:871-889 | examples/text_to_image/train_text_to_image_sdxl.py:836-854 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 496 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:985\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"3320c204c51f166bdf94193af0367e9ee4e063fed6f58ff6e1b4da3ddb8ee90f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 18): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1966-1980 | examples/dreambooth/train_dreambooth.py:1115-1133 | examples/dreambooth/train_dreambooth_flux.py:1446-1460 | examples/dreambooth/train_dreambooth_lora.py:1142-1160 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1732-1746 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1566-1580 | examples/dreambooth/train_dreambooth_lora_flux.py:1570-1584 | examples/dreambooth/train_dreambooth_lora_flux2.py:1715-1729 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1618-1632 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1672-1686 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1566-1580 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1815-1829 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1701-1715 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1837-1851 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1808-1822 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1542-1556 | examples/dreambooth/train_dreambooth_lora_z_image.py:1600-1614 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:684-702 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1966\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1831\u0060 calls \u0060cpu\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1960\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"71577f498e43d6a98914c0ccae2ea7ea2fb44b3d952f38ba85f4797c2b7c2017"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 15): examples/controlnet/train_controlnet.py:299-317 | examples/controlnet/train_controlnet_flax.py:259-277 | examples/controlnet/train_controlnet_sd3.py:340-358 | examples/flux-control/train_control_flux.py:258-276 | examples/flux-control/train_control_lora_flux.py:269-287 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:263-281 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:167-185 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:173-191 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:272-290 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:186-204 | examples/research_projects/gligen/train_gligen_text.py:119-137 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:373-391 | examples/research_projects/realfill/train_realfill.py:219-237 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:282-300 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:274-292 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcff7f152c04035b6786430bd7aeb79b5df272af0a746c8a0407a0baf3d8ddba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 15): examples/instruct_pix2pix/train_instruct_pix2pix.py:279-296 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:336-353 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:297-315 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:201-219 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:202-220 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:301-319 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:330-347 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:255-273 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:413-431 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:337-355 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:252-270 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:329-347 | examples/text_to_image/train_text_to_image.py:343-361 | examples/text_to_image/train_text_to_image_lora.py:303-321 | examples/text_to_image/train_text_to_image_lora_sdxl.py:376-394 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:279\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"365baa362ef14069f993b1452e78fa37515a6e7dcce796d5a007d9957e6141b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 14): examples/dreambooth/train_dreambooth.py:258-276 | examples/dreambooth/train_dreambooth_flax.py:72-90 | examples/dreambooth/train_dreambooth_lora.py:244-262 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:73-91 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:95-113 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:91-109 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:78-96 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:62-80 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:180-198 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:192-210 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:258-276 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:235-253 | examples/textual_inversion/textual_inversion.py:207-225 | examples/textual_inversion/textual_inversion_sdxl.py:211-229 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 463 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:258\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0232d0bdb1ade4e3b7c5825129590927fb9ef1d18e0fb40cff11ce50d9c648"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 11): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:968-984 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:694-712 | examples/research_projects/lpl/train_sdxl_lpl.py:935-950 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:747-765 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:582-600 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:828-843 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:832-850 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:609-627 | examples/text_to_image/train_text_to_image_lora.py:591-609 | examples/text_to_image/train_text_to_image_lora_sdxl.py:854-869 | examples/text_to_image/train_text_to_image_sdxl.py:819-834 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 515 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:968\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:608\u0060 calls \u0060list\u0060, \u0060filter\u0060, \u0060parameters\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:691\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":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8920c0eb5c72bbdfed1db08bde70cc44610f1cfb688d172a179f175d9158bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 10): examples/controlnet/train_controlnet.py:893-911 | examples/controlnet/train_controlnet_flux.py:1027-1045 | examples/controlnet/train_controlnet_sd3.py:1109-1127 | examples/controlnet/train_controlnet_sdxl.py:1021-1039 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1090-1108 | examples/research_projects/lpl/train_sdxl_lpl.py:916-934 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:729-746 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:813-831 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:970-988 | examples/text_to_image/train_text_to_image_sdxl.py:800-818 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"67de7c6b00ed4aabb581718b6d161122cb29d78059a9e0ef7369f3d23d7a7362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 10): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1955-1973 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1769-1787 | examples/dreambooth/train_dreambooth_lora_flux2.py:1939-1957 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1832-1850 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1911-1929 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1782-1800 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2053-2071 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1923-1941 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:2030-2048 | examples/dreambooth/train_dreambooth_lora_z_image.py:1797-1815 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1955}}}],"partialFingerprints":{"codehealthFindingId/v1":"0262e90bada4a8ca372dc8ef68884671e5b59ef3081345e808f451ef72358516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 10): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:221-240 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:222-241 | examples/research_projects/lora/train_text_to_image_lora.py:282-301 | examples/research_projects/lpl/train_sdxl_lpl.py:462-480 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:433-452 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:272-291 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:392-410 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:324-343 | examples/text_to_image/train_text_to_image_lora.py:323-342 | examples/text_to_image/train_text_to_image_sdxl.py:396-414 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:221\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/lpl/train_sdxl_lpl.py:480\u0060 calls \u0060add_argument\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:240\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"759df540b1ed45543506d7b10391f15d88997e4c7cfd192f6b968162cfa6c4b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 9): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:608-626 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:441-459 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:588-606 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:586-604 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:611-629 | examples/controlnet/train_controlnet_flux.py:316-330 | examples/controlnet/train_controlnet_sdxl.py:343-357 | examples/research_projects/controlnet/train_controlnet_webdataset.py:542-556 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:320-334 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:608\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea8621758b273deafd567d7136ea099a7853a2f0e3105787843e5c85319dc21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 8): examples/cogview4-control/train_control_cogview4.py:1217-1234 | examples/controlnet/train_controlnet.py:1171-1188 | examples/controlnet/train_controlnet_flux.py:1421-1439 | examples/controlnet/train_controlnet_sd3.py:1445-1462 | examples/controlnet/train_controlnet_sdxl.py:1357-1374 | examples/flux-control/train_control_flux.py:1224-1241 | examples/flux-control/train_control_lora_flux.py:1381-1398 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:1036-1053 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:1217\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace86adcc512b12a80b979fad12a60b5f6fe53ba25458ffd427e384b5e94789e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 8): examples/controlnet/train_controlnet.py:482-500 | examples/controlnet/train_controlnet_flax.py:386-404 | examples/controlnet/train_controlnet_sd3.py:550-568 | examples/controlnet/train_controlnet_sdxl.py:527-545 | examples/research_projects/controlnet/train_controlnet_webdataset.py:721-739 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:296-314 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:277-295 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:499-517 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:482\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa95613022533c701e2550182ac989f1e65e581d30513b92fdf066ab30375da1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 8): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:443-460 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:444-461 | examples/research_projects/lora/train_text_to_image_lora.py:395-413 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:551-568 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:414-432 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:566-583 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:446-462 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:444-460 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75b361f81ab209d671984c6427da0cfc79a7347b291408c8049664efce622e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1241-1259 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1130-1148 | examples/dreambooth/train_dreambooth_lora_flux2.py:1185-1202 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1135-1152 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1190-1207 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1131-1148 | examples/dreambooth/train_dreambooth_lora_z_image.py:1175-1192 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e77bcbeac602b9d839e41ecf7e8850623d65a6cf6409763060a0f122bd2b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1679-1697 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1729-1747 | examples/dreambooth/train_dreambooth_lora_flux.py:1363-1381 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1562-1580 | examples/dreambooth/train_dreambooth_lora_sd3.py:1392-1410 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1332-1350 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1679}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33f6fc986e9089fb73441fb757b3d9cf061466c190f16d4c837972f214e541e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): examples/cogvideo/train_cogvideox_image_to_video_lora.py:239-257 | examples/cogvideo/train_cogvideox_lora.py:230-248 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:240-258 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:252-270 | examples/textual_inversion/textual_inversion.py:273-291 | examples/textual_inversion/textual_inversion_sdxl.py:271-289 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:239\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:239\u0060 calls \u0060add_argument\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.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":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"035456cba0d6c54f5732fbfa94d76ca13871ddf63f390df9cc4b33f56f380d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): examples/community/lpw_stable_diffusion.py:1102-1188 | examples/community/lpw_stable_diffusion.py:1219-1302 | examples/community/lpw_stable_diffusion.py:1333-1423 | examples/community/lpw_stable_diffusion_xl.py:1989-2007 | examples/community/lpw_stable_diffusion_xl.py:2064-2082 | examples/community/lpw_stable_diffusion_xl.py:2143-2161 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/lpw_stable_diffusion.py:1102\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29d8e66011d68bb1e90d0fc4cc402d0ba49fc12c42fd7c3d03a1c1c720ecae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:683-701 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:846-864 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:856-874 | examples/controlnet/train_controlnet_sdxl.py:736-754 | examples/research_projects/controlnet/train_controlnet_webdataset.py:873-891 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:701-719 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 84 separate duplicated blocks between them, totalling at least 1625 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"e750c3f6269fff272f4e12a7ce63445fc84684ad95aafd37761913e5997cd338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): examples/controlnet/train_controlnet.py:149-167 | examples/controlnet/train_controlnet_flux.py:163-181 | examples/controlnet/train_controlnet_sdxl.py:172-190 | examples/research_projects/controlnet/train_controlnet_webdataset.py:378-396 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:160-178 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:138-156 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"282b1c2582bb2abcf10e200b123c37e2b7ca126b3ad30017de893469ec2e05c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 6): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:413-431 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:414-432 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:381-398 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:484-502 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:416-434 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:414-432 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:413\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, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:411\u0060 calls \u0060add_argument\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:413\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"9238fe93aba8891170cbc42aa1ac8ce8f4d3aab2a002e163bc3ba140f9ad7916"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 6): examples/research_projects/lpl/train_sdxl_lpl.py:517-535 | examples/research_projects/realfill/train_realfill.py:364-381 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:403-420 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:447-464 | examples/text_to_image/train_text_to_image_lora_sdxl.py:450-468 | examples/text_to_image/train_text_to_image_sdxl.py:451-469 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/realfill/train_realfill.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 578 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lpl/train_sdxl_lpl.py:517\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/lpl/train_sdxl_lpl.py:535\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:420\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":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4731a0c3ebf77f9df6688b42958319349f3b2817a783771f0bec1acd0bb45f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): examples/cogview4-control/train_control_cogview4.py:235-253 | examples/flux-control/train_control_flux.py:230-248 | examples/flux-control/train_control_lora_flux.py:241-259 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:158-176 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:176-194 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:235\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"34586a96bf0a5a58d6193489d2654bfe92e3aef89a0a8c98281d4562e696fbdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): examples/community/adaptive_mask_inpainting.py:568-586 | examples/community/instaflow_one_step.py:301-319 | examples/community/latent_consistency_img2img.py:125-143 | examples/community/latent_consistency_txt2img.py:123-141 | examples/community/pipeline_fabric.py:265-283 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/instaflow_one_step.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"d386702ae126b73b7be7c390b12a3f9b118714ba8d8d850ce657e7e786e44344"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): examples/community/lpw_stable_diffusion.py:1056-1074 | examples/community/stable_diffusion_controlnet_img2img.py:886-904 | examples/community/stable_diffusion_controlnet_inpaint.py:1039-1057 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:1016-1034 | examples/community/stable_diffusion_ipex.py:737-755 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 191 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"3821e0e6ed48069d6ea0f0c592d46cc64f7580a08a52475e329e70220e061e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:264-282 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:132-150 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:281-299 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:238-256 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:256-274 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:263\u0060 calls \u0060to\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:130\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"2716e89d861370c7d61dbdacd20cc8c11be5bfc92d4ea4033e009deb894980f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1201-1219 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:788-806 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:924-942 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:906-924 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:909-927 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 437 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dab912c87c469f298ff35f3f19569b7be2442c785fb507d0501552f4c04bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_hidream.py:1017-1034 | examples/dreambooth/train_dreambooth_lora_krea2.py:1234-1251 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1174-1191 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1208-1226 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1299-1317 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1017\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":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71f05ba20850fc6c69c554f505b556e387053576e73c96289fcf2c606317d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_sd3.py:1284-1300 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1243-1261 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1279-1297 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:692-710 | examples/text_to_image/train_text_to_image_lora_sdxl.py:718-736 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2381 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:1284\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee0430c717fe8c7b0ecf16216d0c765486bb25fb9d0d5adf6a63e2cd40431df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:288-307 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:313-332 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:177-195 | examples/textual_inversion/textual_inversion.py:192-210 | examples/textual_inversion/textual_inversion_sdxl.py:196-214 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:288\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f8f80d53dc704ee447908aca338bf78b64cc576f4a867d86af252c62197c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 5): examples/research_projects/lpl/train_sdxl_lpl.py:1256-1273 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1146-1164 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1157-1174 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1156-1174 | examples/text_to_image/train_text_to_image_sdxl.py:1122-1139 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 2028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d1a4ccba25407725806bca780716eca6c60dca695d9a2de992ba3332813eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): examples/community/stable_diffusion_controlnet_img2img.py:576-594 | examples/community/stable_diffusion_controlnet_inpaint.py:719-737 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:706-724 | examples/community/stable_diffusion_reference.py:252-270 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 931 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_img2img.py:576\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":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"390c2d4e8ce9f7a4e732f84d0806258e73af7f38ff3990d6a8f5c160d4dcdd9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): examples/community/stable_diffusion_controlnet_reference.py:600-618 | examples/community/stable_diffusion_reference.py:1257-1275 | examples/community/stable_diffusion_xl_controlnet_reference.py:1007-1025 | examples/community/stable_diffusion_xl_reference.py:863-881 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_reference.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0b6b2a3765d80014d39db7c46fca831470a369d2cc81e0ee17f9f4db821d2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 4): examples/custom_diffusion/train_custom_diffusion.py:421-439 | examples/research_projects/gligen/train_gligen_text.py:111-128 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:94-110 | examples/textual_inversion/textual_inversion_flax.py:94-110 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/gligen/train_gligen_text.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 446 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:421\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:113\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/gligen/train_gligen_text.py:129\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"260391769ea130b9303c6a490cf4989fc2e6591919de076880d932ca1d3441f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:508-526 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:459-476 | examples/research_projects/realfill/train_realfill.py:372-389 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:508-526 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 1180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:508\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d1dffa4c8a3094e9d6fe52dd0bfc7d781d913c9600bd54beaad1302960b849"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:1222-1240 | examples/dreambooth/train_dreambooth_lora.py:1235-1253 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1254-1272 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1240-1258 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e84aa14506789668ec8b348ad1f2c443bbbad4ad519df1ffd0e2d436a2101b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_sdxl.py:961-979 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:960-978 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:493-511 | examples/text_to_image/train_text_to_image_lora_sdxl.py:532-550 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eaade00839d74727152c2429dab0b2a977040fc2d83266c151fb3c4d1d04eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): examples/research_projects/ip_adapter/tutorial_train_faceid.py:261-279 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:263-281 | examples/research_projects/ip_adapter/tutorial_train_plus.py:279-297 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:324-342 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:284\u0060 calls \u0060from_pretrained\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py:284\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe921559274488b357cf47966258fabffcb3a15cb857a3088d4888ddd6baf4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): examples/research_projects/lora/train_text_to_image_lora.py:659-677 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:657-675 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:783-801 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:648-666 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lora/train_text_to_image_lora.py:659\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ae868911e1c5563d0253da07fc965e5f915d1eec0002ff2ca815398e08bd56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 4): examples/research_projects/lora/train_text_to_image_lora.py:665-683 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:663-681 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:569-586 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:789-807 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lora/train_text_to_image_lora.py:665\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"57167a74173bd872b1612a8c75ca52add5778ccd4a2e18155184fb6f3f712c15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1102-1117 | examples/custom_diffusion/train_custom_diffusion.py:685-703 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:574-589 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 944 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92442e566e2d08a80ad2bc290f53a4c6bb5b3b94f08f2020e39873744eba0fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2199-2217 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1743-1761 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1787-1805 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2199\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2199}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c62db01e7f21a8efab3d78ad759035f79d46d49da544912af668aa54957564e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/community/multilingual_stable_diffusion.py:115-133 | examples/community/speech_to_image_diffusion.py:45-63 | examples/community/text_inpainting.py:102-120 \u2014 before extracting anything, compare \u0060examples/community/multilingual_stable_diffusion.py\u0060 and \u0060examples/community/speech_to_image_diffusion.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/multilingual_stable_diffusion.py:115\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":"examples/community/multilingual_stable_diffusion.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc96e628ea4f53c5773f8102a186d323bf5ea01d80e9988f8517db4e5f1b773"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): examples/community/pipeline_demofusion_sdxl.py:953-970 | examples/community/pipeline_demofusion_sdxl.py:1096-1114 | examples/community/pipeline_demofusion_sdxl.py:1192-1210 \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":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b192cbdeb30301646e4f0c64ea6d049835cba5c52b743b565316daefb4c0a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): examples/controlnet/train_controlnet_flax.py:250-268 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:104-121 | examples/text_to_image/train_text_to_image_flax.py:128-146 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flax.py:250\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:124\u0060 calls \u0060add_argument\u0060 and \u0060examples/controlnet/train_controlnet_flax.py:269\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flax.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8e98aed02c1d0884b46a7906933394141c9bf88b4f623d1e62bd730f6ca107"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/controlnet/train_controlnet_flux.py:255-273 | examples/controlnet/train_controlnet_sdxl.py:282-300 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:259-277 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 2214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flux.py:255\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8d6efa87584e3e39effce101dcbec3b5d36190df2d074f705691f3ac84af9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/dreambooth/train_dreambooth.py:1136-1154 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:987-1005 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1174-1192 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 1180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:1136\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"85752f2612c8bebfeb3e25bfc65448c7b77e11cf75f8d6c9f84a11edd3d97990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_krea2.py:1257-1275 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1232-1249 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1323-1340 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3098 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1257\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f34b2992b601b695122851d2670c20d8cfceea6d88843303d10ff631e2427fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_krea2.py:1675-1691 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1575-1591 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1626-1644 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"308a56df8f280920e10e4e977484572971728583e9252f30146e3c014b76400d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:880-898 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:900-918 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:905-923 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:880\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e3cfb2f1778a4aa6599607180910fd7236883d4a6a8e8b22184ebb1988abf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:972-990 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:326-344 | examples/unconditional_image_generation/train_unconditional.py:335-353 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2aa4fd3fc737ad7d0669f6628924c7bf43c9b17882f854b997b6c38818ea77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:415-433 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:432-450 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:416-434 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 111 separate duplicated blocks between them, totalling at least 1755 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:437\u0060 calls \u0060ValueError\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:437\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bbb88ad7d217ae01009ab9930163c1f7765bc62748112d8f28daa123d4e14f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:187-205 | examples/textual_inversion/textual_inversion.py:310-327 | examples/textual_inversion/textual_inversion_sdxl.py:308-326 \u2014 before extracting anything, compare \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 499 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:187\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/textual_inversion/textual_inversion_sdxl.py:326\u0060 calls \u0060add_argument\u0060 and \u0060examples/textual_inversion/textual_inversion.py:327\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":"examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec3078d30a34f252c2614cd4ed7f1a7703b267525868c925b88a38c28b19877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/research_projects/multi_token_textual_inversion/textual_inversion.py:802-820 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:856-874 | examples/textual_inversion/textual_inversion.py:881-899 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 and \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1488 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion.py"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"d332a59c3e470dcb2d73f12cf9078b4e8b41786138d832e73059f0eedd4b4678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:792-810 | examples/dreambooth/train_dreambooth_flux.py:625-643 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:792\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_flux.py:645\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:813\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d41b8e652520433cb3baa3acc91d2e27603414ef4a7ec6de09e80f056ab9cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1531-1548 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1526-1544 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1526\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8213b88776c789a9de2c426d59bf4eac258ff4921354eb10e333c58b0d9b65f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1807-1825 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2292-2310 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"37dbdb232182b7fc52cb9db6a931790385e0849ad1675a30a23c89352c8182d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1507-1525 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1573-1591 \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 \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1507\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":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c93af5700a01ecfa4053711f1d7cd979d8d30fa61b4a18443709c3cedb97671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/community/clip_guided_stable_diffusion.py:189-207 | examples/community/clip_guided_stable_diffusion_img2img.py:326-344 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 311 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_stable_diffusion.py:189\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7df34d4071839b0ffdce74a22cdc3a18f4025522f0773e2f10959cfff543373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/community/fresco_v2v.py:79-97 | examples/community/rerender_a_video.py:69-87 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/rerender_a_video.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"3927e5b58d02ac46836e005d71969cb975cf9165aa9d8032e658974dd9721d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/community/regional_prompting_stable_diffusion.py:998-1016 | examples/community/stable_diffusion_xl_reference.py:587-605 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/regional_prompting_stable_diffusion.py:998\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/regional_prompting_stable_diffusion.py"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c5041d2707fc46bd5e04d01bab7d54a5d7aacb4690d3ee849401f2215f5eb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/community/stable_diffusion_xl_controlnet_reference.py:1043-1061 | examples/community/stable_diffusion_xl_reference.py:899-917 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_xl_reference.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 1016 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8fba348cbe1fa529dc0cb2cb18ee4b4494e5c4bbb5357c1047a58d759410a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:856-874 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:821-839 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d12206a880c75416a427f23bd26a3512ecab0980afd927914f598605c7013e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/controlnet/train_controlnet_sd3.py:311-329 | examples/dreambooth/train_dreambooth_lora_krea2.py:356-374 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 860 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:311\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf8d9a66f78e15322a79ec5092e7289fe1b5187a63bfb498e4cf574af62dd50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): examples/dreambooth/train_dreambooth.py:1167-1184 | examples/dreambooth/train_dreambooth_lora.py:1179-1197 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4862acb0ab0acc1a14f2be4f8fc93a5e9dee224b0b895d5d80887084ee29230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201336 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1883-1917 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1714-1749 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1883\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"39cb356c4d873076ed25c2969eb2a31d87000b848153d336ce20ab1e06626385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:642-660 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:705-722 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 668 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bb93e29ccff8ab620a6305cc08e63ed53ccd9980b20c2e8b05d92b65338998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:476-494 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:543-561 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:476\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"50cf539b6d0a159943719d04ef3f24d0358247260fe0e5d7b4cd977873f21ff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/research_projects/multi_token_textual_inversion/textual_inversion.py:771-789 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:827-845 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 and \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1488 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04edb9fc17ee06f7f9e02245ef5c928b7d3135e2a8b70e2ae32257dcd009357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:589-607 | examples/unconditional_image_generation/train_unconditional.py:622-639 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 1025 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:589\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a3f2c11258a4983109611595507cbb87f197bdfa363740cb1cf7e6c2840acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:979-997 | examples/text_to_image/train_text_to_image.py:974-992 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 and \u0060examples/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2447 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2dd5a8495b90f8858e3cc53888da74007ccf1b2719ad617363f9daf4b94bf66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): scripts/convert_if.py:477-495 | scripts/convert_if.py:1080-1098 \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":"scripts/convert_if.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"324d599379548dc19178f3f3159a6fddf0ab1690423614d27c4d7b43d166aa52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): scripts/convert_minimax_h3_to_diffusers.py:485-503 | scripts/convert_minimax_h3_to_diffusers.py:892-910 \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":"scripts/convert_minimax_h3_to_diffusers.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"06cdc9b52b18fff99377d7ef06e55673920c7056cca5a186f914f554d71b586a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 75): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:734-750 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:612-628 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:721-737 | examples/cogview4-control/train_control_cogview4.py:379-395 | examples/controlnet/train_controlnet.py:405-421 | examples/controlnet/train_controlnet_flux.py:429-445 | examples/controlnet/train_controlnet_sd3.py:476-492 | examples/controlnet/train_controlnet_sdxl.py:447-463 | examples/custom_diffusion/train_custom_diffusion.py:545-561 | examples/dreambooth/train_dreambooth.py:437-453 | examples/dreambooth/train_dreambooth_flax.py:175-191 | examples/dreambooth/train_dreambooth_flux.py:582-598 | examples/dreambooth/train_dreambooth_lora.py:438-454 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:726-742 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:723-739 | examples/dreambooth/train_dreambooth_lora_flux.py:625-641 | examples/dreambooth/train_dreambooth_lora_flux2.py:663-679 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:641-657 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:673-689 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:642-658 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:773-789 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:760-776 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:670-686 | examples/dreambooth/train_dreambooth_lora_hidream.py:638-654 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:750-766 | examples/dreambooth/train_dreambooth_lora_krea2.py:746-762 | examples/dreambooth/train_dreambooth_lora_lumina2.py:548-564 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:641-657 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:662-678 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:678-694 | examples/dreambooth/train_dreambooth_lora_sana.py:570-586 | examples/dreambooth/train_dreambooth_lora_sd3.py:620-636 | examples/dreambooth/train_dreambooth_lora_sdxl.py:600-616 | examples/dreambooth/train_dreambooth_lora_z_image.py:657-673 | examples/dreambooth/train_dreambooth_sd3.py:567-583 | examples/flux-control/train_control_flux.py:371-387 | examples/flux-control/train_control_lora_flux.py:403-419 | examples/instruct_pix2pix/train_instruct_pix2pix.py:336-352 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:393-409 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:351-367 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:248-264 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:255-271 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:355-371 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:308-324 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:199-215 | examples/research_projects/controlnet/train_controlnet_webdataset.py:644-660 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:361-377 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:380-396 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:378-394 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:362-378 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:223-239 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:219-235 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:406-423 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:387-403 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:180-196 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:170-186 | examples/research_projects/lora/train_text_to_image_lora.py:309-325 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:364-380 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:295-311 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:161-175 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:313-329 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:307-323 | examples/research_projects/realfill/train_realfill.py:321-337 | examples/research_projects/sana/train_sana_sprint_diffusers.py:618-634 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:437-453 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:429-445 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:597-613 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:427-443 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:357-373 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:355-371 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:422-438 | examples/text_to_image/train_text_to_image_flax.py:197-213 | examples/textual_inversion/textual_inversion.py:334-350 | examples/textual_inversion/textual_inversion_flax.py:174-188 | examples/textual_inversion/textual_inversion_sdxl.py:335-351 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:734\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cogview4-control/train_control_cogview4.py:376\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:177\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca65eb77bd7ef250476fd30bb8ed683f5151e185e470cb7a6b52fd14b8341cc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 46): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:313-330 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:261-278 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:352-369 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:79-96 | examples/cogvideo/train_cogvideox_lora.py:70-87 | examples/controlnet/train_controlnet.py:266-283 | examples/custom_diffusion/train_custom_diffusion.py:335-352 | examples/dreambooth/train_dreambooth.py:240-257 | examples/dreambooth/train_dreambooth_flax.py:80-97 | examples/dreambooth/train_dreambooth_flux.py:247-264 | examples/dreambooth/train_dreambooth_lora.py:226-243 | examples/dreambooth/train_dreambooth_lora_flux.py:267-284 | examples/dreambooth/train_dreambooth_lora_hidream.py:293-310 | examples/dreambooth/train_dreambooth_lora_krea2.py:358-375 | examples/dreambooth/train_dreambooth_lora_lumina2.py:206-223 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:261-278 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:280-297 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:284-301 | examples/dreambooth/train_dreambooth_lora_sana.py:226-243 | examples/dreambooth/train_dreambooth_lora_sd3.py:257-274 | examples/dreambooth/train_dreambooth_lora_sdxl.py:277-294 | examples/dreambooth/train_dreambooth_sd3.py:233-250 | examples/instruct_pix2pix/train_instruct_pix2pix.py:121-138 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:167-184 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:103-120 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:99-116 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:161-178 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:172-189 | examples/research_projects/lpl/train_sdxl_lpl.py:216-233 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:253-270 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:247-264 | examples/research_projects/sana/train_sana_sprint_diffusers.py:320-338 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:240-257 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:217-234 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:274-291 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:205-222 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:109-126 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:153-170 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:146-163 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:195-212 | examples/text_to_image/train_text_to_image.py:211-228 | examples/text_to_image/train_text_to_image_flax.py:65-82 | examples/text_to_image/train_text_to_image_lora.py:160-177 | examples/text_to_image/train_text_to_image_lora_sdxl.py:200-217 | examples/text_to_image/train_text_to_image_sdxl.py:150-167 | examples/textual_inversion/textual_inversion.py:215-232 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:313\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"707f761eb00b285f827bdf6265028fb6e6c79d448a50bd542c924b6e43814931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 37): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:486-506 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:410-430 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:507-527 | examples/dreambooth/train_dreambooth.py:310-330 | examples/dreambooth/train_dreambooth_flax.py:124-141 | examples/dreambooth/train_dreambooth_flux.py:378-398 | examples/dreambooth/train_dreambooth_lora.py:317-337 | examples/dreambooth/train_dreambooth_lora_flux.py:412-432 | examples/dreambooth/train_dreambooth_lora_hidream.py:448-468 | examples/dreambooth/train_dreambooth_lora_lumina2.py:358-378 | examples/dreambooth/train_dreambooth_lora_sana.py:376-396 | examples/dreambooth/train_dreambooth_lora_sd3.py:397-417 | examples/dreambooth/train_dreambooth_lora_sdxl.py:413-433 | examples/dreambooth/train_dreambooth_sd3.py:364-384 | examples/instruct_pix2pix/train_instruct_pix2pix.py:225-245 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:146-163 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:142-159 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:211-231 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:276-296 | examples/research_projects/lora/train_text_to_image_lora.py:177-197 | examples/research_projects/lpl/train_sdxl_lpl.py:314-334 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:251-268 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:201-221 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:310-330 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:308-328 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:410-430 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:283-303 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:198-218 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:245-265 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:244-264 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:274-294 | examples/text_to_image/train_text_to_image.py:289-309 | examples/text_to_image/train_text_to_image_flax.py:136-156 | examples/text_to_image/train_text_to_image_lora.py:249-269 | examples/text_to_image/train_text_to_image_lora_sdxl.py:292-312 | examples/text_to_image/train_text_to_image_sdxl.py:248-268 | examples/vqgan/train_vqgan.py:333-353 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:486\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_flax.py:122\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:484\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"032779ac216833ad43e6358d3b3e731b5a34c7d2b1dd0b3b46c698d3f494f461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 30): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:254-271 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:345-362 | examples/amused/train_amused.py:68-85 | examples/cogview4-control/train_control_cogview4.py:235-252 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:485-502 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:287-304 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:459-476 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:463-480 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:482-499 | examples/dreambooth/train_dreambooth_flax.py:53-70 | examples/dreambooth/train_dreambooth_lora_hidream.py:286-303 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:254-271 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:273-290 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:277-294 | examples/dreambooth/train_dreambooth_lora_sdxl.py:270-287 | examples/flux-control/train_control_flux.py:230-247 | examples/flux-control/train_control_lora_flux.py:241-258 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:158-175 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:180-197 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:178-195 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:176-193 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:154-171 | examples/research_projects/lpl/train_sdxl_lpl.py:209-226 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:193-210 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:267-284 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:146-163 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:139-156 | examples/text_to_image/train_text_to_image_lora_sdxl.py:193-210 | examples/text_to_image/train_text_to_image_sdxl.py:143-160 | examples/vqgan/train_vqgan.py:260-277 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:254\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23da4710fea21d59bb69a0484ba2c45c8dbc4e99015eb441d3f2b24e5011943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 30): examples/cogview4-control/train_control_cogview4.py:874-891 | examples/controlnet/train_controlnet.py:890-907 | examples/controlnet/train_controlnet_flux.py:1024-1041 | examples/controlnet/train_controlnet_sd3.py:1106-1123 | examples/controlnet/train_controlnet_sdxl.py:1018-1035 | examples/dreambooth/train_dreambooth.py:1024-1041 | examples/flux-control/train_control_flux.py:864-881 | examples/flux-control/train_control_lora_flux.py:1008-1025 | examples/instruct_pix2pix/train_instruct_pix2pix.py:582-599 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:637-654 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:727-744 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1087-1104 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:634-651 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:730-747 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:705-722 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:673-690 | examples/research_projects/lora/train_text_to_image_lora.py:559-576 | examples/research_projects/lpl/train_sdxl_lpl.py:913-930 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:922-939 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:570-587 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1186-1203 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1067-1084 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:697-714 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:562-579 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:810-827 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:967-984 | examples/text_to_image/train_text_to_image.py:695-712 | examples/text_to_image/train_text_to_image_lora.py:571-588 | examples/text_to_image/train_text_to_image_sdxl.py:797-814 | examples/textual_inversion/textual_inversion_sdxl.py:749-766 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cogview4-control/train_control_cogview4.py:869\u0060 calls \u0060enable_gradient_checkpointing\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:629\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e97db4231d3a91cdc800f4fead217c9aa48a9da83769ac1549185672ae6fc27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 24): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1679-1696 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1729-1746 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1450-1467 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1339-1356 | examples/dreambooth/train_dreambooth_lora_flux.py:1363-1380 | examples/dreambooth/train_dreambooth_lora_flux2.py:1403-1420 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1353-1370 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1406-1423 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1347-1364 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1495-1512 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1445-1462 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1562-1579 | examples/dreambooth/train_dreambooth_lora_hidream.py:1241-1258 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1544-1561 | examples/dreambooth/train_dreambooth_lora_krea2.py:1458-1475 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1093-1110 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1365-1382 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1407-1424 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1498-1515 | examples/dreambooth/train_dreambooth_lora_sana.py:1116-1133 | examples/dreambooth/train_dreambooth_lora_sd3.py:1392-1409 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1332-1349 | examples/dreambooth/train_dreambooth_lora_z_image.py:1385-1402 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:787-804 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1679}}}],"partialFingerprints":{"codehealthFindingId/v1":"78607eb9dee3e2e52cfe2877b77f54afb02598b82c3a16cb537f42cd2461391e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 21): examples/cosmos/train_cosmos_predict25_lora.py:479-496 | examples/instruct_pix2pix/train_instruct_pix2pix.py:452-469 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:512-529 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:467-484 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:357-374 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:370-387 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:468-485 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:510-527 | examples/research_projects/lora/train_text_to_image_lora.py:425-442 | examples/research_projects/lpl/train_sdxl_lpl.py:750-767 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:798-815 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:439-456 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:583-600 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:565-582 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:464-481 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:561-578 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:653-670 | examples/text_to_image/train_text_to_image.py:553-570 | examples/text_to_image/train_text_to_image_lora.py:477-494 | examples/text_to_image/train_text_to_image_lora_sdxl.py:580-597 | examples/text_to_image/train_text_to_image_sdxl.py:634-651 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 21 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 21 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:449\u0060 calls \u0060Generator\u0060, \u0060manual_seed\u0060 and \u0060examples/cosmos/train_cosmos_predict25_lora.py:476\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":"examples/cosmos/train_cosmos_predict25_lora.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42d06e6cbf6f47b47aa2bd55e4eac4bfb93512e1398a380db4192f1bde25276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 20): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:255-272 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:346-363 | examples/controlnet/train_controlnet_flux.py:268-286 | examples/controlnet/train_controlnet_sdxl.py:295-313 | examples/dreambooth/train_dreambooth_flax.py:54-71 | examples/dreambooth/train_dreambooth_lora_hidream.py:287-304 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:255-272 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:274-291 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:278-295 | examples/dreambooth/train_dreambooth_lora_sdxl.py:271-288 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:181-198 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:179-196 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:155-172 | examples/research_projects/lpl/train_sdxl_lpl.py:210-227 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:268-285 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:147-164 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:140-157 | examples/text_to_image/train_text_to_image_lora_sdxl.py:194-211 | examples/text_to_image/train_text_to_image_sdxl.py:144-161 | examples/vqgan/train_vqgan.py:261-278 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:255\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6fb4a8b76de2f4f08faeeb227c961efe3097fe918d56ad417e2a8eb6a7e155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 13): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1387-1404 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1377-1394 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1178-1195 | examples/dreambooth/train_dreambooth_lora_flux.py:1120-1137 | examples/dreambooth/train_dreambooth_lora_flux2.py:1120-1137 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1125-1142 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1225-1242 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1297-1314 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1211-1228 | examples/dreambooth/train_dreambooth_lora_sd3.py:1112-1129 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1035-1052 | examples/dreambooth/train_dreambooth_lora_z_image.py:1110-1127 | examples/dreambooth/train_dreambooth_sd3.py:1037-1054 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6c3e632212ab32b7fa72317d7e36386fab97984c873191f1af567d6ac2a0f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 13): examples/cogview4-control/train_control_cogview4.py:877-895 | examples/flux-control/train_control_flux.py:867-885 | examples/instruct_pix2pix/train_instruct_pix2pix.py:585-602 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:640-657 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:554-571 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:676-694 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:573-590 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1189-1207 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:700-717 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:565-582 | examples/text_to_image/train_text_to_image.py:698-715 | examples/text_to_image/train_text_to_image_lora.py:574-591 | examples/textual_inversion/textual_inversion_sdxl.py:752-769 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:877\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32b30e3efa4d5f7a2eeff2116fa61173aee9db0eef668c7d3759d35852a9670"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 13): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:492-509 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:635-652 | examples/research_projects/lora/train_text_to_image_lora.py:639-656 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:637-654 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:763-780 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:628-645 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:871-888 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:654-671 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:637-654 | examples/text_to_image/train_text_to_image.py:761-778 | examples/text_to_image/train_text_to_image_flax.py:330-347 | examples/text_to_image/train_text_to_image_lora.py:637-654 | examples/text_to_image/train_text_to_image_lora_sdxl.py:897-914 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:492\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"beab8015f4cfeafb4336f2e0bc27ab204941b6aa912112cffef3fe8c513a1a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 12): examples/cogview4-control/train_control_cogview4.py:437-452 | examples/controlnet/train_controlnet.py:485-502 | examples/controlnet/train_controlnet_flax.py:389-406 | examples/controlnet/train_controlnet_flux.py:502-519 | examples/controlnet/train_controlnet_sd3.py:553-570 | examples/controlnet/train_controlnet_sdxl.py:530-547 | examples/flux-control/train_control_flux.py:429-444 | examples/flux-control/train_control_lora_flux.py:461-476 | examples/research_projects/controlnet/train_controlnet_webdataset.py:724-741 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:299-316 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:280-297 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:502-519 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:437\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/cogview4-control/train_control_cogview4.py:453\u0060 calls \u0060add_argument\u0060 and \u0060examples/controlnet/train_controlnet.py:502\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bec5b530607f9045265235bf873258a28cd9c0919d86daa966dadbfbf5c040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 12): examples/instruct_pix2pix/train_instruct_pix2pix.py:603-620 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:658-675 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:604-621 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:454-471 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:448-465 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:591-608 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1040-1057 | examples/research_projects/lora/train_text_to_image_lora.py:595-612 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:718-735 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:593-610 | examples/text_to_image/train_text_to_image.py:716-733 | examples/unconditional_image_generation/train_unconditional.py:454-470 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:603\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d0cdf6d5aa366fe4005d858bcee69b7c8d596465e0a3b6b23690ab5469d7a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 11): examples/dreambooth/train_dreambooth.py:252-269 | examples/dreambooth/train_dreambooth_flax.py:66-83 | examples/dreambooth/train_dreambooth_lora.py:238-255 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:67-84 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:89-106 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:85-102 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:155-172 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:157-174 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:217-234 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:252-269 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:229-246 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 463 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:252\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"53df45a916570a1c9ac667ec95f0d8728e6b7eac5dd14747ed32f5302237cbb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 11): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1239-1256 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1128-1145 | examples/dreambooth/train_dreambooth_lora_flux2.py:1183-1199 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1133-1149 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1188-1204 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1129-1145 | examples/dreambooth/train_dreambooth_lora_krea2.py:1256-1273 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1196-1210 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1231-1247 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1322-1338 | examples/dreambooth/train_dreambooth_lora_z_image.py:1173-1189 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1239\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"57dba3d1b9c060f7021d30ce2c4941744a5414c2cf97c922a9e3ce7ccb58d67c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 10): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1539-1554 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1535-1550 | examples/dreambooth/train_dreambooth_lora_lumina2.py:986-1001 | examples/dreambooth/train_dreambooth_lora_sana.py:999-1014 | examples/dreambooth/train_dreambooth_lora_sd3.py:1220-1235 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1160-1175 | examples/dreambooth/train_dreambooth_sd3.py:1150-1165 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:690-705 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1080-1095 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:697-714 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:697\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, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1556\u0060 calls \u0060to\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1557\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e37a959c88f2222b9ed0a7f4feae8878b79edf9134ba74bf49adf4dd49f0885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 10): examples/instruct_pix2pix/train_instruct_pix2pix.py:564-581 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:619-636 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:571-588 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:655-672 | examples/research_projects/lpl/train_sdxl_lpl.py:895-912 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:552-569 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:679-696 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:792-809 | examples/text_to_image/train_text_to_image.py:677-694 | examples/text_to_image/train_text_to_image_sdxl.py:779-796 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c0433b6a3ed9730ff4e5deadd263a77fe0c39a837ee049fc63559f763bd093"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 9): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1959-1975 | examples/custom_diffusion/train_custom_diffusion.py:1289-1306 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:738-755 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:770-787 | examples/research_projects/lora/train_text_to_image_lora.py:899-916 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:890-907 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:964-981 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1277-1294 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1305-1321 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 944 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:982\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1295\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1959}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cb0bcb0da23e7503ffdf8664a3cd19701abf1b387670b1438b75a8dbf76584"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 9): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:677-694 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:840-857 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:850-867 | examples/controlnet/train_controlnet_sdxl.py:730-747 | examples/research_projects/controlnet/train_controlnet_webdataset.py:867-884 | examples/research_projects/lpl/train_sdxl_lpl.py:627-644 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:516-533 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:695-712 | examples/text_to_image/train_text_to_image_sdxl.py:511-528 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 84 separate duplicated blocks between them, totalling at least 1625 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:677\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:837\u0060 calls \u0060random\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:675\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"759121bc6ee4eb0c92413014683d9af2e4d4450fc33ce5fc889d0f6fba8bb529"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 9): examples/controlnet/train_controlnet_flux.py:250-267 | examples/controlnet/train_controlnet_sdxl.py:277-294 | examples/dreambooth/train_dreambooth_lora.py:259-276 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:357-374 | examples/dreambooth/train_dreambooth_lora_sdxl.py:344-361 | examples/research_projects/controlnet/train_controlnet_webdataset.py:479-496 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:250-267 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:341-358 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:242-259 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 2214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flux.py:250\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a1735f572cb794672436bf741d07084fd4de3363f4a1e64bfa71358e764080"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 8): examples/custom_diffusion/train_custom_diffusion.py:522-537 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:179-194 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:200-215 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:196-211 | examples/research_projects/lora/train_text_to_image_lora.py:270-287 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:312-329 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:309-326 | examples/vqgan/train_vqgan.py:403-420 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:522\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"65dba8bf8d56d5f917f60cc7ce988701e3774b83f1cd063a9519fee29c731d66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1451-1468 | examples/controlnet/train_controlnet_sd3.py:996-1013 | examples/dreambooth/train_dreambooth_flux.py:1142-1159 | examples/dreambooth/train_dreambooth_lora_flux.py:1182-1199 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1367-1384 | examples/dreambooth/train_dreambooth_lora_sd3.py:1177-1194 | examples/dreambooth/train_dreambooth_sd3.py:1102-1119 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 814 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet_sd3.py:1014\u0060 calls \u0060import_model_class_from_model_name_or_path\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1471\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5175cc5ee8aa088a8b035b1f057503bad1b4535ca458e6c9d66a9178096aace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7): examples/cogvideo/train_cogvideox_image_to_video_lora.py:85-104 | examples/cogvideo/train_cogvideox_lora.py:76-95 | examples/custom_diffusion/train_custom_diffusion.py:341-358 | examples/dreambooth/train_dreambooth_lora_lumina2.py:291-308 | examples/research_projects/vae/vae_roundtrip.py:206-223 | examples/vqgan/train_vqgan.py:248-265 | scripts/convert_joyimage_edit_to_diffusers.py:265-282 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:85\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, \u0060scripts/convert_joyimage_edit_to_diffusers.py:285\u0060 calls \u0060add_argument\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py:361\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07b33264659246a8f64782cb19fda04a09400a0257676a1d7b85881b8adcc9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7): examples/community/stable_diffusion_controlnet_inpaint.py:689-706 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:676-693 | examples/community/stable_diffusion_controlnet_reference.py:72-89 | examples/community/stable_diffusion_reference.py:768-785 | examples/community/stable_diffusion_repaint.py:572-589 | examples/community/stable_diffusion_xl_controlnet_reference.py:203-220 | examples/community/stable_diffusion_xl_reference.py:149-166 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py\u0060 as WHOLE FILES: this scan already matched 68 separate duplicated blocks between them, totalling at least 1028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/stable_diffusion_controlnet_reference.py:92\u0060 calls \u0060cat\u0060 and \u0060examples/community/stable_diffusion_reference.py:789\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4486dba4ee59eaa260d1db15f7d13b3183fc5e7de4ae135421dcf39518240b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_sdxl.py:1153-1169 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:632-649 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:593-610 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:700-717 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1213-1229 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:630-647 | examples/text_to_image/train_text_to_image_lora_sdxl.py:649-666 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 919 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:632\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, \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1171\u0060 calls \u0060is_available\u0060, \u0060ValueError\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1232\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbc8352fb2c6cf24fec0e36bd6a5a20abbe3868fd1b2b0e7e0e59a59f50e157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 7): examples/instruct_pix2pix/train_instruct_pix2pix.py:429-443 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:486-501 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:364-379 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:545-562 | examples/text_to_image/train_text_to_image.py:529-546 | examples/textual_inversion/textual_inversion.py:594-608 | examples/textual_inversion/textual_inversion_sdxl.py:593-607 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:446\u0060 calls \u0060is_available\u0060, \u0060Generator\u0060, \u0060manual_seed\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:565\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3f2497bb53e45e83e85b30ca36c81378ef505ac2001284e79e6af3bd060bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7): examples/instruct_pix2pix/train_instruct_pix2pix.py:916-933 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1122-1139 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:825-842 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:844-861 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:870-887 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1034-1051 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:827-844 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e74d4474dbc78508f8b45e184f1df0b81384ab80088c426210835cc2d53543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 7): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:84-101 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:80-97 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:150-167 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:152-169 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:212-229 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:66-80 | examples/textual_inversion/textual_inversion_flax.py:66-80 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:84\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1524ebef2ccde3ae4094e0b20487c85083c4e8f10b42ebea9a59f5243b549a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 7): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:334-352 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:392-410 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:526-544 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:304-322 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:541-559 | examples/textual_inversion/textual_inversion.py:569-587 | examples/textual_inversion/textual_inversion_flax.py:317-335 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:334\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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e87a24ac6fd93f176e72de9ea87513348b85b3300e2269f0354f4da8b528e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2018-2035 | examples/dreambooth/train_dreambooth_flux.py:1490-1507 | examples/dreambooth/train_dreambooth_lora_flux.py:1614-1631 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1647-1664 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1595-1612 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1881-1898 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2018}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6adc9e9e1df583db90b466cd4962ddcf788403dd3776c505c5c7104f5e4a86c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): examples/cogvideo/train_cogvideox_image_to_video_lora.py:204-221 | examples/cogvideo/train_cogvideox_lora.py:189-206 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:227-244 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:229-246 | examples/research_projects/ip_adapter/tutorial_train_plus.py:245-262 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:290-307 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:204\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a1e646fc04113a111ef997275160a2f4ae1df187e581c46dcdbf4a1eeee6d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1304-1321 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1332-1349 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1373-1390 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1399-1416 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1376-1393 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1402-1419 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 84 separate duplicated blocks between them, totalling at least 1625 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1304\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, \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1324\u0060 calls \u0060zeros_like\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1393\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f201f4fab5432d6e4b8e350cd8dcb2097685819f92cf341e255cc683b8b7b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1016-1033 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1012-1029 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1131-1148 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1057-1074 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1088-1105 | examples/dreambooth/train_dreambooth_lora_z_image.py:1008-1025 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e5363845d2b26c682cd233f0a29356a7a9b28ed7e74038369f88f72f0e13dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 6): examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1020-1036 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:763-779 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:921-938 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1065-1082 | examples/text_to_image/train_text_to_image.py:940-957 | examples/text_to_image/train_text_to_image_sdxl.py:1061-1078 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2ef9ae47c4bff4deb0050903ea21d0cd50f7371b9196bcfa4e17285b380ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201318 lines \u00D7 6): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:868-885 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:887-904 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:893-910 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1077-1094 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:870-880 | examples/text_to_image/train_text_to_image.py:1084-1101 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:868\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c57f456179a9f798fdbbf94a9d9684d465a413110b03de228d2cfebfdb14d4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 6): examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:365-382 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:522-538 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:451-466 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:355-370 | examples/text_to_image/train_text_to_image.py:473-488 | examples/text_to_image/train_text_to_image_lora.py:406-421 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 883 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:365\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"451bfea0bf225f4a88e49183bb01925cc24eea0b089bee1951abe1e08c1c4a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1643-1660 | examples/instruct_pix2pix/train_instruct_pix2pix.py:784-801 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:876-893 | examples/text_to_image/train_text_to_image_lora.py:798-815 | examples/textual_inversion/textual_inversion_sdxl.py:846-863 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 549 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"864c6cf79c75ab94877eceaeef229abe749a6005a9ed9e3073780711185f61ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1682-1697 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1283-1300 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1319-1336 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:733-750 | examples/text_to_image/train_text_to_image_lora_sdxl.py:759-776 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1283\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, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1680\u0060 calls \u0060save_embeddings\u0060, \u0060load_model_hook\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1283\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"950ed91088fc00388b8fe45a9643eb8b52d8474b443a20d66a181f57458e75af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 5): examples/instruct_pix2pix/train_instruct_pix2pix.py:746-763 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:838-855 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:727-743 | examples/text_to_image/train_text_to_image.py:840-857 | examples/text_to_image/train_text_to_image_lora.py:771-788 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/text_to_image/train_text_to_image_lora.py:791\u0060 calls \u0060register_save_state_pre_hook\u0060, \u0060register_load_state_pre_hook\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:746\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":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"36fcd139f1e3fdf5ec6c0a4bbbb04162c2cb05ba5dc5efbed5d9bfa112bd55df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): examples/instruct_pix2pix/train_instruct_pix2pix.py:833-850 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:925-942 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:789-806 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:800-817 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:774-791 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"533305b04aad756229a71a0d041693509c5be97b393cf4f124f0efd1812523dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 5): examples/research_projects/pixart/train_pixart_controlnet_hf.py:564-580 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:857-874 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:785-802 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:444-460 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:632-649 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 570 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:564\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, \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:880\u0060 calls \u0060ValueError\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:583\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/train_pixart_controlnet_hf.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae39f5b571d12033319411a061a82bb7d622a5ae413cdcbabf144ea57b8236e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1439-1456 | examples/dreambooth/train_dreambooth_flux.py:1284-1299 | examples/dreambooth/train_dreambooth_lora_flux.py:1394-1409 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1593-1608 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1521 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1439}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3ec1f80a5d66464a1322141cf3f3bbd046d82d7c7db051482fa23533ea958b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 4): examples/community/matryoshka.py:4419-4436 | examples/community/pipeline_controlnet_xl_kolors.py:1030-1046 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:1217-1233 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1431-1447 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:4419\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":"examples/community/matryoshka.py"},"region":{"startLine":4419}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b49628796dbc28501842c4b520d02c9050e2ea4e1238a3f6f9caaa5ca37f2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:719-736 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:546-563 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:699-716 | examples/cosmos/train_cosmos_predict25_lora.py:216-233 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:719\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6c2d345c7d342fd9c31a9264cf7b2c400142e4ae3457c85bef506c398fc68b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 4): examples/dreambooth/train_dreambooth_flux.py:1843-1860 | examples/dreambooth/train_dreambooth_lora_flux.py:1981-1998 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2298-2313 | examples/dreambooth/train_dreambooth_sd3.py:1794-1811 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:1843\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a755e2382e6c677d262ed81382a135e7100d58950d082868d48c488bff01b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora.py:1055-1072 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1072-1089 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:805-822 | examples/text_to_image/train_text_to_image_lora_sdxl.py:831-848 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 162 separate duplicated blocks between them, totalling at least 2821 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f773bdbf0e1b8bd2f70460b89b35cec87222fff425958f1e2669923e3e58679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:190-207 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:289-306 | examples/research_projects/lora/train_text_to_image_lora.py:217-234 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:299-316 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebaf941f9670caf3aaebf2c42c9c9dea99205b8b8b985ff1449b7476f54aeb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:417-434 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:441-458 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:434-451 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:418-435 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:417\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, \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:437\u0060 calls \u0060ValueError\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:437\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":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4637b64107bdff74a1bd242a0027d82fe81b9adb0c0944efd5ffa5bcc80ad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 4): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:717-733 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:744-760 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:579-595 | examples/research_projects/realfill/train_realfill.py:870-887 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"418830d2303f49eac066d3faa9f3a1f5e2f8f9c1919a05fb77b56dd79842bd40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): examples/research_projects/ip_adapter/tutorial_train_plus.py:173-190 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:186-203 | examples/textual_inversion/textual_inversion.py:201-218 | examples/textual_inversion/textual_inversion_sdxl.py:205-222 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1688 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/ip_adapter/tutorial_train_plus.py:173\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_plus.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34adb46959973742ef61a25336d06f9ab86f63f11e2b2e86042dd4def21c5e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 4): examples/research_projects/multi_token_textual_inversion/textual_inversion.py:711-728 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:730-743 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:772-785 | examples/textual_inversion/textual_inversion.py:792-809 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 and \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 659 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:711\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion.py"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"abadffc6de8ec9ee9dcbe11f25272ba838a4ecdcbc7a8105586278f43da1aa2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1398-1415 | examples/dreambooth/train_dreambooth_flux.py:1089-1106 | examples/dreambooth/train_dreambooth_lora_flux.py:1131-1148 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:1089\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e0b0cf190cbb0b3b6d1d747b9340a6d3617f55dee3732c3870dd5631f3160c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:263-280 | examples/dreambooth/train_dreambooth_lora_sdxl.py:188-205 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:187-204 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"724ed0d364760f4d1291de554d5049922456ce7d0eacb8e851a93b070ccc6927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): examples/amused/train_amused.py:176-193 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:143-159 | examples/unconditional_image_generation/train_unconditional.py:161-177 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 1025 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/amused/train_amused.py:176\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, \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:141\u0060 calls \u0060add_argument\u0060 and \u0060examples/amused/train_amused.py:176\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/amused/train_amused.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f636c35caef8fe63ace3e0670f61a295f3e6b9d0a39ba8bf422f79adbd5201"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/cogvideo/train_cogvideox_image_to_video_lora.py:158-175 | examples/cogvideo/train_cogvideox_lora.py:143-160 | examples/discrete_diffusion/sample_llada2.py:44-61 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:158\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bfa70c6c55b44a13d8231ed49f6dcd85fbf237d8ae96e093d92adc93b5196b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/cogvideo/train_cogvideox_image_to_video_lora.py:774-791 | examples/cogvideo/train_cogvideox_lora.py:796-813 | examples/dreambooth/train_dreambooth_lora_sd3.py:944-961 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd9e37f33ac9b27d59e083dc2b4f82c7b96f06f8f4cd641b71298c54e5ded7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): examples/community/kohya_hires_fix.py:336-353 | examples/community/matryoshka.py:3584-3601 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:858-874 \u2014 before extracting anything, compare \u0060examples/community/kohya_hires_fix.py\u0060 and \u0060examples/community/matryoshka.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/kohya_hires_fix.py:336\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/kohya_hires_fix.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a3ba745503d92ce17d2da18bbab666281d800e33b28aa0e4e48b4ccea10856"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/community/seed_resize_stable_diffusion.py:157-174 | examples/community/speech_to_image_diffusion.py:105-122 | examples/community/wildcard_stable_diffusion.py:259-276 \u2014 before extracting anything, compare \u0060examples/community/seed_resize_stable_diffusion.py\u0060 and \u0060examples/community/speech_to_image_diffusion.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/seed_resize_stable_diffusion.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6282df8c9df1f347491f62380dfeca6e54d3182c33b78a45d9f6cd2cdcd23b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/community/stable_diffusion_controlnet_reference.py:762-779 | examples/community/stable_diffusion_xl_controlnet_reference.py:1257-1274 | examples/community/stable_diffusion_xl_reference.py:1077-1094 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_xl_controlnet_reference.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 447 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_reference.py:762\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":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"b063083988554ff57e7b7fe580fd43c42876238408932eaf7737a279a13aed9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:865-882 | examples/community/stable_diffusion_tensorrt_inpaint.py:948-965 | examples/community/stable_diffusion_tensorrt_txt2img.py:821-838 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec33ab1030a00ef4b5ef946c68f6c6fcbd34f422c53cd7e415e157be18f0af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): examples/controlnet/train_controlnet.py:792-808 | examples/custom_diffusion/train_custom_diffusion.py:820-836 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:525-542 \u2014 \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.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 51 separate duplicated blocks between them, totalling at least 778 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:792\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"707145f136b8408df198c49b9391d1881790e61eb510259bf41ce731622e4b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/cosmos/train_cosmos_predict25_lora.py:685-702 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:871-888 | examples/text_to_image/train_text_to_image_lora.py:924-941 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cosmos/train_cosmos_predict25_lora.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"61de5bf913e05fd71138481b8a5454b59234eabf53283dd98769109be6a2fb49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): examples/custom_diffusion/train_custom_diffusion.py:1150-1165 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:581-596 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1087-1104 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"0930c9e193958fa6f0cb0ed8b1e2e9faaa1f5017b3ad27ad48021b72ab79c346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/dreambooth/train_dreambooth.py:562-579 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:562-579 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:503-520 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 173 separate duplicated blocks between them, totalling at least 3201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:562\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, \u0060examples/dreambooth/train_dreambooth.py:560\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:502\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2569a2b294d2e401115138ce211df0a49513a1bbbd7cb19a435ac8a323d5b7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/dreambooth/train_dreambooth.py:1335-1352 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1127-1144 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1398-1415 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 1180 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2d0e09d2e0e79e059a70e55f7ccc2f369cd667c9d9698b62dc052225532f75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1473-1490 | examples/dreambooth/train_dreambooth_lora_krea2.py:1582-1599 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1489-1506 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 111 separate duplicated blocks between them, totalling at least 1917 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1473\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abca73a9bb84ea19c2dd879dcb445b26a7a3dfe9bd2e04d6a0a5aa8536512f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/instruct_pix2pix/train_instruct_pix2pix.py:670-687 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:740-757 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:762-779 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:670\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5955a3277abd0971568bbb5ade024454bc3145be9b57cf828ecfcbfb9935a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 3): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:751-768 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:184-198 | examples/unconditional_image_generation/train_unconditional.py:202-216 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:751\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e7e2ede03493e38319044681ccc187f5f58dce7c720c608f27cdd107cd6fe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/research_projects/controlnet/train_controlnet_webdataset.py:350-367 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:132-149 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:110-127 \u2014 before extracting anything, compare \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 828 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/t2i_adapter/train_t2i_adapter_sdxl.py:128\u0060 calls \u0060autocast\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:150\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":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"00624317230baf06bf69ff5376cb100043eedb8feb04c3d1f554482a1150a10f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:535-552 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:499-515 | examples/text_to_image/train_text_to_image_lora.py:512-528 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 601 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:535\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"725ff42eab9db310cc737c6d7ed6eed2324106646a087eff59eba80bfc420acd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1141-1158 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:1153-1170 | examples/text_to_image/train_text_to_image_lora.py:1020-1035 \u2014 before extracting anything, compare \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 958 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b137a1c3edb92f2ce8bca1517cdc2466ee62afd901489328356220cbd30110a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:863-880 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:761-778 | examples/text_to_image/train_text_to_image_sdxl.py:747-764 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d389a3d2db2f37176c4bceb71cc4d2ce61d7af98ca95a85144672c5fab784a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:585-602 | examples/text_to_image/train_text_to_image_flax.py:558-575 | examples/textual_inversion/textual_inversion_flax.py:604-621 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"1984db455b669ef8a9eb3257b5cd663f2ee56ec3a8f538bf7e3beb1020c145f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1915-1932 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:2012-2026 \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 \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1915\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1913\u0060 calls \u0060unwrap_model\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:2011\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c90b1d94d35c76ff25737d319706e1a78b30f8b8ede493aada7133e5b62e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/community/fresco_v2v.py:1364-1381 | examples/community/rerender_a_video.py:371-388 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/rerender_a_video.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"75467072886a9ce1c8bd69be40234689ffcb1db67aebe2c1ddfa4cd8abe4d1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): examples/community/img2img_inpainting.py:265-311 | examples/community/seed_resize_stable_diffusion.py:187-233 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/seed_resize_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 371 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad3dd31b56d61ce8ba57f39b59974de36bd8e1b00d942198745e3caa54d3863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): examples/community/llm_grounded_diffusion.py:930-943 | examples/community/pipeline_animatediff_ipex.py:901-918 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060examples/community/pipeline_animatediff_ipex.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 386 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/llm_grounded_diffusion.py:930\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":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"71579223fd08208bd9630cbf58624e41ab1a56ec26de797fe4b47f44fda1a7e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/community/lpw_stable_diffusion_xl.py:1750-1767 | examples/community/pipeline_sdxl_style_aligned.py:1710-1727 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_sdxl_style_aligned.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 1530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1750}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1870d25d7a21457678a50ff1dad9050d019187fcbb2b71d9d9fb5f0d72e30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): examples/community/mixture_tiling_sdxl.py:956-970 | examples/community/mod_controlnet_tile_sr_sdxl.py:1491-1508 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:1491\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5ebe727821075d1ac58deb5d22fc9589dae666469be568022f29e9e7ee147f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/community/pipeline_animatediff_controlnet.py:96-113 | examples/community/pipeline_animatediff_img2video.py:163-180 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 594 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3532bd4e6a6053298a2921b4d17b5bf1688cab7b5b3e911948f0aed9c57abfb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/community/pipeline_kolors_inpainting.py:394-411 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:595-612 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_kolors_inpainting.py:394\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d25075c71ca33cf73e135de2db231270073e908e68c8acd45a1d838840b4bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:448-465 | examples/community/pipeline_stable_diffusion_xl_instantid.py:448-465 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"481e79b911b3b3cf4dcd24e460157576391bcf5c417e091e658eff4e34bb32b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/community/rerender_a_video.py:811-828 | examples/community/rerender_a_video.py:979-996 \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 \u0060examples/community/rerender_a_video.py:811\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":"examples/community/rerender_a_video.py"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69205f23d802c715fbd0171ba534ffed0016ec50f7a6175c4ed576b2bec36c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/community/stable_diffusion_controlnet_inpaint.py:573-590 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:532-549 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py\u0060 as WHOLE FILES: this scan already matched 68 separate duplicated blocks between them, totalling at least 1028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_inpaint.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd355beb0aa9dc2fc930c700690508bb568413fc4ac21c893d7979ca1f2c1fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/controlnet/train_controlnet_flux.py:1344-1361 | examples/controlnet/train_controlnet_sdxl.py:1286-1303 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 2214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a2ab6e052b1adcf344dcf41b02af11114ddb5f972cb7f837782e5d0cfabb92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/controlnet/train_controlnet_sd3.py:1217-1234 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1100-1117 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/t2i_adapter/train_t2i_adapter_sdxl.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 1630 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:1217\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0af24d181a2934d973ca7e73539c2d63086be9a46808a277e832d28c006b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): examples/controlnet/train_controlnet_sdxl.py:838-855 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:491-507 \u2014 \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.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 53 separate duplicated blocks between them, totalling at least 770 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:509\u0060 calls \u0060Generator\u0060, \u0060manual_seed\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py:858\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":"examples/controlnet/train_controlnet_sdxl.py"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbaab182ae78e3c9956ca1b8560ed4ceda30431076d8bcfd7c00a48457d7097c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/dreambooth/train_dreambooth.py:631-648 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:651-668 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 173 separate duplicated blocks between them, totalling at least 3201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41e89f5b6e9d1e73e45d1d71e490b29af08c67033508d4e94132d4f4f697de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux.py:1689-1706 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1957-1974 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 183 separate duplicated blocks between them, totalling at least 3210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1956\u0060 calls \u0060unwrap_model\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py:1687\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":"examples/dreambooth/train_dreambooth_lora_flux.py"},"region":{"startLine":1689}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9c238d67145deb03dddb64a2fb7baa7a32cdd142c52d5e13837dc34c7605f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_krea2.py:2030-2046 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1914-1931 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:2030\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, \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:2048\u0060 calls \u0060_validation_call_kwargs\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py:1933\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":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":2030}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe06ed6a89daa24defba05bda752dc482b8fa9983f2ea80f8a85cdb1435e2589"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_lumina2.py:1036-1053 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:731-747 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 and \u0060examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py\u0060 as WHOLE FILES: this scan already matched 121 separate duplicated blocks between them, totalling at least 1916 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_lumina2.py"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0528c45e129a517f2a8183072ae2bd5f30674a0a26387903463442edf0b967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1550-1567 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1635-1652 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py\u0060 as WHOLE FILES: this scan already matched 211 separate duplicated blocks between them, totalling at least 4020 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwenimage21.py"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e3a5213d926f780d792cd0d47a5d6f0009ada84c210085307ee2ca7bb55a6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:497-514 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:504-518 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:497\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, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:502\u0060 calls \u0060from_pretrained\u0060, \u0060deepspeed_zero_init_disabled_context_manager\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:497\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2b6c8fb5b23525c4c2123a071cc5950d7382474726483c5359be84875d6c15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:617-634 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:766-782 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:635\u0060 calls \u0060train\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:783\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b44f8efd1a0a0f363967f5850c1037bef4b02833e5cb06e6ad4ef72ffaec398"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:760-777 | examples/vqgan/train_vqgan.py:518-534 \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 \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:760\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a4fde8c78a81cf4c688ed80bb43ea8c34159881f452e33c3b83a9ed6208c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1202-1216 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1185-1202 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 140 separate duplicated blocks between them, totalling at least 2226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7feb1d87a2580b8afc389c4b4cc6925f003f61fa99476eb40b72522ce7a25a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:850-867 | examples/text_to_image/train_text_to_image.py:863-880 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 and \u0060examples/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2447 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/text_to_image/train_text_to_image.py:861\u0060 calls \u0060pin_memory\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:849\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbb85daf979df151d00e48947f1c6f383a9f02e08c7cc5c1dab0957a29351a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): utils/tests_fetcher.py:184-201 | utils/tests_fetcher.py:210-227 \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":"utils/tests_fetcher.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58ea4ba50948981b65a33c46c5866b8eed4de22aa23ba7f838c537e98857135"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 42): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:307-323 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:73-89 | examples/cogvideo/train_cogvideox_lora.py:64-80 | examples/custom_diffusion/train_custom_diffusion.py:329-345 | examples/dreambooth/train_dreambooth.py:234-250 | examples/dreambooth/train_dreambooth_flux.py:241-257 | examples/dreambooth/train_dreambooth_lora.py:220-236 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:329-345 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:350-366 | examples/dreambooth/train_dreambooth_lora_flux.py:261-277 | examples/dreambooth/train_dreambooth_lora_flux2.py:254-270 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:255-271 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:254-270 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:256-272 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:367-383 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:374-390 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:268-284 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:313-329 | examples/dreambooth/train_dreambooth_lora_lumina2.py:200-216 | examples/dreambooth/train_dreambooth_lora_sana.py:220-236 | examples/dreambooth/train_dreambooth_lora_sd3.py:251-267 | examples/dreambooth/train_dreambooth_lora_z_image.py:254-270 | examples/dreambooth/train_dreambooth_sd3.py:227-243 | examples/instruct_pix2pix/train_instruct_pix2pix.py:115-131 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:55-71 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:156-172 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:166-182 | examples/research_projects/lora/train_text_to_image_lora.py:88-104 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:181-197 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:122-139 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:247-263 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:241-257 | examples/research_projects/realfill/train_realfill.py:170-186 | examples/research_projects/sana/train_sana_sprint_diffusers.py:314-330 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:234-250 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:211-227 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:198-215 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:103-119 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:189-205 | examples/text_to_image/train_text_to_image.py:204-221 | examples/text_to_image/train_text_to_image_flax.py:59-75 | examples/text_to_image/train_text_to_image_lora.py:154-170 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 788 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:307\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:240\u0060 calls \u0060add_argument\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:114\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e727fc633b3208e589a68e9faca969559e6d9273e49c0ce5e0737ed2817b0af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 35): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:249-265 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:340-356 | examples/cogview4-control/train_control_cogview4.py:230-246 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:480-496 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:282-298 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:454-470 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:458-474 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:477-493 | examples/controlnet/train_controlnet_flux.py:250-266 | examples/controlnet/train_controlnet_sdxl.py:277-293 | examples/dreambooth/train_dreambooth_flax.py:48-64 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:268-284 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:272-288 | examples/dreambooth/train_dreambooth_lora_sdxl.py:265-281 | examples/flux-control/train_control_flux.py:225-241 | examples/flux-control/train_control_lora_flux.py:236-252 | examples/research_projects/controlnet/train_controlnet_webdataset.py:479-495 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:175-191 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:173-189 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:171-187 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:84-100 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:80-96 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:149-165 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:150-166 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:152-168 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:212-228 | examples/research_projects/lpl/train_sdxl_lpl.py:204-220 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:66-79 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:262-278 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:141-157 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:134-150 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:242-258 | examples/text_to_image/train_text_to_image_lora_sdxl.py:188-204 | examples/text_to_image/train_text_to_image_sdxl.py:138-154 | examples/textual_inversion/textual_inversion_flax.py:66-79 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:249\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"43abc6e2b0f8f7938f6069282c086efaa0d8274ac602f9c3b10c66b59435b720"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 33): examples/cogview4-control/train_control_cogview4.py:876-892 | examples/controlnet/train_controlnet.py:892-908 | examples/controlnet/train_controlnet_flux.py:1026-1042 | examples/controlnet/train_controlnet_sd3.py:1108-1124 | examples/controlnet/train_controlnet_sdxl.py:1020-1036 | examples/dreambooth/train_dreambooth.py:1026-1042 | examples/flux-control/train_control_flux.py:866-882 | examples/flux-control/train_control_lora_flux.py:1010-1026 | examples/instruct_pix2pix/train_instruct_pix2pix.py:584-600 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:639-655 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:729-745 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1089-1105 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:636-652 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:732-748 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:707-723 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:506-522 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:553-569 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:675-691 | examples/research_projects/lora/train_text_to_image_lora.py:561-577 | examples/research_projects/lpl/train_sdxl_lpl.py:915-931 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:924-940 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:572-588 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:728-744 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1188-1204 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1069-1085 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:699-715 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:564-580 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:812-828 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:969-985 | examples/text_to_image/train_text_to_image.py:697-713 | examples/text_to_image/train_text_to_image_lora.py:573-589 | examples/text_to_image/train_text_to_image_sdxl.py:799-815 | examples/textual_inversion/textual_inversion_sdxl.py:751-767 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:725\u0060 calls \u0060enable_gradient_checkpointing\u0060 and \u0060examples/cogview4-control/train_control_cogview4.py:874\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07d306915ef3da89afe72b306f67ed3e1de2543f3f8da04977a6f0a78072011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201317 lines \u00D7 32): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:672-688 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:562-578 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:671-687 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:360-374 | examples/cogvideo/train_cogvideox_lora.py:345-359 | examples/dreambooth/train_dreambooth_flux.py:532-548 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:670-686 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:667-683 | examples/dreambooth/train_dreambooth_lora_flux.py:566-582 | examples/dreambooth/train_dreambooth_lora_flux2.py:604-620 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:582-598 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:614-630 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:583-599 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:717-733 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:704-720 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:611-627 | examples/dreambooth/train_dreambooth_lora_hidream.py:583-599 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:691-707 | examples/dreambooth/train_dreambooth_lora_krea2.py:689-705 | examples/dreambooth/train_dreambooth_lora_lumina2.py:493-509 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:586-602 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:605-621 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:621-637 | examples/dreambooth/train_dreambooth_lora_sana.py:511-527 | examples/dreambooth/train_dreambooth_lora_sd3.py:551-567 | examples/dreambooth/train_dreambooth_lora_sdxl.py:550-566 | examples/dreambooth/train_dreambooth_lora_z_image.py:598-614 | examples/dreambooth/train_dreambooth_sd3.py:517-533 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:360-375 | examples/research_projects/sana/train_sana_sprint_diffusers.py:571-587 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:547-563 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:406-415 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:672\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e2804db36b3a816385ed08bb6e44267ceeffabb106eb2075f21d19eff7c599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 29): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2064-2080 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2055-2071 | examples/controlnet/train_controlnet_flux.py:1215-1230 | examples/controlnet/train_controlnet_sd3.py:1272-1287 | examples/dreambooth/train_dreambooth_flux.py:1538-1554 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1809-1825 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1643-1659 | examples/dreambooth/train_dreambooth_lora_flux.py:1662-1678 | examples/dreambooth/train_dreambooth_lora_flux2.py:1794-1810 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1695-1711 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1751-1767 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1643-1659 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1894-1910 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1780-1796 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1929-1945 | examples/dreambooth/train_dreambooth_lora_hidream.py:1529-1545 | examples/dreambooth/train_dreambooth_lora_krea2.py:1763-1779 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1324-1340 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1663-1679 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1715-1731 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1808-1824 | examples/dreambooth/train_dreambooth_lora_sana.py:1346-1362 | examples/dreambooth/train_dreambooth_lora_sd3.py:1695-1711 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1629-1645 | examples/dreambooth/train_dreambooth_lora_z_image.py:1678-1694 | examples/dreambooth/train_dreambooth_sd3.py:1516-1532 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:999-1015 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1652-1668 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:932-948 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5181a7137f76f01f9ed9459663c26e7e72a2916be95561596234b2be16a4e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 21): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1219-1234 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1263-1278 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1170-1185 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1264-1279 | examples/custom_diffusion/train_custom_diffusion.py:1121-1136 | examples/dreambooth/train_dreambooth.py:1217-1232 | examples/dreambooth/train_dreambooth_lora.py:1230-1245 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1018-1033 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:761-776 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:599-614 | examples/research_projects/realfill/train_realfill.py:832-847 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1249-1264 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1235-1250 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:919-935 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:764-779 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1050-1066 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1063-1079 | examples/text_to_image/train_text_to_image.py:938-954 | examples/text_to_image/train_text_to_image_lora.py:845-860 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1082-1098 | examples/text_to_image/train_text_to_image_sdxl.py:1059-1075 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth.py:1233\u0060 calls \u0060train\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1235\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"d123c59b8b8562a3e95247d9210507bc8996e44fca054944373ca18aa5ab9c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 19): examples/cogvideo/train_cogvideox_image_to_video_lora.py:251-266 | examples/cogvideo/train_cogvideox_lora.py:242-257 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:588-603 | examples/instruct_pix2pix/train_instruct_pix2pix.py:242-257 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:299-314 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:293-308 | examples/research_projects/lpl/train_sdxl_lpl.py:331-346 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:218-233 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:300-315 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:215-230 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:267-282 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:261-276 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:291-307 | examples/text_to_image/train_text_to_image.py:306-321 | examples/text_to_image/train_text_to_image_flax.py:153-168 | examples/text_to_image/train_text_to_image_lora.py:266-281 | examples/text_to_image/train_text_to_image_lora_sdxl.py:314-329 | examples/text_to_image/train_text_to_image_sdxl.py:265-280 | examples/vqgan/train_vqgan.py:350-365 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:251\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"478cf7b1a7a252f84db75806adc52bcb9568f797f166cfa17ead5ebc55b270d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 15): examples/cogvideo/train_cogvideox_image_to_video_lora.py:79-96 | examples/cogvideo/train_cogvideox_lora.py:70-87 | examples/controlnet/train_controlnet.py:266-283 | examples/custom_diffusion/train_custom_diffusion.py:335-352 | examples/dreambooth/train_dreambooth.py:240-257 | examples/dreambooth/train_dreambooth_flax.py:80-97 | examples/dreambooth/train_dreambooth_lora.py:226-243 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:348-364 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:103-120 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:99-116 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:253-271 | examples/research_projects/sana/train_sana_sprint_diffusers.py:320-338 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:240-257 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:217-234 | examples/textual_inversion/textual_inversion.py:215-232 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py:346\u0060 calls \u0060add_argument\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:79\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":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e281d303b6174d5eec1cf59e34cfcbb7bbc0e9f9c627bfd80edad4192b02a86b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 15): examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:936-952 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:528-544 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:543-559 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:686-702 | examples/research_projects/lora/train_text_to_image_lora.py:698-714 | examples/research_projects/lpl/train_sdxl_lpl.py:1089-1105 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:696-712 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:886-902 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:822-838 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:692-708 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:973-989 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:982-998 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:697-713 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1005-1021 | examples/text_to_image/train_text_to_image_sdxl.py:973-989 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 68 separate duplicated blocks between them, totalling at least 1014 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:936\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":"examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"36832e1eb0d14e0703665f17487077bb8d3d9ef167ad02aa8b7be9dffc7ce7a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 12): examples/controlnet/train_controlnet.py:938-954 | examples/controlnet/train_controlnet_sdxl.py:1133-1149 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1738-1754 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1572-1588 | examples/dreambooth/train_dreambooth_lora_flux2.py:1721-1737 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1624-1640 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1678-1694 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1572-1588 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1821-1837 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1707-1723 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1814-1830 | examples/dreambooth/train_dreambooth_lora_z_image.py:1606-1622 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:938\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e64609281b33ccb8fa3c497a92d8dc7751942f7c649cf6d136742f3dee2c59a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 10): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1405-1421 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1294-1310 | examples/dreambooth/train_dreambooth_lora_flux2.py:1358-1374 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1308-1324 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1361-1377 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1302-1318 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1450-1466 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1400-1416 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1499-1515 | examples/dreambooth/train_dreambooth_lora_z_image.py:1340-1356 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1405\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b0b5b9e40fa4ea22efb1312c58c62750eda607bf264ddd070ea0f186633500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 9): examples/cogview4-control/train_control_cogview4.py:949-965 | examples/controlnet/train_controlnet.py:980-996 | examples/controlnet/train_controlnet_flux.py:1168-1184 | examples/controlnet/train_controlnet_sd3.py:1225-1241 | examples/controlnet/train_controlnet_sdxl.py:1162-1178 | examples/flux-control/train_control_flux.py:939-955 | examples/flux-control/train_control_lora_flux.py:1084-1100 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1236-1252 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1108-1124 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"044a62687143f7d0fb5c47b72167e16fb31dccb29481fa9e319076c67c7a658b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 9): examples/research_projects/lpl/train_sdxl_lpl.py:937-951 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:749-765 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:719-735 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:584-600 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:830-844 | examples/text_to_image/train_text_to_image.py:717-733 | examples/text_to_image/train_text_to_image_lora.py:593-609 | examples/text_to_image/train_text_to_image_lora_sdxl.py:856-870 | examples/text_to_image/train_text_to_image_sdxl.py:821-835 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 836 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lpl/train_sdxl_lpl.py:937\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:746\u0060 calls \u0060parameters\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:580\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"9040fafe9e4f6adc2a44d7cc973f1a4b6dd5a60901ce03101e7ab6f52fa7586a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 8): examples/cogview4-control/train_control_cogview4.py:1139-1154 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1764-1780 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1827-1843 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1777-1793 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1918-1934 | examples/flux-control/train_control_flux.py:1146-1161 | examples/flux-control/train_control_lora_flux.py:1292-1307 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1118-1134 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 587 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:1139\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, \u0060examples/cogview4-control/train_control_cogview4.py:1136\u0060 calls \u0060view\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1759\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c03ad733aa3372d858445a7aefcf43d2d8b15522209a47ca6715f304fd241ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 8): examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2159-2175 | examples/dreambooth/train_dreambooth_lora_hidream.py:1647-1662 | examples/dreambooth/train_dreambooth_lora_krea2.py:1941-1956 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1820-1835 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1888-1903 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1984-1999 | examples/dreambooth/train_dreambooth_lora_sd3.py:1857-1873 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1125-1140 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 as WHOLE FILES: this scan already matched 120 separate duplicated blocks between them, totalling at least 1987 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux_kontext.py"},"region":{"startLine":2159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d662b2ee105bfaf22198150b6a2efdeee072bc56da4d04f7f3b7ca88f59b02d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 8): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:294-310 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:352-368 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:484-500 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:264-280 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:501-517 | examples/textual_inversion/textual_inversion.py:529-545 | examples/textual_inversion/textual_inversion_flax.py:277-293 | examples/textual_inversion/textual_inversion_sdxl.py:517-533 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/textual_inversion/textual_inversion_sdxl.py:534\u0060 calls \u0060CenterCrop\u0060, \u0060RandomCrop\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:312\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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"68430844f075b5e3c5a895f1b82225262c28f4e706fa4342855c8535433fe94a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 7): examples/controlnet/train_controlnet.py:877-893 | examples/controlnet/train_controlnet_flux.py:1011-1027 | examples/controlnet/train_controlnet_sd3.py:1093-1109 | examples/controlnet/train_controlnet_sdxl.py:1005-1021 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:716-730 | examples/research_projects/gligen/train_gligen_text.py:393-407 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:954-970 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:877\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet_flux.py:1007\u0060 calls \u0060enable_gradient_checkpointing\u0060 and \u0060examples/controlnet/train_controlnet.py:873\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"596dc53df284b62a180ab8d9428f65ec3ef01354ab6594655322b673565b10a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1559-1575 | examples/dreambooth/train_dreambooth_lora_flux2.py:1512-1528 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1515-1531 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1604-1620 | examples/dreambooth/train_dreambooth_lora_krea2.py:1567-1583 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1474-1490 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1516-1532 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1559\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40de82383c5bf692ad690d614f8e65ce9a95c8f3c8352d1321e9feb9b5cf485"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 7): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:536-550 | examples/research_projects/lpl/train_sdxl_lpl.py:858-872 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:516-530 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:643-657 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:756-770 | examples/text_to_image/train_text_to_image.py:634-650 | examples/text_to_image/train_text_to_image_sdxl.py:742-756 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/text_to_image/train_text_to_image.py:634\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"593c36f10f4c1316acce19340425d6ace0beac288b7895f03e897dd496450086"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:932-948 | examples/research_projects/lora/train_text_to_image_lora.py:543-559 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:647-663 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:689-705 | examples/textual_inversion/textual_inversion.py:717-733 | examples/textual_inversion/textual_inversion_sdxl.py:733-749 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 485 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c43ca984b26ef632b77b6ba058168b72c7399c44be9150119c67258c38d6ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 6): examples/consistency_distillation/train_lcm_distill_sd_wds.py:235-251 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:253-269 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:149-160 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:80-91 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:154-165 | examples/text_to_image/train_text_to_image.py:155-166 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"395f1021c3ec493bff7c8a1df0008f6cbe6e0af1f8c3ca7b1384bd583f39af0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): examples/controlnet/train_controlnet.py:670-686 | examples/controlnet/train_controlnet_flax.py:582-598 | examples/research_projects/lora/train_text_to_image_lora.py:659-677 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:657-675 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:783-801 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:648-666 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:670\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefd5d3d3f07e8d84ead91d9418370739ba85b154b9cb72a9466638cebfdd55a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): examples/controlnet/train_controlnet.py:777-793 | examples/dreambooth/train_dreambooth.py:910-926 | examples/dreambooth/train_dreambooth_lora.py:862-878 | examples/research_projects/realfill/train_realfill.py:578-594 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:953-969 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:881-897 \u2014 \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/dreambooth/train_dreambooth.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 67 separate duplicated blocks between them, totalling at least 962 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet.py:796\u0060 calls \u0060import_model_class_from_model_name_or_path\u0060 and \u0060examples/research_projects/realfill/train_realfill.py:597\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc46a06e54e36e3c8da91dde60e3d144a7af021259d5b500ee538c600d57f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): examples/controlnet/train_controlnet.py:1176-1192 | examples/controlnet/train_controlnet_flux.py:1426-1443 | examples/controlnet/train_controlnet_sd3.py:1450-1466 | examples/controlnet/train_controlnet_sdxl.py:1362-1378 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:1041-1057 | examples/textual_inversion/textual_inversion_sdxl.py:1120-1136 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:1176\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b33b3332764985f39f9811257496679e85fcebdc88fcdaa73751cef5c823a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1963-1979 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1913-1929 | examples/dreambooth/train_dreambooth_lora_hidream.py:1761-1777 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1925-1941 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1996-2012 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:2092-2108 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1963\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":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e680a6efaa60ca8f4b36f582563df8b6b51b842f8e10630c6ba252c1fa44f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 6): examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:99-110 | examples/research_projects/lpl/train_sdxl_lpl.py:258-274 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:195-211 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:188-204 | examples/text_to_image/train_text_to_image_lora_sdxl.py:242-258 | examples/text_to_image/train_text_to_image_sdxl.py:192-208 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lpl/train_sdxl_lpl.py:258\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"0267eb2e4823457d22729671fd65ed30d924744368b607ba4c5203f23e066895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): examples/community/gluegen.py:730-746 | examples/community/ip_adapter_face_id.py:1026-1042 | examples/community/pipeline_stable_diffusion_boxdiff.py:1525-1541 | examples/community/pipeline_stable_diffusion_pag.py:1295-1311 | examples/community/pipeline_stable_diffusion_xl_ipex.py:977-993 \u2014 before extracting anything, compare \u0060examples/community/gluegen.py\u0060 and \u0060examples/community/ip_adapter_face_id.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 775 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a96351c6f58c920d15fe5b797448ea32683caf09d5c8ad0da55764f0506870"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 5): examples/controlnet/train_controlnet.py:949-965 | examples/research_projects/gligen/train_gligen_text.py:466-482 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:706-722 | examples/research_projects/realfill/train_realfill.py:761-777 | examples/textual_inversion/textual_inversion.py:790-803 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/research_projects/gligen/train_gligen_text.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 860 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:949\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, \u0060examples/controlnet/train_controlnet.py:966\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/realfill/train_realfill.py:780\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"26dbe7720499f966020b6b727c002d962d9ce6a49400db8474cac5b477e3be75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): examples/controlnet/train_controlnet.py:1027-1043 | examples/controlnet/train_controlnet_sdxl.py:1209-1225 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:873-889 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1282-1298 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1156-1172 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff739cbc5421ce97fff99e284e3be08a4b4fbc6fb11cf71ef80e02659e4381bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 5): examples/controlnet/train_controlnet_flux.py:985-1001 | examples/controlnet/train_controlnet_sdxl.py:979-995 | examples/research_projects/lpl/train_sdxl_lpl.py:852-867 | examples/text_to_image/train_text_to_image_lora_sdxl.py:679-695 | examples/text_to_image/train_text_to_image_sdxl.py:736-751 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 2214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet_flux.py:1002\u0060 calls \u0060enable_xformers_memory_efficient_attention\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py:868\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cc558db8b88bfa2ffc778fd31ece9a67b2fafcba7897771b1c7121a01aea44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_hidream.py:1117-1130 | examples/dreambooth/train_dreambooth_lora_krea2.py:1311-1327 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1246-1259 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1288-1301 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1379-1392 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1311\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, \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1131\u0060 calls \u0060to\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1329\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d49dcbea61b54ede4daa8a1cb2670a567f3af3a3ad52867017beac9a675044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2054-2070 | examples/cogview4-control/train_control_cogview4.py:990-1005 | examples/flux-control/train_control_flux.py:979-994 | examples/flux-control/train_control_lora_flux.py:1124-1139 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogview4-control/train_control_cogview4.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 478 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2054}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8de61f0064aab6c6c0600f028644484a1ef9acdc363bfd9072c1527bd44d55b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1752-1767 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:991-1005 | examples/text_to_image/train_text_to_image_lora.py:870-884 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1118-1134 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6ad7191c4c13d80b64d6f8133fc9f858560e08b74796bef4ac68dfe1a522b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1740-1756 | examples/dreambooth/train_dreambooth_lora_sd3.py:1403-1417 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1343-1359 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1379-1395 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 125 separate duplicated blocks between them, totalling at least 1905 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1740}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f9f6c3e2546a62bbed9af67b213e18edee4e6f01cb98a4bba17e9e848c7ba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): examples/community/interpolate_stable_diffusion.py:243-259 | examples/community/multilingual_stable_diffusion.py:262-278 | examples/community/speech_to_image_diffusion.py:133-149 | examples/community/wildcard_stable_diffusion.py:287-303 \u2014 before extracting anything, compare \u0060examples/community/interpolate_stable_diffusion.py\u0060 and \u0060examples/community/multilingual_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 332 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/interpolate_stable_diffusion.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77c81500d3528eba3273d0b63ab382bbcbe20087ccaa41c8dc7f0de2bf9a825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): examples/community/pipeline_stg_cogvideox.py:697-713 | examples/community/pipeline_stg_ltx.py:685-701 | examples/community/pipeline_stg_ltx_image2video.py:747-763 | examples/community/pipeline_stg_mochi.py:688-704 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060examples/community/pipeline_stg_ltx.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfbb3c53c20f8fee0f9da812a23acdaf3a37f81ff043d736e3b56240fb506ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): examples/community/stable_diffusion_reference.py:796-814 | examples/community/stable_diffusion_tensorrt_img2img.py:839-855 | examples/community/stable_diffusion_tensorrt_inpaint.py:922-938 | examples/community/stable_diffusion_tensorrt_txt2img.py:795-811 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_reference.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"019dbbe44b9b619e784be904977fa3d8504bf584fd5cb34b864b47f84f134ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 4): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1018-1029 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1032-1043 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:963-979 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1022-1038 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:963\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, \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1044\u0060 calls \u0060to\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1032\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb491c13fbb7fde540f5348b68a85851fb3837f84f49073b5171961875f6121f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 4): examples/controlnet/train_controlnet_flux.py:300-314 | examples/controlnet/train_controlnet_sdxl.py:327-341 | examples/cosmos3/inference_cosmos3.py:137-153 | examples/research_projects/controlnet/train_controlnet_webdataset.py:526-540 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 2214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flux.py:300\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf3daec9f41dd07f1da1b6763e10a7df14d51835470ce0e5a5afa6b8ec847a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:1287-1300 | examples/dreambooth/train_dreambooth_lora.py:1299-1315 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1341-1354 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1326-1342 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:1287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7b69118a62297864943679307263aa3893e97e5f1d4104af4fcae254e1289a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201317 lines \u00D7 4): examples/dreambooth/train_dreambooth_flux.py:184-192 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:213-229 | examples/dreambooth/train_dreambooth_lora_sd3.py:197-205 | examples/dreambooth/train_dreambooth_sd3.py:173-181 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_ideogram4.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 1684 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea04351b0c8053b7fa0769008b6cf056c84282bb7a8592f828bdf5bc0b0c2372"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:915-931 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:911-927 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1030-1046 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:945-961 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"3324ff6122a96a02e398659a8dfa48de2d0510909015f29730457414c0edf2da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_qwen_image.py:1281-1297 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1323-1339 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1414-1430 | examples/dreambooth/train_dreambooth_lora_z_image.py:1279-1295 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 215 separate duplicated blocks between them, totalling at least 3669 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwen_image.py"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e546b600ee092036b955e1869da05fd85feb5ee4096ffb7c0d5e833bf0ed3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:919-935 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:937-953 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1131-1147 | examples/text_to_image/train_text_to_image.py:1138-1154 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1128\u0060 calls \u0060enable_xformers_memory_efficient_attention\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:934\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"26af93a819d991489c34945ea910bea64b91c6ca655ae24ef7ec844467a5058c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): examples/research_projects/lora/train_text_to_image_lora.py:669-685 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:667-683 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:793-809 | examples/text_to_image/train_text_to_image.py:798-814 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/text_to_image/train_text_to_image.py:791\u0060 calls \u0060getattr\u0060, \u0060upper\u0060, \u0060ValueError\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py:666\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d94567aba89266b2baa908c59b668194193a40deca1908aebe3865f7e1ba6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): scripts/convert_i2vgen_to_diffusers.py:284-300 | scripts/convert_i2vgen_to_diffusers.py:381-396 | scripts/convert_ms_text_to_video_to_diffusers.py:240-256 | scripts/convert_ms_text_to_video_to_diffusers.py:337-352 \u2014 before extracting anything, compare \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 and \u0060scripts/convert_ms_text_to_video_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_i2vgen_to_diffusers.py:284\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/convert_i2vgen_to_diffusers.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92cb212c795b27f302dc6c222936a88dfdad212a25c77393bea9b62fd7e035d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 4): scripts/convert_kakao_brain_unclip_to_diffusers.py:663-679 | scripts/convert_kakao_brain_unclip_to_diffusers.py:778-792 | scripts/convert_kandinsky_to_diffusers.py:614-630 | scripts/convert_kandinsky_to_diffusers.py:729-743 \u2014 before extracting anything, compare \u0060scripts/convert_kakao_brain_unclip_to_diffusers.py\u0060 and \u0060scripts/convert_kandinsky_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 385 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f4e54e01fb59875a8ea6a6d2dafd45d661ca088ddca984c6b41831255a3fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2391-2407 | examples/dreambooth/train_dreambooth_lora_flux.py:1933-1949 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2240-2256 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6433dba1282d361b9c0b3eff9a3e89c91374dbe4affb7b3d673a576e380c53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1641-1657 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1248-1264 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1284-1300 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ea470440def5f30cce7052ebbf08a9bfff1c5f1522d848fd05ea0cf653568a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2009-2025 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1583-1599 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1606-1622 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a24ba24383fe3feb8d472f7125ba89f39362efed6ef0080e02aee65d9da5b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:129-145 | examples/community/stable_diffusion_tensorrt_inpaint.py:133-149 | examples/community/stable_diffusion_tensorrt_txt2img.py:116-132 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"618515d67d0d00e2bdf1cdd46708dc3316ba380ca786fc4a49a1c21981f65bd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_sd_wds.py:1020-1036 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1080-1096 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:986-1002 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"9336314c9a9fb9ca14d0e9d4b4d1ccf3c2fefbaece08eef2be9069bd36fd5415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/controlnet/train_controlnet.py:190-206 | examples/custom_diffusion/train_custom_diffusion.py:115-131 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:160-176 \u2014 \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.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 51 separate duplicated blocks between them, totalling at least 778 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. 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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"224d840e5045db81b09647bd6eae84c0ed38b34c3f8205fe15351a80959dfc74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): examples/controlnet/train_controlnet.py:1150-1165 | examples/controlnet/train_controlnet_sd3.py:1428-1443 | examples/controlnet/train_controlnet_sdxl.py:1337-1353 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 1830 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:1150\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"381521de2a365243bcc7b2d82b0b0a0b8b83e264348843547cc0fe99b5d50167"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/controlnet/train_controlnet_flax.py:809-825 | examples/dreambooth/train_dreambooth_flax.py:481-497 | examples/text_to_image/train_text_to_image_flax.py:437-453 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet_flax.py:806\u0060 calls \u0060replicate\u0060 and \u0060examples/dreambooth/train_dreambooth_flax.py:478\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flax.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"54912e947c11ac33a458490391615f4053c52b10ec9ce3ef475ee3fd5059f72f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/controlnet/train_controlnet_sd3.py:1191-1207 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:766-782 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1074-1090 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 1175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:1191\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":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f7d932c5523f87f1764c65e9033a3dd0eac7f1b0bbd1b0edd3fff32ef5d77a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/custom_diffusion/train_custom_diffusion.py:1035-1051 | examples/dreambooth/train_dreambooth.py:1107-1123 | examples/dreambooth/train_dreambooth_lora.py:1134-1150 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth.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 67 separate duplicated blocks between them, totalling at least 993 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:1035\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f3bf7fb6009ab8da9a59888c33443187bc8413d2af34b9e7f9cb0ad2b55d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): examples/dreambooth/train_dreambooth_flax.py:203-217 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:278-294 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:277-293 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 647 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:278\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_flax.py:201\u0060 calls \u0060add_argument\u0060, \u0060parse_args\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:278\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf966dcd9ce5c6c3ded108871d2a193e7ff4ac47dd22158444eedde46999ee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): examples/dreambooth/train_dreambooth_flux.py:1713-1728 | examples/dreambooth/train_dreambooth_lora_flux.py:1852-1867 | examples/dreambooth/train_dreambooth_sd3.py:1667-1683 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:1713\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda4b49a45d625db1e806848f364d4a6e8d7b9a619b4cbe067490d68574b17e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_hidream.py:1031-1047 | examples/dreambooth/train_dreambooth_lora_sd3.py:1165-1181 | examples/dreambooth/train_dreambooth_sd3.py:1090-1106 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2568 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4e1c6461d831c8719aaaf51e8d1386d1d7a3663261b786ee43ddcae7e5e689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_qwen_image.py:1074-1090 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1108-1124 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1199-1215 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 215 separate duplicated blocks between them, totalling at least 3669 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwen_image.py"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b2396df5dab7fb544e61cc9d5ab2e9ddad066dfdafa711768311171c76dadb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/instruct_pix2pix/train_instruct_pix2pix.py:494-510 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:554-570 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:552-568 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:494\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, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:492\u0060 calls \u0060from_pretrained\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:553\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"821a27c75a58b17f736b63924621c5969153b13dcbc26ab07b219fad4c865408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/instruct_pix2pix/train_instruct_pix2pix.py:522-538 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:578-594 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:932-948 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b783f4225ecbfd0488d9eb610a046809bd927fab286b71c8bd9bd09aa9554f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:330-345 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:342-358 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:684-699 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c890933cf4bb019eedc6243629f747fbc812acc48c5ed993ba225a9fddb126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/research_projects/colossalai/train_dreambooth_colossalai.py:474-490 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:537-553 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:581-597 \u2014 before extracting anything, compare \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 584 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/colossalai/train_dreambooth_colossalai.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"1453e6de1409014831d143ffd584deb2e07a003ac9ad4bf3184eca01e31e7e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:589-605 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:523-539 | examples/text_to_image/train_text_to_image_lora.py:532-548 \u2014 before extracting anything, compare \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 92 separate duplicated blocks between them, totalling at least 1539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:520\u0060 calls \u0060parameters\u0060, \u0060requires_grad_\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py:530\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":"examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd03c735305e66d001058b1e50f18e4617425955be934fe0263af95621d344c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:1209-1223 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1077-1093 | examples/text_to_image/train_text_to_image_sdxl.py:1073-1089 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1077\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, \u0060examples/research_projects/lpl/train_sdxl_lpl.py:1207\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1077\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":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a78d8ee542fa7c28d98f22ead6146d0ad6653e2c12cdb91af70cfe6480ae24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:1352-1368 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1208-1224 | examples/text_to_image/train_text_to_image_sdxl.py:1169-1185 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"926d413cafb6cf7e31a83972084b6a1f0e876ae104088d7554db53e16523d2f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1124-1140 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1138-1154 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1134-1150 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 136 separate duplicated blocks between them, totalling at least 2190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c1073adc36a86f6ccc11f11b5ea32ba3b0ed05bf2db3f41feb42052e00485a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201317 lines \u00D7 3): scripts/convert_amused.py:204-214 | scripts/convert_pixart_alpha_to_diffusers.py:59-75 | scripts/convert_pixart_sigma_to_diffusers.py:59-75 \u2014 before extracting anything, compare \u0060scripts/convert_amused.py\u0060 and \u0060scripts/convert_pixart_alpha_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_pixart_alpha_to_diffusers.py:59\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/convert_amused.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b13351edae6dedb29cdcf8a901e48dad05a0d65331d92e9ca6efbe7f13926c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): scripts/convert_anima_to_diffusers.py:124-140 | scripts/convert_anima_to_diffusers.py:165-181 | scripts/convert_anima_to_diffusers.py:214-230 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_anima_to_diffusers.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"322c4fdb7bc12ef502519c946012dfd37bed3ba8b926d6304bbba168f177c72e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): scripts/convert_cogview3_to_diffusers.py:86-102 | scripts/convert_cogview4_to_diffusers.py:95-111 | scripts/convert_hunyuan_image_to_diffusers.py:193-211 \u2014 before extracting anything, compare \u0060scripts/convert_cogview3_to_diffusers.py\u0060 and \u0060scripts/convert_cogview4_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_cogview3_to_diffusers.py:86\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/convert_cogview3_to_diffusers.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c2b808765d9ee1c506fc0bab92980ce70aac28769fc267e58e4a43f2325c8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): scripts/convert_hunyuan_image_to_diffusers.py:869-885 | scripts/convert_hunyuan_image_to_diffusers.py:942-958 | scripts/convert_hunyuan_image_to_diffusers.py:1010-1024 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_hunyuan_image_to_diffusers.py:869\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/convert_hunyuan_image_to_diffusers.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acacf8e69d3013b50c1a71700c8c7b22588de402932d4f8a650ba58479824bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): scripts/convert_original_audioldm2_to_diffusers.py:634-650 | scripts/convert_original_audioldm_to_diffusers.py:609-625 | scripts/convert_original_musicldm_to_diffusers.py:614-630 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d7594f4a40bae38882889d6f4c849ce941f6a3dc65cb9515de4a5c33c0a233"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): scripts/convert_original_audioldm2_to_diffusers.py:993-1009 | scripts/convert_original_audioldm_to_diffusers.py:925-941 | scripts/convert_original_musicldm_to_diffusers.py:938-954 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"5712854b8e4cbe59ba815168f2c72066895b434f5609d0821e920287ca9232c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:684-700 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:811-827 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:684\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0960d351822e389aa075cf2e682787c93992a8ce34f147f7a952159082cdfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1614-1630 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1973-1989 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"baaa046de5f3c226e6aa193fb18f275001274056f91d105b142c1e056bf02b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/community/edict_pipeline.py:157-173 | examples/community/edict_pipeline.py:216-232 \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":"examples/community/edict_pipeline.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"607ce380f45a2fd56c636b2ac69b1738003cf0696510a9d8a5d69bff72aafc9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/community/gluegen.py:59-75 | examples/community/gluegen.py:102-118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/gluegen.py:55\u0060 calls \u0060LayerNorm\u0060 and \u0060examples/community/gluegen.py:98\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b18d5dcdcd434adb2867dc0be566c0afa6248d2df09505b79a438af8a05e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): examples/community/mixture_tiling_sdxl.py:1101-1114 | examples/community/mod_controlnet_tile_sr_sdxl.py:1661-1677 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:1661\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8c7247effcb60b6323a429c3a433875ce2dcfcdcd2e7f80a8a0d9d1aedf7b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/community/pipeline_flux_differential_img2img.py:248-264 | examples/community/pipeline_flux_with_cfg.py:209-225 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_with_cfg.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 532 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f80b1204015fa4baa9fbb553fde5dd4e0857886af5bf99f4f891c9e15942ea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/community/pipeline_flux_differential_img2img.py:293-309 | examples/community/pipeline_flux_with_cfg.py:253-269 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_with_cfg.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 532 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6fe5be6ce301638693aaf721f17553d5b48f49212c47656b428bd83a98234a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/community/pipeline_flux_with_cfg.py:741-757 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1135-1151 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_with_cfg.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"2709eb34b58037718a55ce02da445d9fd5cd723d0cec98159a00a45dba20a32b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/community/pipeline_stg_ltx.py:794-810 | examples/community/pipeline_stg_ltx_image2video.py:867-883 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91270df65199c1d7a7c9e7c14c03f3158f1b5b389b2adfa5e77b291b3ee6233"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1136-1152 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:734-748 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 558 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"03921335d5c40b16a8315761af2335bf5b9904de7abb19e817cba1a3696901d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/controlnet/train_controlnet.py:252-268 | examples/controlnet/train_controlnet_sd3.py:293-309 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 1830 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:252\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44db37853f8737ba863c04bf4ef87c76bcb97ba2e8b4eb40d181274f9cc2e40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/controlnet/train_controlnet_flax.py:664-680 | examples/text_to_image/train_text_to_image_flax.py:262-278 \u2014 \u0060examples/controlnet/train_controlnet_flax.py\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.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 19 separate duplicated blocks between them, totalling at least 233 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":"examples/controlnet/train_controlnet_flax.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f1604a040a47062c0366664f8cdf60976bb066cb031dfcd4f134836ab99426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/controlnet/train_controlnet_sd3.py:907-923 | examples/dreambooth/train_dreambooth_sd3.py:966-982 \u2014 \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.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 76 separate duplicated blocks between them, totalling at least 1141 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":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b8be8833451aa4c53c1a3f51be1d106cddb5ece1dbf8b6b521df27608475b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/controlnet/train_controlnet_sdxl.py:599-615 | examples/text_to_image/train_text_to_image.py:492-508 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 and \u0060examples/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 748 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sdxl.py:599\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sdxl.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7f1d55ece045ddfe63b5319548fb46556e8b8eb055380c3f8fdb47dcca2315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/cosmos3/cosmos_parallel.py:260-276 | examples/cosmos3/cosmos_parallel.py:370-386 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cosmos3/cosmos_parallel.py:260\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":"examples/cosmos3/cosmos_parallel.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"6851786c51a3a0990e16f55221f5dceff642ec99480bbc3adf46411f53915006"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): examples/custom_diffusion/train_custom_diffusion.py:605-620 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:464-480 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 878 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:605\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"538f8a17486fd31935d26e0d4b9256805b65561245bcb126da26fd5cf0435def"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/custom_diffusion/train_custom_diffusion.py:1349-1365 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1350-1366 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 768 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:1349\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":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a39d98b890e29622bfeab58579376f4d6ef9ab1a5f8b33823ad39a5d37e82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/dreambooth/train_dreambooth.py:574-590 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:594-610 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 173 separate duplicated blocks between them, totalling at least 3201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:574\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"043193de02db2b16330e09f40ca8fd8587599bcc89b138a9a21149fb13cb6e94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1512-1526 | examples/dreambooth/train_dreambooth_lora_sd3.py:1332-1348 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux_kontext.py"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73ea8fbf0655520dde7853ec096876f5a80df4e5fe3ac99ee153027d83f191f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_lumina2.py:596-612 | examples/dreambooth/train_dreambooth_lora_sdxl.py:666-682 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2033 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:596\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_lumina2.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abe896dfec99659e2ff1b7c3d94feb8249711930f78ab3cb76e13aabe98572c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201317 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sana.py:984-994 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1007-1023 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sana.py\u0060 and \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1540 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sana.py:984\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sana.py"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbf8bc2c01cf8c787f93a3e49f40545073e69b18e7a6308154d571932a423df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sdxl.py:814-830 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:813-829 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"efeffe44c0425cde888383bd1b9a832357f8c3c9458b1f2bcf3bacc55e90c575"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/instruct_pix2pix/train_instruct_pix2pix.py:544-560 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:635-651 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"e961e1e1729fc57d3a4aeb1fc3dbcc280d4375dbdebe79c572fb05a58dd04d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:573-589 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:591-607 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 87 separate duplicated blocks between them, totalling at least 1312 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff075123718ef56e705ec7e44d1dd221a59a53deb50a8b88d6b276843ab0d96b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201330 lines \u00D7 2): examples/research_projects/anytext/ocr_recog/RecSVTR.py:261-281 | examples/research_projects/anytext/ocr_recog/RecSVTR.py:282-311 \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":"examples/research_projects/anytext/ocr_recog/RecSVTR.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62e05893aecdedf1f898d0798ec729fcbd4f5c8e3f82997f6f9fd96c3566f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/research_projects/controlnet/train_controlnet_webdataset.py:1449-1465 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1305-1321 \u2014 before extracting anything, compare \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 and \u0060examples/t2i_adapter/train_t2i_adapter_sdxl.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 2078 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4597e0e8ffa628a12d69b5d762b95f66d559789f7ba3b189bc994f005b36e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:600-615 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:424-440 \u2014 \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.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 25 separate duplicated blocks between them, totalling at least 353 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":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"7799d8a61b42264910572b4fc19188a1af7d498bfb3612e02579281be7727985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:534-549 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:673-689 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 522 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:534\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec6ce0aa299f0104b42a4a898749e8c7aacc6c8769c7a38aac638363e94610f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:329-345 | examples/textual_inversion/textual_inversion_flax.py:342-358 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 and \u0060examples/textual_inversion/textual_inversion_flax.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 848 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ddfa45f1650ef9bd435de513e954af3faf67a44dfc29dfa34299939c7cccbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/research_projects/pixart/train_pixart_controlnet_hf.py:1073-1089 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1200-1216 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 56 separate duplicated blocks between them, totalling at least 868 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:1072\u0060 calls \u0060parameters\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1199\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":"examples/research_projects/pixart/train_pixart_controlnet_hf.py"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bc343ae890b5088c850cde46f2e13f3344d8537973c51c258caae67436f931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:352-368 | scripts/convert_zero123_to_diffusers.py:498-514 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_zero123_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 877 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c722bb1eb8d6aaed49461bc64c9eb33c6e3d35bba4d0705b7349d8e5b36add3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:974-990 | examples/text_to_image/train_text_to_image_lora.py:988-1002 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 135 separate duplicated blocks between them, totalling at least 2248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:974\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22e458a02d4805a16ac401206286ba43f9514a466ba69b74072214d05613eb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:939-955 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:915-931 \u2014 before extracting anything, compare \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1487 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bb77fa07de6a641449abbf89099f29c6cc74e4dd30db95fcc5b54f677b5a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 80): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:733-748 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:611-626 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:720-735 | examples/cogview4-control/train_control_cogview4.py:378-393 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:822-838 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:644-660 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:802-818 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:787-803 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:812-828 | examples/controlnet/train_controlnet.py:404-419 | examples/controlnet/train_controlnet_flux.py:428-443 | examples/controlnet/train_controlnet_sd3.py:475-490 | examples/controlnet/train_controlnet_sdxl.py:446-461 | examples/custom_diffusion/train_custom_diffusion.py:544-559 | examples/dreambooth/train_dreambooth.py:436-451 | examples/dreambooth/train_dreambooth_flax.py:174-189 | examples/dreambooth/train_dreambooth_flux.py:581-596 | examples/dreambooth/train_dreambooth_lora.py:437-452 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:725-740 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:722-737 | examples/dreambooth/train_dreambooth_lora_flux.py:624-639 | examples/dreambooth/train_dreambooth_lora_flux2.py:662-677 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:640-655 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:672-687 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:641-656 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:772-787 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:759-774 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:669-684 | examples/dreambooth/train_dreambooth_lora_hidream.py:637-652 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:749-764 | examples/dreambooth/train_dreambooth_lora_krea2.py:745-760 | examples/dreambooth/train_dreambooth_lora_lumina2.py:547-562 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:640-655 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:661-676 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:677-692 | examples/dreambooth/train_dreambooth_lora_sana.py:569-584 | examples/dreambooth/train_dreambooth_lora_sd3.py:619-634 | examples/dreambooth/train_dreambooth_lora_sdxl.py:599-614 | examples/dreambooth/train_dreambooth_lora_z_image.py:656-671 | examples/dreambooth/train_dreambooth_sd3.py:566-581 | examples/flux-control/train_control_flux.py:370-385 | examples/flux-control/train_control_lora_flux.py:402-417 | examples/instruct_pix2pix/train_instruct_pix2pix.py:335-350 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:392-407 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:350-365 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:247-262 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:254-269 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:354-369 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:307-322 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:198-213 | examples/research_projects/controlnet/train_controlnet_webdataset.py:643-658 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:360-375 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:379-394 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:377-392 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:361-376 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:222-237 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:218-233 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:405-420 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:386-401 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:179-194 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:169-184 | examples/research_projects/lora/train_text_to_image_lora.py:308-323 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:363-378 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:294-309 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:159-175 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:312-327 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:306-321 | examples/research_projects/realfill/train_realfill.py:320-335 | examples/research_projects/sana/train_sana_sprint_diffusers.py:617-632 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:436-451 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:428-443 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:596-611 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:426-441 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:356-371 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:354-369 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:421-436 | examples/text_to_image/train_text_to_image_flax.py:196-211 | examples/textual_inversion/textual_inversion.py:333-348 | examples/textual_inversion/textual_inversion_flax.py:172-188 | examples/textual_inversion/textual_inversion_sdxl.py:334-349 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:159\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, \u0060examples/cogview4-control/train_control_cogview4.py:376\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:177\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a03d4ae6205664d3a68b8e4ef17c15bdb82446797b5223d9a4f8cfcda96f80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 70): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2063-2078 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1690-1705 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2054-2069 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1218-1232 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1200-1214 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1262-1276 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1169-1183 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1263-1277 | examples/controlnet/train_controlnet.py:1026-1040 | examples/controlnet/train_controlnet_flux.py:1214-1228 | examples/controlnet/train_controlnet_sd3.py:1271-1285 | examples/controlnet/train_controlnet_sdxl.py:1208-1222 | examples/custom_diffusion/train_custom_diffusion.py:1120-1134 | examples/dreambooth/train_dreambooth.py:1216-1230 | examples/dreambooth/train_dreambooth_flux.py:1537-1552 | examples/dreambooth/train_dreambooth_lora.py:1229-1243 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1808-1823 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1642-1657 | examples/dreambooth/train_dreambooth_lora_flux.py:1661-1676 | examples/dreambooth/train_dreambooth_lora_flux2.py:1793-1808 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1694-1709 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1750-1765 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1642-1657 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1893-1908 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1779-1794 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1928-1943 | examples/dreambooth/train_dreambooth_lora_hidream.py:1528-1543 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1886-1901 | examples/dreambooth/train_dreambooth_lora_krea2.py:1762-1777 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1323-1338 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1662-1677 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1714-1729 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1807-1822 | examples/dreambooth/train_dreambooth_lora_sana.py:1345-1360 | examples/dreambooth/train_dreambooth_lora_sd3.py:1694-1709 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1628-1643 | examples/dreambooth/train_dreambooth_lora_z_image.py:1677-1692 | examples/dreambooth/train_dreambooth_sd3.py:1515-1530 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1017-1031 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:760-774 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:598-612 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:614-629 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:763-777 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:872-886 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1281-1295 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:787-801 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:923-937 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:905-919 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:908-922 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:998-1013 | examples/research_projects/gligen/train_gligen_text.py:538-552 | examples/research_projects/lpl/train_sdxl_lpl.py:1189-1204 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:958-972 | examples/research_projects/realfill/train_realfill.py:831-845 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1315-1330 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1248-1262 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1234-1248 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1651-1666 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:918-933 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:763-777 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1049-1064 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1062-1077 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:931-946 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1155-1169 | examples/text_to_image/train_text_to_image.py:937-952 | examples/text_to_image/train_text_to_image_lora.py:844-858 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1081-1096 | examples/text_to_image/train_text_to_image_sdxl.py:1058-1073 | examples/textual_inversion/textual_inversion.py:849-864 | examples/textual_inversion/textual_inversion_sdxl.py:891-906 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1216\u0060 calls \u0060train\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1234\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2063}}}],"partialFingerprints":{"codehealthFindingId/v1":"32eeed9a61e30965a4c653d36a07b27f6c84689aeaa928149c53b8396be21d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 59): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:552-567 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:438-453 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:540-555 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:259-274 | examples/cogvideo/train_cogvideox_lora.py:250-265 | examples/cogview4-control/train_control_cogview4.py:277-292 | examples/controlnet/train_controlnet.py:310-325 | examples/controlnet/train_controlnet_flux.py:325-340 | examples/controlnet/train_controlnet_sd3.py:351-366 | examples/controlnet/train_controlnet_sdxl.py:352-367 | examples/custom_diffusion/train_custom_diffusion.py:452-467 | examples/dreambooth/train_dreambooth.py:338-353 | examples/dreambooth/train_dreambooth_flux.py:411-426 | examples/dreambooth/train_dreambooth_lora.py:345-360 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:562-577 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:559-574 | examples/dreambooth/train_dreambooth_lora_flux.py:445-460 | examples/dreambooth/train_dreambooth_lora_flux2.py:483-498 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:467-482 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:493-508 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:468-483 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:609-624 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:596-611 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:490-505 | examples/dreambooth/train_dreambooth_lora_hidream.py:476-491 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:554-569 | examples/dreambooth/train_dreambooth_lora_krea2.py:579-594 | examples/dreambooth/train_dreambooth_lora_lumina2.py:386-401 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:479-494 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:498-513 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:514-529 | examples/dreambooth/train_dreambooth_lora_sana.py:404-419 | examples/dreambooth/train_dreambooth_lora_sd3.py:431-446 | examples/dreambooth/train_dreambooth_lora_sdxl.py:446-461 | examples/dreambooth/train_dreambooth_lora_z_image.py:477-492 | examples/dreambooth/train_dreambooth_sd3.py:397-412 | examples/flux-control/train_control_flux.py:269-284 | examples/flux-control/train_control_lora_flux.py:280-295 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:197-212 | examples/research_projects/controlnet/train_controlnet_webdataset.py:551-566 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:256-271 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:281-296 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:279-294 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:263-278 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:239-254 | examples/research_projects/gligen/train_gligen_text.py:130-145 | examples/research_projects/lpl/train_sdxl_lpl.py:339-354 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:275-290 | examples/research_projects/realfill/train_realfill.py:230-245 | examples/research_projects/sana/train_sana_sprint_diffusers.py:438-453 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:338-353 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:336-351 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:443-458 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:275-290 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:269-284 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:300-315 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:329-344 | examples/text_to_image/train_text_to_image_lora_sdxl.py:322-337 | examples/text_to_image/train_text_to_image_sdxl.py:273-288 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:552\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, \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:260\u0060 calls \u0060add_argument\u0060 and \u0060examples/controlnet/train_controlnet.py:307\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3fe17b779fce608e663dcc72e2e84dac82c150c3e6723d2b3302a0e4589e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 57): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:312-329 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:260-277 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:351-368 | examples/amused/train_amused.py:61-78 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:78-95 | examples/cogvideo/train_cogvideox_lora.py:69-86 | examples/controlnet/train_controlnet_flux.py:274-291 | examples/controlnet/train_controlnet_sd3.py:312-329 | examples/controlnet/train_controlnet_sdxl.py:301-318 | examples/custom_diffusion/train_custom_diffusion.py:334-351 | examples/dreambooth/train_dreambooth.py:239-256 | examples/dreambooth/train_dreambooth_flax.py:59-76 | examples/dreambooth/train_dreambooth_flax.py:79-96 | examples/dreambooth/train_dreambooth_flux.py:246-263 | examples/dreambooth/train_dreambooth_lora.py:225-242 | examples/dreambooth/train_dreambooth_lora_flux.py:266-283 | examples/dreambooth/train_dreambooth_lora_hidream.py:292-309 | examples/dreambooth/train_dreambooth_lora_krea2.py:357-374 | examples/dreambooth/train_dreambooth_lora_lumina2.py:205-222 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:260-277 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:279-296 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:283-300 | examples/dreambooth/train_dreambooth_lora_sana.py:225-242 | examples/dreambooth/train_dreambooth_lora_sd3.py:256-273 | examples/dreambooth/train_dreambooth_lora_sdxl.py:276-293 | examples/dreambooth/train_dreambooth_sd3.py:232-249 | examples/instruct_pix2pix/train_instruct_pix2pix.py:120-137 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:60-77 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:102-119 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:98-115 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:160-177 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:171-188 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:85-100 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:69-84 | examples/research_projects/lpl/train_sdxl_lpl.py:215-232 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:186-203 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:187-202 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:199-214 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:252-269 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:246-263 | examples/research_projects/realfill/train_realfill.py:175-192 | examples/research_projects/sana/train_sana_sprint_diffusers.py:319-337 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:239-256 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:216-233 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:273-290 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:204-221 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:108-125 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:152-169 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:145-162 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:194-211 | examples/text_to_image/train_text_to_image.py:210-227 | examples/text_to_image/train_text_to_image_flax.py:64-81 | examples/text_to_image/train_text_to_image_lora.py:159-176 | examples/text_to_image/train_text_to_image_lora_sdxl.py:199-216 | examples/text_to_image/train_text_to_image_sdxl.py:149-166 | examples/textual_inversion/textual_inversion.py:214-231 | examples/textual_inversion/textual_inversion_sdxl.py:218-233 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:312\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"6970952b908b0e785bf07d26e8fbf495731048ab7a003a18f3835ba1668f3e6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 36): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:249-264 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:340-355 | examples/cogview4-control/train_control_cogview4.py:230-245 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:480-495 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:282-297 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:454-469 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:458-473 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:477-492 | examples/controlnet/train_controlnet_flux.py:250-265 | examples/controlnet/train_controlnet_sdxl.py:277-292 | examples/dreambooth/train_dreambooth_flax.py:48-63 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:268-283 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:272-287 | examples/dreambooth/train_dreambooth_lora_sdxl.py:265-280 | examples/flux-control/train_control_flux.py:225-240 | examples/flux-control/train_control_lora_flux.py:236-251 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:145-160 | examples/research_projects/controlnet/train_controlnet_webdataset.py:479-494 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:175-190 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:173-188 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:171-186 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:84-99 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:80-95 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:149-164 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:150-165 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:152-167 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:212-227 | examples/research_projects/lpl/train_sdxl_lpl.py:204-219 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:66-79 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:262-277 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:141-156 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:134-149 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:242-257 | examples/text_to_image/train_text_to_image_lora_sdxl.py:188-203 | examples/text_to_image/train_text_to_image_sdxl.py:138-153 | examples/textual_inversion/textual_inversion_flax.py:66-79 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:249\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbda61b1916ca23917286c50402d16efd47a3e9b23732ee7a2aeb1707300354f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 33): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1361-1376 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1351-1366 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:985-1000 | examples/cogvideo/train_cogvideox_lora.py:1006-1021 | examples/controlnet/train_controlnet_sd3.py:952-967 | examples/dreambooth/train_dreambooth_flux.py:1051-1066 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1152-1167 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1087-1102 | examples/dreambooth/train_dreambooth_lora_flux.py:1094-1109 | examples/dreambooth/train_dreambooth_lora_flux2.py:1094-1109 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1092-1107 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1099-1114 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1088-1103 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1199-1214 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1190-1205 | examples/dreambooth/train_dreambooth_lora_hidream.py:959-974 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1185-1200 | examples/dreambooth/train_dreambooth_lora_krea2.py:1176-1191 | examples/dreambooth/train_dreambooth_lora_lumina2.py:882-897 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1116-1131 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1150-1165 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1241-1256 | examples/dreambooth/train_dreambooth_lora_sana.py:893-908 | examples/dreambooth/train_dreambooth_lora_sd3.py:1086-1101 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1009-1024 | examples/dreambooth/train_dreambooth_lora_z_image.py:1084-1099 | examples/dreambooth/train_dreambooth_sd3.py:1011-1026 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:610-625 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:583-598 | examples/research_projects/sana/train_sana_sprint_diffusers.py:963-978 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:645-660 | examples/textual_inversion/textual_inversion.py:608-623 | examples/textual_inversion/textual_inversion_sdxl.py:607-622 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1361\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad24948f92ceb8af25958743e1ea41499925420d26346350ef808365e1b83a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 28): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:615-630 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:448-463 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:595-610 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:593-608 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:618-633 | examples/controlnet/train_controlnet.py:305-319 | examples/controlnet/train_controlnet_flax.py:265-279 | examples/controlnet/train_controlnet_flux.py:322-334 | examples/controlnet/train_controlnet_sd3.py:346-360 | examples/controlnet/train_controlnet_sdxl.py:349-361 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:554-568 | examples/flux-control/train_control_flux.py:264-278 | examples/flux-control/train_control_lora_flux.py:275-289 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:269-283 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:173-187 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:179-193 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:278-292 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:192-206 | examples/research_projects/controlnet/train_controlnet_webdataset.py:548-560 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:251-265 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:276-290 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:274-288 | examples/research_projects/gligen/train_gligen_text.py:125-139 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:379-393 | examples/research_projects/realfill/train_realfill.py:225-239 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:288-302 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:280-294 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:326-338 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:615\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"472134c2efb84b9a97a9e847677d89c50b26020543f10274c753b1328a88da3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 27): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1379-1394 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1115-1130 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1369-1384 | examples/dreambooth/train_dreambooth.py:850-865 | examples/dreambooth/train_dreambooth_flux.py:1069-1084 | examples/dreambooth/train_dreambooth_lora.py:803-818 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1170-1185 | examples/dreambooth/train_dreambooth_lora_flux.py:1112-1127 | examples/dreambooth/train_dreambooth_lora_flux2.py:1112-1127 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1117-1132 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1217-1232 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1289-1304 | examples/dreambooth/train_dreambooth_lora_hidream.py:977-992 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1203-1218 | examples/dreambooth/train_dreambooth_lora_krea2.py:1194-1209 | examples/dreambooth/train_dreambooth_lora_lumina2.py:900-915 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1134-1149 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1168-1183 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1259-1274 | examples/dreambooth/train_dreambooth_lora_sana.py:911-926 | examples/dreambooth/train_dreambooth_lora_sd3.py:1104-1119 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1027-1042 | examples/dreambooth/train_dreambooth_lora_z_image.py:1102-1117 | examples/dreambooth/train_dreambooth_sd3.py:1029-1044 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:893-908 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:821-836 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1088-1103 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc61fc94198b43718d491ba689b70885734292653b5f300528850018a1d6deba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 23): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:369-384 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:323-338 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:414-429 | examples/dreambooth/train_dreambooth_flux.py:303-318 | examples/dreambooth/train_dreambooth_lora_flux.py:323-338 | examples/dreambooth/train_dreambooth_lora_flux2.py:327-342 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:334-349 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:327-342 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:335-350 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:440-455 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:343-358 | examples/dreambooth/train_dreambooth_lora_hidream.py:349-364 | examples/dreambooth/train_dreambooth_lora_krea2.py:414-429 | examples/dreambooth/train_dreambooth_lora_lumina2.py:262-277 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:317-332 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:336-351 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:346-361 | examples/dreambooth/train_dreambooth_lora_sana.py:282-297 | examples/dreambooth/train_dreambooth_lora_sd3.py:313-328 | examples/dreambooth/train_dreambooth_lora_sdxl.py:333-348 | examples/dreambooth/train_dreambooth_lora_z_image.py:327-342 | examples/dreambooth/train_dreambooth_sd3.py:289-304 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:330-345 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:369\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"5549adb55bde5ab0c6cc5c00d8d086b8740cbf1dac702090e58787ee8d820e55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 19): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1339-1354 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:962-977 | examples/cogvideo/train_cogvideox_lora.py:984-999 | examples/controlnet/train_controlnet_sd3.py:930-945 | examples/dreambooth/train_dreambooth_flux.py:1029-1044 | examples/dreambooth/train_dreambooth_lora_flux.py:1072-1087 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1246-1261 | examples/dreambooth/train_dreambooth_lora_hidream.py:937-952 | examples/dreambooth/train_dreambooth_lora_krea2.py:1154-1169 | examples/dreambooth/train_dreambooth_lora_lumina2.py:860-875 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1094-1109 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1128-1143 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1219-1234 | examples/dreambooth/train_dreambooth_lora_sana.py:871-886 | examples/dreambooth/train_dreambooth_lora_sd3.py:1064-1079 | examples/dreambooth/train_dreambooth_sd3.py:989-1004 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:588-603 | examples/research_projects/sana/train_sana_sprint_diffusers.py:941-956 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:623-638 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 788 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:978\u0060 calls \u0060InitProcessGroupKwargs\u0060, \u0060timedelta\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1355\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"24de71c29427725e2fb26004817212bcb6af11360347e8005dd93da21152e861"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 19): examples/instruct_pix2pix/train_instruct_pix2pix.py:250-265 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:307-322 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:274-289 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:178-193 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:184-199 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:283-298 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:170-185 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:166-181 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:301-316 | examples/research_projects/lora/train_text_to_image_lora.py:240-255 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:226-241 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:384-399 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:308-323 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:223-238 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:293-308 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:285-300 | examples/text_to_image/train_text_to_image.py:314-329 | examples/text_to_image/train_text_to_image_lora.py:274-289 | examples/vqgan/train_vqgan.py:358-373 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:250\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e401f343c70ee7b57cd37783e1fa46c07994b92668202f344c843c19bdfec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 18): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:268-283 | examples/dreambooth/train_dreambooth_lora.py:176-191 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:270-285 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:291-306 | examples/dreambooth/train_dreambooth_lora_flux.py:222-237 | examples/dreambooth/train_dreambooth_lora_flux2.py:223-238 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:224-239 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:223-238 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:225-240 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:314-329 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:321-336 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:229-244 | examples/dreambooth/train_dreambooth_lora_hidream.py:230-245 | examples/dreambooth/train_dreambooth_lora_krea2.py:241-256 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:217-232 | examples/dreambooth/train_dreambooth_lora_sd3.py:212-227 | examples/dreambooth/train_dreambooth_lora_z_image.py:223-238 | examples/dreambooth/train_dreambooth_sd3.py:188-203 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1299 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"879658befa3c162c9dbda14c6d6786f6c7c021fecca9eec90249e0baa8445730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 18): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1003-1018 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:485-500 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:628-643 | examples/research_projects/lora/train_text_to_image_lora.py:632-647 | examples/research_projects/lpl/train_sdxl_lpl.py:971-986 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:630-645 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:461-476 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:756-771 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:621-636 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:864-879 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:870-885 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:647-662 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:630-645 | examples/text_to_image/train_text_to_image.py:754-769 | examples/text_to_image/train_text_to_image_flax.py:323-338 | examples/text_to_image/train_text_to_image_lora.py:630-645 | examples/text_to_image/train_text_to_image_lora_sdxl.py:890-905 | examples/text_to_image/train_text_to_image_sdxl.py:855-870 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 506 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9aca607a487175b4710315055e38308cf83888234cd4f9d91be18453830c994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 17): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:788-803 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:651-666 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:760-775 | examples/dreambooth/train_dreambooth.py:498-513 | examples/dreambooth/train_dreambooth_flux.py:621-636 | examples/dreambooth/train_dreambooth_lora.py:477-492 | examples/dreambooth/train_dreambooth_lora_flux.py:679-693 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:724-738 | examples/dreambooth/train_dreambooth_lora_sdxl.py:639-654 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:400-415 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:419-434 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:417-432 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:401-416 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:449-464 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:498-513 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:468-483 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:636-651 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:788\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:657\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:804\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb18be7e146b0d5817f534426562ec304b8dfde0f075c582468d46f4557c227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 15): examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1349-1364 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1416-1431 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1357-1372 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1455-1470 | examples/dreambooth/train_dreambooth_lora_hidream.py:1251-1266 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1554-1569 | examples/dreambooth/train_dreambooth_lora_krea2.py:1468-1483 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1103-1118 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1375-1390 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1417-1432 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1508-1523 | examples/dreambooth/train_dreambooth_lora_sana.py:1126-1141 | examples/dreambooth/train_dreambooth_lora_z_image.py:1395-1410 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:811-826 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:797-811 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 134 separate duplicated blocks between them, totalling at least 2459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1346\u0060 calls \u0060is_available\u0060 and \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:809\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d57795d7c9cc963f57618049b0a60a29be6195ae9f12285ebb2ad286aa9ca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 14): examples/dreambooth/train_dreambooth_flux.py:1716-1731 | examples/dreambooth/train_dreambooth_lora.py:1333-1347 | examples/dreambooth/train_dreambooth_lora_flux.py:1855-1870 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1447-1462 | examples/dreambooth/train_dreambooth_lora_sana.py:1462-1477 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1867-1882 | examples/dreambooth/train_dreambooth_sd3.py:1671-1686 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:894-908 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1048-1062 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1006-1020 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1009-1023 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1370-1384 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1909-1924 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1025-1040 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 88 separate duplicated blocks between them, totalling at least 1356 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:1446\u0060 calls \u0060parameters\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py:1332\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1716}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfb7fa85173cc07d6121b68fd6df12f64f870cca5de5c896f5db6c79a5d06a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 14): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:500-515 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:643-658 | examples/research_projects/lora/train_text_to_image_lora.py:647-662 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:645-660 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:551-562 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:771-786 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:636-651 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:879-894 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:662-677 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:645-660 | examples/text_to_image/train_text_to_image.py:769-784 | examples/text_to_image/train_text_to_image_flax.py:338-353 | examples/text_to_image/train_text_to_image_lora.py:645-660 | examples/text_to_image/train_text_to_image_lora_sdxl.py:905-920 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:500\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1f7b7afc7d7e69f59478710b0bdb625f6490ff0b12bc651eec6141c29e89f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 13): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1111-1126 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:963-978 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1188-1203 | examples/dreambooth/train_dreambooth_flux.py:802-817 | examples/dreambooth/train_dreambooth_lora_flux.py:848-863 | examples/dreambooth/train_dreambooth_lora_hidream.py:855-870 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:978-993 | examples/dreambooth/train_dreambooth_lora_lumina2.py:778-793 | examples/dreambooth/train_dreambooth_lora_sana.py:789-804 | examples/dreambooth/train_dreambooth_lora_sd3.py:842-857 | examples/dreambooth/train_dreambooth_lora_sdxl.py:849-864 | examples/dreambooth/train_dreambooth_sd3.py:774-789 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:848-863 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d98c473b09245c8dd412d3959dc64e7b78456ed3e9e7beeb70b8904b2c894d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 13): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:828-843 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:650-665 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:808-823 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:793-808 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:818-833 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:419-433 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:420-434 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:763-778 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:386-400 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:490-504 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:422-436 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:420-434 | examples/vqgan/train_vqgan.py:521-535 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:828\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, \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:761\u0060 calls \u0060add_argument\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:827\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"2886b7dced36a8ae5d6ec775a32b7bff2642aac28e435b03928002d60cc6f2d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 13): examples/custom_diffusion/train_custom_diffusion.py:674-687 | examples/dreambooth/train_dreambooth.py:818-831 | examples/dreambooth/train_dreambooth_lora.py:771-784 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:339-353 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:352-366 | examples/research_projects/lora/train_text_to_image_lora.py:406-421 | examples/research_projects/lpl/train_sdxl_lpl.py:731-746 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:693-707 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:561-576 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:576-591 | examples/text_to_image/train_text_to_image_sdxl.py:615-630 | examples/textual_inversion/textual_inversion.py:603-616 | examples/textual_inversion/textual_inversion_sdxl.py:602-615 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth.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 67 separate duplicated blocks between them, totalling at least 993 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:339\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, \u0060examples/custom_diffusion/train_custom_diffusion.py:670\u0060 calls \u0060Path\u0060, \u0060ProjectConfiguration\u0060, \u0060Accelerator\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py:731\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83aeddb039a39f9a389357ffb2822d5993b9e7b05798004691f87b64839595f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 11): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1506-1521 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1845-1860 | examples/dreambooth/train_dreambooth_flux.py:1349-1364 | examples/dreambooth/train_dreambooth_lora_flux.py:1459-1474 | examples/dreambooth/train_dreambooth_lora_hidream.py:1315-1330 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1167-1182 | examples/dreambooth/train_dreambooth_lora_sana.py:1190-1205 | examples/dreambooth/train_dreambooth_lora_sd3.py:1499-1514 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1441-1456 | examples/dreambooth/train_dreambooth_sd3.py:1338-1353 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1477-1492 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1506\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"31175b1db3dcb69b95fab1fa9928a5eed6574bee8597f3c8b40ffd8bb60155c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 11): examples/community/lpw_stable_diffusion_xl.py:2011-2026 | examples/community/lpw_stable_diffusion_xl.py:2088-2103 | examples/community/lpw_stable_diffusion_xl.py:2169-2184 | examples/community/stable_diffusion_comparison.py:107-122 | examples/community/stable_diffusion_comparison.py:144-159 | examples/community/stable_diffusion_comparison.py:181-196 | examples/community/stable_diffusion_comparison.py:218-233 | examples/community/stable_diffusion_comparison.py:306-321 | examples/community/stable_diffusion_comparison.py:325-340 | examples/community/stable_diffusion_comparison.py:344-359 | examples/community/stable_diffusion_comparison.py:363-378 \u2014 there are 11 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 11 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_comparison.py:107\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf15b3460e9abb0d998b44725f42d14ec567487b5a6f9789ef5e12be1c6eb0a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 10): examples/cogview4-control/train_control_cogview4.py:158-170 | examples/controlnet/train_controlnet.py:161-176 | examples/controlnet/train_controlnet_flux.py:175-190 | examples/controlnet/train_controlnet_sd3.py:183-198 | examples/controlnet/train_controlnet_sdxl.py:184-199 | examples/flux-control/train_control_flux.py:153-165 | examples/flux-control/train_control_lora_flux.py:163-175 | examples/research_projects/controlnet/train_controlnet_webdataset.py:390-405 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:172-187 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:150-165 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab9cb364867518972c4395ee61e2cb2195c2fa757e8e88564bb8fc592aa1de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 10): examples/cogview4-control/train_control_cogview4.py:634-649 | examples/controlnet/train_controlnet.py:643-658 | examples/controlnet/train_controlnet_flax.py:555-570 | examples/controlnet/train_controlnet_flux.py:724-739 | examples/controlnet/train_controlnet_sd3.py:723-738 | examples/controlnet/train_controlnet_sdxl.py:697-712 | examples/flux-control/train_control_flux.py:626-641 | examples/flux-control/train_control_lora_flux.py:654-669 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:795-810 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:662-677 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:634\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, \u0060examples/cogview4-control/train_control_cogview4.py:633\u0060 calls \u0060info\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:794\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5ad608d136f955ee1f0f9d181b726c43009f05f80d33e9691270a3cd712314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 10): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:801-816 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:640-655 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:673-688 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:820-835 | examples/research_projects/lpl/train_sdxl_lpl.py:1282-1297 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:846-861 | examples/text_to_image/train_text_to_image.py:1013-1028 | examples/text_to_image/train_text_to_image_lora.py:904-919 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1178-1193 | examples/text_to_image/train_text_to_image_sdxl.py:1148-1163 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:844\u0060 calls \u0060unet\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py:1280\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"77540b4a3bc611dcf4cc17599902c2cd2caaf79041b61b5f2165dce00653ca73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 9): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:803-816 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:692-706 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:819-833 | examples/controlnet/train_controlnet_flux.py:642-656 | examples/controlnet/train_controlnet_sdxl.py:608-622 | examples/dreambooth/train_dreambooth_lora.py:535-548 | examples/dreambooth/train_dreambooth_lora_sdxl.py:674-689 | examples/text_to_image/train_text_to_image_lora_sdxl.py:482-496 | examples/text_to_image/train_text_to_image_sdxl.py:473-486 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:692\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, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:802\u0060 calls \u0060add_argument\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py:608\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc65e42579040688ed9d61a5d2fe5f9bb98cd8278f787c19465c2d33c507e075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201316 lines \u00D7 9): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:526-540 | examples/dreambooth/train_dreambooth_flux.py:397-411 | examples/dreambooth/train_dreambooth_lora_flux.py:431-445 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:476-490 | examples/dreambooth/train_dreambooth_lora_sd3.py:416-431 | examples/dreambooth/train_dreambooth_lora_sdxl.py:432-446 | examples/dreambooth/train_dreambooth_sd3.py:383-397 | examples/profiling/profiling_pipelines.py:148-158 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:429-443 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1869 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:526\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ba4ae90f8110a6f5c288b98e70fa0b7cf44c8eed7d10e23cb13f5891dcfbdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 8): examples/cogview4-control/train_control_cogview4.py:185-199 | examples/controlnet/train_controlnet_flax.py:140-154 | examples/controlnet/train_controlnet_flux.py:205-219 | examples/controlnet/train_controlnet_sd3.py:251-266 | examples/controlnet/train_controlnet_sdxl.py:236-250 | examples/flux-control/train_control_flux.py:180-194 | examples/flux-control/train_control_lora_flux.py:190-204 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:206-220 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:251\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"149092dfd06e75e0b0554cc7c8474b1b600a398d6e55e645424f2cfbc55bd4da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201316 lines \u00D7 7): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1923-1936 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:272-283 | examples/dreambooth/train_dreambooth_lora.py:140-155 | examples/dreambooth/train_dreambooth_lora_sdxl.py:197-208 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:109-119 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:135-146 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:196-207 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1923}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f56e6e2966867e3d3d13a036787f4808f865d81b7498c574b67e46e5d1dabe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): examples/consistency_distillation/train_lcm_distill_sd_wds.py:1008-1023 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1068-1083 | examples/instruct_pix2pix/train_instruct_pix2pix.py:558-573 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:613-628 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:565-580 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:649-664 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:546-561 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52e5134b4fe848057ea871d69e16f6666f8d59e941cbd12436cf6f781f29aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 7): examples/dreambooth/train_dreambooth_flux.py:770-798 | examples/dreambooth/train_dreambooth_lora_flux.py:816-844 | examples/dreambooth/train_dreambooth_lora_hidream.py:823-851 | examples/dreambooth/train_dreambooth_lora_lumina2.py:746-774 | examples/dreambooth/train_dreambooth_lora_sana.py:757-785 | examples/dreambooth/train_dreambooth_lora_sd3.py:810-838 | examples/dreambooth/train_dreambooth_sd3.py:742-770 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"f684f951105b0abf2df0fbd3b5552f2d3f672a4b94ea52e025f072003e6f37d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): examples/instruct_pix2pix/train_instruct_pix2pix.py:398-413 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:455-470 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:455-470 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:395-410 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:499-514 | examples/text_to_image/train_text_to_image.py:510-525 | examples/vqgan/train_vqgan.py:530-545 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:398\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:474\u0060 calls \u0060isinstance\u0060, \u0060open\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:417\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f611bb9f8af388f265559fe49336f6cbb6ea9c987ac152bea14c2a13f1bb5d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 6): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1157-1172 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1207-1222 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1113-1128 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1208-1223 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1226-1240 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:860-873 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"0baea54be838bac3328b6f01b3dbbdda61891a53b0a2ea82bec4b3812f9b20df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): examples/controlnet/train_controlnet.py:824-839 | examples/controlnet/train_controlnet_flux.py:955-970 | examples/controlnet/train_controlnet_sd3.py:1059-1074 | examples/controlnet/train_controlnet_sdxl.py:943-958 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1020-1035 | examples/research_projects/gligen/train_gligen_text.py:341-356 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2d059381251e2ef0a016130ea5963f5fa0101c71c5991744002b4c5c01ec0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 6): examples/controlnet/train_controlnet.py:1100-1114 | examples/controlnet/train_controlnet_sd3.py:1382-1396 | examples/dreambooth/train_dreambooth.py:1340-1355 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1397-1411 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1403-1418 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1247-1261 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 1830 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:1340\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"502ab4b82de199ca079ea54b668eca227244e9090228aec3a24de3dc29294fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201316 lines \u00D7 6): examples/controlnet/train_controlnet_sd3.py:1218-1233 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:718-728 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:741-751 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:867-877 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:726-736 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1101-1116 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 588 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:1218\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, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:715\u0060 calls \u0060to\u0060, \u0060ceil\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py:1218\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":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0343b4b9bfc13cadaab66551630c01512d4edc849ce2b8a358e07d4de9dd2d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): examples/dreambooth/train_dreambooth_flux.py:1131-1146 | examples/dreambooth/train_dreambooth_lora_flux.py:1171-1186 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1356-1371 | examples/dreambooth/train_dreambooth_lora_hidream.py:1027-1042 | examples/dreambooth/train_dreambooth_lora_sd3.py:1161-1176 | examples/dreambooth/train_dreambooth_sd3.py:1086-1101 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1022\u0060 calls \u0060to\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py:1165\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0c452759bdeaabf59c7534f4ac46c734100821510f7e92b6ebfd6233d77e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 6): examples/instruct_pix2pix/train_instruct_pix2pix.py:770-781 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:862-873 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:711-726 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:730-741 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:772-783 | examples/textual_inversion/textual_inversion.py:792-807 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:711\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, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:766\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:711\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":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc18d085beafb67cf73e0c7f88a321d4ed5dc3d88e91a23a2d9ccc2793469d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1295-1310 | examples/dreambooth/train_dreambooth_lora_sdxl.py:957-972 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:956-971 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:489-504 | examples/text_to_image/train_text_to_image_lora_sdxl.py:528-543 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb69d4081d53ec9c9b15847dfc57c8bf3c9b5254e1b6b12f054a47e6ad19667e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/custom_diffusion/train_custom_diffusion.py:603-618 | examples/dreambooth/train_dreambooth.py:511-527 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:462-477 | examples/research_projects/realfill/train_realfill.py:375-390 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:511-527 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth.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 67 separate duplicated blocks between them, totalling at least 993 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:603\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe390eb8433cc22651bf62090ae72fb7ecf9e8109ef3ba1c2ad7e2ad03e2ffae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/custom_diffusion/train_custom_diffusion.py:757-772 | examples/dreambooth/train_dreambooth.py:870-885 | examples/dreambooth/train_dreambooth_lora.py:823-838 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:913-928 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:841-856 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth.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 67 separate duplicated blocks between them, totalling at least 993 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":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b9ae0038e11d929dbf005c96698b4526521bc036da31f33642d25aaa1761c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 5): examples/dreambooth/train_dreambooth.py:1328-1342 | examples/dreambooth/train_dreambooth_flux.py:1703-1718 | examples/dreambooth/train_dreambooth_lora_flux.py:1842-1857 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2147-2162 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1391-1405 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"9514a0e18e22be30ca70a08b0b99db4cad8c12ef6eaad24823385c4ca218dd1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 5): examples/dreambooth/train_dreambooth_flux.py:1710-1725 | examples/dreambooth/train_dreambooth_lora_flux.py:1849-1864 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2154-2169 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:760-774 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:608-623 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05ffb988bd3ff3c3b166a83ec8cbe243734eb6670805b7d3a26875aeae9c443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_flux2.py:1279-1293 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1229-1243 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1282-1296 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1223-1237 | examples/dreambooth/train_dreambooth_lora_z_image.py:1267-1282 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:1279\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"391c67acfcaed08345908ec8d9d49a4a46298237e36fe2e69b99f5e9ee58fb8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_hidream.py:1578-1593 | examples/dreambooth/train_dreambooth_lora_krea2.py:1838-1853 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1734-1749 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1789-1804 | examples/dreambooth/train_dreambooth_lora_sd3.py:1772-1787 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1578\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1577\u0060 calls \u0060offload_models\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:1771\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":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddae3525cf0512b76ded643fea477c06fbccd292566395069ea3381bbfd10754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_krea2.py:1385-1400 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1292-1307 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1334-1349 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1425-1440 | examples/dreambooth/train_dreambooth_lora_sana.py:1053-1067 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1385\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03140dcea9b7e720b80c11418433f11e143b77fa38b4a3c402f31545ec8f06c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:334-349 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:238-253 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:338-353 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:340-355 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:338-353 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 72 separate duplicated blocks between them, totalling at least 1062 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:334\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"36070bd17680ae92da4914508d5cb9072a44cb59834c78a554e59b03fe45cbab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 5): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:116-130 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:131-146 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:128-143 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:126-141 | examples/textual_inversion/textual_inversion_sdxl.py:158-172 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:131\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, \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:148\u0060 calls \u0060Generator\u0060, \u0060manual_seed\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:151\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda9d9516106ff7fecdced9055e36897de68c835b3414d4fb9e781695b3725da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:160-175 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:150-165 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:100-115 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:156-171 | examples/unconditional_image_generation/train_unconditional.py:174-189 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:160\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c2987f346c105e29d1ced0c803fe32b45a24286e7ea00b204b23b4c8363ded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 5): scripts/convert_ltx2_to_diffusers.py:585-600 | scripts/convert_ltx2_to_diffusers.py:616-629 | scripts/convert_ltx2_to_diffusers.py:845-860 | scripts/convert_ltx2_to_diffusers.py:1056-1071 | scripts/convert_ltx2_to_diffusers.py:1195-1210 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_ltx2_to_diffusers.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6309827f8a55c4606d196c0945e66c8f29f71dfb274b6460780769854012eef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/community/img2img_inpainting.py:256-271 | examples/community/multilingual_stable_diffusion.py:253-268 | examples/community/speech_to_image_diffusion.py:124-139 | examples/community/wildcard_stable_diffusion.py:278-293 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/multilingual_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 373 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0a87abcea070dd83cec288c79cd893429ff5ad99322c61702f5fab1a8b712c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/community/stable_diffusion_controlnet_img2img.py:109-124 | examples/community/stable_diffusion_controlnet_inpaint.py:207-222 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:199-214 | examples/community/stable_diffusion_reference.py:720-735 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 931 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b484c97c1a1e406d6862a550657f60dccbe54c1c4b4ab322f8d7de7db11666fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/controlnet/train_controlnet.py:859-874 | examples/controlnet/train_controlnet_flux.py:992-1007 | examples/controlnet/train_controlnet_sdxl.py:986-1001 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1056-1071 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet_flux.py:1008\u0060 calls \u0060enable_gradient_checkpointing\u0060 and \u0060examples/controlnet/train_controlnet.py:877\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdb03f39757523fb591a50bbb89ae2b3ffcdd1b837652ce0d51a9ca3311ce3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 4): examples/controlnet/train_controlnet_sdxl.py:1226-1239 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1035-1050 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1072-1086 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1104-1118 \u2014 \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.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 53 separate duplicated blocks between them, totalling at least 770 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":"examples/controlnet/train_controlnet_sdxl.py"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"999afa0aa259720588e515b82ac26c48f3dc346c43f4675c1245648cefcee458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:593-608 | examples/dreambooth/train_dreambooth_lora.py:554-569 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:613-628 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:553-568 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"f922df81f06c90bcdcf4ea9925d4e001ed8bb92b6bd1134c71de44f29bee1ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:652-667 | examples/dreambooth/train_dreambooth_flax.py:255-270 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:672-687 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:612-627 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 463 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff49e5f886ee2ea83943e75b295d59a40f8c0e871fe3463e804534b5043f7a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:990-1005 | examples/dreambooth/train_dreambooth_lora.py:922-937 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1033-1048 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:941-956 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a1e52e086dac95d34d554a9a4663d4ae1c8e8c6448e720b0fb2c8c875c9eba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/dreambooth/train_dreambooth_flax.py:611-626 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:564-579 | examples/text_to_image/train_text_to_image_flax.py:537-552 | examples/textual_inversion/textual_inversion_flax.py:583-598 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 191 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"02be6a44584ad9cc4ac73e1d12e17402e2a1d6aa75c3a0a65d35a39113010f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_flux2.py:1212-1227 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1162-1177 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1217-1232 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1158-1173 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:1212\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad00d738f14ac1bf64bf9de974592487fac3dd67ae67219db801f0fb29bd0170"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1462-1477 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1456-1471 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1554-1569 | examples/dreambooth/train_dreambooth_lora_z_image.py:1497-1512 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1462\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac9fc6042fc9a29ec37412dd9538ad516d222ce33f2c73ebdfd104328ec2828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): scripts/convert_cogview3_to_diffusers.py:88-103 | scripts/convert_cogview4_to_diffusers.py:97-112 | scripts/convert_hunyuan_image_to_diffusers.py:197-212 | scripts/convert_hunyuan_image_to_diffusers.py:302-317 \u2014 before extracting anything, compare \u0060scripts/convert_cogview3_to_diffusers.py\u0060 and \u0060scripts/convert_cogview4_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_cogview3_to_diffusers.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a096074c4d9217f083ecf2fbd431a7f49b07a26e66bc7d5c74cc30b8198d7f4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): scripts/convert_kandinsky_to_diffusers.py:985-1000 | scripts/convert_kandinsky_to_diffusers.py:1088-1103 | scripts/convert_vq_diffusion_to_diffusers.py:237-252 | scripts/convert_vq_diffusion_to_diffusers.py:340-355 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_kandinsky_to_diffusers.py:985\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/convert_kandinsky_to_diffusers.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"00016affd6814af039c9ebd91621cfb85ee91ae1b6aeac5e18dd0fb90efb1cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1389-1404 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1047-1062 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1107-1122 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8651c9e481096bcc560563fff588b84d2eff4d751c76b4229fce013035d376c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/community/pipeline_controlnet_xl_kolors.py:1256-1271 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1012-1027 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1001-1016 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 423 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"e847ba4c237ca53be252bda70e4d208344ef82c8af52aefa174c4ee356f9ae73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/dreambooth/train_dreambooth.py:987-1002 | examples/research_projects/realfill/train_realfill.py:624-639 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1030-1045 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/realfill/train_realfill.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 849 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a86f7166a9d7e06d9d28b4bfb28321d472fd63602da8d7f3216c519a6d7951c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora.py:1035-1050 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1052-1067 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1370-1385 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 162 separate duplicated blocks between them, totalling at least 2821 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c4bb3286e55eefa9574661400d790b69e6347c5275abe0f69b968150c0f804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1833-1848 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1687-1702 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1739-1754 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 157 separate duplicated blocks between them, totalling at least 2741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py:1687\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1833}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f822057f2faf1ad3f32d85251e80f6ea818f6d2f99ba391f8fb1acf53677ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_hidream.py:1753-1768 | examples/dreambooth/train_dreambooth_lora_krea2.py:2032-2047 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1917-1932 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1753\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, \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:2048\u0060 calls \u0060_validation_call_kwargs\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1769\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":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bdc88fd76c1dd59038875fba3764ee8753fa3974b0384f93d14de581b39dd11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:980-995 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1167-1182 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1168-1183 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:980\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":"examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62cfcb6fb3bc4ba8b8002582c3c43294df373e755d49ab590b79709c5fdad1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:531-545 | examples/text_to_image/train_text_to_image_flax.py:509-524 | examples/textual_inversion/textual_inversion_flax.py:550-564 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5df6b734d739245238f650588863ff95045c417c0790f0338cbad467aefb979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:167-182 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:222-237 | examples/textual_inversion/textual_inversion_sdxl.py:162-176 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 100 separate duplicated blocks between them, totalling at least 1477 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"484e26ca61fe8e0ecf690cd63f90647bd103aa271468c7dad2292dd1641a6d5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1195-1210 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:850-865 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1201-1216 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 579 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59a1d3d903021cdb494f03bf8246fcad45a56095c8cf61dbec42b26be32c885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): scripts/convert_kakao_brain_unclip_to_diffusers.py:891-906 | scripts/convert_kandinsky_to_diffusers.py:842-857 | scripts/convert_shap_e_to_diffusers.py:902-917 \u2014 before extracting anything, compare \u0060scripts/convert_kakao_brain_unclip_to_diffusers.py\u0060 and \u0060scripts/convert_kandinsky_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 385 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"abab5711032cf26063d317efc7de78e24d0fa600a27da92fd05da349aca78036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/adaptive_mask_inpainting.py:465-480 | examples/community/lpw_stable_diffusion_xl.py:694-709 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee17fa8632a022314a14f6732258fcf9d933bf679125c009aece0c0f59aec61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/adaptive_mask_inpainting.py:1038-1053 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1501-1516 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:1038\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f45886bcd009c9ba48cf760617472d81ddcb35838f45dcd71200a1c475d1f06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/fresco_v2v.py:58-73 | examples/community/rerender_a_video.py:48-63 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/rerender_a_video.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff26b2c998655ba00a748760420704df89de21b6dbbd3f3d5e8bcc8a95cec0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/lpw_stable_diffusion.py:102-117 | examples/community/lpw_stable_diffusion_xl.py:113-128 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94e23db616752fce04acb6d5b5b6621eeac8f459b254fe0f49be64953035f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/mixture_canvas.py:292-307 | examples/community/mixture_tiling.py:120-135 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_canvas.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d9475469c261d4dc0fbfc94794e32913d4aa11912ed01b0c8877a34eb9a5fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/mixture_tiling_sdxl.py:1147-1162 | examples/community/mod_controlnet_tile_sr_sdxl.py:1770-1785 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb277a24e76bac8244a26cf6891f15852da5f1d6d57029ded1ecb3084ddd411a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): examples/community/pipeline_hunyuandit_differential_img2img.py:648-662 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:601-616 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_hunyuandit_differential_img2img.py:648\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":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8ac7a42975a6c01bbfb163d4c9422cffccfa18890886dd8d52d61c106a00d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/pipeline_kolors_inpainting.py:1499-1515 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1472-1487 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1407 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_inpainting.py"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"666de7859b58ae51be16e64c98aab1cea8426edc228fab65029b515a3bf4350d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/pipeline_stg_ltx.py:808-823 | examples/community/pipeline_stg_mochi.py:791-806 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_mochi.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19f0e2cc5d7028bad26a5c379c2471d3256928fbedbf97891d8c77faab86956"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/rerender_a_video.py:793-808 | examples/community/rerender_a_video.py:955-970 \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 \u0060examples/community/rerender_a_video.py:793\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/rerender_a_video.py"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86c226193ad8542952ee8ebea24ac369d6aa6158e5e7ad7928f24a9f773dbde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1298-1313 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1365-1379 \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":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c470f226087a7ae3560f65ba02bff70569aa1120b11445474f8ffa60485e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/custom_diffusion/train_custom_diffusion.py:437-452 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:139-154 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:437\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfd8f3650aa7ec6241f6f899e9dfdea4d8df28305eebf0484eaea36043b12f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/custom_diffusion/train_custom_diffusion.py:1213-1228 | examples/research_projects/gligen/train_gligen_text.py:619-634 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/gligen/train_gligen_text.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 446 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e810dd3fccfff36dfac00e9b97e01d7a1c077581df47bf147b6bdf89f116ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): examples/dreambooth/train_dreambooth_flax.py:414-427 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:485-500 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 420 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flax.py:414\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc5023c18038cbef73b79c05350403c11e3dea89962ceace6cf86969c5a8555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/dreambooth/train_dreambooth_flux.py:1576-1591 | examples/dreambooth/train_dreambooth_lora_flux.py:1702-1717 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:1576\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":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b573eed486a7aacbece2efbae2bfb98c494528b00387c9bb5167bd5155fc079"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora.py:1435-1450 | examples/dreambooth/train_dreambooth_lora_sdxl.py:2001-2016 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1367 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora.py:1435\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":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade04a5ee6fd853b2a1dd4e105c621a0df1e797229271a42fd709736842dd6e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1269-1284 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1158-1173 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1269\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c08276fe43c8d42047b1ce6825b77af9a917700c9b782b9d576eeb82fea0d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2.py:1573-1588 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1524-1539 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1573}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d4ad2e00a0e261e43e0c173e8a79da6536f431dc2f1ced13c3f345bfdc8914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1857-1872 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1745-1760 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 150 separate duplicated blocks between them, totalling at least 2884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_klein.py"},"region":{"startLine":1857}}}],"partialFingerprints":{"codehealthFindingId/v1":"140f4e5a927598cbaf613e9c0e8686773a15a258719138dfd701925808b9f738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:336-351 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:343-358 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b54218dee1a7e4fca2a3c4706b892bcada00043b0e25344074cd6f71705f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/instruct_pix2pix/train_instruct_pix2pix.py:695-710 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:894-909 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4de0a93076117149db80a7047116f6283d1658bd5352673a8c904aa4f4c4c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:764-779 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:796-811 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:764\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18b9e4bb1361b04e59ce197ba1b8c547b741c777d5be5014dcb2ca5fb77ddb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:765-780 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:789-803 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:765\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"651863cc40e9cf76dabe8fb8b891e1298c41eff5b2e21c7baee89cbd5a736e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:553-568 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:631-646 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"0301917bdea73a625a7b11fbb694a28a9f96ef9b15493915af0680badabc895b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/research_projects/lpl/train_sdxl_lpl.py:1147-1162 | examples/text_to_image/train_text_to_image_sdxl.py:1016-1031 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 171 separate duplicated blocks between them, totalling at least 3126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a560b877a26743bc601e8ffb55fd5c625a29478a5cd1c87eccf6c8b7267c0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/research_projects/pixart/train_pixart_controlnet_hf.py:1153-1168 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:990-1005 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1353 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:1153\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/train_pixart_controlnet_hf.py"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c423297f80796f1c84f1e4207af2ef245c7cf456a18d7d8f893e31cebc6a96a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/research_projects/sana/train_sana_sprint_diffusers.py:1522-1537 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1628-1643 \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":"examples/research_projects/sana/train_sana_sprint_diffusers.py"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"54327092860317a0a0946baab595e80f014b488e21f4684e1be08291ebdf038e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:823-838 | examples/text_to_image/train_text_to_image_lora.py:880-895 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 135 separate duplicated blocks between them, totalling at least 2248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26fbd15d5e3d22c8c64374bd2402682ce716bdba06aed4e890166ca3089dbe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): scripts/convert_flux_to_diffusers.py:257-272 | scripts/convert_ovis_image_to_diffusers.py:225-240 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_ovis_image_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_flux_to_diffusers.py:257\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_flux_to_diffusers.py:277\u0060 calls \u0060any\u0060 and \u0060scripts/convert_ovis_image_to_diffusers.py:246\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/convert_flux_to_diffusers.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd776daf53d430a7aabcc6b313f786aedfc8e68695b11e655fa25ced44f95ef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 72): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1680-1694 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2044-2058 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1354-1368 | examples/cogvideo/train_cogvideox_lora.py:1370-1384 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1208-1222 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1190-1204 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1252-1266 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1159-1173 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1253-1267 | examples/controlnet/train_controlnet.py:1016-1030 | examples/controlnet/train_controlnet_flux.py:1204-1218 | examples/controlnet/train_controlnet_sd3.py:1261-1275 | examples/controlnet/train_controlnet_sdxl.py:1198-1212 | examples/custom_diffusion/train_custom_diffusion.py:1110-1124 | examples/dreambooth/train_dreambooth.py:1206-1220 | examples/dreambooth/train_dreambooth_flux.py:1527-1541 | examples/dreambooth/train_dreambooth_lora.py:1219-1233 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1798-1812 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1632-1646 | examples/dreambooth/train_dreambooth_lora_flux.py:1651-1665 | examples/dreambooth/train_dreambooth_lora_flux2.py:1783-1797 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1684-1698 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1740-1754 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1632-1646 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1883-1897 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1769-1783 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1918-1932 | examples/dreambooth/train_dreambooth_lora_hidream.py:1518-1532 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1876-1890 | examples/dreambooth/train_dreambooth_lora_krea2.py:1752-1766 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1313-1327 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1652-1666 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1704-1718 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1797-1811 | examples/dreambooth/train_dreambooth_lora_sana.py:1335-1349 | examples/dreambooth/train_dreambooth_lora_sd3.py:1684-1698 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1618-1632 | examples/dreambooth/train_dreambooth_lora_z_image.py:1667-1681 | examples/dreambooth/train_dreambooth_sd3.py:1505-1519 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1007-1021 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:750-764 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:588-602 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:604-618 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:753-767 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:862-876 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1178-1192 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1271-1285 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:777-791 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:913-927 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:895-909 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:898-912 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:988-1002 | examples/research_projects/gligen/train_gligen_text.py:528-542 | examples/research_projects/lpl/train_sdxl_lpl.py:1179-1193 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:948-962 | examples/research_projects/realfill/train_realfill.py:821-835 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1305-1319 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1238-1252 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1224-1238 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1641-1655 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:908-922 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:753-767 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1039-1053 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1052-1066 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:921-935 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1145-1159 | examples/text_to_image/train_text_to_image.py:927-941 | examples/text_to_image/train_text_to_image_lora.py:834-848 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1071-1085 | examples/text_to_image/train_text_to_image_sdxl.py:1048-1062 | examples/textual_inversion/textual_inversion.py:839-853 | examples/textual_inversion/textual_inversion_sdxl.py:881-895 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0acbf9c3c80728b3a538a6400d3116b280ff850232011e6857e30b5e0d4d4fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 39): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:545-559 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:432-445 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:534-547 | examples/cogview4-control/train_control_cogview4.py:271-284 | examples/custom_diffusion/train_custom_diffusion.py:446-459 | examples/dreambooth/train_dreambooth.py:332-345 | examples/dreambooth/train_dreambooth_flax.py:143-155 | examples/dreambooth/train_dreambooth_flux.py:405-418 | examples/dreambooth/train_dreambooth_lora.py:339-352 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:556-569 | examples/dreambooth/train_dreambooth_lora_flux.py:439-452 | examples/dreambooth/train_dreambooth_lora_flux2.py:477-490 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:461-474 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:487-500 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:462-475 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:603-616 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:484-497 | examples/dreambooth/train_dreambooth_lora_hidream.py:470-483 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:548-561 | examples/dreambooth/train_dreambooth_lora_krea2.py:573-586 | examples/dreambooth/train_dreambooth_lora_lumina2.py:380-393 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:473-486 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:492-505 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:508-521 | examples/dreambooth/train_dreambooth_lora_sana.py:398-411 | examples/dreambooth/train_dreambooth_lora_sd3.py:424-438 | examples/dreambooth/train_dreambooth_lora_sdxl.py:440-453 | examples/dreambooth/train_dreambooth_lora_z_image.py:471-484 | examples/dreambooth/train_dreambooth_sd3.py:391-404 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:148-161 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:259-270 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:165-177 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:161-173 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:233-246 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:270-282 | examples/research_projects/sana/train_sana_sprint_diffusers.py:432-445 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:332-345 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:330-343 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:437-450 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:545\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, \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py:162\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:560\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef0f3494c5e7dcb7d3e8052a9e6f5870c7d1e796c147f8a44fcd7e00ce0e605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 37): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248-263 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:339-354 | examples/cogview4-control/train_control_cogview4.py:229-244 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:478-494 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:280-296 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:452-468 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:456-472 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:475-491 | examples/controlnet/train_controlnet_flux.py:249-264 | examples/controlnet/train_controlnet_sdxl.py:276-291 | examples/dreambooth/train_dreambooth_flax.py:47-62 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:267-282 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:271-286 | examples/dreambooth/train_dreambooth_lora_sdxl.py:264-279 | examples/flux-control/train_control_flux.py:224-239 | examples/flux-control/train_control_lora_flux.py:235-250 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:144-159 | examples/research_projects/controlnet/train_controlnet_webdataset.py:478-493 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:174-189 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:172-187 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:170-185 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:83-98 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:79-94 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:148-163 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:149-164 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:151-166 | examples/research_projects/ip_adapter/tutorial_train_plus.py:161-176 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:211-226 | examples/research_projects/lpl/train_sdxl_lpl.py:203-218 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:65-79 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:261-276 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:140-155 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:133-148 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:241-256 | examples/text_to_image/train_text_to_image_lora_sdxl.py:187-202 | examples/text_to_image/train_text_to_image_sdxl.py:137-152 | examples/textual_inversion/textual_inversion_flax.py:65-79 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:248\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa9aa2fd6014f845beec0c30edb7f0e00a63dad1ffb909eebb8a31ad1d6f5fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 35): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1367-1381 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1357-1371 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:991-1005 | examples/cogvideo/train_cogvideox_lora.py:1012-1026 | examples/controlnet/train_controlnet_sd3.py:958-972 | examples/dreambooth/train_dreambooth_flux.py:1057-1071 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1158-1172 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1093-1107 | examples/dreambooth/train_dreambooth_lora_flux.py:1100-1114 | examples/dreambooth/train_dreambooth_lora_flux2.py:1100-1114 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1098-1112 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1105-1119 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1094-1108 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1205-1219 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1196-1210 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1277-1291 | examples/dreambooth/train_dreambooth_lora_hidream.py:965-979 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1191-1205 | examples/dreambooth/train_dreambooth_lora_krea2.py:1182-1196 | examples/dreambooth/train_dreambooth_lora_lumina2.py:888-902 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1122-1136 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1156-1170 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1247-1261 | examples/dreambooth/train_dreambooth_lora_sana.py:899-913 | examples/dreambooth/train_dreambooth_lora_sd3.py:1092-1106 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1015-1029 | examples/dreambooth/train_dreambooth_lora_z_image.py:1090-1104 | examples/dreambooth/train_dreambooth_sd3.py:1017-1031 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:616-630 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:589-603 | examples/research_projects/sana/train_sana_sprint_diffusers.py:969-983 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1076-1090 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:651-665 | examples/textual_inversion/textual_inversion.py:614-628 | examples/textual_inversion/textual_inversion_sdxl.py:613-627 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1364\u0060 calls \u0060is_available\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1074\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5ec81f995411d0487303a2712ad8bba8e78aa74f1ce39226bf63b69c06d3a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201315 lines \u00D7 34): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:654-668 | examples/cogview4-control/train_control_cogview4.py:544-558 | examples/controlnet/train_controlnet_flux.py:625-639 | examples/controlnet/train_controlnet_sd3.py:449-463 | examples/dreambooth/train_dreambooth_flux.py:514-528 | examples/dreambooth/train_dreambooth_flux.py:554-567 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:652-666 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:649-663 | examples/dreambooth/train_dreambooth_lora_flux.py:548-562 | examples/dreambooth/train_dreambooth_lora_flux2.py:586-600 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:564-578 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:596-610 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:565-579 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:699-713 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:686-700 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:593-607 | examples/dreambooth/train_dreambooth_lora_hidream.py:565-579 | examples/dreambooth/train_dreambooth_lora_krea2.py:671-685 | examples/dreambooth/train_dreambooth_lora_lumina2.py:475-489 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:568-582 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:587-601 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:603-617 | examples/dreambooth/train_dreambooth_lora_sana.py:493-507 | examples/dreambooth/train_dreambooth_lora_sd3.py:526-540 | examples/dreambooth/train_dreambooth_lora_sdxl.py:572-585 | examples/dreambooth/train_dreambooth_lora_z_image.py:580-594 | examples/dreambooth/train_dreambooth_sd3.py:492-506 | examples/dreambooth/train_dreambooth_sd3.py:539-552 | examples/flux-control/train_control_flux.py:536-550 | examples/flux-control/train_control_lora_flux.py:564-578 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:336-350 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:569-582 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:388-402 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:415-423 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogview4-control/train_control_cogview4.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 478 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:654\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"452e3401d62cb22148a58d1b5bd6ccc8e1a094401dc27162a33dfa50bc135a0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201315 lines \u00D7 34): examples/cogview4-control/train_control_cogview4.py:362-373 | examples/controlnet/train_controlnet.py:389-399 | examples/controlnet/train_controlnet_flax.py:310-320 | examples/controlnet/train_controlnet_flux.py:413-423 | examples/controlnet/train_controlnet_sdxl.py:431-441 | examples/dreambooth/train_dreambooth.py:421-431 | examples/flux-control/train_control_flux.py:354-365 | examples/flux-control/train_control_lora_flux.py:386-397 | examples/instruct_pix2pix/train_instruct_pix2pix.py:320-330 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:377-387 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:330-342 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:232-242 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:233-246 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:334-346 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:293-302 | examples/research_projects/controlnet/train_controlnet_webdataset.py:630-638 | examples/research_projects/gligen/train_gligen_text.py:207-216 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:371-381 | examples/research_projects/lora/train_text_to_image_lora.py:293-303 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:280-290 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:297-307 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:292-302 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:444-454 | examples/research_projects/sana/train_sana_sprint_diffusers.py:513-527 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:421-431 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:379-389 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:283-293 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:335-348 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:334-346 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:408-416 | examples/text_to_image/train_text_to_image.py:401-411 | examples/text_to_image/train_text_to_image_lora.py:334-344 | examples/textual_inversion/textual_inversion.py:319-329 | examples/vqgan/train_vqgan.py:437-447 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:362\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:292\u0060 calls \u0060add_argument\u0060 and \u0060examples/cogview4-control/train_control_cogview4.py:362\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc1e3f8b8ac6b29ae65f593c3cfffd1051d91ed26463b3f397610346badf204"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 28): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1310-1323 | examples/cogvideo/train_cogvideox_lora.py:1326-1339 | examples/controlnet/train_controlnet_sd3.py:1216-1229 | examples/dreambooth/train_dreambooth_lora_hidream.py:1478-1491 | examples/dreambooth/train_dreambooth_lora_krea2.py:1712-1725 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1273-1286 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1612-1625 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1664-1677 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1757-1770 | examples/dreambooth/train_dreambooth_lora_sana.py:1295-1308 | examples/dreambooth/train_dreambooth_lora_sd3.py:1644-1657 | examples/dreambooth/train_dreambooth_sd3.py:1465-1478 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:550-563 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:566-579 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:738-751 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:874-887 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:856-869 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:652-666 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:948-961 | examples/research_projects/lora/train_text_to_image_lora.py:731-744 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:910-923 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1183-1196 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1597-1610 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:715-728 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1001-1014 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:881-894 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1099-1112 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1033-1046 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:564\u0060 calls \u0060clone\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:548\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":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae72f720ba07b34d5a50e523c2a167858be087e27805e643542c62e9ba2f1e25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 23): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:370-384 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:324-338 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:415-429 | examples/dreambooth/train_dreambooth_flux.py:304-318 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:403-418 | examples/dreambooth/train_dreambooth_lora_flux.py:324-338 | examples/dreambooth/train_dreambooth_lora_flux2.py:328-342 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:335-349 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:328-342 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:336-350 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:441-455 | examples/dreambooth/train_dreambooth_lora_hidream.py:350-364 | examples/dreambooth/train_dreambooth_lora_krea2.py:415-429 | examples/dreambooth/train_dreambooth_lora_lumina2.py:263-277 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:318-332 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:337-351 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:347-361 | examples/dreambooth/train_dreambooth_lora_sana.py:283-297 | examples/dreambooth/train_dreambooth_lora_sd3.py:314-328 | examples/dreambooth/train_dreambooth_lora_sdxl.py:334-348 | examples/dreambooth/train_dreambooth_lora_z_image.py:328-342 | examples/dreambooth/train_dreambooth_sd3.py:290-304 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:331-345 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:370\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2da82e5d95f196a84d8fdcca2885df7c57be051482a303755c9a66122ec23b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 23): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:878-892 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:710-724 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:873-887 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:843-857 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:883-897 | examples/controlnet/train_controlnet.py:735-749 | examples/cosmos/train_cosmos_predict25_lora.py:457-471 | examples/custom_diffusion/train_custom_diffusion.py:664-678 | examples/dreambooth/train_dreambooth.py:808-822 | examples/dreambooth/train_dreambooth_lora.py:761-775 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:569-583 | examples/research_projects/controlnet/train_controlnet_webdataset.py:900-914 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:471-485 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:513-527 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:503-517 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:610-624 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:562-576 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:855-869 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:783-797 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:442-456 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:630-644 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:784-798 | examples/text_to_image/train_text_to_image_lora.py:455-469 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:878\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/custom_diffusion/train_custom_diffusion.py:682\u0060 calls \u0060is_available\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:578\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c940f1bf954ed8aa2018ff0d131c9e12189a2debfeb8e0e906f6daf9e451ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 21): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1143-1157 | examples/cogvideo/train_cogvideox_lora.py:1164-1178 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1433-1447 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1322-1336 | examples/dreambooth/train_dreambooth_lora_flux2.py:1386-1400 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1336-1350 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1389-1403 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1330-1344 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1478-1492 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1428-1442 | examples/dreambooth/train_dreambooth_lora_hidream.py:1224-1238 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1527-1541 | examples/dreambooth/train_dreambooth_lora_krea2.py:1441-1455 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1076-1090 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1348-1362 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1390-1404 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1481-1495 | examples/dreambooth/train_dreambooth_lora_sana.py:1099-1113 | examples/dreambooth/train_dreambooth_lora_z_image.py:1368-1382 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:789-803 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:770-784 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4ed73a95963e829b64f6d95883924b2f9ba6071f8b79293faf2628343905fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 20): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1343-1357 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1335-1347 | examples/cogvideo/train_cogvideox_lora.py:988-1002 | examples/controlnet/train_controlnet_sd3.py:934-948 | examples/dreambooth/train_dreambooth_flux.py:1033-1047 | examples/dreambooth/train_dreambooth_lora_flux.py:1076-1090 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1250-1264 | examples/dreambooth/train_dreambooth_lora_hidream.py:941-955 | examples/dreambooth/train_dreambooth_lora_krea2.py:1158-1172 | examples/dreambooth/train_dreambooth_lora_lumina2.py:864-878 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1098-1112 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1132-1146 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1223-1237 | examples/dreambooth/train_dreambooth_lora_sana.py:875-889 | examples/dreambooth/train_dreambooth_lora_sd3.py:1068-1082 | examples/dreambooth/train_dreambooth_lora_sdxl.py:993-1005 | examples/dreambooth/train_dreambooth_sd3.py:993-1007 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:592-606 | examples/research_projects/sana/train_sana_sprint_diffusers.py:945-959 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:627-641 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1343\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, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1333\u0060 calls \u0060ValueError\u0060, \u0060is_available\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1343\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ddd4a5df76ef8e50fcf8bee30ed79020103983a99ad60df156f59aa2bdf447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 20): examples/cogvideo/train_cogvideox_image_to_video_lora.py:255-268 | examples/cogvideo/train_cogvideox_lora.py:246-259 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:592-605 | examples/instruct_pix2pix/train_instruct_pix2pix.py:246-259 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:303-316 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:297-310 | examples/research_projects/lora/train_text_to_image_lora.py:235-249 | examples/research_projects/lpl/train_sdxl_lpl.py:335-348 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:222-235 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:304-317 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:219-232 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:271-284 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:265-278 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:295-309 | examples/text_to_image/train_text_to_image.py:310-323 | examples/text_to_image/train_text_to_image_flax.py:157-170 | examples/text_to_image/train_text_to_image_lora.py:270-283 | examples/text_to_image/train_text_to_image_lora_sdxl.py:318-331 | examples/text_to_image/train_text_to_image_sdxl.py:269-282 | examples/vqgan/train_vqgan.py:354-367 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:255\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46a4d6db87004dbd840ff9ee3998c1adf5aa6e2946516eddf86147862b6b313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 20): examples/dreambooth/train_dreambooth_flux.py:825-839 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:983-996 | examples/dreambooth/train_dreambooth_lora_flux.py:871-885 | examples/dreambooth/train_dreambooth_lora_flux2.py:925-938 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:930-943 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1030-1043 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:951-965 | examples/dreambooth/train_dreambooth_lora_hidream.py:878-892 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1002-1015 | examples/dreambooth/train_dreambooth_lora_krea2.py:992-1005 | examples/dreambooth/train_dreambooth_lora_lumina2.py:801-815 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:884-897 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:918-931 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:977-990 | examples/dreambooth/train_dreambooth_lora_sana.py:812-826 | examples/dreambooth/train_dreambooth_lora_sd3.py:865-879 | examples/dreambooth/train_dreambooth_lora_sdxl.py:876-890 | examples/dreambooth/train_dreambooth_lora_z_image.py:913-926 | examples/dreambooth/train_dreambooth_sd3.py:797-811 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:875-889 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1894 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5f43d669ab417797935a1272b248322136ae20a43c24040892dc616cbd986d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 17): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:985-999 | examples/instruct_pix2pix/train_instruct_pix2pix.py:621-636 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:676-691 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:622-637 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:472-487 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:466-481 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:609-624 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:713-728 | examples/research_projects/lora/train_text_to_image_lora.py:613-628 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:611-626 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:737-752 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:602-617 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:851-866 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:628-643 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:611-626 | examples/text_to_image/train_text_to_image.py:735-750 | examples/text_to_image/train_text_to_image_lora.py:611-626 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 496 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:985\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"5800a573d0fb6854caa414cd64d2c741d6f164a05b77219c4f5fd2ca0d631401"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 16): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2015-2028 | examples/dreambooth/train_dreambooth.py:1165-1178 | examples/dreambooth/train_dreambooth_flux.py:1487-1500 | examples/dreambooth/train_dreambooth_lora.py:1177-1191 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1758-1771 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1592-1605 | examples/dreambooth/train_dreambooth_lora_flux.py:1611-1624 | examples/dreambooth/train_dreambooth_lora_flux2.py:1741-1754 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1644-1657 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1698-1711 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1592-1605 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1841-1854 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1727-1740 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1878-1891 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1834-1847 | examples/dreambooth/train_dreambooth_lora_z_image.py:1626-1639 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:1757\u0060 calls \u0060str\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_ideogram4.py:1851\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"450335c9434134a1e4560ef7aa7ace76ab0e459206e6d7165ee5422e78ee5e25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 14): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1197-1210 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1476-1490 | examples/controlnet/train_controlnet_sdxl.py:911-925 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1132-1146 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:618-632 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:579-593 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:686-700 | examples/research_projects/lpl/train_sdxl_lpl.py:806-820 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1192-1206 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:616-630 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:709-723 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:862-876 | examples/text_to_image/train_text_to_image_lora_sdxl.py:635-649 | examples/text_to_image/train_text_to_image_sdxl.py:690-704 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1476\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2f96fb7e5272b3d11a32f9eba6497b2f037d69006c1bf592b8ac9abfa6b4fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 14): examples/cogview4-control/train_control_cogview4.py:261-275 | examples/controlnet/train_controlnet.py:297-310 | examples/controlnet/train_controlnet_sd3.py:338-351 | examples/flux-control/train_control_flux.py:256-269 | examples/flux-control/train_control_lora_flux.py:267-280 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:261-274 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:165-178 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:171-184 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:270-283 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:184-197 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:371-384 | examples/research_projects/realfill/train_realfill.py:217-230 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:280-293 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:272-285 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:261\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/cogview4-control/train_control_cogview4.py:275\u0060 calls \u0060add_argument\u0060 and \u0060examples/controlnet/train_controlnet.py:310\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dac8b481fef35c46cd4a94d55eac95d9bdedd09ba194b172a4e4c43b5623fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 14): examples/cogview4-control/train_control_cogview4.py:732-746 | examples/controlnet/train_controlnet.py:754-766 | examples/controlnet/train_controlnet_flux.py:841-855 | examples/controlnet/train_controlnet_sdxl.py:855-867 | examples/flux-control/train_control_flux.py:724-738 | examples/flux-control/train_control_lora_flux.py:754-768 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:588-600 | examples/research_projects/controlnet/train_controlnet_webdataset.py:919-931 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:490-502 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:532-544 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:522-534 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:629-641 | examples/research_projects/gligen/train_gligen_text.py:296-308 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:803-815 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cogview4-control/train_control_cogview4.py:731\u0060 calls \u0060info\u0060 and \u0060examples/controlnet/train_controlnet.py:753\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb373dcb86cac07c70f7e68c78956800f38e5bbdf8f0aae7bec92b6f3c93f4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 13): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1958-1971 | examples/custom_diffusion/train_custom_diffusion.py:1288-1302 | examples/dreambooth/train_dreambooth.py:190-203 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:737-751 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:769-783 | examples/research_projects/lora/train_text_to_image_lora.py:898-912 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:889-903 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:147-160 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:190-203 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:963-977 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1276-1290 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1304-1318 | examples/textual_inversion/textual_inversion.py:158-171 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 944 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:982\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1295\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be4fcfa7f6b66450e2082c1b78bebc2db0f2aac2192cda1a696968261313b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 13): examples/dreambooth/train_dreambooth_lora.py:853-865 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1220-1234 | examples/dreambooth/train_dreambooth_lora_flux.py:1164-1178 | examples/dreambooth/train_dreambooth_lora_flux2.py:1164-1178 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1169-1183 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1264-1278 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1349-1363 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1255-1269 | examples/dreambooth/train_dreambooth_lora_lumina2.py:942-956 | examples/dreambooth/train_dreambooth_lora_sana.py:955-969 | examples/dreambooth/train_dreambooth_lora_sd3.py:1154-1168 | examples/dreambooth/train_dreambooth_lora_z_image.py:1154-1168 | examples/dreambooth/train_dreambooth_sd3.py:1079-1093 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora.py:853\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbed8f1299e80cc566a437478a9e9fe6c893ff79044c39856ea497e80adfde7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 13): examples/instruct_pix2pix/train_instruct_pix2pix.py:820-834 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:664-678 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:691-705 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:912-926 | examples/research_projects/lora/train_text_to_image_lora.py:769-783 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:527-541 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:759-773 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:776-790 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:815-829 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:533-547 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:787-801 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:761-775 | examples/unconditional_image_generation/train_unconditional.py:568-582 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 662 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:780\u0060 calls \u0060unwrap_model\u0060, \u0060get_input_embeddings\u0060, \u0060clone\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:840\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e95fed607cc2ee25bd3472ff06ee7bb47ab23eafdc9eb6d69f0a1bf01517cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 10): examples/dreambooth/train_dreambooth.py:989-1003 | examples/dreambooth/train_dreambooth_lora.py:921-935 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:699-713 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:576-590 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:674-688 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:635-649 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:742-756 | examples/research_projects/realfill/train_realfill.py:626-640 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1032-1046 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:940-954 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth.py:1005\u0060 calls \u0060gradient_checkpointing_enable\u0060 and \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:716\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":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"131701c61d595926ebca323b0b9c0d4974ab3b428fe9ad501f03b734fa21974c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 8): examples/community/stable_diffusion_controlnet_reference.py:508-521 | examples/community/stable_diffusion_controlnet_reference.py:607-621 | examples/community/stable_diffusion_reference.py:1160-1173 | examples/community/stable_diffusion_reference.py:1264-1278 | examples/community/stable_diffusion_xl_controlnet_reference.py:915-928 | examples/community/stable_diffusion_xl_controlnet_reference.py:1014-1028 | examples/community/stable_diffusion_xl_reference.py:771-784 | examples/community/stable_diffusion_xl_reference.py:870-884 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_reference.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fa9f958f76eb845324a2b0513376f46ee1687b50c193f1a3622732ba6ac38f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 8): examples/community/stable_diffusion_controlnet_reference.py:629-643 | examples/community/stable_diffusion_controlnet_reference.py:668-682 | examples/community/stable_diffusion_reference.py:1286-1300 | examples/community/stable_diffusion_reference.py:1330-1344 | examples/community/stable_diffusion_xl_controlnet_reference.py:1036-1050 | examples/community/stable_diffusion_xl_controlnet_reference.py:1075-1089 | examples/community/stable_diffusion_xl_reference.py:892-906 | examples/community/stable_diffusion_xl_reference.py:931-945 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_reference.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"962c4bc4a2cf0c707f9aa7b47655a9986ee602756fd6d7c38914c368ee33dfe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 8): examples/research_projects/autoencoder_rae/train_autoencoder_rae.py:298-311 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:640-654 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:488-501 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:697-711 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:707-721 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:750-764 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:833-847 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:703-717 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:724\u0060 calls \u0060to\u0060, \u0060ORTModule\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:715\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/autoencoder_rae/train_autoencoder_rae.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bced53f4570a6fd8208a3e31d28acf99d8b646d9774f67f7c128155d0984971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:299-313 | examples/dreambooth/train_dreambooth_flux.py:199-213 | examples/dreambooth/train_dreambooth_lora_lumina2.py:179-193 | examples/dreambooth/train_dreambooth_lora_sana.py:199-213 | examples/dreambooth/train_dreambooth_lora_sdxl.py:224-238 | examples/research_projects/sana/train_sana_sprint_diffusers.py:293-307 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:168-182 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1869 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_flux.py:214\u0060 calls \u0060is_torch_npu_available\u0060, \u0060empty_cache\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:315\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3972d689178c432a9e09525947cdf4f19590e32bf16bcc6ae983a7667f45ba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 7): examples/controlnet/train_controlnet.py:787-800 | examples/custom_diffusion/train_custom_diffusion.py:814-828 | examples/dreambooth/train_dreambooth.py:920-933 | examples/dreambooth/train_dreambooth_lora.py:872-885 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:883-896 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:963-976 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:891-904 \u2014 \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.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 51 separate duplicated blocks between them, totalling at least 778 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:787\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, \u0060examples/dreambooth/train_dreambooth.py:937\u0060 calls \u0060model_has_vae\u0060 and \u0060examples/controlnet/train_controlnet.py:803\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f167bd4e7278bd6176476542f6d82797f65c2c5d3928f2e87cbbf581775774"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): examples/controlnet/train_controlnet.py:828-842 | examples/controlnet/train_controlnet_flux.py:959-973 | examples/controlnet/train_controlnet_sd3.py:1063-1077 | examples/controlnet/train_controlnet_sdxl.py:947-961 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1024-1038 | examples/research_projects/gligen/train_gligen_text.py:345-359 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:898-912 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"9329485c1e5128ac85f623ba2b52af11add38356e3a63ab8fcf52559a0de8d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1695-1709 | examples/dreambooth/train_dreambooth_lora_flux2.py:1685-1699 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1643-1657 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1769-1783 | examples/dreambooth/train_dreambooth_lora_krea2.py:1669-1683 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1569-1583 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1621-1634 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1695\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, \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:1700\u0060 calls \u0060all\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1686\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1695}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30363b260d5a42b34ae91815ff2be256ddf5490169a3864fa423ae8c9bb5bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_hidream.py:1169-1183 | examples/dreambooth/train_dreambooth_lora_krea2.py:1383-1397 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1030-1044 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1290-1304 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1332-1346 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1423-1437 | examples/dreambooth/train_dreambooth_lora_sana.py:1051-1065 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1169\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c25975930264eb582cf50bd681666540aa4ac504fd9b43676cc7526164e6d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_hidream.py:1582-1596 | examples/dreambooth/train_dreambooth_lora_krea2.py:1842-1856 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1373-1387 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1738-1752 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1793-1807 | examples/dreambooth/train_dreambooth_lora_sana.py:1395-1409 | examples/dreambooth/train_dreambooth_lora_sd3.py:1776-1790 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:1371\u0060 calls \u0060to\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1579\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a02b2c768d8797544348d4b93c78735b6f18f33f1b00320c70f8b47205443f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 6): examples/community/adaptive_mask_inpainting.py:1228-1241 | examples/community/llm_grounded_diffusion.py:1070-1083 | examples/community/masked_stable_diffusion_img2img.py:219-232 | examples/community/pipeline_prompt2prompt.py:757-771 | examples/community/stable_diffusion_controlnet_reference.py:820-833 | examples/community/stable_diffusion_reference.py:1451-1464 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:1228\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, \u0060examples/community/adaptive_mask_inpainting.py:1244\u0060 calls \u0060generate_video_from_imgs\u0060 and \u0060examples/community/llm_grounded_diffusion.py:1085\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"280c754595152be3a1722ff20f672c88684dce516770c392e632d0d17c2cbe05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): examples/dreambooth/train_dreambooth.py:246-263 | examples/dreambooth/train_dreambooth_lora.py:232-249 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:246-263 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:223-240 | examples/textual_inversion/textual_inversion.py:221-235 | examples/vqgan/train_vqgan.py:254-271 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:246\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0514b0f23101deebfc6770abc5f1eb81392c902dd520d66f33f71953a39b607"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): examples/research_projects/ip_adapter/tutorial_train_faceid.py:240-254 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:242-256 | examples/research_projects/ip_adapter/tutorial_train_plus.py:258-272 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:303-317 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:166-180 | examples/textual_inversion/textual_inversion_flax.py:179-193 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py:240\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"7881a121b5d56baa8e74770eb992bd43dda0a225f67fb321666ca902af086645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/community/img2img_inpainting.py:261-275 | examples/community/multilingual_stable_diffusion.py:258-272 | examples/community/seed_resize_stable_diffusion.py:183-197 | examples/community/speech_to_image_diffusion.py:129-143 | examples/community/wildcard_stable_diffusion.py:283-297 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/multilingual_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 373 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae13e3886d779721d5d65e5a519d4d7e015dc6a286327256451aed84de717ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:374-388 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:217-231 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:361-375 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:352-366 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:340-354 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e6f7145d1568f66b5d17387de74f3c8f68bae1f57e7ab8bbf6d600e7220d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:393-407 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:236-250 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:380-394 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:371-385 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:359-373 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"306dae91187ac146e7401283b2d06b0a96e04972b339d6d89327e04f7c281b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1067-1081 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1082-1096 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1023-1037 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1083-1097 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:989-1003 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:1038\u0060 calls \u0060enable_xformers_memory_efficient_attention\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1083\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb56055f28a6758ff19efea655d76360688848968399f18005a5ba209e7c7e63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/controlnet/train_controlnet_flux.py:1059-1073 | examples/controlnet/train_controlnet_sd3.py:1128-1142 | examples/controlnet/train_controlnet_sdxl.py:1040-1054 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1109-1123 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:989-1003 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1591 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet_sd3.py:1146\u0060 calls \u0060to\u0060 and \u0060examples/controlnet/train_controlnet_flux.py:1075\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6e25c1d43ac7d6aa51dd928e5868c6cb12178f8a4ef0730748453ed80a3d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/custom_diffusion/train_custom_diffusion.py:1348-1362 | examples/research_projects/lpl/train_sdxl_lpl.py:1587-1601 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1349-1363 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1359-1373 | examples/text_to_image/train_text_to_image_sdxl.py:1335-1349 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 729 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:1348\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":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":1348}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f11fa67a54b36c200562353cf97eb1ead8166e60c10452f4615283ff2b698b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/dreambooth/train_dreambooth.py:644-658 | examples/dreambooth/train_dreambooth_flax.py:247-261 | examples/dreambooth/train_dreambooth_lora.py:605-619 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:664-678 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:604-618 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 463 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora.py:621\u0060 calls \u0060getattr\u0060, \u0060upper\u0060, \u0060ValueError\u0060 and \u0060examples/dreambooth/train_dreambooth.py:660\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc89c61f263eabb37b6397dbf884fa6ee8fc1b2c7dbfeec838e1cda0a1fea86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_hidream.py:1199-1213 | examples/dreambooth/train_dreambooth_lora_krea2.py:1416-1430 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1323-1337 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1365-1379 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1456-1470 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1199\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, \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1415\u0060 calls \u0060_collate_lora_metadata\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1198\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":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb98bee588f6c406189f79e17708641682cbca9aa11b9e9903aa6ec0cb156b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_lumina2.py:981-995 | examples/dreambooth/train_dreambooth_lora_sana.py:994-1008 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:541-554 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:504-517 | examples/text_to_image/train_text_to_image_lora.py:517-530 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sana.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:981\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, \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:557\u0060 calls \u0060to\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py:532\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_lumina2.py"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a69fc0bd299114f00e62df29f2d1c81721ae3c2fd34ac6660b1fba80f94f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:721-735 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:722-736 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:745-759 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:756-770 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:730-744 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3133f8c6f3d14dfef50d22eeabf3af8f9331d0dfd90dff4d35162c04c907260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:669-683 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:701-715 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:880-894 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:857-871 | examples/text_to_image/train_text_to_image_lora.py:933-947 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:666\u0060 calls \u0060parameters\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:854\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccaaee43c8c84ac071c2c0b3f7cf6685cbd528a8e4c7492e03026bbcba50d66b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:216-230 | examples/research_projects/lpl/train_sdxl_lpl.py:298-312 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:287-304 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:228-242 | examples/text_to_image/train_text_to_image_sdxl.py:232-246 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 789 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:216\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ef371558c30a54b65202e4748427d09b1062f0fc6fadf33b040a2b3ed58c45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:835-849 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:763-777 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:525-539 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:421-435 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:610-624 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 140 separate duplicated blocks between them, totalling at least 2226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9fc24b4b07aa6a510fe4c5da26428eac9ebb007bc73025e55083157681d049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1638-1650 | examples/dreambooth/train_dreambooth_lora.py:990-1004 | examples/dreambooth/train_dreambooth_lora_flux.py:1320-1334 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1007-1021 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1299 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora.py:990\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, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1636\u0060 calls \u0060save_embeddings\u0060, \u0060load_model_hook\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py:1320\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e1009aa5fa3934d23a3d9ed98c83f064b185b73f01724abdd81b23b7b547ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1032-1046 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1047-1061 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:983-996 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1042-1056 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1043\u0060 calls \u0060to\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1028\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7aaf4c5ce2588efdad2afdf18191f15975762542ebd742c919c4ba0ffea457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): examples/consistency_distillation/train_lcm_distill_sd_wds.py:1018-1032 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1078-1092 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:984-998 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:692-705 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:690\u0060 calls \u0060isinstance\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:1014\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b2de7d52af8d4dacc982845d7904d8c6dfe5481acae11b9c1d2e0bb7fa4442"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): examples/controlnet/train_controlnet_sdxl.py:604-617 | examples/dreambooth/train_dreambooth_lora_lumina2.py:601-614 | examples/dreambooth/train_dreambooth_lora_sdxl.py:670-684 | examples/text_to_image/train_text_to_image.py:497-510 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 662 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sdxl.py:604\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sdxl.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"8643eaed4aa9f977ab00cd398f84ab0478c5eb5b78ca3aed78025a44d610f936"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:1174-1188 | examples/dreambooth/train_dreambooth_lora.py:1187-1201 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1206-1220 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1192-1206 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4af821d2ff81a3c950de93a7bc3c802ab44d529f72ecf5fa029aeef3107b967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): examples/dreambooth/train_dreambooth_flux.py:1780-1794 | examples/dreambooth/train_dreambooth_lora_flux.py:1912-1926 | examples/dreambooth/train_dreambooth_lora_sd3.py:1918-1931 | examples/dreambooth/train_dreambooth_sd3.py:1732-1745 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:1780\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4edef957823aa54de69cc0b2515946ef6a24de1def07c66e6fdfbd9dffcfa62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:885-899 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:881-895 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1000-1014 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:903-917 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:885\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":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b052b91ea1406a133867a47cabcf7fb3fb2f51090bde19448165404320c57a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:307-321 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:314-328 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:449-463 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:388-402 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:307\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, \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:447\u0060 calls \u0060add_argument\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:306\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad6e60742bb1327d3f8c45e4db58e8b6032bc182155a9e9745988d2f56c35a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 4): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:840-852 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1000-1012 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:978-992 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:981-995 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:840\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3b956de1fc796e155a22a19b70b7fc701f1eb99bca3f2944166023c8a0cfe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:406-420 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:491-505 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:387-401 | examples/textual_inversion/textual_inversion_flax.py:400-414 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ddf147bf75532105d69b243cbfffe3f73feb0181f7ebabfe4c5b99f63fc183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:986-1000 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:827-841 | examples/text_to_image/train_text_to_image.py:981-995 | examples/text_to_image/train_text_to_image_lora.py:884-898 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 117 separate duplicated blocks between them, totalling at least 1902 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:984\u0060 calls \u0060add_noise\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:823\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"eccfd31d99c8922106628c2b356464a966c61ffad2ffb0c0cdeea653a1d189ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1136-1150 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:992-1006 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1214-1228 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4015afcbf79670f85c8b7e53e937d2280c12f019df0d786f73ee1a64a2a5ef1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1250-1262 | examples/research_projects/gligen/train_gligen_text.py:471-485 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1225-1237 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/research_projects/gligen/train_gligen_text.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 386 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/gligen/train_gligen_text.py:471\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, \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1238\u0060 calls \u0060to\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1264\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c7a1cebe92e3c2438bfc75c1b71d13f384be1c99b01f50a3440b9017353c63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1411-1425 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:628-639 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:721-735 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 701 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1411\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d202b477b5a603c1f7bddfd460895b4d078634ff7d1b786e7f349ef00d73276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1822-1836 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2307-2321 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1842-1856 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1822\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"5623b0ecd866fd6f7af8c350b40c3538f2842ddbe02bc2a5165cab8e0abe0b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1117-1129 | examples/dreambooth/train_dreambooth_flux.py:764-776 | examples/dreambooth/train_dreambooth_lora_sdxl.py:806-820 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1869 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e4f188f15a398322d60727501d2a653ce697d06d0266c85be45d328db60d40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2383-2397 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1915-1929 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1957-1971 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2383\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2383}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6fdcd0fe4ebba69c3bf68a1b157626d0d410998ae0cf5d63f40c745e7e4faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2400-2414 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1930-1944 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1972-1986 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2400\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2400}}}],"partialFingerprints":{"codehealthFindingId/v1":"1262a0641792dcacfec377044385899fa9e85f4cdea33b2411187304d87b3e43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1961-1975 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1911-1925 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:2037-2051 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"0954d670ae5496bc60f1245304c5a472570d708af58d4d866a2188ff48606de1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_krea2.py:1062-1076 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:954-968 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:988-1002 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa5ada1d54c0d6183e87b83aac3c7de3d7230518733af98bde61ab128c5ad45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_qwen_image.py:1054-1068 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1088-1102 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1179-1193 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 215 separate duplicated blocks between them, totalling at least 3669 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwen_image.py"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"40abed0036ca644f7c2128e03c495dad69798f9b655a8b206c6aadfe90da6470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:60-74 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:38-52 | examples/unconditional_image_generation/train_unconditional.py:38-52 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a505cc363656a143c55602c36030ccd155c491a7a2a25919b866c950f49cfb05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:490-504 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:480-494 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:465-479 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"474a0397f0be071826317e3d905a157a428bc850526fdc3b07e92b53c173fb36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:849-863 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:233-247 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 421 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65a54847d548086f1993103907cd316eb8dd19878078a2a9a52f3341a06abc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1672-1686 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:519-533 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"6950d3de45cdc549000d6c7a33a3bfc4eba542d70076eb8d2210339ac2e12f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:864-878 | examples/cogvideo/train_cogvideox_lora.py:886-900 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6ba81767d52ea77be37ea42a4e74686256f295208dd3de3d02570ab8b9afc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/community/clip_guided_images_mixing_stable_diffusion.py:45-66 | examples/community/interpolate_stable_diffusion.py:25-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbebb96d4e59e8b186f19c578d74593b6d39d90cf62ad305f695437f0a28ac49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/community/fresco_v2v.py:128-143 | examples/community/rerender_a_video.py:103-118 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/rerender_a_video.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4977fca27603856c50d9f8f96313ef2a1f7d829e17c950adbeabce0cf1d4c2ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/community/latent_consistency_img2img.py:197-211 | examples/community/rerender_a_video.py:549-563 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cb3063ccdb8f47f88ef562d4c57f28443f793085c5c36b8149364f3f96c345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/community/pipeline_animatediff_ipex.py:533-547 | examples/community/pipeline_stable_diffusion_xl_ipex.py:623-637 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_ipex.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:533\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":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"45dee7338ac1b06543a52b7a642de4b180e96e74f226d28083ef4ae406ceb2dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:530-544 | examples/community/pipeline_stable_diffusion_xl_instantid.py:530-544 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"51118ae54b63c9b30a508ac87c3e84fc8862a10f1a63108596e4ce9790327bb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/community/stable_diffusion_controlnet_img2img.py:800-814 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:905-919 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 827 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"947516ed83836517946d19bebfbc255d06172ae8ae83a088898245d35f7cd446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): examples/controlnet/train_controlnet.py:98-111 | examples/controlnet/train_controlnet_sdxl.py:99-113 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:98\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b7f7ecbfea382ea31a9bfde82ecb3b3e03e103fff1edf380376e798a7db825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): examples/controlnet/train_controlnet_sd3.py:1304-1317 | examples/dreambooth/train_dreambooth_sd3.py:1570-1584 \u2014 \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.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 76 separate duplicated blocks between them, totalling at least 1141 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:1304\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":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9b9715afb63668d2b73898fa6e65c55654bc03d927ffecc23f9f038d872d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): examples/dreambooth/train_dreambooth_flax.py:663-677 | examples/text_to_image/train_text_to_image_flax.py:555-567 \u2014 \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.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 28 separate duplicated blocks between them, totalling at least 452 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flax.py:663\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a07b72771c3ef98efd8519847d0fc89515865907653c60e38a78c888bb7c0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora.py:1315-1329 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1110-1124 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 965 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbf9e17db0e42466fd2b23e80abeecfb23b738947936fe5e304628b79645f06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux.py:1536-1550 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1781-1795 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 183 separate duplicated blocks between them, totalling at least 3210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux.py"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"083f188d9cadfba3900e3d8edd3a3b0e7c137585e0a74372e4b648d16332bed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_hidream.py:1069-1083 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1199-1213 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 182 separate duplicated blocks between them, totalling at least 3091 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1069\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, \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1084\u0060 calls \u0060load_text_encoders\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py:1214\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65d7b8ed0e654c458ddf0ceb738a5ed6b970d1188be7920d546c0c2d4d25e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): examples/instruct_pix2pix/train_instruct_pix2pix.py:956-969 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1057-1071 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1057\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"641c10733793f6a4a6c28ff6763595f168fa444c8a2a36c37a53ca65a0059749"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1089-1103 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1080-1093 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/t2i_adapter/train_t2i_adapter_sdxl.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 251 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1089\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"39cff3f80f4a85f83e42fb3f0f1e5c029b80fd01b0ba0dad3790edef823eab38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1087-1101 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:689-703 \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 \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1087\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":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"445c6ea5357876567caaaa37abfee6d35ec29e0e8259bb9abdbcd8e02f731599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): examples/research_projects/controlnet/train_controlnet_webdataset.py:942-954 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:826-840 \u2014 before extracting anything, compare \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 and \u0060examples/t2i_adapter/train_t2i_adapter_sdxl.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 2078 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:942\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"424a4a94a52c780ca3533a28d97b41e35d3c87e2c4c31987ae2d3671157f06fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): examples/research_projects/controlnet/train_controlnet_webdataset.py:958-972 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:848-860 \u2014 before extracting anything, compare \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 and \u0060examples/t2i_adapter/train_t2i_adapter_sdxl.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 2078 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:958\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"c835a3d3dfb574b3271797d4b714c084b7ecf278a9e75afd0b37fa727719fe62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:423-437 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:470-484 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"13104105ea579d6b0f6219dcb30de1302127bf9b0099e32dfd76e32f00ffa09d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/research_projects/lora/train_text_to_image_lora.py:815-829 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:830-844 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:828\u0060 calls \u0060add_noise\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py:811\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc09720624157f2a1914e043c7fbf872955987aac7ea919785c196fa306e4524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): examples/research_projects/pixart/train_pixart_controlnet_hf.py:110-124 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:89-102 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 and \u0060examples/t2i_adapter/train_t2i_adapter_sdxl.py\u0060 as WHOLE FILES: this scan already matched 62 separate duplicated blocks between them, totalling at least 933 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:110\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/train_pixart_controlnet_hf.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"119dcd98b5528691d5da4b7e908bd3754c25e097c86a532b4810597ea440f8f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): scripts/convert_cosmos_to_diffusers.py:804-818 | scripts/convert_cosmos_to_diffusers.py:832-846 \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":"scripts/convert_cosmos_to_diffusers.py"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84d11d75a0d2cc1239135190c5666c3e1e6880477e8aa3d269c440b434e3672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): utils/consolidated_test_report.py:63-77 | utils/consolidated_test_report.py:103-117 \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":"utils/consolidated_test_report.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"93375c46c585d99eec67b4960fbea8fcb657babeb3b01ae294ebd26de13df6d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 81): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2040-2052 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1665-1677 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2029-2041 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1193-1205 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1175-1187 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1237-1249 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1144-1156 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1238-1250 | examples/controlnet/train_controlnet.py:1001-1013 | examples/controlnet/train_controlnet_flux.py:1189-1201 | examples/controlnet/train_controlnet_sd3.py:1246-1258 | examples/controlnet/train_controlnet_sdxl.py:1183-1195 | examples/custom_diffusion/train_custom_diffusion.py:1095-1107 | examples/dreambooth/train_dreambooth.py:1191-1203 | examples/dreambooth/train_dreambooth_flux.py:1512-1524 | examples/dreambooth/train_dreambooth_lora.py:1204-1216 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1783-1795 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1617-1629 | examples/dreambooth/train_dreambooth_lora_flux.py:1636-1648 | examples/dreambooth/train_dreambooth_lora_flux2.py:1768-1780 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1669-1681 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1725-1737 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1617-1629 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1868-1880 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1754-1766 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1903-1915 | examples/dreambooth/train_dreambooth_lora_hidream.py:1503-1515 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1861-1873 | examples/dreambooth/train_dreambooth_lora_krea2.py:1737-1749 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1298-1310 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1637-1649 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1689-1701 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1782-1794 | examples/dreambooth/train_dreambooth_lora_sana.py:1320-1332 | examples/dreambooth/train_dreambooth_lora_sd3.py:1669-1681 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1603-1615 | examples/dreambooth/train_dreambooth_lora_z_image.py:1652-1664 | examples/dreambooth/train_dreambooth_sd3.py:1490-1502 | examples/instruct_pix2pix/train_instruct_pix2pix.py:805-817 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:992-1004 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:737-747 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:573-585 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:589-601 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:738-750 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:847-859 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1162-1175 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1256-1268 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:762-774 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:898-910 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:880-892 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:883-895 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:650-661 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:677-688 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:973-985 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:897-909 | examples/research_projects/lora/train_text_to_image_lora.py:754-766 | examples/research_projects/lpl/train_sdxl_lpl.py:1164-1176 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:512-524 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:744-756 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:761-773 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:801-812 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:933-945 | examples/research_projects/realfill/train_realfill.py:806-818 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1290-1302 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1223-1235 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1209-1221 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1626-1638 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:893-905 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:738-750 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1024-1036 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1037-1049 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:906-918 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:772-784 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:746-758 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1129-1142 | examples/text_to_image/train_text_to_image.py:912-924 | examples/text_to_image/train_text_to_image_lora.py:819-831 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1056-1068 | examples/text_to_image/train_text_to_image_sdxl.py:1033-1045 | examples/textual_inversion/textual_inversion.py:825-836 | examples/textual_inversion/textual_inversion_sdxl.py:867-878 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"5146fba4970966853cf144dd00c8897fe2e1eeea2137f20503ec5d64074e6ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 62): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1372-1383 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1108-1119 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1362-1373 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:996-1007 | examples/cogvideo/train_cogvideox_lora.py:1017-1028 | examples/cogview4-control/train_control_cogview4.py:735-748 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:897-908 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:729-740 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:892-903 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:862-873 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:902-913 | examples/controlnet/train_controlnet.py:757-768 | examples/controlnet/train_controlnet_flux.py:844-857 | examples/controlnet/train_controlnet_sd3.py:963-974 | examples/controlnet/train_controlnet_sdxl.py:858-869 | examples/custom_diffusion/train_custom_diffusion.py:694-705 | examples/dreambooth/train_dreambooth.py:843-854 | examples/dreambooth/train_dreambooth_flux.py:1062-1073 | examples/dreambooth/train_dreambooth_lora.py:796-807 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1163-1174 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1098-1109 | examples/dreambooth/train_dreambooth_lora_flux.py:1105-1116 | examples/dreambooth/train_dreambooth_lora_flux2.py:1105-1116 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1103-1114 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1110-1121 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1099-1110 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1210-1221 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1201-1212 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1282-1293 | examples/dreambooth/train_dreambooth_lora_hidream.py:970-981 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1196-1207 | examples/dreambooth/train_dreambooth_lora_krea2.py:1187-1198 | examples/dreambooth/train_dreambooth_lora_lumina2.py:893-904 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1127-1138 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1161-1172 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1252-1263 | examples/dreambooth/train_dreambooth_lora_sana.py:904-915 | examples/dreambooth/train_dreambooth_lora_sd3.py:1097-1108 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1020-1031 | examples/dreambooth/train_dreambooth_lora_z_image.py:1095-1106 | examples/dreambooth/train_dreambooth_sd3.py:1022-1033 | examples/flux-control/train_control_flux.py:727-740 | examples/flux-control/train_control_lora_flux.py:757-770 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:591-602 | examples/research_projects/controlnet/train_controlnet_webdataset.py:922-933 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:493-504 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:535-546 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:525-536 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:632-643 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:621-632 | examples/research_projects/gligen/train_gligen_text.py:299-310 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:580-591 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:594-605 | examples/research_projects/realfill/train_realfill.py:558-569 | examples/research_projects/sana/train_sana_sprint_diffusers.py:974-985 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:886-897 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:814-825 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1081-1092 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:656-667 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:806-817 | examples/textual_inversion/textual_inversion.py:619-630 | examples/textual_inversion/textual_inversion_sdxl.py:618-629 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1368\u0060 calls \u0060is_wandb_available\u0060, \u0060ImportError\u0060 and \u0060examples/controlnet/train_controlnet.py:754\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"865d96607cd9b4f7acc4a6f2a8d04ecc3fa3397f78d801efd80c828c45455faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 60): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:552-565 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:438-451 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:540-553 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:259-272 | examples/cogvideo/train_cogvideox_lora.py:250-263 | examples/cogview4-control/train_control_cogview4.py:277-290 | examples/controlnet/train_controlnet.py:310-323 | examples/controlnet/train_controlnet_flax.py:270-281 | examples/controlnet/train_controlnet_flux.py:325-338 | examples/controlnet/train_controlnet_sd3.py:351-364 | examples/controlnet/train_controlnet_sdxl.py:352-365 | examples/custom_diffusion/train_custom_diffusion.py:452-465 | examples/dreambooth/train_dreambooth.py:338-351 | examples/dreambooth/train_dreambooth_flux.py:411-424 | examples/dreambooth/train_dreambooth_lora.py:345-358 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:562-575 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:559-572 | examples/dreambooth/train_dreambooth_lora_flux.py:445-458 | examples/dreambooth/train_dreambooth_lora_flux2.py:483-496 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:467-480 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:493-506 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:468-481 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:609-622 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:596-609 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:490-503 | examples/dreambooth/train_dreambooth_lora_hidream.py:476-489 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:554-567 | examples/dreambooth/train_dreambooth_lora_krea2.py:579-592 | examples/dreambooth/train_dreambooth_lora_lumina2.py:386-399 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:479-492 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:498-511 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:514-527 | examples/dreambooth/train_dreambooth_lora_sana.py:404-417 | examples/dreambooth/train_dreambooth_lora_sd3.py:431-444 | examples/dreambooth/train_dreambooth_lora_sdxl.py:446-459 | examples/dreambooth/train_dreambooth_lora_z_image.py:477-490 | examples/dreambooth/train_dreambooth_sd3.py:397-410 | examples/flux-control/train_control_flux.py:269-282 | examples/flux-control/train_control_lora_flux.py:280-293 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:197-210 | examples/research_projects/controlnet/train_controlnet_webdataset.py:551-564 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:256-269 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:281-294 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:279-292 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:263-276 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:239-252 | examples/research_projects/gligen/train_gligen_text.py:130-143 | examples/research_projects/lpl/train_sdxl_lpl.py:339-352 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:275-288 | examples/research_projects/realfill/train_realfill.py:230-243 | examples/research_projects/sana/train_sana_sprint_diffusers.py:438-451 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:338-351 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:336-349 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:443-456 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:275-288 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:269-282 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:300-313 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:329-342 | examples/text_to_image/train_text_to_image_lora_sdxl.py:322-335 | examples/text_to_image/train_text_to_image_sdxl.py:273-286 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:552\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:260\u0060 calls \u0060add_argument\u0060 and \u0060examples/controlnet/train_controlnet.py:307\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0b4ead583a7011185b870cbfd495b47c6b4572d24f6485cfda7f7c433de36c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 50): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:625-638 | examples/amused/train_amused.py:172-189 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:319-332 | examples/cogvideo/train_cogvideox_lora.py:310-323 | examples/cogview4-control/train_control_cogview4.py:345-358 | examples/controlnet/train_controlnet.py:372-385 | examples/controlnet/train_controlnet_flux.py:387-400 | examples/controlnet/train_controlnet_sd3.py:418-431 | examples/controlnet/train_controlnet_sdxl.py:414-427 | examples/dreambooth/train_dreambooth.py:404-417 | examples/dreambooth/train_dreambooth_flux.py:485-498 | examples/dreambooth/train_dreambooth_lora.py:405-418 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:623-636 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:620-633 | examples/dreambooth/train_dreambooth_lora_flux.py:519-532 | examples/dreambooth/train_dreambooth_lora_flux2.py:557-570 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:535-548 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:567-580 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:536-549 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:670-683 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:657-670 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:564-577 | examples/dreambooth/train_dreambooth_lora_hidream.py:536-549 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:628-641 | examples/dreambooth/train_dreambooth_lora_krea2.py:642-655 | examples/dreambooth/train_dreambooth_lora_lumina2.py:446-459 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:539-552 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:558-571 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:574-587 | examples/dreambooth/train_dreambooth_lora_sana.py:464-477 | examples/dreambooth/train_dreambooth_lora_sd3.py:498-511 | examples/dreambooth/train_dreambooth_lora_z_image.py:551-564 | examples/dreambooth/train_dreambooth_sd3.py:464-477 | examples/flux-control/train_control_flux.py:337-350 | examples/flux-control/train_control_lora_flux.py:369-382 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:274-287 | examples/research_projects/controlnet/train_controlnet_webdataset.py:613-626 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:328-341 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:347-360 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:345-358 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:329-342 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:307-320 | examples/research_projects/gligen/train_gligen_text.py:192-205 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:339-352 | examples/research_projects/realfill/train_realfill.py:296-309 | examples/research_projects/sana/train_sana_sprint_diffusers.py:498-511 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:404-417 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:396-409 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:360-373 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:391-404 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 50 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 50 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:625\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea665fa843b7ac515634502e7ae5e8e9c56c48fa4f715dc4d14b3271476dacc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 33): examples/controlnet/train_controlnet_sd3.py:1197-1210 | examples/dreambooth/train_dreambooth_lora_hidream.py:1462-1472 | examples/dreambooth/train_dreambooth_lora_krea2.py:1696-1706 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1257-1267 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1596-1606 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1648-1658 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1741-1751 | examples/dreambooth/train_dreambooth_lora_sana.py:1279-1289 | examples/dreambooth/train_dreambooth_sd3.py:1430-1440 | examples/research_projects/autoencoder_rae/train_autoencoder_rae.py:294-306 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:772-785 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:720-733 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:856-869 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:838-851 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:591-604 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:635-648 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:932-942 | examples/research_projects/gligen/train_gligen_text.py:450-463 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:486-496 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:553-563 | examples/research_projects/lora/train_text_to_image_lora.py:704-717 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:971-984 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:692-705 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:702-715 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:748-758 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:892-905 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1158-1171 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1159-1172 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1576-1586 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:828-841 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:698-711 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:862-875 | examples/textual_inversion/textual_inversion.py:774-784 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 918 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:1197\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, \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1691\u0060 calls \u0060to\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1644\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"327c2a1b5f1a0dec0be73b5108fadcdaf10760075009fb310cfc39867447e164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 26): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1414-1425 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1148-1159 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1403-1414 | examples/dreambooth/train_dreambooth.py:884-895 | examples/dreambooth/train_dreambooth_flux.py:1105-1116 | examples/dreambooth/train_dreambooth_lora.py:837-848 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1202-1215 | examples/dreambooth/train_dreambooth_lora_flux.py:1147-1158 | examples/dreambooth/train_dreambooth_lora_flux2.py:1147-1158 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1152-1163 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1247-1258 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1332-1343 | examples/dreambooth/train_dreambooth_lora_hidream.py:1003-1014 | examples/dreambooth/train_dreambooth_lora_krea2.py:1220-1231 | examples/dreambooth/train_dreambooth_lora_lumina2.py:926-937 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1160-1171 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1194-1205 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1285-1296 | examples/dreambooth/train_dreambooth_lora_sana.py:939-950 | examples/dreambooth/train_dreambooth_lora_sd3.py:1138-1149 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1061-1072 | examples/dreambooth/train_dreambooth_lora_z_image.py:1137-1148 | examples/dreambooth/train_dreambooth_sd3.py:1063-1074 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:927-938 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:855-866 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1121-1132 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1202\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, \u0060examples/dreambooth/train_dreambooth_lora_sana.py:935\u0060 calls \u0060to\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1411\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca365f3ddc615dcd7905438c23c99fd7fc6a7464eab8baae9b6fd171e5ffcfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 26): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1682-1695 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1732-1745 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1162-1175 | examples/cogvideo/train_cogvideox_lora.py:1183-1196 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1453-1466 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1342-1355 | examples/dreambooth/train_dreambooth_lora_flux.py:1366-1379 | examples/dreambooth/train_dreambooth_lora_flux2.py:1406-1419 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1356-1369 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1409-1422 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1350-1363 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1498-1511 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1448-1461 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1565-1578 | examples/dreambooth/train_dreambooth_lora_hidream.py:1244-1257 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1547-1560 | examples/dreambooth/train_dreambooth_lora_krea2.py:1461-1474 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1096-1109 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1368-1381 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1410-1423 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1501-1514 | examples/dreambooth/train_dreambooth_lora_sana.py:1119-1132 | examples/dreambooth/train_dreambooth_lora_sd3.py:1395-1408 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1335-1348 | examples/dreambooth/train_dreambooth_lora_z_image.py:1388-1401 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:790-803 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1698\u0060 calls \u0060extend\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1469\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffda21942f7fce2368f07b2f30ec0a643fc1f63c817da0faad1efced3baf21e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 23): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:791-804 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:654-666 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:763-775 | examples/dreambooth/train_dreambooth.py:501-513 | examples/dreambooth/train_dreambooth_flux.py:624-637 | examples/dreambooth/train_dreambooth_lora.py:480-492 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:788-799 | examples/dreambooth/train_dreambooth_lora_flux.py:682-693 | examples/dreambooth/train_dreambooth_lora_flux2.py:730-741 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:735-746 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:835-846 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:727-738 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:812-823 | examples/dreambooth/train_dreambooth_lora_sdxl.py:642-654 | examples/dreambooth/train_dreambooth_lora_z_image.py:719-730 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:403-415 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:422-434 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:420-432 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:404-416 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:452-464 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:501-513 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:471-483 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:639-651 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:791\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:669\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth.py:516\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ffeebebc36764f6bfbf6a147c2bdb8c52aa7c43a1736aa27d94ca1668bef70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 23): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:722-735 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:854-867 | examples/dreambooth/train_dreambooth.py:590-603 | examples/dreambooth/train_dreambooth_flux.py:659-672 | examples/dreambooth/train_dreambooth_lora.py:551-564 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:817-830 | examples/dreambooth/train_dreambooth_lora_flux.py:708-721 | examples/dreambooth/train_dreambooth_lora_flux2.py:759-772 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:764-777 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:864-877 | examples/dreambooth/train_dreambooth_lora_hidream.py:715-728 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:841-854 | examples/dreambooth/train_dreambooth_lora_krea2.py:826-839 | examples/dreambooth/train_dreambooth_lora_lumina2.py:634-647 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:718-731 | examples/dreambooth/train_dreambooth_lora_sana.py:649-662 | examples/dreambooth/train_dreambooth_lora_sd3.py:702-715 | examples/dreambooth/train_dreambooth_lora_sdxl.py:698-711 | examples/dreambooth/train_dreambooth_lora_z_image.py:748-761 | examples/dreambooth/train_dreambooth_sd3.py:634-647 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:610-623 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:550-563 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:702-715 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth.py:606\u0060 calls \u0060ValueError\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py:674\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"1418a19e0b1baf55b8539b45b33061a475dfb919b9beffb3a85ed989b6a71284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 22): examples/cogview4-control/train_control_cogview4.py:259-272 | examples/controlnet/train_controlnet.py:295-308 | examples/controlnet/train_controlnet_flux.py:298-313 | examples/controlnet/train_controlnet_sd3.py:336-349 | examples/controlnet/train_controlnet_sdxl.py:325-340 | examples/cosmos3/inference_cosmos3.py:135-150 | examples/flux-control/train_control_flux.py:254-267 | examples/flux-control/train_control_lora_flux.py:265-278 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:259-272 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:163-176 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:169-182 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:268-281 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:182-195 | examples/research_projects/controlnet/train_controlnet_webdataset.py:524-539 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:222-237 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:247-262 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:245-260 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:228-243 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:369-382 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:278-291 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:270-283 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:293-308 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:259\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb48aca402b864f72f8e55bdd4e2a0786f2bbc3e8e80a6ec05b044174cc6291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 19): examples/controlnet/train_controlnet_sd3.py:1195-1208 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:940-953 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:532-545 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:547-560 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:690-703 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:770-783 | examples/research_projects/gligen/train_gligen_text.py:448-461 | examples/research_projects/lora/train_text_to_image_lora.py:702-715 | examples/research_projects/lpl/train_sdxl_lpl.py:1093-1106 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:700-713 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:890-903 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:826-839 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:696-709 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:977-990 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:986-999 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:701-714 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1078-1091 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1009-1022 | examples/text_to_image/train_text_to_image_sdxl.py:977-990 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 591 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:1195\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd2be4c775c5cf505f5be2a2f614ecb9fcf2ead819497b8338aa40c240b2d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 17): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1637-1650 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1996-2009 | examples/cogview4-control/train_control_cogview4.py:936-949 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1147-1160 | examples/controlnet/train_controlnet.py:970-980 | examples/controlnet/train_controlnet_flux.py:1155-1168 | examples/controlnet/train_controlnet_sdxl.py:1149-1162 | examples/custom_diffusion/train_custom_diffusion.py:1072-1085 | examples/flux-control/train_control_flux.py:926-939 | examples/flux-control/train_control_lora_flux.py:1071-1084 | examples/instruct_pix2pix/train_instruct_pix2pix.py:781-791 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:711-721 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:873-883 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:743-756 | examples/text_to_image/train_text_to_image.py:880-890 | examples/text_to_image/train_text_to_image_lora.py:795-805 | examples/textual_inversion/textual_inversion_sdxl.py:843-853 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1637\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, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1655\u0060 calls \u0060init_trackers\u0060, \u0060vars\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py:1088\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"979f01f7ba84804ba1915039fced094902232cf2539d1c724d1866deb27de92a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 17): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1302-1315 | examples/cogvideo/train_cogvideox_lora.py:1318-1331 | examples/cogview4-control/train_control_cogview4.py:927-939 | examples/controlnet/train_controlnet_flux.py:1146-1158 | examples/controlnet/train_controlnet_sd3.py:1208-1221 | examples/dreambooth/train_dreambooth_lora_hidream.py:1470-1483 | examples/dreambooth/train_dreambooth_lora_krea2.py:1704-1717 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1265-1278 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1604-1617 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1656-1669 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1749-1762 | examples/dreambooth/train_dreambooth_lora_sana.py:1287-1300 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:731-743 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:867-879 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:849-861 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:940-953 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:873-886 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1302\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"1873bdd4b04028979c77fbf2b97c1b0c1edd4f59eba72cf22ac3672253dac2f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 14): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1010-1023 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:959-972 | examples/dreambooth/train_dreambooth_lora_flux2.py:952-965 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:937-950 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:957-970 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:933-946 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1057-1070 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1052-1065 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:979-992 | examples/dreambooth/train_dreambooth_lora_krea2.py:1019-1032 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:911-924 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:945-958 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1004-1017 | examples/dreambooth/train_dreambooth_lora_z_image.py:940-953 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"02632b5850ae9ffbf3979ec34957636e487ba377ffcfb57a49a5c0d3bf8946a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 13): examples/controlnet/train_controlnet_flux.py:865-878 | examples/controlnet/train_controlnet_sdxl.py:877-889 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1086-1098 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:512-524 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:554-566 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:544-556 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:651-663 | examples/research_projects/lpl/train_sdxl_lpl.py:771-783 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1146-1158 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:582-594 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:674-686 | examples/text_to_image/train_text_to_image_lora_sdxl.py:601-613 | examples/text_to_image/train_text_to_image_sdxl.py:655-667 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 127 separate duplicated blocks between them, totalling at least 2214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flux.py:865\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ecb4b51d615001b6feab231f8a7d918e8b4c6cfd7fc63e64fc9bf2779d9c52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 12): examples/controlnet/train_controlnet.py:954-967 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:405-414 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:415-424 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:809-822 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:550-559 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:645-654 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:606-615 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:713-722 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:501-512 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:325-333 | examples/research_projects/ip_adapter/tutorial_train_plus.py:348-356 | examples/textual_inversion/textual_inversion_sdxl.py:827-840 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 570 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:954\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, \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:657\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:562\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"451eef9ef7b39e3cb445dc50593ba178f30071810a7cad6b26006fdf70f03c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 12): examples/dreambooth/train_dreambooth_lora.py:420-432 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:343-355 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:362-374 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:360-372 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:344-356 | examples/research_projects/lpl/train_sdxl_lpl.py:471-484 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:411-423 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:357-370 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:401-414 | examples/text_to_image/train_text_to_image_lora_sdxl.py:404-417 | examples/text_to_image/train_text_to_image_sdxl.py:405-418 | examples/textual_inversion/textual_inversion_sdxl.py:317-330 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 as WHOLE FILES: this scan already matched 62 separate duplicated blocks between them, totalling at least 919 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lpl/train_sdxl_lpl.py:471\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, \u0060examples/research_projects/lpl/train_sdxl_lpl.py:487\u0060 calls \u0060add_argument\u0060 and \u0060examples/textual_inversion/textual_inversion_sdxl.py:333\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ed97e3fe0f5718e1896757011161a36b699f671a4957fdde4edc5ba36c6b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 11): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1611-1624 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1970-1983 | examples/controlnet/train_controlnet.py:933-946 | examples/controlnet/train_controlnet_sdxl.py:1128-1141 | examples/custom_diffusion/train_custom_diffusion.py:1048-1061 | examples/instruct_pix2pix/train_instruct_pix2pix.py:744-757 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:836-849 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:725-738 | examples/text_to_image/train_text_to_image.py:838-851 | examples/text_to_image/train_text_to_image_lora.py:769-782 | examples/textual_inversion/textual_inversion_sdxl.py:805-818 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1611\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54acea4dca572432aeb0f6a742b5799a10ff7f46136fcbff027b6bcdf7fe825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 11): examples/controlnet/train_controlnet_sdxl.py:915-928 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:541-554 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:622-635 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:583-596 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:690-703 | examples/research_projects/lpl/train_sdxl_lpl.py:810-823 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:620-633 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:713-726 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:866-879 | examples/text_to_image/train_text_to_image_lora_sdxl.py:639-652 | examples/text_to_image/train_text_to_image_sdxl.py:694-707 \u2014 \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.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 53 separate duplicated blocks between them, totalling at least 770 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":"examples/controlnet/train_controlnet_sdxl.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc24cdd7e0a34c62796f2a22839a6cd85dc20e7b449ddbf2673caecca15795c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 11): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:452-464 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:337-349 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:350-362 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:453-465 | examples/research_projects/lora/train_text_to_image_lora.py:404-417 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:691-703 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:559-572 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:423-436 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:574-587 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:454-466 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:452-464 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:590\u0060 calls \u0060is_wandb_available\u0060, \u0060ImportError\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:467\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7d2adfa9c8aa899b3af1e47a4ab4a234dc7b050f8e90e73e212eb64a69ee4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:692-705 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:855-868 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:865-878 | examples/controlnet/train_controlnet_sdxl.py:745-758 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:831-844 | examples/research_projects/controlnet/train_controlnet_webdataset.py:882-895 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:495-508 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:485-498 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:470-483 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:710-723 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 84 separate duplicated blocks between them, totalling at least 1625 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c008416d0d2c1fa2d80049d58e07fe12f7f834cb71d6d2692a65bde3c52fa84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10): examples/controlnet/train_controlnet_sd3.py:1306-1319 | examples/dreambooth/train_dreambooth_lora_hidream.py:1582-1596 | examples/dreambooth/train_dreambooth_lora_krea2.py:1842-1856 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1373-1387 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1738-1752 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1793-1807 | examples/dreambooth/train_dreambooth_lora_sana.py:1395-1409 | examples/dreambooth/train_dreambooth_lora_sd3.py:1776-1790 | examples/dreambooth/train_dreambooth_sd3.py:1572-1586 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:970-984 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 918 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:1371\u0060 calls \u0060to\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1579\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e143f0856decca878f1e7d0f549fa34c7ab7d7141c3f4e333fe3ba684c385889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8): examples/community/clip_guided_stable_diffusion.py:288-301 | examples/community/imagic_stable_diffusion.py:427-440 | examples/community/interpolate_stable_diffusion.py:327-340 | examples/community/multilingual_stable_diffusion.py:362-375 | examples/community/seed_resize_stable_diffusion.py:294-307 | examples/community/speech_to_image_diffusion.py:217-230 | examples/community/wildcard_stable_diffusion.py:371-384 | examples/research_projects/rdm/pipeline_rdm.py:305-318 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/clip_guided_stable_diffusion.py:287\u0060 calls \u0060set\u0060, \u0060signature\u0060, \u0060keys\u0060 and \u0060examples/community/imagic_stable_diffusion.py:426\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d2dcc2796f5f1e64e395df85ccd45cdd9c45289f709390cf33d4354e8860b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 8): examples/controlnet/train_controlnet.py:788-800 | examples/custom_diffusion/train_custom_diffusion.py:816-828 | examples/dreambooth/train_dreambooth.py:921-933 | examples/dreambooth/train_dreambooth_lora.py:873-885 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:521-533 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:884-897 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:964-976 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:892-904 \u2014 \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.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 51 separate duplicated blocks between them, totalling at least 778 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:788\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth.py:937\u0060 calls \u0060model_has_vae\u0060 and \u0060examples/controlnet/train_controlnet.py:803\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fb40dcd93ae1a3c7c2d2807c72036a20ce57d6723fe86e01b61718a2cb314a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 8): examples/controlnet/train_controlnet.py:1144-1157 | examples/controlnet/train_controlnet_sd3.py:1422-1435 | examples/dreambooth/train_dreambooth.py:1388-1401 | examples/research_projects/gligen/train_gligen_text.py:663-675 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:641-654 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1451-1464 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1289-1302 | examples/textual_inversion/textual_inversion_sdxl.py:1055-1067 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 1830 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:1144\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:640\u0060 calls \u0060checkpoint\u0060 and \u0060examples/controlnet/train_controlnet.py:1143\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ce397085ed46c0e83eb4e80719efc5b00f33fc5abca97c60023e88cc6c1bc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 8): examples/dreambooth/train_dreambooth_flux.py:182-190 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:251-259 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:272-280 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:211-224 | examples/dreambooth/train_dreambooth_lora_lumina2.py:162-171 | examples/dreambooth/train_dreambooth_lora_sd3.py:195-203 | examples/dreambooth/train_dreambooth_sd3.py:171-179 | examples/text_to_image/train_text_to_image_lora_sdxl.py:132-140 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1894 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7bbd3283e7fa7fc9d4563b5479d50423c9f9dfaa67fbda6cab25b056c7c8e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_flux2.py:1300-1313 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1250-1263 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1303-1316 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1244-1257 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1392-1405 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1342-1355 | examples/dreambooth/train_dreambooth_lora_krea2.py:1377-1390 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:1300\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5c752837dd476bb727020f47ed1273b7291117ff265de2b5f7e48b09f4e205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 6): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1014-1026 | examples/cogvideo/train_cogvideox_lora.py:1035-1047 | examples/dreambooth/train_dreambooth_lora_krea2.py:1244-1257 | examples/dreambooth/train_dreambooth_lora_lumina2.py:949-962 | examples/dreambooth/train_dreambooth_lora_sana.py:962-975 | examples/research_projects/sana/train_sana_sprint_diffusers.py:992-1005 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1014\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1239\u0060 calls \u0060to\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:943\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9c341844c2a469e12396e3092d4946d8f0858aeaec099f640a4db256f73a52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 6): examples/controlnet/train_controlnet.py:104-116 | examples/controlnet/train_controlnet_flux.py:100-113 | examples/controlnet/train_controlnet_sdxl.py:106-118 | examples/research_projects/controlnet/train_controlnet_webdataset.py:335-347 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:117-129 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:95-107 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet.py:102\u0060 calls \u0060from_config\u0060 and \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:332\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ca9cc60b1d8c294d50024f45b4db4bae3bf913cbb5778b72f837e6c189a858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): examples/controlnet/train_controlnet.py:952-965 | examples/research_projects/gligen/train_gligen_text.py:469-482 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:995-1008 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:709-722 | examples/research_projects/realfill/train_realfill.py:764-777 | examples/textual_inversion/textual_inversion.py:790-803 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/research_projects/gligen/train_gligen_text.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 860 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet.py:966\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/realfill/train_realfill.py:780\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7b88754f32b9a1e4b58ffae2b0c95ad03a58259b35c04180b45fadef130715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1718-1730 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1666-1678 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1803-1815 | examples/dreambooth/train_dreambooth_lora_hidream.py:1552-1565 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1347-1360 | examples/dreambooth/train_dreambooth_lora_z_image.py:1701-1713 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce490768e9d79d6a349299168e625e075df8ef536c9e773852c4d3d333cb6c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_hidream.py:695-708 | examples/dreambooth/train_dreambooth_lora_krea2.py:803-816 | examples/dreambooth/train_dreambooth_lora_lumina2.py:614-627 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:698-711 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:719-732 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:735-748 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:695\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"19089ae0dac5f2e8e52a4ce5e9ae1035de830e5be4e4567e873bfa05bed6cded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): examples/instruct_pix2pix/train_instruct_pix2pix.py:520-533 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:576-589 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:609-622 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:514-527 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:641-654 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:754-767 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:515\u0060 calls \u0060requires_grad_\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:572\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a342690b7f78012b606f62b015d374e815d4268db6cd31cab375d03d7e541f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): examples/cogview4-control/train_control_cogview4.py:106-119 | examples/controlnet/train_controlnet_flux.py:115-128 | examples/controlnet/train_controlnet_sdxl.py:120-133 | examples/flux-control/train_control_flux.py:101-114 | examples/flux-control/train_control_lora_flux.py:111-124 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1536 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6dea130631e0ed52b0d983e8f8ec27bd993512c8f86425082c40411f8e5fbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): examples/community/img2img_inpainting.py:291-304 | examples/community/multilingual_stable_diffusion.py:304-317 | examples/community/seed_resize_stable_diffusion.py:213-226 | examples/community/speech_to_image_diffusion.py:159-172 | examples/community/wildcard_stable_diffusion.py:313-326 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/multilingual_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 373 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"408dc01b16f71cc0b37eb60ea25bd0fb85a2c6b312bd9fe4e7677bd9babd9e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 5): examples/controlnet/train_controlnet.py:953-966 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:809-821 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:710-723 | examples/textual_inversion/textual_inversion.py:791-804 | examples/textual_inversion/textual_inversion_sdxl.py:827-839 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py\u0060 as WHOLE FILES: this scan already matched 84 separate duplicated blocks between them, totalling at least 1317 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:953\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, \u0060examples/textual_inversion/textual_inversion.py:788\u0060 calls \u0060train\u0060 and \u0060examples/controlnet/train_controlnet.py:949\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e16bc1c24737887d7728e1c8f952cbc0a7f041c88d1b449d524ec8fdcfc45ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): examples/instruct_pix2pix/train_instruct_pix2pix.py:733-746 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:678-691 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:825-838 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:714-727 | examples/text_to_image/train_text_to_image.py:827-840 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 951 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e47413562e33ffdfa8fb1db9b889339559d64bd8a4101a7fa8a86507cb2f49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:668-679 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:777-789 | examples/research_projects/gligen/train_gligen_text.py:205-215 | examples/research_projects/sana/train_sana_sprint_diffusers.py:511-524 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:668\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad88011b2afe1bdb989bbc65f198a0471095b22dc4c1e0372a01e97fc5e6c9fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/community/pipeline_controlnet_xl_kolors.py:209-222 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:230-243 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:279-292 | examples/research_projects/anytext/anytext.py:1284-1297 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_controlnet_xl_kolors.py:209\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, \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py:293\u0060 calls \u0060VaeImageProcessor\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors.py:224\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77df2978e0e4a33440bcab4467ee689d6fdcce2c171bdc1f45a39d148c2816b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:953-966 | examples/community/pipeline_stable_diffusion_xl_instantid.py:942-955 | examples/research_projects/anytext/anytext.py:2244-2256 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1223-1235 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d0d73377ec4744aaad7639eca528f1d5daa4080d51f15477d8459cf73b6a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:181-194 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:194-207 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:163-176 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:176-189 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e674c8403375a6749a097368ee77a5daad63dfa7cc5b2492bc491980b6410b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/dreambooth/train_dreambooth_flax.py:408-421 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:479-492 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:542-555 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:586-599 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 420 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flax.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"59591d813e985fa6996cf2b86a6455ee5bb7a369a1a57129d308efa96e918187"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora.py:903-916 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:922-935 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:637-651 | examples/text_to_image/train_text_to_image_lora_sdxl.py:656-670 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 162 separate duplicated blocks between them, totalling at least 2821 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"516a54eb5f404791bf07ac4ddfcf766e18e824e7c0cb9dfbfb9fb50f5711be8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora.py:919-932 | examples/research_projects/lora/train_text_to_image_lora.py:541-554 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:938-951 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:658-671 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 546 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"911c6ef4b96a054617b2496de743eda12547ee7809dc2eeeb8cc0a8d6e6869a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1051-1064 | examples/dreambooth/train_dreambooth_lora_flux2.py:993-1006 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:998-1011 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1098-1111 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ad0e64831aa17f16685d0c5635b22b9628cd0683d96558288b9acba90bc695"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_krea2.py:1055-1068 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:947-960 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:981-994 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1064-1077 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"167bb6919310f428cb6f1cf62657b99f178408d0d9953628391a214cf55c0ea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_krea2.py:2000-2013 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1886-1899 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1955-1968 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:2051-2064 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":2000}}}],"partialFingerprints":{"codehealthFindingId/v1":"e784492a4e5514ac9d87d3078b4589d62662833acf1f6dfede97c50cd65520f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:660-673 | examples/research_projects/lpl/train_sdxl_lpl.py:1351-1364 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1207-1220 | examples/text_to_image/train_text_to_image_sdxl.py:1168-1181 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 as WHOLE FILES: this scan already matched 56 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/lpl/train_sdxl_lpl.py:1366\u0060 calls \u0060step\u0060, \u0060parameters\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:674\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f5dcb6e7e8a6101326faeb03256c52d1a69e9b95d8a50da0ee3221f640004c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:795-808 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:827-840 | examples/research_projects/lora/train_text_to_image_lora.py:1009-1022 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:1034-1047 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"a252cdbefa1d3492efa894151f28391c4595c5f57a3a21f162aed7ef1ade7ac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): scripts/convert_cogview3_to_diffusers.py:159-171 | scripts/convert_cogview4_to_diffusers.py:167-179 | scripts/convert_cogview4_to_diffusers_megatron.py:275-288 | scripts/convert_mochi_to_diffusers.py:414-426 \u2014 before extracting anything, compare \u0060scripts/convert_cogview3_to_diffusers.py\u0060 and \u0060scripts/convert_cogview4_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_cogview4_to_diffusers_megatron.py:272\u0060 calls \u0060args\u0060 and \u0060scripts/convert_cogview3_to_diffusers.py:158\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/convert_cogview3_to_diffusers.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"286ee068703c215dde2ccf550046969ec21d4a31d0247fc51c146ba754a4e681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1918-1933 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:2015-2028 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:103-117 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 747 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1918\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1918}}}],"partialFingerprints":{"codehealthFindingId/v1":"a489f495d806895381c9bf5147ede19586dd6764bd67eda8d1e83c765b720279"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1146-1159 | examples/dreambooth/train_dreambooth_lora_sdxl.py:833-846 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:832-845 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef942eda50f8c92e4d8282f37cef230c5d01a41773394fe674a8505d382b1be0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/community/lpw_stable_diffusion_xl.py:1313-1326 | examples/community/pipeline_demofusion_sdxl.py:508-521 | examples/community/pipeline_sdxl_style_aligned.py:1136-1149 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fa717c5895b5cf5b953d808ea85f576d7832e2482cb40044b9ed00ebfd8388"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/community/pipeline_controlnet_xl_kolors.py:556-569 | examples/community/rerender_a_video.py:442-455 | examples/research_projects/anytext/anytext.py:1710-1723 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_controlnet_xl_kolors.py:556\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"052838068fcb43eca149b141c3cba82f27f64dc22a0509e07fdddf4725a88cb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/community/rerender_a_video.py:881-894 | examples/community/rerender_a_video.py:1062-1075 | examples/community/stable_diffusion_controlnet_reference.py:785-798 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/rerender_a_video.py"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"928738ec6d7f69b1573f90664332a316a3071b849931c3016776658c4bf3d3d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:214-227 | examples/community/stable_diffusion_tensorrt_inpaint.py:218-231 | examples/community/stable_diffusion_tensorrt_txt2img.py:201-214 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed28e38d07dd9d6d5c04dcd63086053f160894e1f77be25966ff6115c45b1d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1140-1154 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1096-1110 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1208-1221 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1d6bb5d8790ed5eb72b89c8d364f110acc3e001e1015eb18a6d3161bfc435d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1402-1415 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1394-1407 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1465-1478 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a45b4f4696ff0078924b2eb5efccce51561bc0be855601422844941dbc66d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): examples/dreambooth/train_dreambooth_flux.py:1424-1436 | examples/dreambooth/train_dreambooth_lora_flux.py:1528-1541 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1773-1786 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux.py:1528\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1765\u0060 calls \u0060cpu\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py:1520\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"551a688dc2da2ee01e0a6b8e9cea1cc8b741d67872d1ca43da55375b39cfbb2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1998-2011 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2096-2109 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1966-1979 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3548 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1998\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5aaf02a734ad4696d1ffef0eca5b2d8bc89b9f5474f2e25db7500a8dcbad6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_flux.py:1965-1978 | examples/dreambooth/train_dreambooth_lora_sd3.py:1968-1981 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1109-1122 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 176 separate duplicated blocks between them, totalling at least 2883 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux.py:1965\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux.py"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"343f8d272174f5130be4c93b47c2dd3f47077297fbddefd87b22b6ff83809367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/flux-control/train_control_flux.py:793-806 | examples/flux-control/train_control_lora_flux.py:823-836 | examples/flux-control/train_control_lora_flux.py:938-951 \u2014 before extracting anything, compare \u0060examples/flux-control/train_control_flux.py\u0060 and \u0060examples/flux-control/train_control_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 123 separate duplicated blocks between them, totalling at least 2489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/flux-control/train_control_lora_flux.py:820\u0060 calls \u0060to\u0060 and \u0060examples/flux-control/train_control_flux.py:790\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":"examples/flux-control/train_control_flux.py"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"e104b65db8e47d516b97381d2ccf73cf4d383a105efb2967c53efe46a5d8e88b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:602-614 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:490-503 | examples/text_to_image/train_text_to_image_sdxl.py:486-498 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf947d5fca3175aad389daf07fcaea8a8615f8c5e8393dc0b2909eada3d7240f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): examples/research_projects/pixart/train_pixart_controlnet_hf.py:985-998 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:785-796 | examples/text_to_image/train_text_to_image_lora.py:866-877 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1353 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:985\u0060 calls \u0060encode\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:785\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":"examples/research_projects/pixart/train_pixart_controlnet_hf.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f588060266546bcc9960d2344f69a62288f4c32ce0c9eddda145aa1537bd4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): scripts/convert_i2vgen_to_diffusers.py:420-433 | scripts/convert_ms_text_to_video_to_diffusers.py:376-389 | scripts/convert_versatile_diffusion_to_diffusers.py:552-565 \u2014 before extracting anything, compare \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 and \u0060scripts/convert_ms_text_to_video_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_i2vgen_to_diffusers.py:420\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/convert_i2vgen_to_diffusers.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"1736b2a7e654e5d3b1e25b0eb03c63d4fdc017087bf54ee013ba4b086bcce209"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): scripts/convert_kakao_brain_unclip_to_diffusers.py:267-280 | scripts/convert_kakao_brain_unclip_to_diffusers.py:410-423 | scripts/convert_kakao_brain_unclip_to_diffusers.py:505-518 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_kakao_brain_unclip_to_diffusers.py:267\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/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5452fd7dda232c507960e8ca15a1de2e28f3e05e254a61d7059adf7394cc9dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1944-1957 | examples/text_to_image/train_text_to_image_lora_sdxl.py:141-150 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 965 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e751138135f1f1f7458eb9e55af460af4fb09bf934d5cd52e5ed37d300f644"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1123-1136 | examples/cogvideo/train_cogvideox_lora.py:1144-1157 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b3175dc7633f397a44c447537e0fb8157e760cb7eb3d084ebf4fc30e542f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/community/clip_guided_images_mixing_stable_diffusion.py:309-322 | examples/community/clip_guided_stable_diffusion_img2img.py:344-357 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py:306\u0060 calls \u0060slerp\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py:342\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":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d266e93f633273e19f908a58421c1d012e505fcb209fac9ba403a547ce75ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/community/lpw_stable_diffusion_xl.py:2237-2250 | examples/community/pipeline_demofusion_sdxl.py:1365-1378 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"51736feb43a4938a45d44e10351821bcb8256304729e433884e1f22e1ebbdf5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/community/matryoshka.py:2175-2188 | examples/community/matryoshka.py:2263-2276 \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":"examples/community/matryoshka.py"},"region":{"startLine":2175}}}],"partialFingerprints":{"codehealthFindingId/v1":"576d645459f98ff7be01bac218ac728f47d2dc6a7a7c3c36e30b3c586404c8a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/community/matryoshka.py:3246-3259 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:488-501 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/matryoshka.py:3246\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":"examples/community/matryoshka.py"},"region":{"startLine":3246}}}],"partialFingerprints":{"codehealthFindingId/v1":"6512c66cdfe2449142795204f5b3c7cdf2545663747ede97746cb0b98a21d530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): examples/community/pipeline_flux_differential_img2img.py:952-964 | examples/community/pipeline_flux_rf_inversion.py:885-898 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 629 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b311759daeb38169d5a3dfc8444e21191106c6ebb28f2b58da6f522b5c5fc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): examples/community/pipeline_kolors_differential_img2img.py:1174-1187 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1332-1344 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 465 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25bebba3dfffee343fdcc09b1e57b90e33f53dc2f4095704aeca2be3d4b136d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/community/stable_diffusion_mega.py:118-131 | examples/community/stable_diffusion_mega.py:153-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_mega.py:118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_mega.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7339a9d68a167e6d1c3ea07c65bf8c173e85fe235b17a5e1917783e581e260c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:83-96 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:89-102 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc0a7a5d6b352a49a1d4c16d1c314232c3109cda491380f81deaa0e573f4b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/controlnet/train_controlnet_sdxl.py:831-844 | examples/text_to_image/train_text_to_image_lora_sdxl.py:556-569 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 62 separate duplicated blocks between them, totalling at least 949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py:570\u0060 calls \u0060DistributedDataParallelKwargs\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py:846\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":"examples/controlnet/train_controlnet_sdxl.py"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"a885b8f453c7057a5d3b1e3594c73f12bf1b7dde3783227278b307baefe6fd92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): examples/cosmos/train_cosmos_predict25_lora.py:88-101 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:427-437 \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 \u0060examples/cosmos/train_cosmos_predict25_lora.py:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:426\u0060 calls \u0060add_argument\u0060 and \u0060examples/cosmos/train_cosmos_predict25_lora.py:88\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":"examples/cosmos/train_cosmos_predict25_lora.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3b2942458144c2faffd1517bcbf5b0f30699ddaa2df515f2830f11721968de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/custom_diffusion/train_custom_diffusion.py:631-644 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:447-460 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 768 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:631\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea49a2477ee87da3f8c9958cef0c666353e44fb704e1a8f48f4ef3d05083a6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1975-2003 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1855-1883 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1889\u0060 calls \u0060pack_latents\u0060, \u0060prepare_image_cond_ids\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2007\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":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fa5e9aae96eb469bbbf244e8a50fbc66e376a1b9ccb0cf1d73f68e411f6828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2011-2024 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1900-1913 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2011\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"57fc69d4d787cf6fe16c65968e8513cd0dd52015c01875440a49cfa9b004e3f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_lumina2.py:1056-1069 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:750-763 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 and \u0060examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py\u0060 as WHOLE FILES: this scan already matched 121 separate duplicated blocks between them, totalling at least 1916 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:1056\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_lumina2.py"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"d718bb57e040ddbaa9d7faedfbcc2db6efd70b74c3d96795b12371ad11629e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sd3.py:90-103 | examples/dreambooth/train_dreambooth_sd3.py:81-94 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 188 separate duplicated blocks between them, totalling at least 3169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:90\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":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9286c2f58add760784b912024a254b61e680b739b2891288b7bf08a1ef1d6dd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sd3.py:1718-1731 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1653-1666 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2381 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e28023977c70a09f22f5e243b99f7323e179fc8dc55ba41aad1e5d72a41bfe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/flux-control/train_control_lora_flux.py:919-932 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:745-758 \u2014 before extracting anything, compare \u0060examples/flux-control/train_control_lora_flux.py\u0060 and \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/flux-control/train_control_lora_flux.py:919\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/flux-control/train_control_lora_flux.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"076f0de72bb9ff12c679c46da55bbe2c4f98e2af173bca3d960929fe0766b090"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:391-403 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:489-502 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"567a7ae1d1b4e1c8e4037c0172b8f636730ebf82bc400c71bc62819046a9ceab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/research_projects/anytext/anytext_controlnet.py:320-333 | examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:247-260 \u2014 before extracting anything, compare \u0060examples/research_projects/anytext/anytext_controlnet.py\u0060 and \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/anytext/anytext_controlnet.py:320\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, \u0060examples/research_projects/promptdiffusion/promptdiffusioncontrolnet.py:246\u0060 calls \u0060flip\u0060 and \u0060examples/research_projects/anytext/anytext_controlnet.py:317\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":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb1134b45fefe9acd703aea99ad81364c7f816ded257fdebf50501f44e68fa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1054-1066 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:921-934 \u2014 before extracting anything, compare \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 92 separate duplicated blocks between them, totalling at least 1539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1054\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b45b45c3e228500ea25d629c8ab4116aae3a53e6839b06bacbc37efeeedcc10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:583-596 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:670-683 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:685\u0060 calls \u0060step\u0060, \u0060parameters\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:597\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdfaada04f5caffacb47ed114bd326f161c579ca59e9cb0184edcad75bd022f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:619-631 | examples/textual_inversion/textual_inversion.py:644-657 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1688 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:619\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d7f758ebb4e5fa694d30be7c2ee6d5d4bf8b36f0dfc7ce17d2567a585e0160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): examples/vqgan/train_vqgan.py:943-956 | examples/vqgan/train_vqgan.py:968-980 \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":"examples/vqgan/train_vqgan.py"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"5516354f4505deafbf2813fa537d3ea716999f88ff1949e47737a5692465cf9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): scripts/convert_cosmos_to_diffusers.py:741-754 | scripts/convert_hunyuan_video_to_diffusers.py:250-263 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_cosmos_to_diffusers.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"3056b473036d759b068f07c3aaf8de27bc3504fb1a467f8a2beadb81c6478e57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): scripts/convert_diffusers_to_original_sdxl.py:100-113 | scripts/convert_diffusers_to_original_stable_diffusion.py:96-109 \u2014 before extracting anything, compare \u0060scripts/convert_diffusers_to_original_sdxl.py\u0060 and \u0060scripts/convert_diffusers_to_original_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_diffusers_to_original_sdxl.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"516b135520ac50e79146be9217216cc66a0579d6b1f068ae9e9b2ca3e005a669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): scripts/convert_minimax_h3_to_diffusers.py:1026-1039 | scripts/convert_minimax_h3_to_diffusers.py:1101-1115 \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 \u0060scripts/convert_minimax_h3_to_diffusers.py:1101\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_minimax_h3_to_diffusers.py"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a74fe5d99bfe26ce877f885c99cc01334a612f0979d309e68c14c1e76b08cb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): scripts/convert_original_audioldm_to_diffusers.py:689-702 | scripts/convert_original_musicldm_to_diffusers.py:695-708 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm_to_diffusers.py\u0060 and \u0060scripts/convert_original_musicldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 996 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm_to_diffusers.py"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"66682c23ef5eb6263a941dd3f7ad67fdfb181fa809cd3d93ee17ecc69366f8a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 86): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:550-562 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:436-448 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:538-550 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:257-269 | examples/cogvideo/train_cogvideox_lora.py:248-260 | examples/cogview4-control/train_control_cogview4.py:275-287 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:619-631 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:452-464 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:599-611 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:597-609 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:622-634 | examples/controlnet/train_controlnet.py:308-320 | examples/controlnet/train_controlnet_flax.py:268-280 | examples/controlnet/train_controlnet_flux.py:323-335 | examples/controlnet/train_controlnet_sd3.py:349-361 | examples/controlnet/train_controlnet_sdxl.py:350-362 | examples/custom_diffusion/train_custom_diffusion.py:450-462 | examples/dreambooth/train_dreambooth.py:336-348 | examples/dreambooth/train_dreambooth_flux.py:409-421 | examples/dreambooth/train_dreambooth_lora.py:343-355 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:560-572 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:557-569 | examples/dreambooth/train_dreambooth_lora_flux.py:443-455 | examples/dreambooth/train_dreambooth_lora_flux2.py:481-493 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:465-477 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:491-503 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:466-478 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:607-619 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:594-606 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:488-500 | examples/dreambooth/train_dreambooth_lora_hidream.py:474-486 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:552-564 | examples/dreambooth/train_dreambooth_lora_krea2.py:577-589 | examples/dreambooth/train_dreambooth_lora_lumina2.py:384-396 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:477-489 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:496-508 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:512-524 | examples/dreambooth/train_dreambooth_lora_sana.py:402-414 | examples/dreambooth/train_dreambooth_lora_sd3.py:429-441 | examples/dreambooth/train_dreambooth_lora_sdxl.py:444-456 | examples/dreambooth/train_dreambooth_lora_z_image.py:475-487 | examples/dreambooth/train_dreambooth_sd3.py:395-407 | examples/flux-control/train_control_flux.py:267-279 | examples/flux-control/train_control_lora_flux.py:278-290 | examples/instruct_pix2pix/train_instruct_pix2pix.py:248-260 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:305-317 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:272-284 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:176-188 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:182-194 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:281-293 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:195-207 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:152-161 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:435-447 | examples/research_projects/controlnet/train_controlnet_webdataset.py:549-561 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:254-266 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:279-291 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:277-289 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:261-273 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:168-180 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:164-176 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:237-249 | examples/research_projects/gligen/train_gligen_text.py:128-140 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:299-311 | examples/research_projects/lora/train_text_to_image_lora.py:238-250 | examples/research_projects/lpl/train_sdxl_lpl.py:337-349 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:273-285 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:224-236 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:382-394 | examples/research_projects/realfill/train_realfill.py:228-240 | examples/research_projects/sana/train_sana_sprint_diffusers.py:436-448 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:336-348 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:334-346 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:441-453 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:306-318 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:221-233 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:273-285 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:267-279 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:298-310 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:291-303 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:283-295 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:327-339 | examples/text_to_image/train_text_to_image.py:312-324 | examples/text_to_image/train_text_to_image_lora.py:272-284 | examples/text_to_image/train_text_to_image_lora_sdxl.py:320-332 | examples/text_to_image/train_text_to_image_sdxl.py:271-283 | examples/vqgan/train_vqgan.py:356-368 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:550\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:433\u0060 calls \u0060add_argument\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:256\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ffaf3c5e8d6c129238b7bc800d69a3b00f10a0bb747dd446afe9c2d103129b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 53): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:629-641 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:517-529 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:626-638 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:323-335 | examples/cogvideo/train_cogvideox_lora.py:314-326 | examples/cogview4-control/train_control_cogview4.py:349-360 | examples/controlnet/train_controlnet.py:376-387 | examples/controlnet/train_controlnet_flux.py:391-402 | examples/controlnet/train_controlnet_sd3.py:422-433 | examples/controlnet/train_controlnet_sdxl.py:418-429 | examples/dreambooth/train_dreambooth.py:408-419 | examples/dreambooth/train_dreambooth_flux.py:489-501 | examples/dreambooth/train_dreambooth_lora.py:409-421 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:627-639 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:624-636 | examples/dreambooth/train_dreambooth_lora_flux.py:523-535 | examples/dreambooth/train_dreambooth_lora_flux2.py:561-573 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:539-551 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:571-583 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:540-552 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:674-686 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:661-673 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:568-580 | examples/dreambooth/train_dreambooth_lora_hidream.py:540-552 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:632-644 | examples/dreambooth/train_dreambooth_lora_krea2.py:646-658 | examples/dreambooth/train_dreambooth_lora_lumina2.py:450-462 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:543-555 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:562-574 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:578-590 | examples/dreambooth/train_dreambooth_lora_sana.py:468-480 | examples/dreambooth/train_dreambooth_lora_sd3.py:502-514 | examples/dreambooth/train_dreambooth_lora_sdxl.py:525-537 | examples/dreambooth/train_dreambooth_lora_z_image.py:555-567 | examples/dreambooth/train_dreambooth_sd3.py:468-480 | examples/flux-control/train_control_flux.py:341-352 | examples/flux-control/train_control_lora_flux.py:373-384 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:278-289 | examples/research_projects/controlnet/train_controlnet_webdataset.py:617-628 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:332-344 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:351-363 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:349-361 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:333-345 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:311-323 | examples/research_projects/gligen/train_gligen_text.py:196-208 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:343-354 | examples/research_projects/realfill/train_realfill.py:300-311 | examples/research_projects/sana/train_sana_sprint_diffusers.py:502-514 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:408-419 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:400-412 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:522-534 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:364-376 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:395-406 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:629\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:292\u0060 calls \u0060add_argument\u0060 and \u0060examples/cogview4-control/train_control_cogview4.py:364\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e86c45b35233ba45e56df8cc1d049b0a81e35a77e50b8ecdb2c32457646b8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 53): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1007-1019 | examples/cogvideo/train_cogvideox_lora.py:1028-1040 | examples/cogview4-control/train_control_cogview4.py:748-760 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:908-920 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:740-752 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:903-915 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:873-885 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:913-925 | examples/controlnet/train_controlnet.py:768-780 | examples/controlnet/train_controlnet_flux.py:857-869 | examples/controlnet/train_controlnet_sd3.py:974-986 | examples/controlnet/train_controlnet_sdxl.py:869-881 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1109-1121 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1114-1126 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1110-1122 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1212-1224 | examples/flux-control/train_control_flux.py:740-752 | examples/flux-control/train_control_lora_flux.py:770-782 | examples/instruct_pix2pix/train_instruct_pix2pix.py:465-477 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:525-537 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:480-492 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:370-382 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:383-395 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:481-493 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:602-614 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:826-838 | examples/research_projects/controlnet/train_controlnet_webdataset.py:933-945 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:504-516 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:546-558 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:536-548 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:643-655 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:632-644 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:523-535 | examples/research_projects/lora/train_text_to_image_lora.py:438-450 | examples/research_projects/lpl/train_sdxl_lpl.py:763-775 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:591-603 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:452-464 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:605-617 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:596-608 | examples/research_projects/realfill/train_realfill.py:569-581 | examples/research_projects/sana/train_sana_sprint_diffusers.py:985-997 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:578-590 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:477-489 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:574-586 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:666-678 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:667-679 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:817-829 | examples/text_to_image/train_text_to_image.py:566-578 | examples/text_to_image/train_text_to_image_lora.py:490-502 | examples/text_to_image/train_text_to_image_lora_sdxl.py:593-605 | examples/text_to_image/train_text_to_image_sdxl.py:647-659 | examples/textual_inversion/textual_inversion.py:630-642 | examples/textual_inversion/textual_inversion_sdxl.py:629-641 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1007\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:463\u0060 calls \u0060set_verbosity_error\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1005\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":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"45358de0ae4df7d4149a981ad390cabd67139fe5ec29e38e567dd701a7536116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 48): examples/cogvideo/train_cogvideox_image_to_video_lora.py:256-268 | examples/cogvideo/train_cogvideox_lora.py:247-259 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:617-630 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:450-463 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:597-610 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:595-608 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:620-633 | examples/controlnet/train_controlnet.py:307-319 | examples/controlnet/train_controlnet_flax.py:267-279 | examples/controlnet/train_controlnet_flux.py:322-334 | examples/controlnet/train_controlnet_sd3.py:348-360 | examples/controlnet/train_controlnet_sdxl.py:349-361 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:556-568 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:593-605 | examples/flux-control/train_control_flux.py:266-278 | examples/flux-control/train_control_lora_flux.py:277-289 | examples/instruct_pix2pix/train_instruct_pix2pix.py:247-259 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:304-316 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:271-283 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:175-187 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:181-193 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:280-292 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:194-206 | examples/research_projects/controlnet/train_controlnet_webdataset.py:548-560 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:253-265 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:278-290 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:276-288 | examples/research_projects/gligen/train_gligen_text.py:127-139 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:298-310 | examples/research_projects/lora/train_text_to_image_lora.py:236-249 | examples/research_projects/lpl/train_sdxl_lpl.py:336-348 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:223-235 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:381-393 | examples/research_projects/realfill/train_realfill.py:227-239 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:305-317 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:220-232 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:272-284 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:266-278 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:296-309 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:290-302 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:282-294 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:326-338 | examples/text_to_image/train_text_to_image.py:311-323 | examples/text_to_image/train_text_to_image_flax.py:158-170 | examples/text_to_image/train_text_to_image_lora.py:271-283 | examples/text_to_image/train_text_to_image_lora_sdxl.py:319-331 | examples/text_to_image/train_text_to_image_sdxl.py:270-282 | examples/vqgan/train_vqgan.py:355-367 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:256\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae09b85c538d8185a71707dc7f2ce05aa6fab686fecd6919f4cbbe8b226f346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 40): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:549-561 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:435-447 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:537-549 | examples/cogview4-control/train_control_cogview4.py:274-286 | examples/custom_diffusion/train_custom_diffusion.py:449-461 | examples/dreambooth/train_dreambooth.py:335-347 | examples/dreambooth/train_dreambooth_flax.py:145-157 | examples/dreambooth/train_dreambooth_flux.py:408-420 | examples/dreambooth/train_dreambooth_lora.py:342-354 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:559-571 | examples/dreambooth/train_dreambooth_lora_flux.py:442-454 | examples/dreambooth/train_dreambooth_lora_flux2.py:480-492 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:464-476 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:490-502 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:465-477 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:606-618 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:487-499 | examples/dreambooth/train_dreambooth_lora_hidream.py:473-485 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:551-563 | examples/dreambooth/train_dreambooth_lora_krea2.py:576-588 | examples/dreambooth/train_dreambooth_lora_lumina2.py:383-395 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:476-488 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:495-507 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:511-523 | examples/dreambooth/train_dreambooth_lora_sana.py:401-413 | examples/dreambooth/train_dreambooth_lora_sd3.py:428-440 | examples/dreambooth/train_dreambooth_lora_sdxl.py:443-455 | examples/dreambooth/train_dreambooth_lora_z_image.py:474-486 | examples/dreambooth/train_dreambooth_sd3.py:394-406 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:151-161 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:435-446 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:261-272 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:167-179 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:163-175 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:236-248 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:272-284 | examples/research_projects/sana/train_sana_sprint_diffusers.py:435-447 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:335-347 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:333-345 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:440-452 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:549\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_flax.py:142\u0060 calls \u0060add_argument\u0060 and \u0060examples/cogview4-control/train_control_cogview4.py:271\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e5f40084d49d3b0a2c641125ab60fb76f87cd408d4a7d6ad46a93db0197987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 36): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:483-498 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:407-422 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:504-519 | examples/dreambooth/train_dreambooth.py:307-322 | examples/dreambooth/train_dreambooth_flux.py:375-390 | examples/dreambooth/train_dreambooth_lora.py:314-329 | examples/dreambooth/train_dreambooth_lora_flux.py:409-424 | examples/dreambooth/train_dreambooth_lora_hidream.py:445-460 | examples/dreambooth/train_dreambooth_lora_lumina2.py:355-370 | examples/dreambooth/train_dreambooth_lora_sana.py:373-388 | examples/dreambooth/train_dreambooth_lora_sd3.py:394-409 | examples/dreambooth/train_dreambooth_lora_sdxl.py:410-425 | examples/dreambooth/train_dreambooth_sd3.py:361-376 | examples/instruct_pix2pix/train_instruct_pix2pix.py:222-237 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:143-158 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:139-154 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:208-223 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:273-288 | examples/research_projects/lora/train_text_to_image_lora.py:174-189 | examples/research_projects/lpl/train_sdxl_lpl.py:311-326 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:248-263 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:57-69 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:198-213 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:307-322 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:305-320 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:407-422 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:280-295 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:195-210 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:242-257 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:241-256 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:271-286 | examples/text_to_image/train_text_to_image.py:286-301 | examples/text_to_image/train_text_to_image_lora.py:246-261 | examples/text_to_image/train_text_to_image_lora_sdxl.py:289-304 | examples/text_to_image/train_text_to_image_sdxl.py:245-260 | examples/vqgan/train_vqgan.py:330-345 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:483\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd75033e5df71b6b602f8065101c01ed447ab92315579ffae1c0fda073fc77cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 30): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:266-278 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:297-309 | examples/dreambooth/train_dreambooth_flux.py:197-209 | examples/dreambooth/train_dreambooth_lora.py:174-186 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:268-280 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:289-301 | examples/dreambooth/train_dreambooth_lora_flux.py:220-232 | examples/dreambooth/train_dreambooth_lora_flux2.py:221-233 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:222-234 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:221-233 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:223-235 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:312-324 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:319-331 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:227-239 | examples/dreambooth/train_dreambooth_lora_hidream.py:228-240 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:270-282 | examples/dreambooth/train_dreambooth_lora_krea2.py:239-251 | examples/dreambooth/train_dreambooth_lora_lumina2.py:177-189 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:215-227 | examples/dreambooth/train_dreambooth_lora_sana.py:197-209 | examples/dreambooth/train_dreambooth_lora_sd3.py:210-222 | examples/dreambooth/train_dreambooth_lora_sdxl.py:222-234 | examples/dreambooth/train_dreambooth_lora_z_image.py:221-233 | examples/dreambooth/train_dreambooth_sd3.py:186-198 | examples/research_projects/sana/train_sana_sprint_diffusers.py:291-303 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:165-177 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:220-232 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:166-178 | examples/text_to_image/train_text_to_image_lora.py:136-148 | examples/text_to_image/train_text_to_image_lora_sdxl.py:150-162 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:281\u0060 calls \u0060free_memory\u0060 and \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py:166\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9c6878ace647e1b5c6c9572584e450ec866f2e75011362b6f89378b5fe0879"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 25): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2194-2206 | examples/controlnet/train_controlnet_sd3.py:1309-1320 | examples/dreambooth/train_dreambooth_flux.py:1622-1634 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1886-1898 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1719-1731 | examples/dreambooth/train_dreambooth_lora_flux.py:1761-1773 | examples/dreambooth/train_dreambooth_lora_flux2.py:1864-1876 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1767-1779 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1833-1845 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1713-1725 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1977-1989 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1858-1870 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2057-2069 | examples/dreambooth/train_dreambooth_lora_hidream.py:1585-1597 | examples/dreambooth/train_dreambooth_lora_krea2.py:1845-1857 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1376-1388 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1741-1753 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1796-1808 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1874-1886 | examples/dreambooth/train_dreambooth_lora_sana.py:1398-1410 | examples/dreambooth/train_dreambooth_lora_sd3.py:1779-1791 | examples/dreambooth/train_dreambooth_lora_z_image.py:1729-1741 | examples/dreambooth/train_dreambooth_sd3.py:1575-1587 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1051-1063 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:973-985 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 814 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2054\u0060 calls \u0060cat\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2192\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2194}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ef397722fa43dcce52353a5c37b862e7f3ecd09a5c992fd7152ad8ccf9bae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 25): examples/controlnet/train_controlnet_sd3.py:1196-1208 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:941-953 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:533-545 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:548-560 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:691-703 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:771-783 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:719-731 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:855-867 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:837-849 | examples/research_projects/gligen/train_gligen_text.py:449-461 | examples/research_projects/lora/train_text_to_image_lora.py:703-715 | examples/research_projects/lpl/train_sdxl_lpl.py:1094-1106 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:701-713 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:891-903 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1157-1169 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1158-1170 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:827-839 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:697-709 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:978-990 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:987-999 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:861-873 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:702-714 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1079-1091 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1010-1022 | examples/text_to_image/train_text_to_image_sdxl.py:978-990 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 591 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:1196\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a630f21d2159de95892f314865e382306e58e5683b810a3174dc53f69e16891e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 22): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1143-1155 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:999-1011 | examples/dreambooth/train_dreambooth_flux.py:830-842 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:987-999 | examples/dreambooth/train_dreambooth_lora_flux.py:876-888 | examples/dreambooth/train_dreambooth_lora_flux2.py:929-941 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:934-946 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1034-1046 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:956-968 | examples/dreambooth/train_dreambooth_lora_hidream.py:883-895 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1006-1018 | examples/dreambooth/train_dreambooth_lora_krea2.py:996-1008 | examples/dreambooth/train_dreambooth_lora_lumina2.py:806-818 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:888-900 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:922-934 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:981-993 | examples/dreambooth/train_dreambooth_lora_sana.py:817-829 | examples/dreambooth/train_dreambooth_lora_sd3.py:870-882 | examples/dreambooth/train_dreambooth_lora_sdxl.py:881-893 | examples/dreambooth/train_dreambooth_lora_z_image.py:917-929 | examples/dreambooth/train_dreambooth_sd3.py:802-814 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:880-892 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1141\u0060 calls \u0060items\u0060, \u0060replace\u0060, \u0060join\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py:829\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7faefacecdf7c69a781b83a2f3df84f5b497791f22f070efae1935d102ee393"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 22): examples/cogview4-control/train_control_cogview4.py:260-272 | examples/controlnet/train_controlnet.py:296-308 | examples/controlnet/train_controlnet_flux.py:299-314 | examples/controlnet/train_controlnet_sd3.py:337-349 | examples/controlnet/train_controlnet_sdxl.py:326-341 | examples/cosmos3/inference_cosmos3.py:136-151 | examples/flux-control/train_control_flux.py:255-267 | examples/flux-control/train_control_lora_flux.py:266-278 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:260-272 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:164-176 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:170-182 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:269-281 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:183-195 | examples/research_projects/controlnet/train_controlnet_webdataset.py:525-540 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:223-238 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:248-263 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:246-261 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:229-244 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:370-382 | examples/research_projects/realfill/train_realfill.py:216-228 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:279-291 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:271-283 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:260\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bdb980b35ae730678938076cc29514c92b98bb845110b5d3a055d340b153f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 21): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:725-737 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:857-869 | examples/dreambooth/train_dreambooth_flux.py:662-674 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:820-832 | examples/dreambooth/train_dreambooth_lora_flux.py:711-723 | examples/dreambooth/train_dreambooth_lora_flux2.py:762-774 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:767-779 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:867-879 | examples/dreambooth/train_dreambooth_lora_hidream.py:718-730 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:844-856 | examples/dreambooth/train_dreambooth_lora_krea2.py:829-841 | examples/dreambooth/train_dreambooth_lora_lumina2.py:637-649 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:721-733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:753-765 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:788-800 | examples/dreambooth/train_dreambooth_lora_sana.py:652-664 | examples/dreambooth/train_dreambooth_lora_sd3.py:705-717 | examples/dreambooth/train_dreambooth_lora_sdxl.py:701-713 | examples/dreambooth/train_dreambooth_lora_z_image.py:751-763 | examples/dreambooth/train_dreambooth_sd3.py:637-649 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:705-717 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87f85d26f8059f78b43a6d8012155542753fe81840c9d676072c3b01e063067"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 21): examples/cogview4-control/train_control_cogview4.py:1142-1154 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1954-1966 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1768-1780 | examples/dreambooth/train_dreambooth_lora_flux2.py:1938-1950 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1831-1843 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1910-1922 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1781-1793 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2052-2064 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1922-1934 | examples/dreambooth/train_dreambooth_lora_hidream.py:1644-1656 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:2029-2041 | examples/dreambooth/train_dreambooth_lora_krea2.py:1938-1950 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1444-1456 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1817-1829 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1885-1897 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1981-1993 | examples/dreambooth/train_dreambooth_lora_sana.py:1459-1471 | examples/dreambooth/train_dreambooth_lora_z_image.py:1796-1808 | examples/flux-control/train_control_flux.py:1149-1161 | examples/flux-control/train_control_lora_flux.py:1295-1307 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1121-1134 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15e76949b0ca11af0c2f4f30c1d27340b4126ff179eb8cb9a7ae972d7bedd7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 20): examples/community/adaptive_mask_inpainting.py:588-600 | examples/community/fresco_v2v.py:1533-1545 | examples/community/gluegen.py:369-381 | examples/community/instaflow_one_step.py:321-333 | examples/community/ip_adapter_face_id.py:600-612 | examples/community/latent_consistency_interpolate.py:397-409 | examples/community/llm_grounded_diffusion.py:1350-1362 | examples/community/pipeline_animatediff_controlnet.py:314-326 | examples/community/pipeline_animatediff_img2video.py:431-443 | examples/community/pipeline_animatediff_ipex.py:285-297 | examples/community/pipeline_fabric.py:285-297 | examples/community/pipeline_hunyuandit_differential_img2img.py:456-468 | examples/community/pipeline_prompt2prompt.py:368-380 | examples/community/pipeline_stable_diffusion_boxdiff.py:703-715 | examples/community/pipeline_stable_diffusion_pag.py:669-681 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:309-321 | examples/community/regional_prompting_stable_diffusion.py:647-659 | examples/community/stable_diffusion_reference.py:528-540 | examples/research_projects/anytext/anytext.py:1476-1488 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:438-450 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 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 20 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:588\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":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7908579ef08fffd052976765c380510282bff34bdf214c8af273b48fb990bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201313 lines \u00D7 20): examples/dreambooth/train_dreambooth_flux.py:106-112 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:172-178 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:194-200 | examples/dreambooth/train_dreambooth_lora_flux.py:112-118 | examples/dreambooth/train_dreambooth_lora_flux2.py:125-131 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:125-131 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:125-131 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:125-131 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:220-226 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:227-233 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:116-122 | examples/dreambooth/train_dreambooth_lora_hidream.py:97-103 | examples/dreambooth/train_dreambooth_lora_lumina2.py:96-102 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:118-124 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:142-148 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:144-150 | examples/dreambooth/train_dreambooth_lora_sana.py:113-119 | examples/dreambooth/train_dreambooth_lora_z_image.py:125-131 | examples/research_projects/sana/train_sana_sprint_diffusers.py:227-239 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:90-96 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1894 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3c6a055b7ef63a8733ae763d85b05b62f992d8423db303164413e36ad07e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 18): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1300-1312 | examples/cogvideo/train_cogvideox_lora.py:1316-1328 | examples/cogview4-control/train_control_cogview4.py:925-936 | examples/controlnet/train_controlnet_flux.py:1144-1155 | examples/controlnet/train_controlnet_sd3.py:1206-1218 | examples/dreambooth/train_dreambooth_lora_hidream.py:1468-1480 | examples/dreambooth/train_dreambooth_lora_krea2.py:1702-1714 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1263-1275 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1602-1614 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1654-1666 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1747-1759 | examples/dreambooth/train_dreambooth_lora_sana.py:1285-1297 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:729-740 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:865-876 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:847-858 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:938-950 | examples/research_projects/gligen/train_gligen_text.py:459-471 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:871-883 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"78077ed7e4e20f8e017fc32242ff9e913687e65612a1633bd6312b95a36a671f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 17): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2024-2036 | examples/dreambooth/train_dreambooth_flux.py:1496-1508 | examples/dreambooth/train_dreambooth_lora_flux.py:1620-1632 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1653-1665 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1601-1613 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1887-1899 | examples/dreambooth/train_dreambooth_lora_hidream.py:1487-1499 | examples/dreambooth/train_dreambooth_lora_krea2.py:1721-1733 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1282-1294 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1621-1633 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1673-1685 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1766-1778 | examples/dreambooth/train_dreambooth_lora_sana.py:1304-1316 | examples/dreambooth/train_dreambooth_lora_sd3.py:1653-1665 | examples/dreambooth/train_dreambooth_sd3.py:1474-1486 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:957-969 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:890-902 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2024}}}],"partialFingerprints":{"codehealthFindingId/v1":"4108038fbdb786c9b4c4cd056f2309879e36999633375846573ef5ec3f98f355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 17): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1223-1235 | examples/dreambooth/train_dreambooth_lora_flux.py:1167-1179 | examples/dreambooth/train_dreambooth_lora_flux2.py:1167-1179 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1172-1184 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1267-1279 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1352-1364 | examples/dreambooth/train_dreambooth_lora_hidream.py:1023-1035 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1258-1270 | examples/dreambooth/train_dreambooth_lora_krea2.py:1240-1252 | examples/dreambooth/train_dreambooth_lora_lumina2.py:945-957 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1180-1192 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1215-1227 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1306-1318 | examples/dreambooth/train_dreambooth_lora_sana.py:958-970 | examples/dreambooth/train_dreambooth_lora_sd3.py:1157-1169 | examples/dreambooth/train_dreambooth_lora_z_image.py:1157-1169 | examples/dreambooth/train_dreambooth_sd3.py:1082-1094 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2264 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1022\u0060 calls \u0060to\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1221\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6b94b1071c54f1a20d672ecf559f97c93d144237b33881da184448d48d813f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 17): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1353-1365 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1242-1254 | examples/dreambooth/train_dreambooth_lora_flux2.py:1306-1318 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1256-1268 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1309-1321 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1250-1262 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1398-1410 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1348-1360 | examples/dreambooth/train_dreambooth_lora_hidream.py:1169-1181 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1447-1459 | examples/dreambooth/train_dreambooth_lora_krea2.py:1383-1395 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1030-1042 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1290-1302 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1332-1344 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1423-1435 | examples/dreambooth/train_dreambooth_lora_sana.py:1051-1063 | examples/dreambooth/train_dreambooth_lora_z_image.py:1288-1300 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1353\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fa9d205bfcd823a9906b48261b12f6089d9183815a5b984fbb4cbe7c935fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 16): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1163-1173 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1019-1029 | examples/dreambooth/train_dreambooth_flux.py:850-860 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1046-1058 | examples/dreambooth/train_dreambooth_lora_flux.py:896-906 | examples/dreambooth/train_dreambooth_lora_flux2.py:988-1000 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:993-1005 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1093-1105 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1024-1034 | examples/dreambooth/train_dreambooth_lora_hidream.py:903-913 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1053-1063 | examples/dreambooth/train_dreambooth_lora_lumina2.py:826-836 | examples/dreambooth/train_dreambooth_lora_sana.py:837-847 | examples/dreambooth/train_dreambooth_lora_sd3.py:890-900 | examples/dreambooth/train_dreambooth_lora_z_image.py:973-983 | examples/dreambooth/train_dreambooth_sd3.py:822-832 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1046\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"621f4ab7622ce3cd13e780a7a33ab0b1d2b4650ba4208859de8f6cbec0e3d4f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 15): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1958-1970 | examples/custom_diffusion/train_custom_diffusion.py:1288-1301 | examples/dreambooth/train_dreambooth.py:190-202 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:737-750 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:769-782 | examples/research_projects/lora/train_text_to_image_lora.py:898-911 | examples/research_projects/lpl/train_sdxl_lpl.py:1522-1535 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:889-902 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:147-159 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:190-202 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:963-976 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1276-1289 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1304-1317 | examples/text_to_image/train_text_to_image_sdxl.py:1270-1283 | examples/textual_inversion/textual_inversion.py:158-170 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 944 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ec5373bc156225bec7655516f5b18af581e880eb9e34ce810d7c36373234c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 15): examples/cogview4-control/train_control_cogview4.py:930-941 | examples/controlnet/train_controlnet_flux.py:1149-1160 | examples/controlnet/train_controlnet_sdxl.py:1142-1154 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1747-1759 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1581-1593 | examples/dreambooth/train_dreambooth_lora_flux2.py:1730-1742 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1633-1645 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1687-1699 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1581-1593 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1830-1842 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1716-1728 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1823-1835 | examples/dreambooth/train_dreambooth_lora_z_image.py:1615-1627 | examples/flux-control/train_control_flux.py:920-931 | examples/flux-control/train_control_lora_flux.py:1065-1076 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1536 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:930\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2bf8cad35f741dbac041ad88ad026c35a3bef105dc4a23ba0b148bb6057c11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 14): examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:974-986 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:555-567 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:571-583 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:631-643 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:658-670 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:515-527 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:592-604 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1013-1025 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:726-738 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:783-795 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:720-732 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1006-1018 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1038-1050 | examples/textual_inversion/textual_inversion.py:807-819 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 68 separate duplicated blocks between them, totalling at least 1014 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"666c602391be506d17928447338369fa6e5b91e6c0df40e0092330ab62687e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 13): examples/dreambooth/train_dreambooth_flux.py:648-660 | examples/dreambooth/train_dreambooth_lora_flux.py:697-709 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:742-754 | examples/dreambooth/train_dreambooth_lora_hidream.py:704-716 | examples/dreambooth/train_dreambooth_lora_lumina2.py:623-635 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:707-719 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:728-740 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:744-756 | examples/dreambooth/train_dreambooth_lora_sana.py:638-650 | examples/dreambooth/train_dreambooth_lora_sd3.py:691-703 | examples/dreambooth/train_dreambooth_lora_sdxl.py:687-699 | examples/dreambooth/train_dreambooth_sd3.py:623-635 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:691-703 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_flux.py:645\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:684\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":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"f704146b0a2ef95a22d52709e75533017864b6d8bd6905bf2fa6a6c34f66f72e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1530-1542 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1864-1876 | examples/dreambooth/train_dreambooth_flux.py:1366-1378 | examples/dreambooth/train_dreambooth_lora_flux.py:1476-1488 | examples/dreambooth/train_dreambooth_lora_hidream.py:1332-1344 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1184-1196 | examples/dreambooth/train_dreambooth_lora_sana.py:1207-1219 | examples/dreambooth/train_dreambooth_lora_sd3.py:1516-1528 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1458-1470 | examples/dreambooth/train_dreambooth_sd3.py:1355-1367 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1494-1506 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1530\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ee0705225ddb3dab5937d92cbf5a12f7941d333aa5de93504707620eea62a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): examples/cogview4-control/train_control_cogview4.py:102-114 | examples/controlnet/train_controlnet.py:114-126 | examples/controlnet/train_controlnet_flax.py:78-90 | examples/controlnet/train_controlnet_flux.py:111-123 | examples/controlnet/train_controlnet_sd3.py:96-108 | examples/controlnet/train_controlnet_sdxl.py:116-128 | examples/flux-control/train_control_flux.py:97-109 | examples/flux-control/train_control_lora_flux.py:107-119 | examples/research_projects/controlnet/train_controlnet_webdataset.py:345-357 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:127-139 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:105-117 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet.py:129\u0060 calls \u0060nullcontext\u0060, \u0060autocast\u0060 and \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:361\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f74583aa721b35fee61d16259c7a4b859292703602263de565031726e9fae7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 11): examples/cogview4-control/train_control_cogview4.py:360-372 | examples/controlnet/train_controlnet.py:387-398 | examples/controlnet/train_controlnet_sdxl.py:429-440 | examples/dreambooth/train_dreambooth.py:419-430 | examples/dreambooth/train_dreambooth_lora_sdxl.py:654-666 | examples/flux-control/train_control_flux.py:352-364 | examples/flux-control/train_control_lora_flux.py:384-396 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:291-301 | examples/research_projects/controlnet/train_controlnet_webdataset.py:628-637 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:419-430 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:406-415 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:654\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed6294a65baa3469b24d1753a744306295fe3fb78adc60e3b767b27cf5b72f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): examples/instruct_pix2pix/train_instruct_pix2pix.py:568-582 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:623-637 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:575-589 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:659-673 | examples/research_projects/lpl/train_sdxl_lpl.py:899-913 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:556-570 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:683-697 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:796-810 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:567-579 | examples/text_to_image/train_text_to_image.py:681-695 | examples/text_to_image/train_text_to_image_sdxl.py:783-797 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b01d9c04fb35a17caf196423da37f0f431391e3d9d6703dd5a9bfc7f5e3570"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 9): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1658-1669 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1703-1715 | examples/dreambooth/train_dreambooth_lora_flux.py:1342-1353 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1541-1552 | examples/dreambooth/train_dreambooth_lora_sd3.py:1367-1378 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1306-1318 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1342-1354 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:755-766 | examples/text_to_image/train_text_to_image_lora_sdxl.py:781-792 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1717\u0060 calls \u0060_set_state_dict_into_text_encoder\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1674\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c463093dc8470a519de0e475fbcac47891a4e95812b05f50baa0ddacfe9f366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1836-1848 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1506-1518 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1845-1857 | examples/dreambooth/train_dreambooth_flux.py:1349-1361 | examples/dreambooth/train_dreambooth_lora_flux.py:1459-1471 | examples/dreambooth/train_dreambooth_lora_sd3.py:1499-1511 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1441-1453 | examples/dreambooth/train_dreambooth_sd3.py:1338-1350 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1477-1489 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1836\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64432b8eddecfdd207c38edf263d0bb90ba12479a7ca17831c3a2384ec2596d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 9): examples/controlnet/train_controlnet.py:883-895 | examples/controlnet/train_controlnet_flux.py:1017-1029 | examples/controlnet/train_controlnet_sd3.py:1099-1111 | examples/controlnet/train_controlnet_sdxl.py:1011-1023 | examples/dreambooth/train_dreambooth.py:1017-1029 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:722-732 | examples/research_projects/gligen/train_gligen_text.py:399-409 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1060-1072 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:960-972 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth.py:1014\u0060 calls \u0060ValueError\u0060, \u0060unwrap_model\u0060 and \u0060examples/controlnet/train_controlnet.py:882\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a3954c077bfc5a7dd2851e1d6b85b8d374efa42674ca95891c092967afb70f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201313 lines \u00D7 9): examples/custom_diffusion/train_custom_diffusion.py:1148-1158 | examples/instruct_pix2pix/train_instruct_pix2pix.py:859-869 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:579-589 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:951-961 | examples/research_projects/lora/train_text_to_image_lora.py:808-818 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1085-1097 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:800-807 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:854-861 | examples/textual_inversion/textual_inversion.py:879-886 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.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 42 separate duplicated blocks between them, totalling at least 571 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/custom_diffusion/train_custom_diffusion.py:1161\u0060 calls \u0060unet\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py:821\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":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf501ca738ec9349bca437afccd46abcb2e25199ec4cdc8c0827fc292bae5e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1092-1104 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1044-1056 | examples/dreambooth/train_dreambooth_lora_flux2.py:1034-1046 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1039-1051 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1139-1151 | examples/dreambooth/train_dreambooth_lora_krea2.py:1104-1116 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:996-1008 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1030-1042 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1121-1133 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f259bb19ee10c7d96aaadc689f5d86be67e62d07f44faa29fcaf3de8b3056a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): examples/instruct_pix2pix/train_instruct_pix2pix.py:912-924 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1118-1130 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:821-833 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:693-705 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:840-852 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:866-878 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1030-1042 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:823-835 | examples/text_to_image/train_text_to_image.py:1033-1045 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:926\u0060 calls \u0060step\u0060, \u0060parameters\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:706\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":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"8deca989052958108c75ddfdde47fdee4371c6afefd2d4c239967b766fe8b483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 8): examples/cogview4-control/train_control_cogview4.py:142-153 | examples/controlnet/train_controlnet.py:142-154 | examples/controlnet/train_controlnet_flux.py:157-168 | examples/controlnet/train_controlnet_sd3.py:161-173 | examples/controlnet/train_controlnet_sdxl.py:165-177 | examples/flux-control/train_control_flux.py:137-148 | examples/flux-control/train_control_lora_flux.py:147-158 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:153-165 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet_flux.py:156\u0060 calls \u0060resize\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py:159\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92cdb2dc84692a20dfa2f775c51a4b740629cc3bc16dbec0e8c5fa85d69a6d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): examples/community/clip_guided_images_mixing_stable_diffusion.py:368-380 | examples/community/clip_guided_stable_diffusion.py:248-260 | examples/community/clip_guided_stable_diffusion_img2img.py:412-424 | examples/community/img2img_inpainting.py:319-331 | examples/community/interpolate_stable_diffusion.py:297-309 | examples/community/multilingual_stable_diffusion.py:332-344 | examples/community/speech_to_image_diffusion.py:187-199 | examples/community/wildcard_stable_diffusion.py:341-353 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/interpolate_stable_diffusion.py:312\u0060 calls \u0060set_timesteps\u0060, \u0060to\u0060 and \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py:383\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":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da2c8552875d16d0c26839a5bfafbd4c9b43a82757e98d1ea6e8e7381842d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): examples/community/clip_guided_stable_diffusion.py:272-284 | examples/community/imagic_stable_diffusion.py:416-428 | examples/community/img2img_inpainting.py:374-386 | examples/community/interpolate_stable_diffusion.py:316-328 | examples/community/multilingual_stable_diffusion.py:351-363 | examples/community/seed_resize_stable_diffusion.py:283-295 | examples/community/speech_to_image_diffusion.py:206-218 | examples/community/wildcard_stable_diffusion.py:360-372 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 8 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/clip_guided_stable_diffusion.py:287\u0060 calls \u0060set\u0060, \u0060signature\u0060, \u0060keys\u0060 and \u0060examples/community/imagic_stable_diffusion.py:430\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2d6b957d8bd70a7ee8b74b402a3128a9ae9c03d4bef42970e99b11f00f36aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): examples/custom_diffusion/train_custom_diffusion.py:792-804 | examples/dreambooth/train_dreambooth.py:901-913 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1078-1090 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:470-482 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:469-481 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:944-956 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:872-884 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1138-1150 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth.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 67 separate duplicated blocks between them, totalling at least 993 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:792\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3ed18da05a50fe0ea3af01b9a992b239ff7553f0796ac9cf5c55628bbda13d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 8): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:808-818 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:799-811 | examples/dreambooth/train_dreambooth_lora_flux2.py:750-760 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:755-765 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:855-865 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:832-842 | examples/dreambooth/train_dreambooth_lora_krea2.py:816-827 | examples/dreambooth/train_dreambooth_lora_z_image.py:739-749 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:799\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f73bd4d19d1bfd069def39dde9db2388ad5a738a621ec1b6c6a3c5e8bd5294"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201313 lines \u00D7 7): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1431-1437 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1423-1430 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1494-1500 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1395-1401 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1498-1504 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1373-1379 | examples/research_projects/realfill/train_realfill.py:930-942 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1423\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d86c3e19d77a3841d38c680f60a26751324a9e96bbcee50294335b20e3b40da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 7): examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:715-726 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:722-734 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:737-749 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:779-791 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:863-875 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:722-734 | examples/textual_inversion/textual_inversion.py:803-815 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a2454ab31262e89dedcd838880ca64ae3bafffc8ae709b9992fe48d6e1dfc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 7): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:810-822 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:792-804 | examples/research_projects/lpl/train_sdxl_lpl.py:1009-1020 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:925-936 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:908-919 | examples/text_to_image/train_text_to_image_lora_sdxl.py:957-968 | examples/text_to_image/train_text_to_image_sdxl.py:896-907 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:823\u0060 calls \u0060tokenize_captions\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py:1021\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a991a2e5d785e8982867bf0efdda24b7420e0c3b799203b2d0d19ee874c2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1640-1654 | examples/dreambooth/train_dreambooth_lora_sd3.py:1288-1300 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1247-1261 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1283-1297 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:696-710 | examples/text_to_image/train_text_to_image_lora_sdxl.py:722-736 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 125 separate duplicated blocks between them, totalling at least 1905 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff62723480668b0f9780c9e057cf2500dd81d06648fa41b3471471226980ea3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 6): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1739-1751 | examples/dreambooth/train_dreambooth_lora_sd3.py:1402-1413 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1342-1354 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1378-1390 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:795-805 | examples/text_to_image/train_text_to_image_lora_sdxl.py:821-831 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 125 separate duplicated blocks between them, totalling at least 1905 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71af06d675f531eec8adc4b32c834363a0d00adfdc5d89395b8c0a7bd45e7b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 6): examples/community/img2img_inpainting.py:264-276 | examples/community/interpolate_stable_diffusion.py:242-253 | examples/community/multilingual_stable_diffusion.py:261-272 | examples/community/seed_resize_stable_diffusion.py:186-198 | examples/community/speech_to_image_diffusion.py:132-143 | examples/community/wildcard_stable_diffusion.py:286-297 \u2014 before extracting anything, compare \u0060examples/community/img2img_inpainting.py\u0060 and \u0060examples/community/interpolate_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f1ef5dc1eb2897848cb8810e4e088fcf914a669f1f8ffc57e84e2e5eda2129"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): examples/community/pipeline_controlnet_xl_kolors.py:205-217 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:226-238 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:275-287 | examples/community/rerender_a_video.py:340-354 | examples/community/stable_diffusion_controlnet_img2img.py:167-181 | examples/community/stable_diffusion_controlnet_inpaint.py:265-279 \u2014 before extracting anything, compare \u0060examples/community/pipeline_controlnet_xl_kolors.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_img2img.py\u0060 as WHOLE FILES: this scan already matched 90 separate duplicated blocks between them, totalling at least 1556 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/rerender_a_video.py:340\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_controlnet_xl_kolors.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d8703668f31b45721d11d4f84de2e195c874f47ffcc596172f00c80f2c0bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): examples/community/pipeline_flux_differential_img2img.py:311-323 | examples/community/pipeline_flux_kontext_multiple_images.py:353-365 | examples/community/pipeline_flux_rf_inversion.py:308-320 | examples/community/pipeline_flux_semantic_guidance.py:312-324 | examples/community/pipeline_flux_with_cfg.py:271-283 | examples/community/pipline_flux_fill_controlnet_Inpaint.py:341-353 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"265f5be200edba88f29d40d15efd448b7e2859a0a8856beaeaf38c6a671ec6b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_flux.py:813-825 | examples/dreambooth/train_dreambooth_lora_hidream.py:820-832 | examples/dreambooth/train_dreambooth_lora_sana.py:754-766 | examples/dreambooth/train_dreambooth_lora_sd3.py:807-819 | examples/dreambooth/train_dreambooth_sd3.py:739-751 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:810-822 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 as WHOLE FILES: this scan already matched 151 separate duplicated blocks between them, totalling at least 2544 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux.py"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"3312e88659df9b382be5b7f8bbd3ac33654ca904ed37129c44e34d055b8d77ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_hidream.py:1155-1167 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1016-1028 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1276-1288 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1318-1330 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1409-1421 | examples/dreambooth/train_dreambooth_lora_z_image.py:1274-1286 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 as WHOLE FILES: this scan already matched 178 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1155\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d629da52e0a14ed929e7e924b061f0051eb4a3830479933e0b35bbcd5deac43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 6): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:926-937 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:944-955 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1138-1149 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:945-957 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:921-933 | examples/text_to_image/train_text_to_image.py:1145-1156 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:945\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4a2ea9ccf207679a12faad88f94ef69e38c59364700c3802a06a783175fed1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:668-680 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:700-712 | examples/research_projects/lora/train_text_to_image_lora.py:848-860 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:879-891 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:856-868 | examples/text_to_image/train_text_to_image_lora.py:932-944 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:666\u0060 calls \u0060parameters\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:854\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"b657a6d3d1c04d60f7c408f651bf550b53cd790edbaf7e059f6b4bf9450c5b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 6): scripts/convert_ltx2_to_diffusers.py:585-597 | scripts/convert_ltx2_to_diffusers.py:616-626 | scripts/convert_ltx2_to_diffusers.py:845-857 | scripts/convert_ltx2_to_diffusers.py:913-923 | scripts/convert_ltx2_to_diffusers.py:1056-1068 | scripts/convert_ltx2_to_diffusers.py:1195-1207 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"scripts/convert_ltx2_to_diffusers.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4079035868d40d58c92a8b71c72c454f0e493f8bf329fe36b43d7c08eeaf40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1027-1039 | examples/controlnet/train_controlnet.py:620-636 | examples/controlnet/train_controlnet_sdxl.py:674-690 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:515-531 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:639-655 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/controlnet/train_controlnet.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 623 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1027\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"048097374ee12e642963b94e82a57d14aaad844ef4f4cf2f297cb33b772bc433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1599-1611 | examples/dreambooth/train_dreambooth_lora.py:957-971 | examples/dreambooth/train_dreambooth_lora_flux.py:1288-1300 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1474-1486 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:974-988 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1299 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1599\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"693f341a4965cc6528e65378a5cb120e1d81fdf7582380bb67573392f20508f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): examples/cogview4-control/train_control_cogview4.py:706-718 | examples/controlnet/train_controlnet_flux.py:815-827 | examples/controlnet/train_controlnet_sdxl.py:830-842 | examples/flux-control/train_control_flux.py:698-710 | examples/text_to_image/train_text_to_image_lora_sdxl.py:555-567 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1536 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py:570\u0060 calls \u0060DistributedDataParallelKwargs\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py:846\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"91abda5094331d624c594f230f97157335ee2460d9381098746afc8e64013345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): examples/dreambooth/train_dreambooth.py:1134-1146 | examples/dreambooth/train_dreambooth_lora.py:1161-1173 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:985-997 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1172-1184 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1173-1185 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth.py:1134\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfd810245058745b7ae3387ffef4f691f6d5a677d45be584b5cbd8a186cad6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 6): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1027-1038 | examples/research_projects/lpl/train_sdxl_lpl.py:994-1007 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:907-923 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:893-906 | examples/text_to_image/train_text_to_image_lora_sdxl.py:939-955 | examples/text_to_image/train_text_to_image_sdxl.py:881-894 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 648 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:907\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/lpl/train_sdxl_lpl.py:1008\u0060 calls \u0060max\u0060, \u0060round\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1039\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":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5919368fa2a0ca6dc5c3c1ba4f131482833309a70c3618c408e1eb0c8534773"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2370-2382 | examples/dreambooth/train_dreambooth_lora_flux.py:1912-1924 | examples/dreambooth/train_dreambooth_lora_sd3.py:1918-1930 | examples/dreambooth/train_dreambooth_sd3.py:1732-1744 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2370\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2370}}}],"partialFingerprints":{"codehealthFindingId/v1":"df457503690ea2c17b41b6a8750258e373d04ab3a6c3bdc126ac768338892536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2431-2443 | examples/dreambooth/train_dreambooth_lora_flux.py:1967-1979 | examples/dreambooth/train_dreambooth_lora_sd3.py:1970-1982 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1111-1123 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2431\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb369a7ebeec52e27b9779a324bb02f3a16c1aa2e77809c9f9fdc0b746be98e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): examples/cogvideo/train_cogvideox_image_to_video_lora.py:235-247 | examples/cogvideo/train_cogvideox_lora.py:226-238 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:142-153 | examples/unconditional_image_generation/train_unconditional.py:160-171 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:235\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1faa3a263dab5518e3e5b6a59500773fa66d9446afb0b2c0199fa39273d4a433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 4): examples/community/masked_stable_diffusion_xl_img2img.py:563-575 | examples/community/mod_controlnet_tile_sr_sdxl.py:885-894 | examples/community/pipeline_kolors_differential_img2img.py:621-630 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:655-667 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/masked_stable_diffusion_xl_img2img.py:563\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fe4b68a5291abd2b4fb18bc3109bf342e051cff6444de107c58e276e53de73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:311-323 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:328-340 | examples/research_projects/controlnet/train_controlnet_webdataset.py:403-415 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:163-175 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:401\u0060 calls \u0060Image\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:310\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"77712100bced2871fb41437485610bd87752b9ebeaf9027c08e5a7ae8cc28d92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1403-1415 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1395-1407 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1466-1478 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1643-1655 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc3a2b542a1b4079d0d305fbe1939e01e497bc15f5dbef928d5157444a6db80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/custom_diffusion/train_custom_diffusion.py:1155-1167 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:586-598 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:562-574 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1094-1106 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"6700b747f4d45561c063e1a7a8295f53bb934e7566a0ccdbf6b2e2306f2ad264"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): examples/dreambooth/train_dreambooth_flax.py:280-291 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:306-317 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:361-373 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:360-372 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 420 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:358\u0060 calls \u0060image_transforms_resize_and_crop\u0060 and \u0060examples/dreambooth/train_dreambooth_flax.py:279\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":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a118bd47b7b22b8c9b5103d3280564eb864dff4d37aa83fb2b4cc99aa4aa614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1832-1844 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1666-1678 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1686-1698 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1738-1750 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"85066df7b905d4dfb065ed277f8bac6bd18507190c4d74f92105acadf715b223"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_hidream.py:1172-1185 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1033-1046 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:717-730 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:728-740 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 as WHOLE FILES: this scan already matched 178 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1172\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_hidream.py"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb598df6df24a80a3460f04c980f26d923826aa256a46d649c9ec0015c57597e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1004-1016 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1194-1206 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:849-861 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1200-1212 \u2014 before extracting anything, compare \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 1003 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1018\u0060 calls \u0060step\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1207\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":"examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f940b478dc00314a4c8ef1e5255f350278bbd04f937182e1b03abd5c2667486"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:457-469 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:665-677 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:707-719 | examples/textual_inversion/textual_inversion.py:735-747 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:471\u0060 calls \u0060from_pretrained\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:680\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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5750449cd8512aad238b6f2deeb244b8799dcbcdab9d843e93f9a4ebf7db292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): examples/research_projects/pixart/train_pixart_controlnet_hf.py:111-124 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:150-162 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:90-102 | examples/text_to_image/train_text_to_image.py:151-163 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 1122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/train_pixart_controlnet_hf.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"341c26e870b0c563e520d39cc70c5203e5f9f624ed51b09dccebca6503617bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1092-1104 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1066-1078 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:545-557 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 113 separate duplicated blocks between them, totalling at least 1861 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d0fae184d6522d8efdf19a4f8cca51e17849fbbbf1540aa431a02fa18fb7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1379-1391 | examples/dreambooth/train_dreambooth_lora.py:1010-1022 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1027-1039 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 76 separate duplicated blocks between them, totalling at least 1220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1393\u0060 calls \u0060_set_state_dict_into_text_encoder\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py:1027\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5c5d29cf3961ae8d8f24bf9a1bd8d7d28e0e35cc9867897c6a520b8362f74b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1932-1944 | examples/research_projects/lpl/train_sdxl_lpl.py:1504-1513 | examples/text_to_image/train_text_to_image_sdxl.py:1252-1261 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 919 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1932\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43555670727fccd49094bab7f2a8e25efbe59710752620779c91196848ace80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/community/clip_guided_images_mixing_stable_diffusion.py:383-395 | examples/community/clip_guided_stable_diffusion.py:275-287 | examples/community/clip_guided_stable_diffusion_img2img.py:427-439 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d918b62876df926d1e00151da535a1dcff544cdd90b0757066d48ff6df4625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/community/llm_grounded_diffusion.py:1486-1498 | examples/community/pipeline_prompt2prompt.py:538-550 | examples/community/stable_diffusion_repaint.py:528-540 \u2014 before extracting anything, compare \u0060examples/community/llm_grounded_diffusion.py\u0060 and \u0060examples/community/pipeline_prompt2prompt.py\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 776 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dcd6f3a578b1fc1f264af82d0451e858080602691019d2f7b2b98d7befc770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): examples/controlnet/train_controlnet.py:213-224 | examples/research_projects/controlnet/train_controlnet_webdataset.py:442-454 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:202-213 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 1724 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a041bfdbb1845dc0a7132b7dcd4177ff7085e5006d93ee04aaaf3a9c19ceb78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/controlnet/train_controlnet_sd3.py:905-917 | examples/dreambooth/train_dreambooth_lora_sd3.py:1038-1050 | examples/dreambooth/train_dreambooth_sd3.py:964-976 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 965 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:905\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d0ed0cf5f7e3ec17dc4b54b0ef94ec1eab317bc80b8895ec5a815a45d8dc73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): examples/dreambooth/train_dreambooth_flux.py:768-779 | examples/dreambooth/train_dreambooth_lora_lumina2.py:744-755 | examples/dreambooth/train_dreambooth_lora_sdxl.py:811-823 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 as WHOLE FILES: this scan already matched 152 separate duplicated blocks between them, totalling at least 2443 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3842e0e34a7ec8407c3e50caaa3adf01a50b5fbdf486d951d37b0ab012b59a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/dreambooth/train_dreambooth_flux.py:1754-1766 | examples/dreambooth/train_dreambooth_lora_flux.py:1893-1905 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2198-2210 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ccb997ade7df019f0bcb200ed14bdeafdc8ed46a0cdec2a8267fff8fe1a25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_qwen_image.py:1036-1048 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1070-1082 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1161-1173 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 215 separate duplicated blocks between them, totalling at least 3669 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwen_image.py"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab54634c17c5b97c35b211d73004139a5a55ee92105ff70521beb4d90d08df8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_sdxl.py:1670-1682 | examples/dreambooth/train_dreambooth_sd3.py:1554-1566 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1691-1703 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 141 separate duplicated blocks between them, totalling at least 2251 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27e18652186ef130340de42aa78e127db05f41db33a2ece6d405c03e213d534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:550-562 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:543-555 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:542-554 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"339b4123f68176649f3fdf83557a2c5c4162e9f9fcb1ece7386f3d2b192636d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:306-317 | examples/research_projects/ip_adapter/tutorial_train_plus.py:327-339 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:373-385 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_plus.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 438 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/ip_adapter/tutorial_train_plus.py:327\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aaf1ff6c759ee6a543c87b4b16f78518efe7afad2757a2d441bd62f69c9b56c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:137-149 | examples/text_to_image/train_text_to_image_flax.py:180-192 | examples/textual_inversion/textual_inversion_flax.py:150-162 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:137\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, \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:135\u0060 calls \u0060add_argument\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.py:179\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"671500cf551031ea74fdd5ec8ae40886075813e6aae30134076c60f1bbe58217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 3): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:875-892 | examples/textual_inversion/textual_inversion.py:900-917 | examples/textual_inversion/textual_inversion_sdxl.py:969-988 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1688 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/textual_inversion/textual_inversion_sdxl.py:989\u0060 calls \u0060unwrap_model\u0060, \u0060get_input_embeddings\u0060 and \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:895\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"421d3ccb5fa9565602840cd85f6393687ce9222fbc229b7e3be9c8a5b09a9ed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): scripts/convert_i2vgen_to_diffusers.py:53-65 | scripts/convert_ms_text_to_video_to_diffusers.py:49-61 | scripts/convert_original_audioldm2_to_diffusers.py:181-193 \u2014 before extracting anything, compare \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 and \u0060scripts/convert_ms_text_to_video_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_i2vgen_to_diffusers.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8a8ac1b6f85240f5b6622825f00471a103213c0695beb8f5981363b916867e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): scripts/convert_pixart_alpha_to_diffusers.py:68-80 | scripts/convert_pixart_sigma_to_diffusers.py:68-79 | scripts/convert_sana_controlnet_to_diffusers.py:58-69 \u2014 before extracting anything, compare \u0060scripts/convert_pixart_alpha_to_diffusers.py\u0060 and \u0060scripts/convert_pixart_sigma_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_pixart_alpha_to_diffusers.py:81\u0060 calls \u0060chunk\u0060, \u0060pop\u0060 and \u0060scripts/convert_sana_controlnet_to_diffusers.py:70\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":"scripts/convert_pixart_alpha_to_diffusers.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9810f94815049ad4d16ce22ac285dad4aadd1e2f4a07aa99be6d61a2c685686"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:109-130 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:130-151 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad08d86661d7dc3a24f36a47d66ae258d100b4852baba5c3a9c99d57d394ebad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/clip_guided_stable_diffusion_img2img.py:207-219 | examples/community/rerender_a_video.py:563-575 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_stable_diffusion_img2img.py:207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"906f596066e95e63909812d516ef765d24d95cb4a2c2f77d6c6a8945823329f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/composable_stable_diffusion.py:524-536 | examples/community/sd_text2img_k_diffusion.py:402-414 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/sd_text2img_k_diffusion.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060StableDiffusionPipelineOutput\u0060 names \u0060diffusers.pipelines.stable_diffusion\u0060 in one and \u0060diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2aa10af7f51fe3cd0b722877bc32e7724572003a477fb700e0e791f79f877f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/fresco_v2v.py:2362-2374 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:872-884 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/fresco_v2v.py:2362\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":"examples/community/fresco_v2v.py"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"6faabdb4f8c3afd8d9fcc5c710e5749d42724fe71f341cf8d10c6f167676f0c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/latent_consistency_img2img.py:59-71 | examples/community/latent_consistency_txt2img.py:57-69 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/latent_consistency_img2img.py:59\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"77067ac06d903fdc171820ffcd4772b2e67a4ffa4705acaf9b4f3b57009a04f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/lpw_stable_diffusion_xl.py:1621-1633 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:1413-1425 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1621}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff68617151b50af87338afe4b518cb7ae4f19745a44dc29b7918011e44f5e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): examples/community/masked_stable_diffusion_xl_img2img.py:257-266 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1931-1943 \u2014 before extracting anything, compare \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 355 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_xl_img2img.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14ae059f7a2fbaab3615fa803ef3c05a1876a90b4c6838c85db66821f253ada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/matryoshka.py:3943-3955 | examples/community/matryoshka.py:3957-3972 \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":"examples/community/matryoshka.py"},"region":{"startLine":3943}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea71e98276aa7c0d5375b31c45c26fe22fa7dac598cfe4f20bead8a574f72e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/mixture_tiling.py:385-397 | examples/community/mixture_tiling_sdxl.py:684-696 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"examples/community/mixture_tiling.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dedc15c4b5ab8ffc254dd4823c8a15c60e5052e749a4bc8a76ada5ae1416c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): examples/community/mixture_tiling_sdxl.py:1132-1143 | examples/community/mod_controlnet_tile_sr_sdxl.py:1750-1762 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7a894a5ce442a70fa7550ea0fb086674e7d9d90ed230dede3ce31ed6a039aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/pipeline_hunyuandit_differential_img2img.py:1038-1050 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:886-898 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"8008ca25773af20193c7294ea2c657b3270344c9bef3ca6e68cc61be5f03f619"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/stable_diffusion_controlnet_img2img.py:553-565 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:626-638 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint_img2img.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 827 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_img2img.py:553\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"44440088c4f9155f0d3610d22ee8a5b6c23554a7dc67cc036b5579e60ec13f51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): examples/dreambooth/train_dreambooth_flux.py:636-644 | examples/dreambooth/train_dreambooth_lora_lumina2.py:605-617 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 as WHOLE FILES: this scan already matched 152 separate duplicated blocks between them, totalling at least 2443 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:605\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_flux.py:635\u0060 calls \u0060add_argument\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:605\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":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25b762d8526e0b72377f0c7b431226e4380489f5b838579a55fa6fd43853734"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/dreambooth/train_dreambooth_flux.py:1230-1242 | examples/dreambooth/train_dreambooth_sd3.py:1197-1209 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 168 separate duplicated blocks between them, totalling at least 2750 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"6017dcc2a3eb788ca90746f0694c43754d64e7c37a28d8f3a71819cd79dc10bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2.py:1888-1900 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1799-1811 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"5347ef0b5a56fbda00c2920c1bc6e67d957014e8fb23f1603840f8e51fcb2f60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2.py:1982-1994 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1875-1887 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:1982\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":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1982}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c98dc6ecbc95b57f803868383f29ba9ca082f44aa1ef5423aaa2cd2241f7f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_lumina2.py:1011-1023 | examples/dreambooth/train_dreambooth_lora_sana.py:1032-1044 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sana.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:1011\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_lumina2.py"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0c8ede4938bbdd2b5f79dad200e3e7fedc0f9498ae79febd2b09895a926c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sana.py:181-198 | examples/research_projects/sana/train_sana_sprint_diffusers.py:275-292 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sana.py\u0060 and \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1540 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sana.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefe3ddc8d05398708071c9485f28027fd363a781c13d813f5b0264e0e8a0138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sd3.py:1206-1218 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:689-700 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1541 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:1206\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, \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:1219\u0060 calls \u0060requires_grad_\u0060 and \u0060examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:704\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"e559ad6784be5637a96d4fbb25f004c9e143bfe4007845a93b86b13277fb9369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sdxl.py:1557-1569 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1587-1599 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1557\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda6032ce05c8a7fcdf2423a2c9953ad87050db806f44b305dcb1953a5d85b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/instruct_pix2pix/train_instruct_pix2pix.py:1009-1021 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1223-1236 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:1009\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"d452bf80533e7d4808d476b85c22cb4281c50b0e202a771f192ef9bcec1cf88a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): examples/research_projects/anytext/ocr_recog/RecMv1_enhance.py:78-90 | examples/research_projects/anytext/ocr_recog/RecMv1_enhance.py:102-113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/anytext/ocr_recog/RecMv1_enhance.py:78\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/ocr_recog/RecMv1_enhance.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fee4cc415fa5f534855b16c4a921fadad108cbcc4f0ae4ef60b4e8c9568dc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:749-761 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:400-410 \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 \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:749\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fe45dd821748ec4782e164d4dfdec8ea2080d08722d4ed6b3dff7bbfbd6036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): examples/research_projects/controlnet/train_controlnet_webdataset.py:1379-1389 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1226-1238 \u2014 before extracting anything, compare \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 and \u0060examples/t2i_adapter/train_t2i_adapter_sdxl.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 2078 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:1379\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":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da8d92d91311faf0101a13d949d10056bcaa8ed91ba064ffbd7738304807ea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:943-955 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:946-958 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1942 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"836614cf4a72105049fea66d965c2ada8f6afd32be6bb051835c2db461c176b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/research_projects/gligen/train_gligen_text.py:218-230 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:117-129 \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 \u0060examples/research_projects/gligen/train_gligen_text.py:218\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":"examples/research_projects/gligen/train_gligen_text.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbadc7f108835d26d0fa57b6c354531caa80ef178d9f3257cd4591c89e00624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:119-131 | examples/textual_inversion/textual_inversion.py:124-136 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1688 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:119\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":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b915c561c5f6df951ed3c058cc747022f534805a028694f6706b5a61e5aa5835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:647-659 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:680-692 \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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5b5d8557e33a42704a86c62ac585f2200da49b89be4f60dea08c4341ce9411"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:150-162 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:147-159 \u2014 before extracting anything, compare \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1487 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:150\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ac4370569ee3bcbf28ade5e0bb1ce76f3f2c2bb81e4ad87e07c084d3a6acd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): scripts/convert_if.py:315-326 | scripts/convert_svd_to_diffusers.py:298-310 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_if.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"507f04668f14fb255796ce9f4a80bbbce1a340fd98bbc1e5c7a8ee919f1e626b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): scripts/convert_stable_diffusion_controlnet_to_onnx.py:439-449 | scripts/convert_stable_diffusion_controlnet_to_onnx.py:456-468 \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":"scripts/convert_stable_diffusion_controlnet_to_onnx.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"754d31b4d4b3a56e8d8253d2004909b5614bba7429286615a5c93219d7b89b40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 90): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:732-742 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:610-620 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:719-729 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:396-406 | examples/cogvideo/train_cogvideox_lora.py:381-391 | examples/cogview4-control/train_control_cogview4.py:377-387 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:821-832 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:643-654 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:801-812 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:786-797 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:811-822 | examples/controlnet/train_controlnet.py:403-413 | examples/controlnet/train_controlnet_flux.py:427-437 | examples/controlnet/train_controlnet_sd3.py:474-484 | examples/controlnet/train_controlnet_sdxl.py:445-455 | examples/custom_diffusion/train_custom_diffusion.py:543-553 | examples/dreambooth/train_dreambooth.py:435-445 | examples/dreambooth/train_dreambooth_flax.py:173-183 | examples/dreambooth/train_dreambooth_flux.py:580-590 | examples/dreambooth/train_dreambooth_lora.py:436-446 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:724-734 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:721-731 | examples/dreambooth/train_dreambooth_lora_flux.py:623-633 | examples/dreambooth/train_dreambooth_lora_flux2.py:661-671 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:639-649 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:671-681 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:640-650 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:771-781 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:758-768 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:668-678 | examples/dreambooth/train_dreambooth_lora_hidream.py:636-646 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:748-758 | examples/dreambooth/train_dreambooth_lora_krea2.py:744-754 | examples/dreambooth/train_dreambooth_lora_lumina2.py:546-556 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:639-649 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:660-670 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:676-686 | examples/dreambooth/train_dreambooth_lora_sana.py:568-578 | examples/dreambooth/train_dreambooth_lora_sd3.py:618-628 | examples/dreambooth/train_dreambooth_lora_sdxl.py:598-608 | examples/dreambooth/train_dreambooth_lora_z_image.py:655-665 | examples/dreambooth/train_dreambooth_sd3.py:565-575 | examples/flux-control/train_control_flux.py:369-379 | examples/flux-control/train_control_lora_flux.py:401-411 | examples/instruct_pix2pix/train_instruct_pix2pix.py:334-344 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:391-401 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:349-359 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:246-256 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:253-263 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:353-363 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:306-316 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:197-207 | examples/research_projects/controlnet/train_controlnet_webdataset.py:642-652 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:359-369 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:378-388 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:376-386 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:360-370 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:221-231 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:217-227 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:404-414 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:385-395 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:178-188 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:168-178 | examples/research_projects/lora/train_text_to_image_lora.py:307-317 | examples/research_projects/lpl/train_sdxl_lpl.py:488-498 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:362-372 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:293-303 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:311-321 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:305-315 | examples/research_projects/realfill/train_realfill.py:319-329 | examples/research_projects/sana/train_sana_sprint_diffusers.py:616-626 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:435-445 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:427-437 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:595-605 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:393-403 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:297-307 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:374-384 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:418-428 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:425-435 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:355-365 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:353-363 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:420-430 | examples/text_to_image/train_text_to_image.py:415-425 | examples/text_to_image/train_text_to_image_flax.py:195-205 | examples/text_to_image/train_text_to_image_lora.py:348-358 | examples/text_to_image/train_text_to_image_lora_sdxl.py:421-431 | examples/text_to_image/train_text_to_image_sdxl.py:422-432 | examples/textual_inversion/textual_inversion.py:332-342 | examples/textual_inversion/textual_inversion_sdxl.py:333-343 | examples/vqgan/train_vqgan.py:451-461 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:732\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:395\u0060 calls \u0060add_argument\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:819\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c7fd97a879a4371a1cb94f4aa42c8a16ce4b9980f5bc19357046d74a1d56c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 57): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1010-1021 | examples/cogvideo/train_cogvideox_lora.py:1031-1042 | examples/cogview4-control/train_control_cogview4.py:751-760 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:911-922 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:743-754 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:906-917 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:876-887 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:916-927 | examples/controlnet/train_controlnet.py:771-780 | examples/controlnet/train_controlnet_flux.py:860-869 | examples/controlnet/train_controlnet_sd3.py:977-986 | examples/controlnet/train_controlnet_sdxl.py:872-881 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1112-1123 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1117-1128 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1113-1124 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1215-1226 | examples/flux-control/train_control_flux.py:743-752 | examples/flux-control/train_control_lora_flux.py:773-782 | examples/instruct_pix2pix/train_instruct_pix2pix.py:468-477 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:528-537 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:483-492 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:373-382 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:386-395 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:484-493 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:605-614 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:829-838 | examples/research_projects/controlnet/train_controlnet_webdataset.py:936-947 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:507-516 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:549-558 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:539-548 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:646-655 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:635-646 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:526-535 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:386-395 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:449-458 | examples/research_projects/lora/train_text_to_image_lora.py:441-450 | examples/research_projects/lpl/train_sdxl_lpl.py:766-775 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:594-603 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:455-464 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:608-617 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:599-608 | examples/research_projects/realfill/train_realfill.py:572-581 | examples/research_projects/sana/train_sana_sprint_diffusers.py:988-999 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:581-590 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:480-489 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:577-586 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:669-678 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:670-681 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:485-494 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:483-492 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:820-831 | examples/text_to_image/train_text_to_image.py:569-578 | examples/text_to_image/train_text_to_image_lora.py:493-502 | examples/text_to_image/train_text_to_image_lora_sdxl.py:596-605 | examples/text_to_image/train_text_to_image_sdxl.py:650-659 | examples/textual_inversion/textual_inversion.py:633-642 | examples/textual_inversion/textual_inversion_sdxl.py:632-641 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1010\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:463\u0060 calls \u0060set_verbosity_error\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1005\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6be950861c671551bbd267bd9997d9541c5d2ab38906f80b26f7e9ed34bb58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 31): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2072-2083 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2063-2074 | examples/controlnet/train_controlnet_flux.py:1222-1233 | examples/controlnet/train_controlnet_sd3.py:1279-1290 | examples/dreambooth/train_dreambooth_flux.py:1546-1557 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1817-1828 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1651-1662 | examples/dreambooth/train_dreambooth_lora_flux.py:1670-1681 | examples/dreambooth/train_dreambooth_lora_flux2.py:1802-1813 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1703-1714 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1759-1770 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1651-1662 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1902-1913 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1788-1799 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1937-1948 | examples/dreambooth/train_dreambooth_lora_hidream.py:1537-1548 | examples/dreambooth/train_dreambooth_lora_krea2.py:1771-1782 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1332-1343 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1671-1682 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1723-1734 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1816-1827 | examples/dreambooth/train_dreambooth_lora_sana.py:1354-1365 | examples/dreambooth/train_dreambooth_lora_sd3.py:1703-1714 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1637-1648 | examples/dreambooth/train_dreambooth_lora_z_image.py:1686-1697 | examples/dreambooth/train_dreambooth_sd3.py:1524-1535 | examples/flux-control/train_control_flux.py:1022-1033 | examples/flux-control/train_control_lora_flux.py:1167-1178 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1007-1018 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1660-1671 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:940-951 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2072}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db41c09d747c0577cac80e96f6b501de2fe8924a82a76f5112d1f59cf93f736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 29): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1386-1396 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1122-1132 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1376-1386 | examples/dreambooth/train_dreambooth.py:857-867 | examples/dreambooth/train_dreambooth_flux.py:1076-1086 | examples/dreambooth/train_dreambooth_lora.py:810-820 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1177-1187 | examples/dreambooth/train_dreambooth_lora_flux.py:1119-1129 | examples/dreambooth/train_dreambooth_lora_flux2.py:1119-1129 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1124-1134 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1224-1234 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1296-1306 | examples/dreambooth/train_dreambooth_lora_hidream.py:984-994 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1210-1220 | examples/dreambooth/train_dreambooth_lora_krea2.py:1201-1211 | examples/dreambooth/train_dreambooth_lora_lumina2.py:907-917 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1141-1151 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1175-1185 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1266-1276 | examples/dreambooth/train_dreambooth_lora_sana.py:918-928 | examples/dreambooth/train_dreambooth_lora_sd3.py:1111-1121 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1034-1044 | examples/dreambooth/train_dreambooth_lora_z_image.py:1109-1119 | examples/dreambooth/train_dreambooth_sd3.py:1036-1046 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:426-437 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:425-436 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:900-910 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:828-838 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1095-1105 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:426\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fbf0ecb039fcd8c694dea2761338347361c115793b93a760995e26870f757b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 29): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1681-1692 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1731-1742 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1161-1172 | examples/cogvideo/train_cogvideox_lora.py:1182-1193 | examples/dreambooth/train_dreambooth_flux.py:1267-1278 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1452-1463 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1341-1352 | examples/dreambooth/train_dreambooth_lora_flux.py:1365-1376 | examples/dreambooth/train_dreambooth_lora_flux2.py:1405-1416 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1355-1366 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1408-1419 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1349-1360 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1497-1508 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1447-1458 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1564-1575 | examples/dreambooth/train_dreambooth_lora_hidream.py:1243-1254 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1546-1557 | examples/dreambooth/train_dreambooth_lora_krea2.py:1460-1471 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1095-1106 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1367-1378 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1409-1420 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1500-1511 | examples/dreambooth/train_dreambooth_lora_sana.py:1118-1129 | examples/dreambooth/train_dreambooth_lora_sd3.py:1394-1405 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1334-1345 | examples/dreambooth/train_dreambooth_lora_z_image.py:1387-1398 | examples/dreambooth/train_dreambooth_sd3.py:1239-1250 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1180-1191 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:789-800 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1677\u0060 calls \u0060extend\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1448\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"82872226c6fbd78593d3ae5774fda381f126d46f44ab8989325760a1b961fdf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 28): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2201-2211 | examples/controlnet/train_controlnet_flux.py:1283-1292 | examples/controlnet/train_controlnet_sd3.py:1315-1325 | examples/dreambooth/train_dreambooth_flux.py:1629-1639 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1893-1903 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1726-1736 | examples/dreambooth/train_dreambooth_lora_flux.py:1768-1778 | examples/dreambooth/train_dreambooth_lora_flux2.py:1871-1881 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1774-1784 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1840-1850 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1720-1730 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1984-1994 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1865-1875 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2064-2074 | examples/dreambooth/train_dreambooth_lora_hidream.py:1592-1602 | examples/dreambooth/train_dreambooth_lora_krea2.py:1852-1862 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1383-1394 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1748-1758 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1803-1813 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1881-1891 | examples/dreambooth/train_dreambooth_lora_sana.py:1405-1415 | examples/dreambooth/train_dreambooth_lora_sd3.py:1786-1796 | examples/dreambooth/train_dreambooth_lora_z_image.py:1736-1746 | examples/dreambooth/train_dreambooth_sd3.py:1582-1592 | examples/flux-control/train_control_flux.py:1062-1071 | examples/flux-control/train_control_lora_flux.py:1208-1217 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1058-1068 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:980-989 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2201\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, \u0060examples/flux-control/train_control_flux.py:1075\u0060 calls \u0060cat\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2214\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5def9948cdb70f11c38cd48a8f064679b77ecb8a6798b0c728088a669d0e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 27): examples/cogview4-control/train_control_cogview4.py:1190-1201 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1440-1449 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1432-1443 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1503-1512 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1405-1414 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1508-1517 | examples/controlnet/train_controlnet.py:1147-1158 | examples/controlnet/train_controlnet_flux.py:1392-1401 | examples/controlnet/train_controlnet_sd3.py:1425-1436 | examples/controlnet/train_controlnet_sdxl.py:1334-1345 | examples/dreambooth/train_dreambooth.py:1391-1402 | examples/flux-control/train_control_flux.py:1197-1208 | examples/flux-control/train_control_lora_flux.py:1343-1354 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1436-1447 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1045-1056 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1048-1059 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:782-792 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:805-815 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1162-1171 | examples/research_projects/gligen/train_gligen_text.py:666-676 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:603-613 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1162-1173 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:912-922 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1454-1465 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1292-1303 | examples/textual_inversion/textual_inversion.py:969-979 | examples/textual_inversion/textual_inversion_sdxl.py:1058-1068 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 27 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 27 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:1190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1438\u0060 calls \u0060log_validation\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:780\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbe39f1d94accc4a7479a7ebb8c4ae3ef07bd70fc53293db78f48ba8415b298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 26): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1058-1069 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:938-949 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1099-1110 | examples/dreambooth/train_dreambooth_flux.py:749-760 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:919-930 | examples/dreambooth/train_dreambooth_lora_flux.py:798-809 | examples/dreambooth/train_dreambooth_lora_flux2.py:861-872 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:829-840 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:866-877 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:825-836 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:966-977 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:943-954 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:873-884 | examples/dreambooth/train_dreambooth_lora_hidream.py:805-816 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:934-945 | examples/dreambooth/train_dreambooth_lora_krea2.py:928-939 | examples/dreambooth/train_dreambooth_lora_lumina2.py:724-735 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:820-831 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:853-864 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:899-910 | examples/dreambooth/train_dreambooth_lora_sana.py:739-750 | examples/dreambooth/train_dreambooth_lora_sd3.py:792-803 | examples/dreambooth/train_dreambooth_lora_sdxl.py:788-799 | examples/dreambooth/train_dreambooth_lora_z_image.py:850-861 | examples/dreambooth/train_dreambooth_sd3.py:724-735 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:792-803 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b669d485365e1bdbff3d3b8e56ace1b1ade5188c3e15c7d4e33f32b93ac5a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 23): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:811-822 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:701-712 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:828-839 | examples/dreambooth/train_dreambooth_flux.py:647-656 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:803-812 | examples/dreambooth/train_dreambooth_lora_flux.py:696-705 | examples/dreambooth/train_dreambooth_lora_flux2.py:745-754 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:750-759 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:850-859 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:741-750 | examples/dreambooth/train_dreambooth_lora_hidream.py:703-712 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:827-836 | examples/dreambooth/train_dreambooth_lora_krea2.py:811-820 | examples/dreambooth/train_dreambooth_lora_lumina2.py:622-631 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:706-715 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:727-736 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:743-752 | examples/dreambooth/train_dreambooth_lora_sana.py:637-646 | examples/dreambooth/train_dreambooth_lora_sd3.py:690-699 | examples/dreambooth/train_dreambooth_lora_sdxl.py:684-695 | examples/dreambooth/train_dreambooth_lora_z_image.py:734-743 | examples/dreambooth/train_dreambooth_sd3.py:622-631 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:688-699 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:811\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, \u0060examples/dreambooth/train_dreambooth_flux.py:645\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:811\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4b4fbc2cc6a32e8e5d3622bebb9fde32b6ce168c6d299831f10288a769d25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 22): examples/controlnet/train_controlnet_sd3.py:1202-1213 | examples/dreambooth/train_dreambooth_lora_hidream.py:1464-1475 | examples/dreambooth/train_dreambooth_lora_krea2.py:1698-1709 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1259-1270 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1598-1609 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1650-1661 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1743-1754 | examples/dreambooth/train_dreambooth_lora_sana.py:1281-1292 | examples/dreambooth/train_dreambooth_sd3.py:1432-1443 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:777-788 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1215-1226 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:725-736 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:861-872 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:843-854 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:849-860 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:934-945 | examples/research_projects/gligen/train_gligen_text.py:455-466 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:976-987 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1163-1174 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1164-1175 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1578-1589 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:867-878 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 918 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"740482b307051295dbd890373952a31f40ac69ea5f809317eb5fd28abed0ed1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 21): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1347-1358 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1337-1348 | examples/cogvideo/train_cogvideox_lora.py:992-1003 | examples/controlnet/train_controlnet_sd3.py:938-949 | examples/dreambooth/train_dreambooth_flux.py:1037-1048 | examples/dreambooth/train_dreambooth_lora_flux.py:1080-1091 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1254-1265 | examples/dreambooth/train_dreambooth_lora_hidream.py:945-956 | examples/dreambooth/train_dreambooth_lora_krea2.py:1162-1173 | examples/dreambooth/train_dreambooth_lora_lumina2.py:868-879 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1102-1113 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1136-1147 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1227-1238 | examples/dreambooth/train_dreambooth_lora_sana.py:879-890 | examples/dreambooth/train_dreambooth_lora_sd3.py:1072-1083 | examples/dreambooth/train_dreambooth_lora_sdxl.py:995-1006 | examples/dreambooth/train_dreambooth_sd3.py:997-1008 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:596-607 | examples/research_projects/sana/train_sana_sprint_diffusers.py:949-960 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1062-1071 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:631-642 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1347\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1333\u0060 calls \u0060ValueError\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1343\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1a86df288ee2c96ac2488396cf9e0c9acae8ebf5d03c548ee5faa5e516a2ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 20): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1650-1661 | examples/instruct_pix2pix/train_instruct_pix2pix.py:791-802 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:978-989 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:559-570 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:575-586 | examples/research_projects/autoencoder_rae/train_autoencoder_rae.py:316-323 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:635-646 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:662-673 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:883-894 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:519-530 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:596-607 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1017-1028 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:730-741 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:787-798 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:724-735 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1010-1021 | examples/text_to_image/train_text_to_image_lora.py:805-816 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1042-1053 | examples/textual_inversion/textual_inversion.py:811-822 | examples/textual_inversion/textual_inversion_sdxl.py:853-864 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 549 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"25264273d83beab8c30046a75cf97819adc7d0dcc731c74a3f26ce38c76cde49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 17): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2011-2022 | examples/dreambooth/train_dreambooth.py:1164-1172 | examples/dreambooth/train_dreambooth_flux.py:1483-1494 | examples/dreambooth/train_dreambooth_lora.py:1173-1184 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1754-1765 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1588-1599 | examples/dreambooth/train_dreambooth_lora_flux.py:1607-1618 | examples/dreambooth/train_dreambooth_lora_flux2.py:1737-1748 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1640-1651 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1694-1705 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1588-1599 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1837-1848 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1723-1734 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1874-1885 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1830-1841 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1569-1580 | examples/dreambooth/train_dreambooth_lora_z_image.py:1622-1633 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2011\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1e13e179ea1633711d55e4ae3b9a95275dccb8b16db7f08c147fc6d59fe973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 16): examples/cogview4-control/train_control_cogview4.py:156-165 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:299-310 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:172-183 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:316-327 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:277-288 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:295-306 | examples/controlnet/train_controlnet.py:158-169 | examples/controlnet/train_controlnet_flux.py:172-183 | examples/controlnet/train_controlnet_sd3.py:180-191 | examples/controlnet/train_controlnet_sdxl.py:181-192 | examples/flux-control/train_control_flux.py:151-160 | examples/flux-control/train_control_lora_flux.py:161-170 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:251-262 | examples/research_projects/controlnet/train_controlnet_webdataset.py:387-398 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:169-180 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:147-158 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 16 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 16 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet.py:172\u0060 calls \u0060Image\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:311\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"264154d93f9167dd48a6d3ea5c1579bcad539d34348582024e85a6c8d3e01da6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 15): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1611-1622 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1970-1981 | examples/cogview4-control/train_control_cogview4.py:916-927 | examples/controlnet/train_controlnet.py:933-944 | examples/controlnet/train_controlnet_flux.py:1135-1146 | examples/controlnet/train_controlnet_sdxl.py:1128-1139 | examples/custom_diffusion/train_custom_diffusion.py:1048-1059 | examples/flux-control/train_control_flux.py:906-917 | examples/flux-control/train_control_lora_flux.py:1051-1062 | examples/instruct_pix2pix/train_instruct_pix2pix.py:744-755 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:836-847 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:725-736 | examples/text_to_image/train_text_to_image.py:838-849 | examples/text_to_image/train_text_to_image_lora.py:769-780 | examples/textual_inversion/textual_inversion_sdxl.py:805-816 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1611\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"977c11627599d0f48de2e93a32a8059372d7b1920c858aa3bd5bb63b20821496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 14): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1429-1440 | examples/dreambooth/train_dreambooth_lora.py:851-862 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1218-1229 | examples/dreambooth/train_dreambooth_lora_flux.py:1162-1173 | examples/dreambooth/train_dreambooth_lora_flux2.py:1162-1173 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1167-1178 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1262-1273 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1347-1358 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1253-1264 | examples/dreambooth/train_dreambooth_lora_lumina2.py:940-951 | examples/dreambooth/train_dreambooth_lora_sana.py:953-964 | examples/dreambooth/train_dreambooth_lora_sd3.py:1152-1163 | examples/dreambooth/train_dreambooth_lora_z_image.py:1152-1163 | examples/dreambooth/train_dreambooth_sd3.py:1077-1088 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1299 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1442\u0060 calls \u0060Path\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py:864\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"60336555d0f551418f75547cb2a8c5a9bb823a17f9fda4afdaebcf6ef2e566b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 14): examples/controlnet/train_controlnet.py:666-674 | examples/controlnet/train_controlnet_flax.py:578-586 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:508-516 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:651-659 | examples/research_projects/lora/train_text_to_image_lora.py:655-663 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:653-661 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:555-566 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:779-787 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:644-652 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:670-678 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:653-661 | examples/text_to_image/train_text_to_image.py:777-785 | examples/text_to_image/train_text_to_image_flax.py:346-353 | examples/text_to_image/train_text_to_image_lora.py:653-661 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:666\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet.py:663\u0060 calls \u0060random\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:506\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"3717c4e76ac42e66fd83de9bb14ea7526196a62e067b83ab05d5b64633085d56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 11): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1030-1041 | examples/cogview4-control/train_control_cogview4.py:618-629 | examples/controlnet/train_controlnet.py:627-638 | examples/controlnet/train_controlnet_flax.py:539-550 | examples/controlnet/train_controlnet_flux.py:708-719 | examples/controlnet/train_controlnet_sd3.py:707-718 | examples/controlnet/train_controlnet_sdxl.py:681-692 | examples/flux-control/train_control_flux.py:610-621 | examples/flux-control/train_control_lora_flux.py:638-649 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:522-533 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:646-657 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogview4-control/train_control_cogview4.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 478 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cogview4-control/train_control_cogview4.py:614\u0060 calls \u0060load_dataset\u0060, \u0060flatten_indices\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1028\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcc54f604f8aa5be631ec73f7991d1be5b979bb826bb4bd1bd09c48e8eb4e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 11): examples/cogview4-control/train_control_cogview4.py:162-170 | examples/controlnet/train_controlnet.py:165-176 | examples/controlnet/train_controlnet_flax.py:119-128 | examples/controlnet/train_controlnet_flux.py:179-190 | examples/controlnet/train_controlnet_sd3.py:187-198 | examples/controlnet/train_controlnet_sdxl.py:188-199 | examples/flux-control/train_control_flux.py:157-165 | examples/flux-control/train_control_lora_flux.py:167-175 | examples/research_projects/controlnet/train_controlnet_webdataset.py:394-405 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:176-187 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:154-165 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71c866dcf6bd7549a072cc0624960364d722a63d411e9f9ea0aba5db71f050f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 11): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:938-948 | examples/dreambooth/train_dreambooth_lora_flux2.py:880-890 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:883-893 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:885-895 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:879-889 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:985-995 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:998-1008 | examples/dreambooth/train_dreambooth_lora_krea2.py:947-957 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:839-849 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:872-883 | examples/dreambooth/train_dreambooth_lora_z_image.py:869-879 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee941f107772db697868e5863aed629fed36373e656a452111094acf4a7d0711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): examples/cogview4-control/train_control_cogview4.py:1142-1154 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1768-1780 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1831-1843 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1781-1793 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1922-1934 | examples/flux-control/train_control_flux.py:1149-1161 | examples/flux-control/train_control_lora_flux.py:1295-1307 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:786-797 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1121-1134 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 587 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb210a23cc5166427360031d8acf13fdcc44bf016b3dddd656599e28e50eb426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): examples/dreambooth/train_dreambooth_flux.py:769-780 | examples/dreambooth/train_dreambooth_lora_flux.py:815-826 | examples/dreambooth/train_dreambooth_lora_hidream.py:822-833 | examples/dreambooth/train_dreambooth_lora_lumina2.py:745-756 | examples/dreambooth/train_dreambooth_lora_sana.py:756-767 | examples/dreambooth/train_dreambooth_lora_sd3.py:809-820 | examples/dreambooth/train_dreambooth_lora_sdxl.py:813-824 | examples/dreambooth/train_dreambooth_sd3.py:741-752 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:812-823 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b72ccea2cd204e970f87388345999ab5dc1fa65520b362a4dff4624d1b8255e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): examples/instruct_pix2pix/train_instruct_pix2pix.py:919-930 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1125-1136 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:828-839 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:847-858 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:873-884 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1037-1048 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1215-1226 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:830-841 | examples/text_to_image/train_text_to_image_sdxl.py:1176-1187 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf90758c237beb1fb6a585055730fe3f3d0483d11887b35e9e5f2b6b8c8e58e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 9): examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:601-611 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:553-563 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:546-556 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:534-544 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:316-326 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:661-671 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:545-555 | examples/text_to_image/train_text_to_image.py:654-665 | examples/unconditional_image_generation/train_unconditional.py:325-335 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 as WHOLE FILES: this scan already matched 67 separate duplicated blocks between them, totalling at least 979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/text_to_image/train_text_to_image.py:654\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e62c3e728bb08bb207b293bfe5b4625a912f10e3483fcabc3d853c01257667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:446-457 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:447-458 | examples/research_projects/lora/train_text_to_image_lora.py:397-410 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:553-565 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:417-429 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:568-580 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:281-293 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:448-459 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:446-457 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:446\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd0b5b4fd83614df9722d9e569c291dd904d06a0d5927178afc0daf8a1c2cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1079-1090 | examples/dreambooth/train_dreambooth_flux.py:770-781 | examples/dreambooth/train_dreambooth_lora_flux.py:816-827 | examples/dreambooth/train_dreambooth_lora_hidream.py:823-834 | examples/dreambooth/train_dreambooth_lora_lumina2.py:746-757 | examples/dreambooth/train_dreambooth_lora_sana.py:757-768 | examples/dreambooth/train_dreambooth_lora_sd3.py:810-821 | examples/dreambooth/train_dreambooth_sd3.py:742-753 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ba314367fabf53112d5df1b577bec27cec1d110d6413adefa325cc00a4e238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 8): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1440-1448 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1503-1511 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1436-1446 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:603-610 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:694-700 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1161-1172 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:912-921 | examples/textual_inversion/textual_inversion.py:969-978 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:1436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"1579dc680f5ac9cc3c81d959d1e36d4ad1fa3e0aa6d116a5b832b8d5e22213af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 8): examples/controlnet/train_controlnet_flax.py:701-712 | examples/dreambooth/train_dreambooth_flax.py:385-396 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:479-489 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:478-488 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:392-402 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:455-465 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:614-624 | examples/textual_inversion/textual_inversion.py:639-649 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flax.py:701\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:625\u0060 calls \u0060from_pretrained\u0060 and \u0060examples/controlnet/train_controlnet_flax.py:712\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":"examples/controlnet/train_controlnet_flax.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd79741131c02ffdc514ab2e7ae67e3bafdccefdb78b8a77b8d5d0320df22869"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1545-1556 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1541-1553 | examples/dreambooth/train_dreambooth_flux.py:1196-1207 | examples/dreambooth/train_dreambooth_lora_flux.py:1233-1244 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1418-1429 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1166-1178 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:696-707 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1556\u0060 calls \u0060to\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1557\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"df40574ed8fed85ac0a2a0e45ea5881417c59d65ef6156a8ad6614c96e5b838b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1599-1610 | examples/dreambooth/train_dreambooth_lora.py:957-970 | examples/dreambooth/train_dreambooth_lora_flux.py:1288-1299 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1474-1485 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:717-728 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:974-987 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:728-739 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 85 separate duplicated blocks between them, totalling at least 1299 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1599\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"137df2423eccd40b837dc56be6acfe557246780ea01de194135f057aa9e2627c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1971-1982 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1921-1932 | examples/dreambooth/train_dreambooth_lora_hidream.py:1769-1780 | examples/dreambooth/train_dreambooth_lora_krea2.py:2049-2060 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1933-1944 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:2004-2015 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:2100-2111 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1971\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, \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:2048\u0060 calls \u0060_validation_call_kwargs\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1970\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":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1971}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3ddb2e87e7bc81ec244a7d7cf85bdd5b959ca903d719757de697bb82249dcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 6): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2005-2016 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1632-1642 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1992-2001 | examples/custom_diffusion/train_custom_diffusion.py:1067-1077 | examples/dreambooth/train_dreambooth_lora.py:1168-1178 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1565-1574 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2005\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"420e1658be8b06ce4834f5b298e6eae19d5731ea215d4e3add6b12fc89c53eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 6): examples/controlnet/train_controlnet.py:1097-1108 | examples/controlnet/train_controlnet_sd3.py:1379-1390 | examples/controlnet/train_controlnet_sdxl.py:1285-1296 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:963-973 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1394-1405 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1244-1255 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 1830 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:975\u0060 calls \u0060step\u0060, \u0060parameters\u0060 and \u0060examples/controlnet/train_controlnet.py:1111\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da518e8465d04e92609c7728ffbd09bf40a8b56288e25c7a8fc8c03bbe54619"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:780-790 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:703-714 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:699-710 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:817-828 | examples/dreambooth/train_dreambooth_lora_sana.py:627-637 | examples/research_projects/sana/train_sana_sprint_diffusers.py:675-685 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 139 separate duplicated blocks between them, totalling at least 2531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:780\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"7182d622fd0b740779d41f7d064277a432c3da16ce835a955cdef1ca35b8bb09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): examples/research_projects/lora/train_text_to_image_lora.py:691-704 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:689-702 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:815-828 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:685-698 | examples/text_to_image/train_text_to_image.py:820-833 | examples/text_to_image/train_text_to_image_lora.py:701-714 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d26d216d9b605732561b2e9688b287cd9d1ef48c272c235b2bef1ff6557be9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): scripts/convert_amused.py:185-196 | scripts/convert_pixart_alpha_to_diffusers.py:101-112 | scripts/convert_pixart_sigma_to_diffusers.py:113-124 | scripts/convert_sana_controlnet_to_diffusers.py:89-100 | scripts/convert_sana_to_diffusers.py:185-196 | scripts/convert_sana_video_to_diffusers.py:154-165 \u2014 before extracting anything, compare \u0060scripts/convert_amused.py\u0060 and \u0060scripts/convert_pixart_alpha_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_amused.py:185\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/convert_amused.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"9934e698d61d29b0e53b0a78eefb027f0a0fe97189e92bb2c8de7cc00301ae71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 5): examples/amused/train_amused.py:118-127 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:493-504 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:409-420 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:410-421 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:541-552 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/amused/train_amused.py:118\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/amused/train_amused.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"63be74baa98cc6f3a9b13df95a513b04d948e947c82709a9fd09d21a12634217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/controlnet/train_controlnet_flax.py:809-820 | examples/dreambooth/train_dreambooth_flax.py:478-492 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:440-454 | examples/text_to_image/train_text_to_image_flax.py:434-448 | examples/textual_inversion/textual_inversion_flax.py:459-473 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flax.py:478\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, \u0060examples/controlnet/train_controlnet_flax.py:806\u0060 calls \u0060replicate\u0060 and \u0060examples/dreambooth/train_dreambooth_flax.py:478\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flax.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"a247219932e8c2037d171f9306320c01debeb8c979e24dbc47283f10176eac32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/dreambooth/train_dreambooth.py:585-596 | examples/dreambooth/train_dreambooth_lora.py:546-557 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:228-239 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:605-616 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:545-556 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9be8a4ff2385b3d9fd21d13f5902123b651de876527d589e1463edb4b174de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 5): examples/dreambooth/train_dreambooth.py:1045-1054 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:524-533 | examples/research_projects/lora/train_text_to_image_lora.py:581-592 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:943-952 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1088-1097 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 870 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"59393c6e9fe983b77d813208cf37d4fb0b02df6169adbd9007d2c0c05dd2652e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora.py:1040-1051 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1057-1068 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1375-1386 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:792-803 | examples/text_to_image/train_text_to_image_lora_sdxl.py:818-829 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 162 separate duplicated blocks between them, totalling at least 2821 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"240ba909ec048dd8da7272797d482b6bb1c1617ec0d4a8ce1911104191c731f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_flux2.py:199-210 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:199-210 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:199-210 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:199-210 | examples/dreambooth/train_dreambooth_lora_z_image.py:198-209 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"277fd40547dca4806d729e43804d29234502e80e6bcb3db366ac4bfd38e112ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:972-983 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:950-961 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1124-1135 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1138-1149 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1134-1145 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:972\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":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"fead7a67e73f7edd3ff6ef492887571e5a0014d4a008c9cee7c65427e2b7118f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/research_projects/lpl/train_sdxl_lpl.py:599-610 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:454-465 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:487-498 | examples/text_to_image/train_text_to_image_lora_sdxl.py:493-504 | examples/text_to_image/train_text_to_image_sdxl.py:483-494 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 2028 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"884865b5ab26c95592712f10127798806318d019d8472ea614d43582490a46b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1940-1951 | examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:1993-2004 | scripts/convert_original_audioldm2_to_diffusers.py:884-895 | scripts/convert_original_audioldm_to_diffusers.py:821-832 | scripts/convert_original_musicldm_to_diffusers.py:826-837 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_original_audioldm2_to_diffusers.py:881\u0060 calls \u0060is_safetensors_available\u0060, \u0060ValueError\u0060 and \u0060scripts/convert_original_audioldm_to_diffusers.py:820\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":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb17c54f67efcf8b5a7bfc8fa60c55714283b133cd2b5f294a91621ffe40b670"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1870-1881 | examples/dreambooth/train_dreambooth_flux.py:1381-1392 | examples/dreambooth/train_dreambooth_lora_flux.py:1491-1502 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1735-1746 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"55eccd60f4a9d50666f03fea3f0cfa9e708a87affb38e196dba1f395c5dcd67e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/community/img2img_inpainting.py:22-35 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:41-54 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:37-50 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:206-219 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/img2img_inpainting.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75b93bc99276b5b4f6e9d12f45c00597a0b420f2d05e13630660c67b5f06535"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/community/pipeline_flux_differential_img2img.py:879-890 | examples/community/pipeline_flux_rf_inversion.py:849-860 | examples/community/pipeline_flux_rf_inversion.py:1019-1030 | examples/community/pipeline_flux_with_cfg.py:785-796 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 629 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58b5b6760d57c2f4a48d815b4b7cf51cfacbd843683ed2d6928cc22a00ff54f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/consistency_distillation/train_lcm_distill_sd_wds.py:232-243 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:250-261 | examples/research_projects/controlnet/train_controlnet_webdataset.py:330-342 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:77-88 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:232\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, \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:231\u0060 calls \u0060from_pretrained\u0060 and \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:329\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"38499eab9551ace24e42a3b6c90739c1298f1d6af7401b611c856ec87f247a1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:845-856 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:841-852 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:959-970 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:889-900 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0eca38489bba6d7264553317152e22e6686749a2c2b06380834a7514e85e10b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_sd3.py:1569-1580 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1522-1533 | examples/dreambooth/train_dreambooth_sd3.py:1408-1419 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1557-1568 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2381 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:1581\u0060 calls \u0060tokenize_prompt\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1534\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":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b04ee2de5c31f1e77c6f1fa070d4b1f2b54939c8c968d2b0c284e96e927fb57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:535-549 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:678-692 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:706-720 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:689-703 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 95 separate duplicated blocks between them, totalling at least 1480 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c6c13d4680264935df772e217660d3f05049a2f4b8e509efedb210f6302499"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/research_projects/autoencoderkl/train_autoencoderkl.py:824-835 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:628-639 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1010-1021 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1199-1210 \u2014 \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.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 27 separate duplicated blocks between them, totalling at least 317 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":"examples/research_projects/autoencoderkl/train_autoencoderkl.py"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"65dc4f5e57f438c4aaefe7bf456cf54a97dae2999c98b44719d0ea06b0d3717a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1151-1161 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:881-892 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1025-1036 | examples/text_to_image/train_text_to_image.py:900-911 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 297 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f71879f017b479bf0affb2c91312ce15b5aeedf7915c5f4b738ca6587a9c90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:942-953 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1096-1107 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1048-1059 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1051-1062 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c6ad7b79a4bb3a4d4e6bf15c21568ea03657dd3b23cb2841e4da0c8463b28b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): scripts/convert_gligen_to_diffusers.py:463-474 | scripts/convert_original_audioldm2_to_diffusers.py:924-935 | scripts/convert_original_audioldm_to_diffusers.py:864-875 | scripts/convert_original_musicldm_to_diffusers.py:869-880 \u2014 before extracting anything, compare \u0060scripts/convert_gligen_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 286 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_gligen_to_diffusers.py:463\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/convert_gligen_to_diffusers.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea438c5cbfbd9be3680523a081596af2563600f67a96bd4d9f37a3f49b68e85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): scripts/convert_if.py:679-690 | scripts/convert_kakao_brain_unclip_to_diffusers.py:888-899 | scripts/convert_kandinsky_to_diffusers.py:839-850 | scripts/convert_shap_e_to_diffusers.py:899-910 \u2014 before extracting anything, compare \u0060scripts/convert_kakao_brain_unclip_to_diffusers.py\u0060 and \u0060scripts/convert_kandinsky_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 385 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_if.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82ec9f78ee637c818afbfdc195ecea990c71f81c226c041edda1f8aae730363"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:844-855 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:717-728 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:849-860 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:844\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, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:848\u0060 calls \u0060warn\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:715\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"4425975ce7a0f30ecfc682c45cc4b02d76e3ff0374e8e130d3e2b88400210873"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:878-889 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:751-761 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:917-927 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34067d22e8fdc826268e7c07aae79c37d9013dd2eea37d5de6d9e66138c579e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1948-1957 | examples/dreambooth/train_dreambooth_lora_flux.py:1552-1561 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:914-925 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:914\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1948}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbbfaca5ce5a4a752231d09494052c9fa9180ce35d68858399bb96674ddf0d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2313-2324 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1855-1866 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2339-2350 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1854\u0060 calls \u0060enumerate\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2312\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2313}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae5fffd0d87baa8374c2de258fd19994d249707914d8b61a77d3d08eea29769"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:666-675 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:775-784 | examples/text_to_image/train_text_to_image_lora_sdxl.py:467-478 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py:467\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:676\u0060 calls \u0060add_argument\u0060 and \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py:478\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"649efbcc15d4da40016d98a0461c6186df1c7758f854f7ad1118264285a8e878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1748-1758 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1082-1093 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1114-1125 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1035 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bb88f4ae20bbea4036dafba7bf6372cdf762d0e6c6d6ad5594c5a85e401d77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/community/clip_guided_images_mixing_stable_diffusion.py:434-445 | examples/community/clip_guided_stable_diffusion.py:326-337 | examples/community/clip_guided_stable_diffusion_img2img.py:479-490 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"70676f7a8572a4c34615aea02ab9d02411eacc89568ad22aa4b6c96c88ad454d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): examples/community/mixture_tiling.py:393-404 | examples/community/mixture_tiling_sdxl.py:692-703 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1005-1015 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"examples/community/mixture_tiling.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebfb75bd1d42266164de8d62fc967e371a1c3282a76e777da26f8543c880340"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/community/pipeline_stg_cogvideox.py:815-826 | examples/community/pipeline_stg_ltx.py:812-823 | examples/community/pipeline_stg_mochi.py:795-806 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_cogvideox.py\u0060 and \u0060examples/community/pipeline_stg_ltx.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_cogvideox.py"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bcbd7e13fe1c66a4184c862f11df8389b0c5fb533c849159953526db1f66c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/community/rerender_a_video.py:842-853 | examples/community/rerender_a_video.py:1020-1031 | examples/community/stable_diffusion_controlnet_reference.py:731-742 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/rerender_a_video.py:839\u0060 calls \u0060set_timestep\u0060, \u0060item\u0060 and \u0060examples/community/stable_diffusion_controlnet_reference.py:729\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":"examples/community/rerender_a_video.py"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de8e64fa055080ee1a9f76b934bfba80f3098e43cd6a45f8ed5aaf2410f434f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:148-159 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:130-141 | examples/research_projects/controlnet/train_controlnet_webdataset.py:179-190 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8495a3b59f2b279de86aa07c84d6c3cf0e65603f8c3a0392592c49242a6aa54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/controlnet/train_controlnet_sd3.py:834-845 | examples/dreambooth/train_dreambooth_lora_sd3.py:961-972 | examples/dreambooth/train_dreambooth_sd3.py:887-898 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 965 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:959\u0060 calls \u0060ValueError\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py:833\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c0096086fe89c417dcd839c7533491f8fa4d77d256ed41cfbb34aa624bb124"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/controlnet/train_controlnet_sd3.py:868-879 | examples/dreambooth/train_dreambooth_lora_sd3.py:1000-1011 | examples/dreambooth/train_dreambooth_sd3.py:926-937 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 965 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:998\u0060 calls \u0060ValueError\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py:867\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa884c15f4ed88061f38cff7a5b78d05cb17feb18ac4bd8d5a5e6de39d8ef0a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): examples/dreambooth/train_dreambooth_flax.py:502-513 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:490-500 | examples/textual_inversion/textual_inversion_flax.py:509-519 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 191 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flax.py:502\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"330fb7cce8de9b911e9c5e936424b26be0149aac3368573d1512eebf9022b23e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_lumina2.py:1058-1069 | examples/dreambooth/train_dreambooth_lora_sana.py:1081-1092 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:752-763 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sana.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:1058\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, \u0060examples/dreambooth/train_dreambooth_lora_sana.py:1080\u0060 calls \u0060_collate_lora_metadata\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py:1057\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":"examples/dreambooth/train_dreambooth_lora_lumina2.py"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc615b70420d484305cb26cf04870e528dd9ef9d4786b1944ac7d5a72aed252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/flux-control/train_control_flux.py:1133-1144 | examples/flux-control/train_control_lora_flux.py:1279-1290 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1102-1116 \u2014 before extracting anything, compare \u0060examples/flux-control/train_control_flux.py\u0060 and \u0060examples/flux-control/train_control_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 123 separate duplicated blocks between them, totalling at least 2489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/flux-control/train_control_flux.py:1133\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/flux-control/train_control_flux.py"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2c519ffbac0e1bb4cbc6d0c38feeb4bb56fefded3a28e20645e65daa9aed59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:153-164 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:152-163 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:149-160 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 87 separate duplicated blocks between them, totalling at least 1312 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:153\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, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:152\u0060 calls \u0060unwrap_model\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:151\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b21365fe6ad7e5a8e937a685bacace4184d9e982cd714a86912c508af4c64f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/research_projects/colossalai/train_dreambooth_colossalai.py:276-287 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:323-334 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:322-333 \u2014 before extracting anything, compare \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 584 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/colossalai/train_dreambooth_colossalai.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"005156d913bb87ef6eb0d631b1964ea4d9b37270a440f7ca13e97f64760d048d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:815-826 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:347-358 | examples/unconditional_image_generation/train_unconditional.py:356-367 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:830\u0060 calls \u0060set_seed\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:361\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":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecfabe8f083c74d987d33073a729844a754dc1f7abe682fa02c64435195defb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:951-962 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:933-944 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:936-947 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:951\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2400fef8b492e70966babf7e7511ce4ad5f8aff902ca8280c741a07ce4455c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:757-767 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1124-1134 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:605-616 \u2014 \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.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 58 separate duplicated blocks between them, totalling at least 869 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":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5bf642dbb5cd7fd148c73c936187cefc2b05be38dbd9f4cca0a6e3e395ef3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:534-543 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:672-683 | examples/textual_inversion/textual_inversion.py:742-753 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 522 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:534\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, \u0060examples/textual_inversion/textual_inversion.py:754\u0060 calls \u0060join\u0060, \u0060convert_ids_to_tokens\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:544\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":"examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"990c25fcb445206a3a1fbb1177ac6a9d0c6d9fab77db6d2327e4ff703e60f9f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:661-672 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:550-558 | examples/text_to_image/train_text_to_image_sdxl.py:545-556 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7df62af7f10c889ba14d4be3eb81c35ce379895a49aab3b30bcc6d771e08ff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:806-817 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:938-949 | examples/text_to_image/train_text_to_image.py:957-968 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 1977 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"3249b697c7837c58231a573c93ef67f1bad514144923e5acd3eaaf5156658de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:964-975 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:680-693 | examples/text_to_image/train_text_to_image_lora_sdxl.py:706-719 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 69 separate duplicated blocks between them, totalling at least 1031 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:964\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, \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:694\u0060 calls \u0060add_adapter\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:977\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":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f18e1f9c5ec840fe872cee4e8e5989d798c665f153918c5941af2992858de1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): scripts/convert_if.py:403-414 | scripts/convert_if.py:991-1002 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:217-228 \u2014 before extracting anything, compare \u0060scripts/convert_if.py\u0060 and \u0060scripts/convert_ldm_original_checkpoint_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_if.py:403\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_if.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2fbb71fac9c63b74d5cd4c2d144ad537e1a05a3ea0ec4645a7d4f29d14399b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): scripts/convert_original_audioldm2_to_diffusers.py:964-975 | scripts/convert_original_audioldm_to_diffusers.py:904-915 | scripts/convert_original_musicldm_to_diffusers.py:909-920 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad9a13b5f0a71aa0c1a226b9e300337ae98ee9f551923bb89b100b1577b166d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:2056-2067 | examples/research_projects/lora/train_text_to_image_lora.py:1009-1020 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 417 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":2056}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0e577f9a540fd3e247ace389b0eecb3adaadd11de70b260471b895c0955991"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/cogview4-control/train_control_cogview4.py:89-100 | examples/flux-control/train_control_flux.py:84-95 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b210bdb685a72f4de6d1cdd3dc5e2a1f5c42ce345e1b253d5b1c1ead4035771"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/adaptive_mask_inpainting.py:754-765 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1067-1078 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:754\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1081\u0060 calls \u0060to\u0060, \u0060repeat\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:767\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"14906fdf64decb1cdad7c1d9742c2946ecc24224f3cb303bd67e52ae0376617b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/imagic_stable_diffusion.py:377-388 | examples/community/interpolate_stable_diffusion.py:271-282 \u2014 before extracting anything, compare \u0060examples/community/imagic_stable_diffusion.py\u0060 and \u0060examples/community/interpolate_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"166b96e6f86ceced28d48964e794a2185ae22a909b4c20decf8ff0a835d659dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): examples/community/mixture_tiling.py:364-374 | examples/community/mixture_tiling_sdxl.py:1142-1153 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"examples/community/mixture_tiling.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d80e57c94f82370c403f304f21f5d03a4d8b70a4d7946d30e60de4705061bcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/community/pipeline_fabric.py:412-425 | examples/community/pipeline_fabric.py:427-440 \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 \u0060examples/community/pipeline_fabric.py:412\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":"examples/community/pipeline_fabric.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd4843a8229aa38094cfe5c1c6f0b9a2c1857c6bcf887d704fbb98c1ab32caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/pipeline_kolors_differential_img2img.py:1164-1175 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:902-913 \u2014 before extracting anything, compare \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_3_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_kolors_differential_img2img.py"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c566a36721cd36a855a78b92a4c88fae3ffe874b249b118c786426d0737f14a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:78-89 | examples/community/pipeline_stable_diffusion_xl_instantid.py:78-89 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a09907799cc7e5ff30b14c3adc22cda0aade2ca980969eca510340090f747ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:154-165 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:136-147 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 97 separate duplicated blocks between them, totalling at least 2013 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b2a6929c4d0e312e7faddaec3ff979d2d5a8815ea2cd82eb59e3b0659568bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): examples/controlnet/train_controlnet.py:1051-1061 | examples/controlnet/train_controlnet_sdxl.py:1239-1250 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet.py:1064\u0060 calls \u0060text_encoder\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py:1253\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":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a8f29b8bb7911fae132a1cf77befc9541c20dc7d22aa42716e06304efd9a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/cosmos3/inference_cosmos3.py:330-341 | examples/cosmos3/inference_cosmos3.py:347-358 \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 \u0060examples/cosmos3/inference_cosmos3.py:330\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cosmos3/inference_cosmos3.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"498524ab59ed71e1e33965d76e5d70a7146c05a3c868ee4c78ab790ef6c2a969"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): examples/custom_diffusion/train_custom_diffusion.py:784-794 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:852-863 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 878 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:784\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1914e8c11ff1f716273b5d32685e3540e5f2e51d3bfc2bd8f50c39a41946a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2.py:1674-1685 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1594-1601 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"110087d60a7bfbe0d794d914ec67d5ab30b81366de0694a9ca1abea2d7c07f90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1803-1813 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1752-1763 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c99e881bc9afa182b02db060b2a2d7b1656c4f5627c78b76d2efcb3aee35c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:708-719 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:740-751 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:708\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc7dbbd169b5ea1a8f8a2cd74381f3dc3b069866441009b1420b90c042d157a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:811-822 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:579-590 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 287 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:591\u0060 calls \u0060set_verbosity_warning\u0060 and \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:823\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":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"430d9ef7855ca9a25f15d0156199e8f69639175a3861d34c7376ed0c9b4151ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1201-1212 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1332-1342 \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 \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1201\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":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"015fe7416741e4ebee6dd49532956d1f4d48457958bf012eda6467df7aa81b85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:474-485 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:464-475 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"66aeed006e8737521cd5583367f3ed3fac850cc1e2eb115ea2b6694e61ab0495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:428-439 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:540-551 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 899 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:428\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb13ec72a3fc2f81479bb70e881f6b2b003dfcfe34786ff6a79b7f96ffbcb4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:430-441 | examples/research_projects/realfill/train_realfill.py:412-423 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py\u0060 and \u0060examples/research_projects/realfill/train_realfill.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 728 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:430\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":"examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5dfd96de5f81b6af967121fe0f41cb72f8951c1ee29aac95a9f162dbf3b0c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/research_projects/lora/train_text_to_image_lora.py:868-879 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:931-942 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1453 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lora/train_text_to_image_lora.py:868\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":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"0851cf7932dbe252db0679fada1e43f3aa053d6674b7c11f7345d6e06e3751af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): examples/research_projects/lora/train_text_to_image_lora.py:890-901 | examples/research_projects/lora/train_text_to_image_lora.py:1003-1012 \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":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"db17958cda42084a3a51a07325f9e281c1a4e22e095335ac1136cac9455f16f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/research_projects/pytorch_xla/inference/flux/flux_inference.py:92-103 | examples/research_projects/pytorch_xla/inference/flux/flux_inference_spmd.py:154-165 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pytorch_xla/inference/flux/flux_inference.py:92\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":"examples/research_projects/pytorch_xla/inference/flux/flux_inference.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"766f2d2daee198677871328b749347dc8722e236aa2f62444c28431cccd41c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): examples/research_projects/sana/train_sana_sprint_diffusers.py:1402-1410 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1604-1615 \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 \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py:1402\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/sana/train_sana_sprint_diffusers.py"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"329092c78538aa5b9e90483bbc560e339ead9dcec14c0b13fae5115727c5d066"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1010-1021 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1032-1043 \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 \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1010\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc69c94b387c74f725df0549e8ab8883509fbbe6f46a6edf40872673b536b164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/text_to_image/train_text_to_image_lora_sdxl.py:1213-1224 | examples/text_to_image/train_text_to_image_sdxl.py:1184-1195 \u2014 before extracting anything, compare \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py\u0060 and \u0060examples/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 123 separate duplicated blocks between them, totalling at least 2035 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/text_to_image/train_text_to_image_sdxl.py:1183\u0060 calls \u0060step\u0060, \u0060parameters\u0060 and \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py:1212\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":"examples/text_to_image/train_text_to_image_lora_sdxl.py"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e47126eba104207ed8e23f61050eccdcc7e091a1f20f8024962e90e854a3d92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/textual_inversion/textual_inversion.py:176-187 | examples/textual_inversion/textual_inversion_sdxl.py:180-191 \u2014 before extracting anything, compare \u0060examples/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 86 separate duplicated blocks between them, totalling at least 1368 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/textual_inversion/textual_inversion.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f998026e3ebb1a0ea3add29b2a2480236817d439c25e4947cd7ca5683320e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): examples/textual_inversion/textual_inversion.py:698-708 | examples/textual_inversion/textual_inversion_sdxl.py:712-723 \u2014 before extracting anything, compare \u0060examples/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 86 separate duplicated blocks between them, totalling at least 1368 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/textual_inversion/textual_inversion_sdxl.py:711\u0060 calls \u0060clone\u0060 and \u0060examples/textual_inversion/textual_inversion.py:697\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/textual_inversion/textual_inversion.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ef692767554e13b294075b69d68bf3c0b1c021b4b16d8d46ed6051f2f82255"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): scripts/convert_cogview3_to_diffusers.py:201-211 | scripts/convert_mochi_to_diffusers.py:439-450 \u2014 before extracting anything, compare \u0060scripts/convert_cogview3_to_diffusers.py\u0060 and \u0060scripts/convert_mochi_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_mochi_to_diffusers.py:439\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/convert_cogview3_to_diffusers.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d981945472da89b9d24d772bad5cbd9fc51e58249776ec0379da000b18acf33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): scripts/convert_diffusers_to_original_sdxl.py:177-188 | scripts/convert_diffusers_to_original_stable_diffusion.py:180-191 \u2014 before extracting anything, compare \u0060scripts/convert_diffusers_to_original_sdxl.py\u0060 and \u0060scripts/convert_diffusers_to_original_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_diffusers_to_original_sdxl.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b3c4972ddaebd87904827d0c9a73bf7286ed8b7074a2e53140a1706d544764"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): scripts/convert_hunyuan_image_to_diffusers.py:231-242 | scripts/convert_hunyuan_video1_5_to_diffusers.py:215-226 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuan_image_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuan_video1_5_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 384 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_hunyuan_image_to_diffusers.py:231\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/convert_hunyuan_image_to_diffusers.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"0781bf47ede82cc9572ba7ab104d4ca3e5784ad020f78f6179ac44bf12bc57e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): scripts/convert_if.py:163-174 | scripts/convert_if.py:178-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_if.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3c13202fd1982dc39ea917af2b59ae1890181fa9a25008e3036736f481ca34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): scripts/convert_if.py:359-369 | scripts/convert_if.py:951-962 \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 \u0060scripts/convert_if.py:951\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_if.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"44123c98f7e9c597df0f8b3f91e69c9c9b508377fba5a278f511101bfe593d9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): scripts/convert_minimax_h3_to_diffusers.py:525-536 | scripts/convert_minimax_h3_to_diffusers.py:952-963 \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":"scripts/convert_minimax_h3_to_diffusers.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"a961dd65b21cf987232ba3d58a94fe522a1feb0e8c098a44ac80b5f19816ee7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): scripts/convert_svd_to_diffusers.py:400-411 | scripts/convert_svd_to_diffusers.py:413-423 \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":"scripts/convert_svd_to_diffusers.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"d837dd2c986dc45df1a74964f503736eb501135f897f21809e4b8f71b9e154f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 88): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:549-561 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:435-447 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:537-549 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:256-268 | examples/cogvideo/train_cogvideox_lora.py:247-259 | examples/cogview4-control/train_control_cogview4.py:274-286 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:617-630 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:450-463 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:597-610 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:595-608 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:620-633 | examples/controlnet/train_controlnet.py:307-319 | examples/controlnet/train_controlnet_flax.py:267-279 | examples/controlnet/train_controlnet_flux.py:322-334 | examples/controlnet/train_controlnet_sd3.py:348-360 | examples/controlnet/train_controlnet_sdxl.py:349-361 | examples/custom_diffusion/train_custom_diffusion.py:449-461 | examples/dreambooth/train_dreambooth.py:335-347 | examples/dreambooth/train_dreambooth_flax.py:145-157 | examples/dreambooth/train_dreambooth_flux.py:408-420 | examples/dreambooth/train_dreambooth_lora.py:342-354 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:559-571 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:556-568 | examples/dreambooth/train_dreambooth_lora_flux.py:442-454 | examples/dreambooth/train_dreambooth_lora_flux2.py:480-492 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:464-476 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:490-502 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:465-477 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:606-618 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:593-605 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:487-499 | examples/dreambooth/train_dreambooth_lora_hidream.py:473-485 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:551-563 | examples/dreambooth/train_dreambooth_lora_krea2.py:576-588 | examples/dreambooth/train_dreambooth_lora_lumina2.py:383-395 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:476-488 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:495-507 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:511-523 | examples/dreambooth/train_dreambooth_lora_sana.py:401-413 | examples/dreambooth/train_dreambooth_lora_sd3.py:428-440 | examples/dreambooth/train_dreambooth_lora_sdxl.py:443-455 | examples/dreambooth/train_dreambooth_lora_z_image.py:474-486 | examples/dreambooth/train_dreambooth_sd3.py:394-406 | examples/flux-control/train_control_flux.py:266-278 | examples/flux-control/train_control_lora_flux.py:277-289 | examples/instruct_pix2pix/train_instruct_pix2pix.py:247-259 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:304-316 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:271-283 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:175-187 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:181-193 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:280-292 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:194-206 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:151-161 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:435-446 | examples/research_projects/controlnet/train_controlnet_webdataset.py:548-560 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:253-265 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:278-290 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:276-288 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:261-272 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:167-179 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:163-175 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:236-248 | examples/research_projects/gligen/train_gligen_text.py:127-139 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:298-310 | examples/research_projects/lora/train_text_to_image_lora.py:236-249 | examples/research_projects/lpl/train_sdxl_lpl.py:336-348 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:272-284 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:223-235 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:381-393 | examples/research_projects/realfill/train_realfill.py:227-239 | examples/research_projects/sana/train_sana_sprint_diffusers.py:435-447 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:335-347 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:333-345 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:440-452 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:305-317 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:220-232 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:272-284 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:266-278 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:296-309 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:290-302 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:282-294 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:326-338 | examples/text_to_image/train_text_to_image.py:311-323 | examples/text_to_image/train_text_to_image_flax.py:158-170 | examples/text_to_image/train_text_to_image_lora.py:271-283 | examples/text_to_image/train_text_to_image_lora_sdxl.py:319-331 | examples/text_to_image/train_text_to_image_sdxl.py:270-282 | examples/vqgan/train_vqgan.py:355-367 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:549\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:547\u0060 calls \u0060add_argument\u0060 and \u0060examples/controlnet/train_controlnet_flux.py:321\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b2a4a14d4f88c9a666b065f2441786d7f618e51bc2d25616cc1c2e29248d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 81): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2039-2048 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1664-1673 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2028-2037 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1192-1201 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1174-1183 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1236-1245 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1143-1152 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1237-1246 | examples/controlnet/train_controlnet.py:1000-1009 | examples/controlnet/train_controlnet_flux.py:1188-1197 | examples/controlnet/train_controlnet_sd3.py:1245-1254 | examples/controlnet/train_controlnet_sdxl.py:1182-1191 | examples/custom_diffusion/train_custom_diffusion.py:1094-1103 | examples/dreambooth/train_dreambooth.py:1190-1199 | examples/dreambooth/train_dreambooth_flux.py:1511-1520 | examples/dreambooth/train_dreambooth_lora.py:1203-1212 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1782-1791 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1616-1625 | examples/dreambooth/train_dreambooth_lora_flux.py:1635-1644 | examples/dreambooth/train_dreambooth_lora_flux2.py:1767-1776 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1668-1677 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1724-1733 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1616-1625 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1867-1876 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1753-1762 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1902-1911 | examples/dreambooth/train_dreambooth_lora_hidream.py:1502-1511 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1860-1869 | examples/dreambooth/train_dreambooth_lora_krea2.py:1736-1745 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1297-1306 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1636-1645 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1688-1697 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1781-1790 | examples/dreambooth/train_dreambooth_lora_sana.py:1319-1328 | examples/dreambooth/train_dreambooth_lora_sd3.py:1668-1677 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1602-1611 | examples/dreambooth/train_dreambooth_lora_z_image.py:1651-1660 | examples/dreambooth/train_dreambooth_sd3.py:1489-1498 | examples/instruct_pix2pix/train_instruct_pix2pix.py:804-813 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:991-1000 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:736-743 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:572-581 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:588-597 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:737-746 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:846-855 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1161-1171 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1255-1264 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:761-770 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:897-906 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:879-888 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:649-657 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:676-684 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:972-981 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:896-905 | examples/research_projects/lora/train_text_to_image_lora.py:753-762 | examples/research_projects/lpl/train_sdxl_lpl.py:1163-1172 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1031-1040 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:511-520 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:743-752 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:760-769 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:800-808 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:932-941 | examples/research_projects/realfill/train_realfill.py:805-814 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1289-1298 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1222-1231 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1208-1217 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1625-1634 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:892-901 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:737-746 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1023-1032 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1036-1045 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:905-914 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:771-780 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:745-754 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1128-1138 | examples/text_to_image/train_text_to_image.py:911-920 | examples/text_to_image/train_text_to_image_lora.py:818-827 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1055-1064 | examples/text_to_image/train_text_to_image_sdxl.py:1032-1041 | examples/textual_inversion/textual_inversion.py:824-832 | examples/textual_inversion/textual_inversion_sdxl.py:866-874 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2036\u0060 calls \u0060info\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1189\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde7e98af2dc6781b2a7fa63794f2aee530ac3a7f9b64a996030932c3206b3a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 78): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:730-739 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:608-617 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:717-726 | examples/cogview4-control/train_control_cogview4.py:376-384 | examples/controlnet/train_controlnet.py:402-410 | examples/controlnet/train_controlnet_flax.py:323-331 | examples/controlnet/train_controlnet_flux.py:426-434 | examples/controlnet/train_controlnet_sd3.py:473-481 | examples/controlnet/train_controlnet_sdxl.py:444-452 | examples/custom_diffusion/train_custom_diffusion.py:542-550 | examples/dreambooth/train_dreambooth.py:434-442 | examples/dreambooth/train_dreambooth_flax.py:172-180 | examples/dreambooth/train_dreambooth_flux.py:578-587 | examples/dreambooth/train_dreambooth_lora.py:435-443 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:722-731 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:719-728 | examples/dreambooth/train_dreambooth_lora_flux.py:621-630 | examples/dreambooth/train_dreambooth_lora_flux2.py:659-668 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:637-646 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:669-678 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:638-647 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:769-778 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:756-765 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:666-675 | examples/dreambooth/train_dreambooth_lora_hidream.py:634-643 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:746-755 | examples/dreambooth/train_dreambooth_lora_krea2.py:742-751 | examples/dreambooth/train_dreambooth_lora_lumina2.py:544-553 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:637-646 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:658-667 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:674-683 | examples/dreambooth/train_dreambooth_lora_sana.py:566-575 | examples/dreambooth/train_dreambooth_lora_sd3.py:616-625 | examples/dreambooth/train_dreambooth_lora_sdxl.py:596-605 | examples/dreambooth/train_dreambooth_lora_z_image.py:653-662 | examples/dreambooth/train_dreambooth_sd3.py:563-572 | examples/flux-control/train_control_flux.py:368-376 | examples/flux-control/train_control_lora_flux.py:400-408 | examples/instruct_pix2pix/train_instruct_pix2pix.py:333-341 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:390-398 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:348-356 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:245-253 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:252-260 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:352-360 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:305-313 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:194-204 | examples/research_projects/controlnet/train_controlnet_webdataset.py:641-649 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:358-366 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:377-385 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:375-383 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:359-367 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:220-228 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:216-224 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:402-411 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:384-392 | examples/research_projects/lora/train_text_to_image_lora.py:306-314 | examples/research_projects/lpl/train_sdxl_lpl.py:487-495 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:361-369 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:310-318 | examples/research_projects/realfill/train_realfill.py:318-326 | examples/research_projects/sana/train_sana_sprint_diffusers.py:614-623 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:434-442 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:426-434 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:593-602 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:392-400 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:296-304 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:373-381 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:417-425 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:423-432 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:354-362 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:352-360 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:419-427 | examples/text_to_image/train_text_to_image.py:414-422 | examples/text_to_image/train_text_to_image_flax.py:194-202 | examples/text_to_image/train_text_to_image_lora.py:347-355 | examples/text_to_image/train_text_to_image_lora_sdxl.py:420-428 | examples/text_to_image/train_text_to_image_sdxl.py:421-429 | examples/vqgan/train_vqgan.py:450-458 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:730\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, \u0060examples/cogview4-control/train_control_cogview4.py:374\u0060 calls \u0060add_argument\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:243\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f67db830b9273ca36d4c765d0987cfdf8eb05472013941fe3a8f8429a391f6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 32): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1351-1361 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1090-1100 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1341-1351 | examples/cogvideo/train_cogvideox_lora.py:996-1006 | examples/controlnet/train_controlnet_sd3.py:942-952 | examples/dreambooth/train_dreambooth_flux.py:1041-1051 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1142-1152 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1077-1087 | examples/dreambooth/train_dreambooth_lora_flux.py:1084-1094 | examples/dreambooth/train_dreambooth_lora_flux2.py:1084-1094 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1082-1092 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1089-1099 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1078-1088 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1189-1199 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1180-1190 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1258-1268 | examples/dreambooth/train_dreambooth_lora_hidream.py:949-959 | examples/dreambooth/train_dreambooth_lora_krea2.py:1166-1176 | examples/dreambooth/train_dreambooth_lora_lumina2.py:872-882 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1106-1116 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1140-1150 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1231-1241 | examples/dreambooth/train_dreambooth_lora_sana.py:883-893 | examples/dreambooth/train_dreambooth_lora_sd3.py:1076-1086 | examples/dreambooth/train_dreambooth_lora_sdxl.py:999-1009 | examples/dreambooth/train_dreambooth_lora_z_image.py:1074-1084 | examples/dreambooth/train_dreambooth_sd3.py:1001-1011 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:600-610 | examples/research_projects/sana/train_sana_sprint_diffusers.py:953-963 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1064-1074 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:543-553 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:635-645 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1364\u0060 calls \u0060is_available\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1102\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"663d30e835424dbefe5eb947c251805631502cc73a9b13d0d0fbd0709ad22987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 29): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2199-2207 | examples/cogview4-control/train_control_cogview4.py:1068-1078 | examples/controlnet/train_controlnet_flux.py:1281-1289 | examples/controlnet/train_controlnet_sd3.py:1313-1321 | examples/dreambooth/train_dreambooth_flux.py:1627-1635 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1891-1899 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1724-1732 | examples/dreambooth/train_dreambooth_lora_flux.py:1766-1774 | examples/dreambooth/train_dreambooth_lora_flux2.py:1869-1877 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1772-1780 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1838-1846 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1718-1726 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1982-1990 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1863-1871 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2062-2070 | examples/dreambooth/train_dreambooth_lora_hidream.py:1590-1598 | examples/dreambooth/train_dreambooth_lora_krea2.py:1850-1858 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1381-1389 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1746-1754 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1801-1809 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1879-1887 | examples/dreambooth/train_dreambooth_lora_sana.py:1403-1411 | examples/dreambooth/train_dreambooth_lora_sd3.py:1784-1792 | examples/dreambooth/train_dreambooth_lora_z_image.py:1734-1742 | examples/dreambooth/train_dreambooth_sd3.py:1580-1588 | examples/flux-control/train_control_flux.py:1060-1068 | examples/flux-control/train_control_lora_flux.py:1206-1214 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1056-1064 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:978-986 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/cogview4-control/train_control_cogview4.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 478 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/flux-control/train_control_flux.py:1075\u0060 calls \u0060cat\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2214\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a03651153cd8b41cfbbfa4ee0808da7781028e052a72db2bdde63c651b4e4e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 27): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1958-1969 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:2056-2067 | examples/custom_diffusion/train_custom_diffusion.py:1288-1299 | examples/custom_diffusion/train_custom_diffusion.py:1348-1359 | examples/dreambooth/train_dreambooth.py:190-200 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:737-748 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:769-780 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:140-151 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:159-170 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:157-168 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:155-166 | examples/research_projects/lora/train_text_to_image_lora.py:898-909 | examples/research_projects/lora/train_text_to_image_lora.py:1009-1020 | examples/research_projects/lpl/train_sdxl_lpl.py:1522-1533 | examples/research_projects/lpl/train_sdxl_lpl.py:1587-1598 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:60-71 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:889-900 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:147-157 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:190-200 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:963-974 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1276-1287 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1349-1360 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1304-1315 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1359-1370 | examples/text_to_image/train_text_to_image_sdxl.py:1270-1281 | examples/text_to_image/train_text_to_image_sdxl.py:1335-1346 | examples/textual_inversion/textual_inversion.py:158-168 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 944 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ec98c5d3875e1317c2fb98b3a25dbdbbd908e415dde69288d68975bfb30347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 26): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:846-856 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:719-729 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:851-861 | examples/dreambooth/train_dreambooth.py:589-597 | examples/dreambooth/train_dreambooth_flux.py:658-666 | examples/dreambooth/train_dreambooth_lora.py:550-558 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:816-824 | examples/dreambooth/train_dreambooth_lora_flux.py:707-715 | examples/dreambooth/train_dreambooth_lora_flux2.py:758-766 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:763-771 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:863-871 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:752-760 | examples/dreambooth/train_dreambooth_lora_hidream.py:714-722 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:840-848 | examples/dreambooth/train_dreambooth_lora_krea2.py:825-833 | examples/dreambooth/train_dreambooth_lora_lumina2.py:633-641 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:717-725 | examples/dreambooth/train_dreambooth_lora_sana.py:648-656 | examples/dreambooth/train_dreambooth_lora_sd3.py:701-709 | examples/dreambooth/train_dreambooth_lora_sdxl.py:697-705 | examples/dreambooth/train_dreambooth_lora_z_image.py:747-755 | examples/dreambooth/train_dreambooth_sd3.py:633-641 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:232-240 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:609-617 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:549-557 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:701-709 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:846\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, \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py:762\u0060 calls \u0060ValueError\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:857\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"b299fcb3b95d4689b5b4f857e7343ab5fe8ef95b7ef69b86d32c10f4d70d919e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 21): examples/amused/train_amused.py:425-435 | examples/controlnet/train_controlnet.py:743-754 | examples/cosmos/train_cosmos_predict25_lora.py:465-476 | examples/custom_diffusion/train_custom_diffusion.py:672-683 | examples/dreambooth/train_dreambooth.py:816-827 | examples/dreambooth/train_dreambooth_lora.py:769-780 | examples/instruct_pix2pix/train_instruct_pix2pix.py:437-447 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:577-588 | examples/research_projects/controlnet/train_controlnet_webdataset.py:908-919 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:479-490 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:521-532 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:511-522 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:618-629 | examples/research_projects/gligen/train_gligen_text.py:285-296 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:495-505 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:373-383 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:792-803 | examples/text_to_image/train_text_to_image.py:539-550 | examples/text_to_image/train_text_to_image_lora.py:463-474 | examples/textual_inversion/textual_inversion.py:602-612 | examples/textual_inversion/textual_inversion_sdxl.py:601-611 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 21 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 21 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/amused/train_amused.py:438\u0060 calls \u0060makedirs\u0060 and \u0060examples/controlnet/train_controlnet.py:757\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":"examples/amused/train_amused.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fb383b222dd53c69b17c403979a938869411b2a860dcbefe15e6ee80a26461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 19): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1152-1162 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1407-1417 | examples/dreambooth/train_dreambooth.py:888-898 | examples/dreambooth/train_dreambooth_flux.py:1109-1119 | examples/dreambooth/train_dreambooth_lora.py:841-851 | examples/dreambooth/train_dreambooth_lora_hidream.py:1007-1017 | examples/dreambooth/train_dreambooth_lora_krea2.py:1224-1234 | examples/dreambooth/train_dreambooth_lora_lumina2.py:930-940 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1164-1174 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1198-1208 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1289-1299 | examples/dreambooth/train_dreambooth_lora_sana.py:943-953 | examples/dreambooth/train_dreambooth_lora_sd3.py:1142-1152 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1065-1075 | examples/dreambooth/train_dreambooth_sd3.py:1067-1077 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:845-855 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:931-941 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:859-869 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1125-1135 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7400014d31fe0b6ff7c0b1a002412d79af0f742c1142554816aa9376bf42e82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 17): examples/instruct_pix2pix/train_instruct_pix2pix.py:955-964 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:864-873 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:702-711 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:734-743 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:883-892 | examples/research_projects/lora/train_text_to_image_lora.py:862-871 | examples/research_projects/lpl/train_sdxl_lpl.py:1465-1474 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:889-898 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1073-1082 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1235-1244 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1251-1260 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:890-899 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:866-875 | examples/text_to_image/train_text_to_image.py:1080-1089 | examples/text_to_image/train_text_to_image_lora.py:966-976 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1242-1251 | examples/text_to_image/train_text_to_image_sdxl.py:1213-1222 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 951 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"4128cc562190ddd6b68d28a7624ba2caf6408a140f3d14b07785439a93c5ce96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 14): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:939-949 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:910-920 | examples/dreambooth/train_dreambooth_lora_flux2.py:881-891 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:884-894 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:886-896 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:880-890 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:986-996 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:999-1009 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:902-912 | examples/dreambooth/train_dreambooth_lora_krea2.py:948-958 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:840-850 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:874-884 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:927-937 | examples/dreambooth/train_dreambooth_lora_z_image.py:870-880 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:908\u0060 calls \u0060convert\u0060, \u0060exif_transpose\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:938\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa6609a4341a1eb05d348158cabfda6f0c17b4fbe1bcfd410488f599be56455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 13): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1407-1417 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1141-1151 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1396-1406 | examples/dreambooth/train_dreambooth_flux.py:1098-1108 | examples/dreambooth/train_dreambooth_lora_flux.py:1140-1150 | examples/dreambooth/train_dreambooth_lora_flux2.py:1140-1150 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1145-1155 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1231-1241 | examples/dreambooth/train_dreambooth_lora_sd3.py:1131-1141 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1054-1064 | examples/dreambooth/train_dreambooth_lora_z_image.py:1130-1140 | examples/dreambooth/train_dreambooth_sd3.py:1056-1066 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1114-1124 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1407\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfda1b3e344e228f290e659562be6e12dffad51043b2b0f1fc1cfa75c879eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 13): examples/instruct_pix2pix/train_instruct_pix2pix.py:927-937 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1133-1143 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:836-846 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:674-684 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:706-716 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:855-865 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1019-1029 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1045-1055 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:885-895 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:862-872 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:838-848 | examples/text_to_image/train_text_to_image.py:1052-1062 | examples/text_to_image/train_text_to_image_lora.py:938-948 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:926\u0060 calls \u0060step\u0060, \u0060parameters\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:673\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":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6022972d1e259898d50d2dcc137ae503d7a1e56f471ef7233e962f02b97628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 12): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1657-1667 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1378-1389 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1702-1713 | examples/dreambooth/train_dreambooth_lora.py:1009-1021 | examples/dreambooth/train_dreambooth_lora_flux.py:1341-1351 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1540-1550 | examples/dreambooth/train_dreambooth_lora_sd3.py:1366-1376 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1305-1316 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1026-1038 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1341-1352 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:754-765 | examples/text_to_image/train_text_to_image_lora_sdxl.py:780-791 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c16679c5b2f1c54d51382bf14e598f2233f2a963f4a1c7cf8ea4f504a5579c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 12): examples/consistency_distillation/train_lcm_distill_sd_wds.py:1014-1024 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1074-1084 | examples/instruct_pix2pix/train_instruct_pix2pix.py:564-574 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:619-629 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:571-581 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:655-665 | examples/research_projects/lpl/train_sdxl_lpl.py:895-905 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:552-562 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:679-689 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:792-802 | examples/text_to_image/train_text_to_image.py:677-687 | examples/text_to_image/train_text_to_image_sdxl.py:779-789 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf5ef19e0b0f40e16554549e033b449be2127a5e86feb12f03cb17d2a48a7b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 12): examples/controlnet/train_controlnet.py:1089-1095 | examples/controlnet/train_controlnet_sdxl.py:1277-1283 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:843-851 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1003-1011 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:981-991 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:984-994 | examples/research_projects/gligen/train_gligen_text.py:609-615 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:598-605 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:816-823 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:870-877 | examples/textual_inversion/textual_inversion.py:895-902 | examples/textual_inversion/textual_inversion_sdxl.py:964-971 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet.py:1099\u0060 calls \u0060parameters\u0060 and \u0060examples/research_projects/gligen/train_gligen_text.py:619\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fa5bf33764f14c893ba3fa8db226f63e687b49633d4b7bfd6e9df841cf9ac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 12): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:817-826 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:656-665 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:689-698 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:836-845 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:862-871 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:1062-1071 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1025-1035 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:866-876 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1202-1212 | examples/text_to_image/train_text_to_image.py:1029-1038 | examples/text_to_image/train_text_to_image_lora.py:920-929 | examples/text_to_image/train_text_to_image_sdxl.py:1164-1173 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1025\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"39759514a5140fe1702bc59eeff175c9ba9a56081e595b567833656504350725"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 11): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1544-1554 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1540-1550 | examples/dreambooth/train_dreambooth_flux.py:1195-1205 | examples/dreambooth/train_dreambooth_lora_flux.py:1232-1242 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1417-1427 | examples/dreambooth/train_dreambooth_lora_sd3.py:1225-1235 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1165-1175 | examples/dreambooth/train_dreambooth_sd3.py:1155-1165 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:695-705 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1085-1095 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:704-714 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1556\u0060 calls \u0060to\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1557\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"6794cfa75b401c670d5413468ee9736fa3acd7365b7cf1ba113c9825bf47c580"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 11): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1244-1257 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:398-412 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:412-422 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:542-557 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:639-652 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:600-613 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:707-720 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:497-510 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1219-1232 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:637-651 | examples/text_to_image/train_text_to_image_lora_sdxl.py:656-670 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:542\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, \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1238\u0060 calls \u0060to\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1264\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"272e4df8cda1823eb5f068bbc3695df1c743a288ba58c0b5fcc8c3ffdff7fbea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 11): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:524-538 | examples/dreambooth/train_dreambooth_flux.py:395-409 | examples/dreambooth/train_dreambooth_lora_flux.py:429-443 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:474-488 | examples/dreambooth/train_dreambooth_lora_sd3.py:414-429 | examples/dreambooth/train_dreambooth_lora_sdxl.py:430-444 | examples/dreambooth/train_dreambooth_sd3.py:381-395 | examples/profiling/profiling_pipelines.py:147-157 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:427-441 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:262-275 | examples/text_to_image/train_text_to_image_lora_sdxl.py:309-322 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1869 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:524\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:538\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:275\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc31aedc6bfe5a9ed88c5cd1cdf92a3f7a1495e2ed6f36cae4fa784d26bed65a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1791-1801 | examples/custom_diffusion/train_custom_diffusion.py:1164-1174 | examples/dreambooth/train_dreambooth.py:1293-1303 | examples/dreambooth/train_dreambooth_lora.py:1308-1318 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:595-605 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:736-746 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:763-773 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1103-1113 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1347-1357 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1335-1345 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 944 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:727\u0060 calls \u0060cat\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py:1155\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"3836d52e03e51391fd497986edb959496fa62f8f5d26e42da556ac3913703e94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:853-863 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:835-845 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:818-828 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:845-855 | examples/controlnet/train_controlnet_sdxl.py:725-735 | examples/research_projects/controlnet/train_controlnet_webdataset.py:862-872 | examples/research_projects/lpl/train_sdxl_lpl.py:622-632 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:511-521 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:690-700 | examples/text_to_image/train_text_to_image_sdxl.py:506-516 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:846\u0060 calls \u0060zip\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:864\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9a53f437401cceb3f68e37a8755dee23e01a71f9210e59611b6535f6939054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): examples/custom_diffusion/train_custom_diffusion.py:635-645 | examples/dreambooth/train_dreambooth.py:581-591 | examples/dreambooth/train_dreambooth_lora.py:542-552 | examples/research_projects/lpl/train_sdxl_lpl.py:596-606 | examples/research_projects/realfill/train_realfill.py:411-421 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:601-611 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:451-461 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:484-494 | examples/text_to_image/train_text_to_image_lora_sdxl.py:490-500 | examples/text_to_image/train_text_to_image_sdxl.py:480-490 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth.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 67 separate duplicated blocks between them, totalling at least 993 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:635\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, \u0060examples/dreambooth/train_dreambooth_lora.py:540\u0060 calls \u0060lower\u0060, \u0060dir\u0060, \u0060startswith\u0060 and \u0060examples/research_projects/realfill/train_realfill.py:410\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"f295137eef5ee8ee76e5f9885dd4b0f24c8ebf076a7c6913babd698ff8c8da93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1687-1697 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1737-1747 | examples/dreambooth/train_dreambooth_lora_flux.py:1371-1381 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1570-1580 | examples/dreambooth/train_dreambooth_lora_sd3.py:1400-1410 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1340-1350 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1376-1386 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:793-803 | examples/text_to_image/train_text_to_image_lora_sdxl.py:819-829 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd87e631e9ffa22bdf12d485612426392bf0d1957197ffc2cc00127374703cb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1164-1174 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1419-1429 | examples/dreambooth/train_dreambooth.py:900-910 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1077-1087 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:469-479 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:468-478 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:943-953 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:871-881 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1137-1147 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1ae19f7f01d23651895c3e4141fe82ba5a94b5e7e6b941441495c1be8768e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): examples/consistency_distillation/train_lcm_distill_sd_wds.py:233-243 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:251-261 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:147-157 | examples/research_projects/controlnet/train_controlnet_webdataset.py:331-342 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:78-88 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:113-124 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:152-162 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:92-102 | examples/text_to_image/train_text_to_image.py:153-163 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:233\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:231\u0060 calls \u0060from_pretrained\u0060 and \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:329\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa6d6b01a1363ad805b7460845ada40b5dbfcebae462635a8200aaea0bb3efe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:955-965 | examples/dreambooth/train_dreambooth_lora_flux2.py:897-907 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:902-912 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1002-1012 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:966-976 | examples/dreambooth/train_dreambooth_lora_krea2.py:964-974 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:856-866 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:890-900 | examples/dreambooth/train_dreambooth_lora_z_image.py:886-896 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:955\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a9bbe30cec83328715bcdfc0aade544899d0a41e96dd07f4b5ce938185f961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1991-2001 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1805-1815 | examples/dreambooth/train_dreambooth_lora_flux2.py:1975-1985 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1947-1957 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2089-2099 | examples/dreambooth/train_dreambooth_lora_krea2.py:1975-1985 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1854-1864 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1922-1932 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:2018-2028 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1991}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e9ac96c659b500930b10893ddad4a439bdf83671a0dca5cb072f31303db49f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 8): examples/dreambooth/train_dreambooth.py:1334-1343 | examples/dreambooth/train_dreambooth_flux.py:1709-1719 | examples/dreambooth/train_dreambooth_lora_flux.py:1848-1858 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2153-2163 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:759-768 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1126-1135 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:607-617 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1397-1406 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 78 separate duplicated blocks between them, totalling at least 1130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"0889d82e4df630dff15668babe12da8c8c20e0ffef8948d42bfba424e68d4d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1831-1841 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1665-1675 | examples/dreambooth/train_dreambooth_lora_flux2.py:1816-1826 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1773-1783 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1916-1926 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1685-1695 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1737-1747 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1830-1840 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cb836682ba1eeb116c53d22ead6b7064d72b3726c7b09e8a283b33d44dc73f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:706-716 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:738-748 | examples/research_projects/lora/train_text_to_image_lora.py:866-876 | examples/research_projects/lpl/train_sdxl_lpl.py:1469-1479 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:929-939 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1239-1249 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1255-1265 | examples/text_to_image/train_text_to_image_sdxl.py:1217-1227 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"832cdeeb651817dbb0aa8fe6c10ee45d90d9da8d0061a3b0ffe959596d5c480f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:716-726 | examples/research_projects/gligen/train_gligen_text.py:485-496 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:723-734 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:738-749 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:780-791 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:864-875 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:723-734 | examples/textual_inversion/textual_inversion.py:804-815 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 and \u0060examples/research_projects/gligen/train_gligen_text.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 297 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/gligen/train_gligen_text.py:484\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:722\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a672278a93e61fa8cd3482c074bc5ec536b715a32a21e4361b67a486f0c5da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): examples/community/fresco_v2v.py:2478-2488 | examples/community/stable_diffusion_controlnet_img2img.py:869-879 | examples/community/stable_diffusion_controlnet_inpaint.py:1022-1032 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:999-1009 | examples/community/stable_diffusion_controlnet_reference.py:805-815 | examples/research_projects/anytext/anytext.py:2326-2336 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:1305-1315 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 241 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":2478}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec61e252c23486e70775f55856fc491c932b225ebcf2b8b38e3b35b4af65e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): examples/controlnet/train_controlnet.py:926-936 | examples/controlnet/train_controlnet_sdxl.py:1121-1131 | examples/instruct_pix2pix/train_instruct_pix2pix.py:737-747 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:682-692 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:829-839 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:718-728 | examples/text_to_image/train_text_to_image.py:831-841 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:926\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c391b551099fa923b14613914b8b444db3cdb5b9447379b806d1ac7b729fee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201311 lines \u00D7 7): examples/controlnet/train_controlnet.py:1132-1142 | examples/controlnet/train_controlnet_sd3.py:1414-1424 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1429-1434 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:905-910 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1279-1289 | examples/textual_inversion/textual_inversion.py:962-967 | examples/textual_inversion/textual_inversion_sdxl.py:1042-1052 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 1830 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:1132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"647345c72eaa3e5a398bd7a85ed203572b2e56e137236d272a2cbc5338d77deb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): examples/custom_diffusion/train_custom_diffusion.py:1158-1168 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:589-599 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:730-740 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:757-767 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:565-575 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1097-1107 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:592-602 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 490 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:727\u0060 calls \u0060cat\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py:1155\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":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"935ed556322f795ada0a232619c49627478190a07bf2bda8e25d67540db678f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_sdxl.py:969-979 | examples/research_projects/lpl/train_sdxl_lpl.py:646-656 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:968-978 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:501-511 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:535-545 | examples/text_to_image/train_text_to_image_lora_sdxl.py:540-550 | examples/text_to_image/train_text_to_image_sdxl.py:530-540 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1058 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:969\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dad3aa6c1572be6cff84a20d1c8eb5cdd175b5fee94df0de444ac6c861d5bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:716-726 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:824-835 | examples/research_projects/gligen/train_gligen_text.py:485-496 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:738-749 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1199-1210 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:864-875 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:723-734 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 and \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 603 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:821\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:737\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"61447779338ddb32fbcac99d1521e6360e1124dac29ee8651626ac973d6550b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 6): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1833-1842 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2318-2327 | examples/dreambooth/train_dreambooth.py:1327-1336 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1853-1862 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1389-1399 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1894-1904 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1833\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1833}}}],"partialFingerprints":{"codehealthFindingId/v1":"315c30950db350e51b32497e4bc207a800bcf60528f685c0d5a73c18d4de1d44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1558-1568 | examples/dreambooth/train_dreambooth_lora.py:918-928 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1183-1193 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:937-947 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1237-1247 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:657-667 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1558\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28efbefc436c8a061d3dfb59cf3b3d93eea472647bbd1e4fa7de1acaadff924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 6): examples/community/lpw_stable_diffusion_xl.py:1160-1169 | examples/community/masked_stable_diffusion_xl_img2img.py:612-621 | examples/community/pipeline_controlnet_xl_kolors_img2img.py:829-839 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:905-915 | examples/community/pipeline_sdxl_style_aligned.py:983-992 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:690-699 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7348ad1d9b97cc333a7176ed8aaad36ac7e60bffd1a60faa1bd5e79aa41c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): examples/custom_diffusion/train_custom_diffusion.py:756-766 | examples/dreambooth/train_dreambooth.py:869-879 | examples/dreambooth/train_dreambooth_lora.py:822-832 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:827-837 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:912-922 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:840-850 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth.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 67 separate duplicated blocks between them, totalling at least 993 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:756\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":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5f51acd149feb2b69ed35ed2c51c44c9f2585b1004e030d13749765707f744"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): examples/dreambooth/train_dreambooth_flax.py:241-251 | examples/dreambooth/train_dreambooth_lora.py:599-609 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:270-280 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:317-327 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:316-326 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:598-608 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 458 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"593a1c5d41a84202fb7b11b046ac5b617f2856e2a64e8ae48a57eb071508707d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2004-2014 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1631-1640 | examples/custom_diffusion/train_custom_diffusion.py:1066-1075 | examples/dreambooth/train_dreambooth_lora.py:1167-1176 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1179-1188 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2004}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4384a89ed53aee18c1c4f3cea18e87060bf0b2094634afa4668fd0faff9298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1820-1830 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2305-2315 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1840-1850 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1376-1386 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1880-1890 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14fc36f61eadb842900b4e408910bb6deb300b0e2ed2ec28e7d3675371a7670"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 5): examples/community/lpw_stable_diffusion_xl.py:1903-1913 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1367-1377 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1044-1053 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1033-1042 | examples/community/stable_diffusion_xl_controlnet_reference.py:1319-1329 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 620 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1903}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1559ace5e911b1189b096a6dd0af16b39105815e9cf96d83d221a244b1b763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1037-1047 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:880-889 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1052-1062 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:988-997 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1047-1057 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eed50bd2be6a0bffce3ac7dab8e590d0ab882bd97bab3890e51c8dd9fc66ab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): examples/controlnet/train_controlnet_flax.py:672-682 | examples/dreambooth/train_dreambooth_flax.py:327-337 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:368-378 | examples/text_to_image/train_text_to_image_flax.py:270-280 | examples/textual_inversion/textual_inversion_flax.py:381-391 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet_flax.py:667\u0060 calls \u0060ValueError\u0060 and \u0060examples/dreambooth/train_dreambooth_flax.py:325\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flax.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"010bfdadd70b62b46c7e00eb17e032a35f5a717970d8e90086a313852262d4bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1554-1564 | examples/dreambooth/train_dreambooth_lora_flux.py:1242-1252 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1427-1437 | examples/dreambooth/train_dreambooth_lora_sd3.py:1238-1246 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1554\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db4eca881195ff7e4e9448e7c8cd377219e23b2f2fe618144c030f568697a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:661-671 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:770-780 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:413-423 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:457-467 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:661\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7dc2ab9c53dec30522c1550af81ad4a00f4a6f79762fdef99b42428378c7ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1187-1199 | examples/controlnet/train_controlnet.py:792-802 | examples/custom_diffusion/train_custom_diffusion.py:820-830 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:525-535 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/controlnet/train_controlnet.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 599 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1187\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dd0c08e53f965c3ffaf37d8f8949572df164bc3e339184a8f2e0e97f8ce0fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 4): examples/community/stable_diffusion_controlnet_reference.py:550-597 | examples/community/stable_diffusion_reference.py:1207-1254 | examples/community/stable_diffusion_xl_controlnet_reference.py:957-1004 | examples/community/stable_diffusion_xl_reference.py:813-860 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_reference.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_reference.py:550\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":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75afc067bc276c0042771908713ad366125df6cb83768bab6907aee7e4de837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/controlnet/train_controlnet.py:846-856 | examples/controlnet/train_controlnet_sdxl.py:965-975 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1042-1052 | examples/research_projects/gligen/train_gligen_text.py:363-373 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet_sdxl.py:976\u0060 calls \u0060requires_grad_\u0060 and \u0060examples/controlnet/train_controlnet.py:857\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99fe3d2158d2591cb536c4d5244a03dd552eb5c0f19146ab2f7ac63538f6bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/controlnet/train_controlnet_flax.py:910-920 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:527-537 | examples/text_to_image/train_text_to_image_flax.py:505-515 | examples/textual_inversion/textual_inversion_flax.py:546-556 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_flax.py:910\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flax.py"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff05d359ff9b513a171c51bebb5582236125ce31da4762bdad899c9c057a197"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_sdxl.py:1559-1569 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1589-1599 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:993-1003 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1025-1035 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1559\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b4fc4d5405888ff950e9a19cc4cff32aef126cfba84bd0925127c03eef9910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:505-515 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:509-519 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:509-519 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:507-517 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49e0d54d7e9acefc232d0ad65bf4b68f1441cc75564e3762e1981e0781a6435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:612-622 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:672-682 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:779-789 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:571-581 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 111 separate duplicated blocks between them, totalling at least 1755 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:612\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"606506efabb94ea46a33e5bb4b18f9c0b21691dcdf63fe75b15e57d9ec612fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 4): examples/research_projects/ip_adapter/tutorial_train_faceid.py:334-343 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:332-340 | examples/research_projects/ip_adapter/tutorial_train_plus.py:355-363 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:402-412 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py:334\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:331\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py:332\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":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"861d5e5aee3e01feabd4d8cc816d2e655244187d7fee364813d0c3901a4665ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): scripts/convert_original_audioldm2_to_diffusers.py:502-512 | scripts/convert_original_audioldm_to_diffusers.py:486-496 | scripts/convert_original_musicldm_to_diffusers.py:482-492 | scripts/convert_zero123_to_diffusers.py:519-529 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"7233a5d3d67dbf1538b89415de3a7f1cbc0e1314dd7b77145632b3de546f9e4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:104-114 | examples/dreambooth/train_dreambooth_lora_sdxl.py:89-99 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:89-99 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff38369cccd0b2814a0a678280964138c2cca93c6f3b3e96531e7607d84f4158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): examples/cogvideo/train_cogvideox_image_to_video_lora.py:379-389 | examples/cogvideo/train_cogvideox_lora.py:364-374 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:416-425 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:379\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d224c80443bdaa0b52c513a7854fef70b59e7f115c78c63accb34491cfb416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1125-1136 | examples/cogvideo/train_cogvideox_lora.py:1146-1157 | examples/text_to_image/train_text_to_image_lora.py:733-743 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df3e96f86fbc75d5343a8d37add1e9836101180299027bea13ad9d0872c267a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): examples/community/pipeline_animatediff_ipex.py:992-1002 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1409-1419 | examples/community/stable_diffusion_ipex.py:300-309 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_ipex.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_ipex.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_animatediff_ipex.py:992\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_animatediff_ipex.py"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2440df2810d7537eb3fceee6876b51fedb99c4ba2ea1847cbb054f395f7b868"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): examples/community/pipeline_stg_ltx.py:720-728 | examples/community/pipeline_stg_ltx_image2video.py:782-790 | examples/community/pipeline_stg_mochi.py:734-744 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"589799f5d2ec8098c6a5b1418d5b5e8a5a069e6d4210e96e6febce6b64659d32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_qwen_image.py:1783-1793 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1851-1861 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1947-1957 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 as WHOLE FILES: this scan already matched 215 separate duplicated blocks between them, totalling at least 3669 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py:1783\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwen_image.py"},"region":{"startLine":1783}}}],"partialFingerprints":{"codehealthFindingId/v1":"047960580a173e83762254c3ded85a139a895be1df641eb7ad1b3f2dbffb254d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:667-677 | examples/research_projects/lora/train_text_to_image_lora.py:847-857 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:1073-1083 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 75 separate duplicated blocks between them, totalling at least 1104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba572c8feece04681aa174dad85a460dab8e77b4e37c2dc0c9b7f77df2dc7dc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:699-709 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:826-836 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:808-818 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7793916cc4fe682bd44798a2301222147c39d4f85c160b8eabcb4b60cc3d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:709-719 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:675-685 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:782-792 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3bfff4f3d16daa1f6d153745e0be7b718fe74269078ad6ff90dc18d4d381fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/research_projects/pixart/train_pixart_controlnet_hf.py:1080-1090 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1207-1217 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1223-1233 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 56 separate duplicated blocks between them, totalling at least 868 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1222\u0060 calls \u0060step\u0060, \u0060parameters\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:1079\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":"examples/research_projects/pixart/train_pixart_controlnet_hf.py"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8d2868d959a55c21b5e023a6f82323a5cd869e5185dcdfc508f69dcc334bf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 3): scripts/convert_mochi_to_diffusers.py:169-175 | scripts/convert_mochi_to_diffusers.py:270-276 | scripts/convert_mochi_to_diffusers.py:351-361 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_mochi_to_diffusers.py:351\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/convert_mochi_to_diffusers.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"99490387eab3ebc1ebea0473fea7db144980ed3f73012773fc5bae37d70270de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:143-153 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:173-184 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:170\u0060 calls \u0060load_textual_inversion\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:140\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f17242cc86c22a3e10c1a8d3fff2fbd31038f907c9806eecc60b275d067faab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1596-1606 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1953-1963 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f41774153dfa08ad14ccbb303c02f16ffada086b5f8a097388df5350cbb28a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:458-468 | examples/cogvideo/train_cogvideox_lora.py:444-454 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7d27914d90c94a35de5afbd6b61e4d2cee9b0f505b883b7167a04d1ccf9067"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1205-1215 | examples/cogvideo/train_cogvideox_lora.py:1227-1237 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1205\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a069963fcc164d5afe68d63b18e5ec39c7a016168899cb7ffd2025a8519d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): examples/community/composable_stable_diffusion.py:333-343 | examples/community/sd_text2img_k_diffusion.py:263-272 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/sd_text2img_k_diffusion.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/composable_stable_diffusion.py:333\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30ce5a939cfdeab56693658a3c211615ac32c40e879fe8069241070ce94e511"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/community/hd_painter.py:914-924 | examples/community/pipeline_stable_diffusion_boxdiff.py:87-97 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/hd_painter.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82898fac75eb057c763a70af976772cf461e9abbdb4f73d53023355db84fe5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/community/lpw_stable_diffusion_xl.py:332-342 | examples/community/lpw_stable_diffusion_xl.py:345-355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28cad65b14c40bfb220a67fc5664835c1fa0038b8252840e15700fa8825ba7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/community/lpw_stable_diffusion_xl.py:397-407 | examples/community/lpw_stable_diffusion_xl.py:423-433 \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":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7a9b833dc9a32c1d2dc2dd6d3a3022ec56368a1a5f3bf933d0fa64ef402f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): examples/community/pipeline_hunyuandit_differential_img2img.py:1053-1061 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1319-1329 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e755a24bec7dc1a0caf8977e629122c1c2ed3e1775bbc8d4e5e827f0bc9159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_ipex.py:1023-1033 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1322-1332 \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":"examples/community/pipeline_stable_diffusion_xl_ipex.py"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0144b3210aede662ff62af7173e367a9f525c820b0c3c4233be3d3358b2c02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/community/regional_prompting_stable_diffusion.py:395-405 | examples/community/regional_prompting_stable_diffusion.py:407-417 \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":"examples/community/regional_prompting_stable_diffusion.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"760ee68ca177bc40289480045d9bfdd929a81241de8030884d208099c3cf311c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/stable_diffusion_tensorrt_img2img.py:820-831 | examples/community/stable_diffusion_tensorrt_txt2img.py:736-747 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_txt2img.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 699 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9451927326e4bbeecf1ba9904b5187bf48b060839f84cbf5fa77154635fe402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/dreambooth/train_dreambooth_flux.py:1215-1225 | examples/dreambooth/train_dreambooth_sd3.py:1178-1188 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 168 separate duplicated blocks between them, totalling at least 2750 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_sd3.py:1176\u0060 calls \u0060gradient_checkpointing_enable\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py:1214\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":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c6d4293cd386ea0c2b609f722a6a5676d355898a3722ad7f359ed430d0a4e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1605-1615 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1670-1679 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3548 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1605\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1605}}}],"partialFingerprints":{"codehealthFindingId/v1":"660d9f9c526fe2583431393b4ad4bbbe7d159fcd11e1cc261c2dbce146529dae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1598-1608 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1547-1557 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1598}}}],"partialFingerprints":{"codehealthFindingId/v1":"daca762dea65a275e014ae5749f3ec5eeba7541abc92bb081c052df73014f366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:685-694 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:787-797 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"064f7a20d93f1287199270589a274fcfe751a9ee0c304dd6b07802abc6e1396d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1042-1051 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:908-918 \u2014 before extracting anything, compare \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 92 separate duplicated blocks between them, totalling at least 1539 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a14f056992d253e1014ef8163d0cab94e5e1a6920103689f64d96bf4ea921d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/research_projects/lora/train_text_to_image_lora.py:782-792 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1060-1070 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 677 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e21a440b186434e674d735c7e34292df027f95c38fa7159dc3111debdd18d0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/research_projects/multi_token_textual_inversion/textual_inversion.py:913-923 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:928-938 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 and \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1488 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion.py"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"341539783542ff981599bad44c0035058b06b4a405cdd989527c6a902d1fa372"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:566-576 | examples/unconditional_image_generation/train_unconditional.py:599-609 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 and \u0060examples/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 1025 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"728c231e32749b63037237fd27aa350db7e1f5a63b550774a7155676855023e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:74-84 | examples/text_to_image/train_text_to_image.py:75-85 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 and \u0060examples/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2447 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b74e1390a51983ea0010db6ac39e2e001041000f4068177982cb9154beca38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:952-962 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:1022-1032 \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":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"3393cb32b0411bdc647ac82b17e8c6b9cb4e2b1dfb50eb707410a2206d631549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1260-1270 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1290-1298 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 136 separate duplicated blocks between them, totalling at least 2190 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1260\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b007e7253245d8022985828fc8ed5bafbbf2c0c5de4e2ae4bc5343c82e20d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/textual_inversion/textual_inversion.py:132-142 | examples/textual_inversion/textual_inversion_sdxl.py:141-151 \u2014 before extracting anything, compare \u0060examples/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 86 separate duplicated blocks between them, totalling at least 1368 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/textual_inversion/textual_inversion.py:132\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, \u0060examples/textual_inversion/textual_inversion_sdxl.py:139\u0060 calls \u0060unwrap_model\u0060 and \u0060examples/textual_inversion/textual_inversion.py:131\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":"examples/textual_inversion/textual_inversion.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fae50765aa71729fc2afece0248a9a13caf193c6f8e281b72493b0cc2c3022"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): scripts/convert_cogview4_to_diffusers.py:228-238 | scripts/convert_cogview4_to_diffusers_megatron.py:344-354 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_cogview4_to_diffusers.py:228\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/convert_cogview4_to_diffusers.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b108a9b1ef074867816f1a02d53c6655853adaab2216e78db774b600195f7f06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): scripts/convert_hunyuan_video_to_diffusers.py:228-238 | scripts/convert_skyreelsv2_to_diffusers.py:343-353 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_hunyuan_video_to_diffusers.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d75e6d73d446160f506afc0c911c8a10115bb51352c6d44da25f89f0f14e89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): scripts/convert_hunyuandit_controlnet_to_diffusers.py:198-208 | scripts/convert_hunyuandit_to_diffusers.py:200-210 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuandit_controlnet_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuandit_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_hunyuandit_controlnet_to_diffusers.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ed603e15bc553610cdfc9a4732a1cb2c403a2c6e1d3072b60a007ba20a67de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): scripts/convert_longcat_audio_dit_to_diffusers.py:39-49 | scripts/convert_longcat_audio_dit_to_diffusers.py:53-62 \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":"scripts/convert_longcat_audio_dit_to_diffusers.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ad5b9432d4eeaa7d85ee8b379e531d4f7fb3cc03abc4049902782a310c4130"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): scripts/convert_mochi_to_diffusers.py:187-197 | scripts/convert_mochi_to_diffusers.py:288-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 \u0060scripts/convert_mochi_to_diffusers.py:187\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/convert_mochi_to_diffusers.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8dda98852e9806422a461d39a00591d4f33a0f12744d6155f0de0111f9f04f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 91): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:732-741 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:610-619 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:719-728 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:396-405 | examples/cogvideo/train_cogvideox_lora.py:381-390 | examples/cogview4-control/train_control_cogview4.py:377-386 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:819-831 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:641-653 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:799-811 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:784-796 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:809-821 | examples/controlnet/train_controlnet.py:403-412 | examples/controlnet/train_controlnet_flax.py:324-333 | examples/controlnet/train_controlnet_flux.py:427-436 | examples/controlnet/train_controlnet_sd3.py:474-483 | examples/controlnet/train_controlnet_sdxl.py:445-454 | examples/custom_diffusion/train_custom_diffusion.py:543-552 | examples/dreambooth/train_dreambooth.py:435-444 | examples/dreambooth/train_dreambooth_flax.py:173-182 | examples/dreambooth/train_dreambooth_flux.py:580-589 | examples/dreambooth/train_dreambooth_lora.py:436-445 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:724-733 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:721-730 | examples/dreambooth/train_dreambooth_lora_flux.py:623-632 | examples/dreambooth/train_dreambooth_lora_flux2.py:661-670 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:639-648 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:671-680 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:640-649 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:771-780 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:758-767 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:668-677 | examples/dreambooth/train_dreambooth_lora_hidream.py:636-645 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:748-757 | examples/dreambooth/train_dreambooth_lora_krea2.py:744-753 | examples/dreambooth/train_dreambooth_lora_lumina2.py:546-555 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:639-648 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:660-669 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:676-685 | examples/dreambooth/train_dreambooth_lora_sana.py:568-577 | examples/dreambooth/train_dreambooth_lora_sd3.py:618-627 | examples/dreambooth/train_dreambooth_lora_sdxl.py:598-607 | examples/dreambooth/train_dreambooth_lora_z_image.py:655-664 | examples/dreambooth/train_dreambooth_sd3.py:565-574 | examples/flux-control/train_control_flux.py:369-378 | examples/flux-control/train_control_lora_flux.py:401-410 | examples/instruct_pix2pix/train_instruct_pix2pix.py:334-343 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:391-400 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:349-358 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:246-255 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:253-262 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:353-362 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:306-315 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:197-206 | examples/research_projects/controlnet/train_controlnet_webdataset.py:642-651 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:359-368 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:378-387 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:376-385 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:360-369 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:221-230 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:217-226 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:404-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:385-394 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:178-187 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:168-177 | examples/research_projects/lora/train_text_to_image_lora.py:307-316 | examples/research_projects/lpl/train_sdxl_lpl.py:488-497 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:362-371 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:293-302 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:311-320 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:305-314 | examples/research_projects/realfill/train_realfill.py:319-328 | examples/research_projects/sana/train_sana_sprint_diffusers.py:616-625 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:435-444 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:427-436 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:595-604 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:393-402 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:297-306 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:374-383 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:418-427 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:425-434 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:355-364 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:353-362 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:420-429 | examples/text_to_image/train_text_to_image.py:415-424 | examples/text_to_image/train_text_to_image_flax.py:195-204 | examples/text_to_image/train_text_to_image_lora.py:348-357 | examples/text_to_image/train_text_to_image_lora_sdxl.py:421-430 | examples/text_to_image/train_text_to_image_sdxl.py:422-431 | examples/textual_inversion/textual_inversion.py:332-341 | examples/textual_inversion/textual_inversion_sdxl.py:333-342 | examples/vqgan/train_vqgan.py:451-460 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:732\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:395\u0060 calls \u0060add_argument\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:819\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5648a4d3b9a0a5c59f1c793e2d4c723b5a27d1c63b3606722ce9dda1c59914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 88): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:732-741 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:610-619 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:719-728 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:396-405 | examples/cogvideo/train_cogvideox_lora.py:381-390 | examples/cogview4-control/train_control_cogview4.py:377-386 | examples/controlnet/train_controlnet.py:403-412 | examples/controlnet/train_controlnet_flax.py:324-333 | examples/controlnet/train_controlnet_flux.py:427-436 | examples/controlnet/train_controlnet_sd3.py:474-483 | examples/controlnet/train_controlnet_sdxl.py:445-454 | examples/custom_diffusion/train_custom_diffusion.py:543-552 | examples/dreambooth/train_dreambooth.py:435-444 | examples/dreambooth/train_dreambooth_flax.py:173-182 | examples/dreambooth/train_dreambooth_flux.py:580-589 | examples/dreambooth/train_dreambooth_lora.py:436-445 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:724-733 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:721-730 | examples/dreambooth/train_dreambooth_lora_flux.py:623-632 | examples/dreambooth/train_dreambooth_lora_flux2.py:661-670 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:639-648 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:671-680 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:640-649 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:771-780 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:758-767 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:668-677 | examples/dreambooth/train_dreambooth_lora_hidream.py:636-645 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:748-757 | examples/dreambooth/train_dreambooth_lora_krea2.py:744-753 | examples/dreambooth/train_dreambooth_lora_lumina2.py:546-555 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:639-648 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:660-669 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:676-685 | examples/dreambooth/train_dreambooth_lora_sana.py:568-577 | examples/dreambooth/train_dreambooth_lora_sd3.py:618-627 | examples/dreambooth/train_dreambooth_lora_sdxl.py:598-607 | examples/dreambooth/train_dreambooth_lora_z_image.py:655-664 | examples/dreambooth/train_dreambooth_sd3.py:565-574 | examples/flux-control/train_control_flux.py:369-378 | examples/flux-control/train_control_lora_flux.py:401-410 | examples/instruct_pix2pix/train_instruct_pix2pix.py:334-343 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:391-400 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:349-358 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:246-255 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:253-262 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:353-362 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:306-315 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:197-206 | examples/research_projects/controlnet/train_controlnet_webdataset.py:642-651 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:359-368 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:378-387 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:376-385 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:360-369 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:221-230 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:217-226 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:404-413 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:385-394 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:178-187 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:168-177 | examples/research_projects/lora/train_text_to_image_lora.py:307-316 | examples/research_projects/lpl/train_sdxl_lpl.py:488-497 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:362-371 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:293-302 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:311-320 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:305-314 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:184-192 | examples/research_projects/realfill/train_realfill.py:319-328 | examples/research_projects/sana/train_sana_sprint_diffusers.py:616-625 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:435-444 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:427-436 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:595-604 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:393-402 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:297-306 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:374-383 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:418-427 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:425-434 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:355-364 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:353-362 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:420-429 | examples/text_to_image/train_text_to_image.py:415-424 | examples/text_to_image/train_text_to_image_flax.py:195-204 | examples/text_to_image/train_text_to_image_lora.py:348-357 | examples/text_to_image/train_text_to_image_lora_sdxl.py:421-430 | examples/text_to_image/train_text_to_image_sdxl.py:422-431 | examples/textual_inversion/textual_inversion.py:332-341 | examples/textual_inversion/textual_inversion_sdxl.py:333-342 | examples/unconditional_image_generation/train_unconditional.py:202-210 | examples/vqgan/train_vqgan.py:451-460 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:732\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:175\u0060 calls \u0060add_argument\u0060 and \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:395\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"174b880e5d93bf35364234d0cb97e729739effd37d6d2eb209add03a8fa90eea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 83): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2329-2338 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1871-1880 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2355-2364 | examples/amused/train_amused.py:956-965 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1471-1480 | examples/cogvideo/train_cogvideox_lora.py:1493-1502 | examples/cogview4-control/train_control_cogview4.py:1166-1175 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1420-1429 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1412-1421 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1483-1492 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1384-1393 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1487-1496 | examples/controlnet/train_controlnet.py:1119-1128 | examples/controlnet/train_controlnet_flux.py:1366-1375 | examples/controlnet/train_controlnet_sd3.py:1401-1410 | examples/controlnet/train_controlnet_sdxl.py:1308-1317 | examples/custom_diffusion/train_custom_diffusion.py:1232-1241 | examples/dreambooth/train_dreambooth.py:1360-1369 | examples/dreambooth/train_dreambooth_flux.py:1736-1745 | examples/dreambooth/train_dreambooth_lora.py:1352-1361 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1977-1986 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1791-1800 | examples/dreambooth/train_dreambooth_lora_flux.py:1875-1884 | examples/dreambooth/train_dreambooth_lora_flux2.py:1961-1970 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1854-1863 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1933-1942 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1804-1813 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2075-2084 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1945-1954 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2180-2189 | examples/dreambooth/train_dreambooth_lora_hidream.py:1667-1676 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:2052-2061 | examples/dreambooth/train_dreambooth_lora_krea2.py:1961-1970 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1467-1476 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1840-1849 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1908-1917 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:2004-2013 | examples/dreambooth/train_dreambooth_lora_sana.py:1482-1491 | examples/dreambooth/train_dreambooth_lora_sd3.py:1878-1887 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1887-1896 | examples/dreambooth/train_dreambooth_lora_z_image.py:1819-1828 | examples/dreambooth/train_dreambooth_sd3.py:1691-1700 | examples/flux-control/train_control_flux.py:1173-1182 | examples/flux-control/train_control_lora_flux.py:1319-1328 | examples/instruct_pix2pix/train_instruct_pix2pix.py:941-950 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1147-1156 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:850-859 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:688-697 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:720-729 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:869-878 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:986-995 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1362-1371 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1416-1425 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:913-922 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1067-1076 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1025-1034 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1028-1037 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1145-1154 | examples/research_projects/gligen/train_gligen_text.py:638-647 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1033-1042 | examples/research_projects/lpl/train_sdxl_lpl.py:1451-1460 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:1094-1103 | examples/research_projects/realfill/train_realfill.py:919-928 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1660-1669 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1423-1432 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1389-1398 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1929-1938 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1059-1068 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:899-908 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1221-1230 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1237-1246 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1045-1054 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:876-885 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:852-861 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1266-1275 | examples/text_to_image/train_text_to_image.py:1066-1075 | examples/text_to_image/train_text_to_image_lora.py:952-961 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1228-1237 | examples/text_to_image/train_text_to_image_sdxl.py:1199-1208 | examples/textual_inversion/textual_inversion.py:949-958 | examples/textual_inversion/textual_inversion_sdxl.py:1029-1038 | examples/unconditional_image_generation/train_unconditional.py:650-659 | examples/vqgan/train_vqgan.py:1019-1028 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"512bae0fd931e4aafa4a97cb952ce994d149366db070fbd6562a34ec325c80a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 37): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1657-1666 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1378-1387 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1702-1711 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1143-1152 | examples/cogvideo/train_cogvideox_lora.py:1164-1173 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:907-916 | examples/dreambooth/train_dreambooth_lora.py:1009-1019 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1433-1442 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1322-1331 | examples/dreambooth/train_dreambooth_lora_flux.py:1341-1350 | examples/dreambooth/train_dreambooth_lora_flux2.py:1386-1395 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1336-1345 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1389-1398 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1330-1339 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1478-1487 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1428-1437 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1540-1549 | examples/dreambooth/train_dreambooth_lora_hidream.py:1224-1233 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1527-1536 | examples/dreambooth/train_dreambooth_lora_krea2.py:1441-1450 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1076-1085 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1348-1357 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1390-1399 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1481-1490 | examples/dreambooth/train_dreambooth_lora_sana.py:1099-1108 | examples/dreambooth/train_dreambooth_lora_sd3.py:1366-1375 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1305-1314 | examples/dreambooth/train_dreambooth_lora_z_image.py:1368-1377 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:688-697 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:795-804 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:789-798 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1026-1036 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1341-1350 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:754-763 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:770-779 | examples/text_to_image/train_text_to_image_lora.py:749-760 | examples/text_to_image/train_text_to_image_lora_sdxl.py:780-789 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1669\u0060 calls \u0060_set_state_dict_into_text_encoder\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1447\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"677756c8f039af417fe51b2baa184ebec3ac9a6c2f210c7b33099ff2c4192755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 27): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2316-2325 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1858-1867 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2342-2351 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1407-1416 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1399-1408 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1470-1479 | examples/controlnet/train_controlnet.py:1106-1115 | examples/controlnet/train_controlnet_sd3.py:1388-1397 | examples/dreambooth/train_dreambooth.py:1347-1356 | examples/dreambooth/train_dreambooth_flux.py:1723-1732 | examples/dreambooth/train_dreambooth_lora.py:1339-1348 | examples/dreambooth/train_dreambooth_lora_flux.py:1862-1871 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1454-1463 | examples/dreambooth/train_dreambooth_lora_sana.py:1469-1478 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1874-1883 | examples/dreambooth/train_dreambooth_sd3.py:1678-1687 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1403-1412 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:900-909 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1054-1063 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1012-1021 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1015-1024 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1647-1656 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1410-1419 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1376-1385 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1916-1925 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1032-1041 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1253-1262 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1854\u0060 calls \u0060enumerate\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2312\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0acdd6127f936410c3effc9348d2af74a59ed3140d9462b8171340c9ea94dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 26): examples/community/adaptive_mask_inpainting.py:588-597 | examples/community/fresco_v2v.py:1533-1542 | examples/community/gluegen.py:369-378 | examples/community/instaflow_one_step.py:321-330 | examples/community/ip_adapter_face_id.py:600-609 | examples/community/latent_consistency_interpolate.py:397-406 | examples/community/llm_grounded_diffusion.py:1350-1359 | examples/community/pipeline_animatediff_controlnet.py:314-323 | examples/community/pipeline_animatediff_img2video.py:431-440 | examples/community/pipeline_animatediff_ipex.py:285-294 | examples/community/pipeline_fabric.py:285-294 | examples/community/pipeline_hunyuandit_differential_img2img.py:456-465 | examples/community/pipeline_prompt2prompt.py:368-377 | examples/community/pipeline_stable_diffusion_boxdiff.py:703-712 | examples/community/pipeline_stable_diffusion_pag.py:669-678 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:309-318 | examples/community/pipeline_zero1to3.py:268-277 | examples/community/regional_prompting_stable_diffusion.py:647-656 | examples/community/stable_diffusion_controlnet_img2img.py:260-269 | examples/community/stable_diffusion_controlnet_inpaint.py:359-368 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:344-353 | examples/community/stable_diffusion_ipex.py:391-400 | examples/community/stable_diffusion_reference.py:528-537 | examples/community/stable_diffusion_repaint.py:364-373 | examples/research_projects/anytext/anytext.py:1476-1485 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:438-447 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 26 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 26 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18b43a37c2d94eee3a2bef7f9b5f1d9af1362baac80bc6609615f5a1392a883"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 23): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1074-1083 | examples/dreambooth/train_dreambooth_flux.py:724-733 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:894-903 | examples/dreambooth/train_dreambooth_lora_flux.py:773-782 | examples/dreambooth/train_dreambooth_lora_flux2.py:836-845 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:799-808 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:841-850 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:795-804 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:941-950 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:913-922 | examples/dreambooth/train_dreambooth_lora_hidream.py:780-789 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:909-918 | examples/dreambooth/train_dreambooth_lora_krea2.py:903-912 | examples/dreambooth/train_dreambooth_lora_lumina2.py:699-708 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:795-804 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:828-837 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:863-872 | examples/dreambooth/train_dreambooth_lora_sana.py:714-723 | examples/dreambooth/train_dreambooth_lora_sd3.py:767-776 | examples/dreambooth/train_dreambooth_lora_sdxl.py:763-772 | examples/dreambooth/train_dreambooth_lora_z_image.py:825-834 | examples/dreambooth/train_dreambooth_sd3.py:699-708 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:767-776 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1869 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3cac26b1667bfb45a3bce6839363a58d9faa29f13e19a1ea62cf01c5fbf9e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 23): examples/controlnet/train_controlnet_sd3.py:1202-1211 | examples/dreambooth/train_dreambooth_lora_hidream.py:1464-1473 | examples/dreambooth/train_dreambooth_lora_krea2.py:1698-1707 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1259-1268 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1598-1607 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1650-1659 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1743-1752 | examples/dreambooth/train_dreambooth_lora_sana.py:1281-1290 | examples/dreambooth/train_dreambooth_sd3.py:1432-1441 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:777-786 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1215-1224 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:725-734 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:861-870 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:843-852 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:849-858 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:934-943 | examples/research_projects/gligen/train_gligen_text.py:455-464 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:976-985 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1163-1172 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1164-1173 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1578-1587 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:867-876 | examples/textual_inversion/textual_inversion.py:776-785 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 918 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:1202\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":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"244ec51ea073e437146358e094baaca3f91df82e16b7fb1b42ab7931bfb44f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 21): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1342-1354 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1335-1344 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:965-977 | examples/cogvideo/train_cogvideox_lora.py:987-999 | examples/controlnet/train_controlnet_sd3.py:933-945 | examples/dreambooth/train_dreambooth_flux.py:1032-1044 | examples/dreambooth/train_dreambooth_lora_flux.py:1075-1087 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1249-1261 | examples/dreambooth/train_dreambooth_lora_hidream.py:940-952 | examples/dreambooth/train_dreambooth_lora_krea2.py:1157-1169 | examples/dreambooth/train_dreambooth_lora_lumina2.py:863-875 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1097-1109 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1131-1143 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1222-1234 | examples/dreambooth/train_dreambooth_lora_sana.py:874-886 | examples/dreambooth/train_dreambooth_lora_sd3.py:1067-1079 | examples/dreambooth/train_dreambooth_lora_sdxl.py:993-1002 | examples/dreambooth/train_dreambooth_sd3.py:992-1004 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:591-603 | examples/research_projects/sana/train_sana_sprint_diffusers.py:944-956 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:626-638 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1342\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, \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:978\u0060 calls \u0060InitProcessGroupKwargs\u0060, \u0060timedelta\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1355\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf81b0b29359d163f881beeae6fca47646e2a94c64d03154ed178e17abb972d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 17): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1474-1483 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1363-1372 | examples/dreambooth/train_dreambooth_lora_flux2.py:1427-1436 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1377-1386 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1430-1439 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1371-1380 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1519-1528 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1469-1478 | examples/dreambooth/train_dreambooth_lora_hidream.py:1265-1274 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1568-1577 | examples/dreambooth/train_dreambooth_lora_krea2.py:1482-1491 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1117-1126 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1389-1398 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1431-1440 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1522-1531 | examples/dreambooth/train_dreambooth_lora_sana.py:1140-1149 | examples/dreambooth/train_dreambooth_lora_z_image.py:1409-1418 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a6113d1035c748cf0e279d9d16e87003c5eb7c0347d0ca15a3510b95810bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 16): examples/controlnet/train_controlnet.py:776-785 | examples/controlnet/train_controlnet_flax.py:700-709 | examples/dreambooth/train_dreambooth.py:909-918 | examples/dreambooth/train_dreambooth_flax.py:384-393 | examples/dreambooth/train_dreambooth_lora.py:861-870 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:405-414 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:478-487 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:477-486 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:391-400 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:454-463 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:599-608 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:613-622 | examples/research_projects/realfill/train_realfill.py:577-586 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:952-961 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:880-889 | examples/textual_inversion/textual_inversion.py:638-647 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9d4bbb4adb34fcc9fbccf9186a1266863bd264ed5ef04e928ba50902fb7121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 16): examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:974-983 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:552-564 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:568-580 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:631-640 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:654-667 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:515-524 | examples/research_projects/lpl/train_sdxl_lpl.py:1120-1129 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1013-1022 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:726-735 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:783-792 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:717-729 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1003-1015 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1013-1022 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1035-1047 | examples/text_to_image/train_text_to_image_sdxl.py:1004-1013 | examples/textual_inversion/textual_inversion.py:807-816 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 68 separate duplicated blocks between them, totalling at least 1014 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:552\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, \u0060examples/research_projects/lpl/train_sdxl_lpl.py:1117\u0060 calls \u0060to\u0060, \u0060ceil\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:552\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31c08b2a197474467f5242e7dd8786ca34bb1fe246b491d10428c75341ec881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 15): examples/controlnet/train_controlnet.py:666-674 | examples/controlnet/train_controlnet_flax.py:578-586 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:508-516 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:651-659 | examples/research_projects/lora/train_text_to_image_lora.py:655-663 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:653-661 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:820-827 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:555-564 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:779-787 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:644-652 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:670-678 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:653-661 | examples/text_to_image/train_text_to_image.py:777-785 | examples/text_to_image/train_text_to_image_flax.py:346-353 | examples/text_to_image/train_text_to_image_lora.py:653-661 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:666\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet.py:663\u0060 calls \u0060random\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:506\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52904f4925856a7e8d2a78a7b999d14bb4dabfbe552aee9ae5b0a4b8580eb61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 14): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1408-1417 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1142-1151 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1397-1406 | examples/dreambooth/train_dreambooth_flux.py:1099-1108 | examples/dreambooth/train_dreambooth_lora_flux.py:1141-1150 | examples/dreambooth/train_dreambooth_lora_flux2.py:1141-1150 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1146-1155 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1326-1335 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1232-1241 | examples/dreambooth/train_dreambooth_lora_sd3.py:1132-1141 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1055-1064 | examples/dreambooth/train_dreambooth_lora_z_image.py:1131-1140 | examples/dreambooth/train_dreambooth_sd3.py:1057-1066 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1115-1124 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1408\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1408}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a922884bb96f510a4bb11eaded9fe42d35bee7a4c8a31dfaa4fae122b7df81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 14): examples/cogview4-control/train_control_cogview4.py:360-372 | examples/controlnet/train_controlnet.py:387-398 | examples/controlnet/train_controlnet_sdxl.py:429-440 | examples/dreambooth/train_dreambooth.py:419-430 | examples/dreambooth/train_dreambooth_lora_sdxl.py:654-667 | examples/flux-control/train_control_flux.py:352-364 | examples/flux-control/train_control_lora_flux.py:384-396 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:328-338 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:332-342 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:291-301 | examples/research_projects/controlnet/train_controlnet_webdataset.py:628-637 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:419-430 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:332-342 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:406-415 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:654\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:653\u0060 calls \u0060add_argument\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:328\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e887cca423e197163a08fba2382cc276e4fa49878ae52a0c308234e82b1a979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 14): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:803-812 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:642-651 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:675-684 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:822-831 | examples/research_projects/lpl/train_sdxl_lpl.py:1284-1293 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:848-857 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1009-1019 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:850-860 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1171-1181 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1186-1196 | examples/text_to_image/train_text_to_image.py:1015-1024 | examples/text_to_image/train_text_to_image_lora.py:906-915 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1180-1189 | examples/text_to_image/train_text_to_image_sdxl.py:1150-1159 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:803\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, \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:844\u0060 calls \u0060unet\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py:1280\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe73d3f5277d904fc37c20ba92ce493e33f0020fc13665d924680563926232dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 12): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1239-1247 | examples/custom_diffusion/train_custom_diffusion.py:135-142 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1044-1053 | examples/dreambooth/train_dreambooth_lora_flux2.py:986-995 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:991-1000 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1091-1100 | examples/dreambooth/train_dreambooth_lora_krea2.py:1053-1062 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:945-954 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:979-988 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1062-1071 | examples/dreambooth/train_dreambooth_lora_sdxl.py:902-910 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:901-909 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 841 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/custom_diffusion/train_custom_diffusion.py:145\u0060 calls \u0060cat\u0060, \u0060stack\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1055\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ce563fdbae35ee7efd0d5114bf2780783af0c43b9d6dd21b7b59893069441a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 12): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:798-806 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:785-793 | examples/dreambooth/train_dreambooth_lora_flux2.py:740-748 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:708-717 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:745-753 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:704-713 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:845-853 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:822-831 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:822-830 | examples/dreambooth/train_dreambooth_lora_sana.py:632-640 | examples/dreambooth/train_dreambooth_lora_z_image.py:729-737 | examples/research_projects/sana/train_sana_sprint_diffusers.py:680-688 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:798\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, \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:796\u0060 calls \u0060ValueError\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:808\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a68ab0dc2a4383ace528a125e62d21660812797d78e01ff9b8765fa13503e26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 11): examples/consistency_distillation/train_lcm_distill_sd_wds.py:234-244 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:252-262 | examples/controlnet/train_controlnet.py:103-112 | examples/controlnet/train_controlnet_sdxl.py:105-114 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:148-158 | examples/research_projects/controlnet/train_controlnet_webdataset.py:332-343 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:79-89 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:114-125 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:153-163 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:93-103 | examples/text_to_image/train_text_to_image.py:154-164 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 2164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:234\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, \u0060examples/controlnet/train_controlnet.py:102\u0060 calls \u0060from_config\u0060, \u0060to\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:234\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":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc964c4079633f8a30ecfef336f31d256834d6e65b9c0943ce3540aeaa214a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 10): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1776-1785 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1447-1456 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1785-1794 | examples/dreambooth/train_dreambooth_flux.py:1290-1299 | examples/dreambooth/train_dreambooth_lora_flux.py:1400-1409 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1599-1608 | examples/dreambooth/train_dreambooth_lora_sd3.py:1439-1448 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1381-1390 | examples/dreambooth/train_dreambooth_sd3.py:1277-1286 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1417-1426 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1776\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a03d51336047faf79e1e4a165d85e70d598b90fc85eabf746183cd84566fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 10): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1836-1845 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1506-1515 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1845-1854 | examples/dreambooth/train_dreambooth_flux.py:1349-1358 | examples/dreambooth/train_dreambooth_lora_flux.py:1459-1468 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1658-1667 | examples/dreambooth/train_dreambooth_lora_sd3.py:1499-1508 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1441-1450 | examples/dreambooth/train_dreambooth_sd3.py:1338-1347 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1477-1486 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72d0b32a23b032c90fd2fd74390592060e070c9b0f803835c491631529caa75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 10): examples/cogvideo/train_cogvideox_image_to_video_lora.py:1458-1467 | examples/cogvideo/train_cogvideox_lora.py:1480-1489 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2167-2176 | examples/dreambooth/train_dreambooth_lora_hidream.py:1654-1663 | examples/dreambooth/train_dreambooth_lora_krea2.py:1948-1957 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1827-1836 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1895-1904 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1991-2000 | examples/dreambooth/train_dreambooth_lora_sd3.py:1865-1874 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1132-1141 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:1455\u0060 calls \u0060step\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2164\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc3a559bed5e3de4530f850df8a5f269d9ad8a1bf6c433fbed10bcab16e47b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 10): examples/cogview4-control/train_control_cogview4.py:182-191 | examples/controlnet/train_controlnet.py:210-219 | examples/controlnet/train_controlnet_flux.py:202-211 | examples/controlnet/train_controlnet_sd3.py:248-257 | examples/controlnet/train_controlnet_sdxl.py:233-242 | examples/flux-control/train_control_flux.py:177-186 | examples/flux-control/train_control_lora_flux.py:187-196 | examples/research_projects/controlnet/train_controlnet_webdataset.py:439-448 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:203-212 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:199-208 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7700add119cebed78272f930f10cdb40d64f40f0d1c8251a94cdd1ad5b7ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 10): examples/custom_diffusion/train_custom_diffusion.py:636-645 | examples/dreambooth/train_dreambooth.py:582-591 | examples/dreambooth/train_dreambooth_lora.py:543-552 | examples/research_projects/lpl/train_sdxl_lpl.py:597-606 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:602-611 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:542-551 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:452-461 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:485-494 | examples/text_to_image/train_text_to_image_lora_sdxl.py:491-500 | examples/text_to_image/train_text_to_image_sdxl.py:481-490 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth.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 67 separate duplicated blocks between them, totalling at least 993 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:636\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f00014b255c94b2d91aed2d4def13fda12e3e365950c18cb11f489d5915817"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 10): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1556-1565 | examples/dreambooth/train_dreambooth_lora_flux2.py:1509-1518 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1512-1521 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1601-1610 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1636-1645 | examples/dreambooth/train_dreambooth_lora_krea2.py:1564-1573 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1471-1480 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1513-1522 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1604-1613 | examples/dreambooth/train_dreambooth_lora_z_image.py:1491-1500 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1556\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b05a2dc349445811b46a544820f9da132b7ad322221f36d48981b8ff753428"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2006-2016 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1633-1642 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1992-2001 | examples/custom_diffusion/train_custom_diffusion.py:1068-1077 | examples/dreambooth/train_dreambooth_flux.py:1479-1488 | examples/dreambooth/train_dreambooth_lora.py:1169-1178 | examples/dreambooth/train_dreambooth_lora_flux.py:1603-1612 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1870-1879 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1565-1574 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2006\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a767bb09e193b527463580dc31b330e998b22f28b23e877c09987202cdb0613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): examples/cogview4-control/train_control_cogview4.py:1139-1148 | examples/controlnet/train_controlnet_sd3.py:1375-1384 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1764-1774 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1827-1837 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1777-1787 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1918-1928 | examples/flux-control/train_control_flux.py:1146-1155 | examples/flux-control/train_control_lora_flux.py:1292-1301 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1118-1128 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:1139\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, \u0060examples/cogview4-control/train_control_cogview4.py:1136\u0060 calls \u0060view\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1759\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4309be9ebc70fdca5cb077ba19eddcdd88ef112d8d454dbfe0216fef53dbc8a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1717-1726 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1665-1674 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1802-1811 | examples/dreambooth/train_dreambooth_lora_hidream.py:1551-1560 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1346-1355 | examples/dreambooth/train_dreambooth_lora_sana.py:1368-1377 | examples/dreambooth/train_dreambooth_lora_z_image.py:1700-1709 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1021-1030 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:954-963 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"03edba6b99ca6b24c330c6e4701336b85c3f2bf41c2ef90dd941f34b2bef8ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): examples/instruct_pix2pix/train_instruct_pix2pix.py:832-841 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:676-685 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:703-712 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:924-933 | examples/research_projects/lora/train_text_to_image_lora.py:781-790 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1059-1068 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:788-797 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:799-808 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:773-782 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 662 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/lora/train_text_to_image_lora.py:792\u0060 calls \u0060train\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:842\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":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72273c653cbc4809e01c8e50716cbd0b497604aa69e91c6eed670270e3fd40c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 8): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1258-1276 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1147-1165 | examples/dreambooth/train_dreambooth_lora_flux2.py:1201-1219 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1151-1169 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1206-1224 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1147-1165 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1298-1315 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1246-1263 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1258\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5b013268ed3647d16064e1d8d3913e268b7609060904cbfb2fed24f99db514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 8): scripts/convert_ddpm_original_checkpoint_to_diffusers.py:137-146 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:151-160 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:203-211 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:217-225 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:276-285 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:290-299 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:344-352 | scripts/convert_ddpm_original_checkpoint_to_diffusers.py:358-366 \u2014 all 8 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":"scripts/convert_ddpm_original_checkpoint_to_diffusers.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece6fc36f8111e41b9925ed8e0970fcd14053e9ae9239e46150fa8b80dabc5da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1130-1139 | examples/custom_diffusion/train_custom_diffusion.py:752-761 | examples/dreambooth/train_dreambooth.py:865-874 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:823-832 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:908-917 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:836-845 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1103-1112 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 944 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e03a1abcabf7a1f1d1c69e2f1437ea3c90b3e749b6ff2485b3935c435e2499"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 7): examples/community/composable_stable_diffusion.py:162-170 | examples/community/pipeline_zero1to3.py:181-189 | examples/community/stable_diffusion_controlnet_img2img.py:175-183 | examples/community/stable_diffusion_controlnet_inpaint.py:273-282 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:259-267 | examples/community/stable_diffusion_ipex.py:178-186 | examples/community/stable_diffusion_repaint.py:274-282 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/pipeline_zero1to3.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 356 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/composable_stable_diffusion.py:162\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6528b35a0b38a86f527e636a85c5d80ee34bc3cfcc90ea24f2b97c0ed518a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): examples/controlnet/train_controlnet.py:1098-1108 | examples/controlnet/train_controlnet_flux.py:1344-1354 | examples/controlnet/train_controlnet_sd3.py:1380-1390 | examples/controlnet/train_controlnet_sdxl.py:1286-1296 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:964-973 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1395-1405 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1245-1255 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1618 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:975\u0060 calls \u0060step\u0060, \u0060parameters\u0060 and \u0060examples/controlnet/train_controlnet.py:1111\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b9d61d5a83e60db74df992915a12d4f64a4725990ad1a7384904d7fa724ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): examples/research_projects/pixart/train_pixart_controlnet_hf.py:1011-1020 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:992-1001 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:833-842 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1157-1166 | examples/text_to_image/train_text_to_image.py:987-996 | examples/text_to_image/train_text_to_image_lora.py:890-899 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1167-1176 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py\u0060 as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 1122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1004\u0060 calls \u0060unet\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1168\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":"examples/research_projects/pixart/train_pixart_controlnet_hf.py"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8cd94d72faf7d17b8c210dada958ab4e9394b93f101e8630e07457c4f57c6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): scripts/convert_dit_to_diffusers.py:92-101 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:161-171 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:178-187 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:188-197 | scripts/convert_hunyuandit_to_diffusers.py:146-156 | scripts/convert_hunyuandit_to_diffusers.py:163-172 | scripts/convert_hunyuandit_to_diffusers.py:173-182 \u2014 there are 7 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_dit_to_diffusers.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55ad6a7605fa99d54b2fc29c6c92f844d172350b6613c75ee754b7a45610fb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): examples/custom_diffusion/train_custom_diffusion.py:638-647 | examples/dreambooth/train_dreambooth.py:584-593 | examples/dreambooth/train_dreambooth_lora.py:545-554 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:227-236 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:604-613 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:544-553 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth.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 67 separate duplicated blocks between them, totalling at least 993 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":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c132ca2806b38a5663ddfd6a6932609bd16a7d18a41f405a681c00a95c324a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 6): examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:809-817 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:987-996 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:941-949 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:786-794 | examples/text_to_image/train_text_to_image.py:960-968 | examples/text_to_image/train_text_to_image_lora.py:867-875 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 as WHOLE FILES: this scan already matched 58 separate duplicated blocks between them, totalling at least 883 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:987\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, \u0060examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:819\u0060 calls \u0060randn_like\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:998\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":"examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c6aa84075eaf40dfc233224f382c417f024da88c452defce9b587f0b8188fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1990-1999 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1563-1572 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1593-1602 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:997-1006 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1029-1038 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1990}}}],"partialFingerprints":{"codehealthFindingId/v1":"31251f6eb39b4c0e401cca9b64a3cd2e245d49cb9ef2ed3c1d608b63e221c039"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 5): examples/controlnet/train_controlnet.py:1047-1054 | examples/custom_diffusion/train_custom_diffusion.py:1143-1150 | examples/research_projects/gligen/train_gligen_text.py:571-578 | examples/research_projects/lora/train_text_to_image_lora.py:803-810 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1080-1089 \u2014 \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.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 51 separate duplicated blocks between them, totalling at least 778 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f19256f177d154da710d333d9f02d5ec5aa07500618e589f8a1a1e73546db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1580-1589 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1531-1540 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1647-1656 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1756-1765 | examples/dreambooth/train_dreambooth_lora_z_image.py:1570-1579 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba316fee63a6d31708519fe5ebf84e0e46c763110af6a3dad7aea126dda409c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 5): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:155-162 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:158-165 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:86-93 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:160-167 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:154-163 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:153\u0060 calls \u0060enable_xformers_memory_efficient_attention\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:156\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7f048def42ba47df9afe40937bf7069be5c65ef22936813d391d2c6e7c113e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:612-623 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:708-717 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:672-683 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:779-790 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:571-582 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:612\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f1320e30b1c4f22a7b8954904be538d2bafcbb64cf25e85912aaf1d13a3885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 5): examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py:348-356 | scripts/convert_original_audioldm2_to_diffusers.py:259-268 | scripts/convert_original_audioldm_to_diffusers.py:267-276 | scripts/convert_original_musicldm_to_diffusers.py:264-273 | scripts/convert_zero123_to_diffusers.py:494-502 \u2014 before extracting anything, compare \u0060examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/promptdiffusion/convert_original_promptdiffusion_to_diffusers.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"908b1c2cdf2781a68fd78af2a380e04f22ead9ceb661106ffab373343e758c40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): scripts/convert_gligen_to_diffusers.py:224-233 | scripts/convert_original_audioldm2_to_diffusers.py:328-337 | scripts/convert_original_audioldm_to_diffusers.py:337-346 | scripts/convert_original_musicldm_to_diffusers.py:333-342 | scripts/convert_versatile_diffusion_to_diffusers.py:398-407 \u2014 before extracting anything, compare \u0060scripts/convert_gligen_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 286 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_original_audioldm2_to_diffusers.py:327\u0060 calls \u0060startswith\u0060 and \u0060scripts/convert_gligen_to_diffusers.py:223\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/convert_gligen_to_diffusers.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8435562cefcf9fa143384828d28b727da5f010ead7309ecd52e7debbbf1dc14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1914-1923 | examples/dreambooth/train_dreambooth_flux.py:1427-1435 | examples/dreambooth/train_dreambooth_lora_flux.py:1531-1539 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1776-1784 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1914\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1914}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3aea368275d1f84de2cd88e1aae2034c46487e33d280112c939adb03876674e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:666-675 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:775-784 | examples/text_to_image/train_text_to_image_lora.py:415-427 | examples/text_to_image/train_text_to_image_lora_sdxl.py:467-479 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/text_to_image/train_text_to_image_lora.py:415\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:665\u0060 calls \u0060add_argument\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py:415\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4739719bb6963d214bc4be8da72fdecc421f8c777e3cc8ea5bf0e76e89d86fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2271-2280 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2283-2292 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1814-1823 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1826-1835 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2271}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca115f2d65ace1438925e82e7c7447c20701576323c4149ec457bcfc071d1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/community/lpw_stable_diffusion_xl.py:1125-1134 | examples/community/masked_stable_diffusion_xl_img2img.py:561-570 | examples/community/pipeline_sdxl_style_aligned.py:948-957 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:653-662 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/masked_stable_diffusion_xl_img2img.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060Image\u0060 names \u0060PIL\u0060 in one and \u0060PIL.Image\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd69bd74dd5d0482ff2d89efe481751ef24e2fd7a48b5ee9a0466f07baaa928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/controlnet/train_controlnet.py:664-673 | examples/controlnet/train_controlnet_flax.py:576-585 | examples/controlnet/train_controlnet_sd3.py:744-753 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:818-827 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9731b2f89c4c465b902cad332cbd02e8b4bffb6aa6abcfd9c71bada28c262b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora.py:975-984 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1265-1276 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:992-1001 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1301-1312 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1367 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py:1264\u0060 calls \u0060isinstance\u0060, \u0060unwrap_model\u0060, \u0060convert_state_dict_to_diffusers\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py:975\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":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"5febf115b1c7509eac5a84b8a14f96f3230f54e4bd69393e833c44f42ee565ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:985-994 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:981-990 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1100-1109 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1033-1042 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 189 separate duplicated blocks between them, totalling at least 3582 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cb3b660e8675b1ab35806c6046ffe3c8717bd30298f0a89f8fef881cd60b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_sd3.py:1717-1726 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1652-1661 | examples/dreambooth/train_dreambooth_sd3.py:1538-1547 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1675-1684 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2381 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5b265869aaec29edb648b79826fc76427fc5af8682fae29f6b4ce0b7b5579e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): examples/instruct_pix2pix/train_instruct_pix2pix.py:486-494 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:544-552 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:620-629 | examples/text_to_image/train_text_to_image.py:608-617 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"371f5c7600e05d0e5efae53d36e44743c44ca702b4fb9e34197d35733c7d2b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/instruct_pix2pix/train_instruct_pix2pix.py:536-545 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:592-601 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:635-644 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:627-636 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:624\u0060 calls \u0060filter\u0060, \u0060parameters\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:533\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":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"00703d8c54f6253e5d17b10d8f4377969cb812aab08e44ac7715be9aebe0f92e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/instruct_pix2pix/train_instruct_pix2pix.py:841-850 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:933-942 | examples/research_projects/lora/train_text_to_image_lora.py:792-801 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:797-806 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/lora/train_text_to_image_lora.py:790\u0060 calls \u0060train\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:840\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":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdc5d2813923fe7a85c4df8acf7065237dc0909408005ed5f7dc7c207b83fcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:923-932 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1077-1085 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1035-1043 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1038-1046 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:923\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13a779d826cea8fee881c723fd7bd6e66f4d2612d7da094d4cefc3df455a8f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:473-482 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:538-549 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:677-690 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:724-734 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:538\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:471\u0060 calls \u0060from_pretrained\u0060, \u0060TextualInversionDataset\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:538\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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee2631bf5931bb97c9eb029d0163ab494148cd08a5f5da33a16c96b738e6ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/research_projects/ip_adapter/tutorial_train_faceid.py:323-332 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:320-329 | examples/research_projects/ip_adapter/tutorial_train_plus.py:343-352 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:389-398 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:333\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py:339\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa2323e9cac2fad4e181c57c213c0384b6d92206416f803e4e37e1500355bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): scripts/convert_hunyuan_image_to_diffusers.py:685-694 | scripts/convert_hunyuan_image_to_diffusers.py:821-828 | scripts/convert_hunyuan_video1_5_to_diffusers.py:451-460 | scripts/convert_hunyuan_video1_5_to_diffusers.py:587-594 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuan_image_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuan_video1_5_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 384 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_hunyuan_image_to_diffusers.py:685\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/convert_hunyuan_image_to_diffusers.py:685\u0060 calls \u0060pop\u0060 and \u0060scripts/convert_hunyuan_image_to_diffusers.py:821\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":"scripts/convert_hunyuan_image_to_diffusers.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"563ac479024b06b2e36dd53bb5413215fac2aef8750bcb9c6d7c678c5dc8ea50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): scripts/convert_i2vgen_to_diffusers.py:227-235 | scripts/convert_if.py:313-321 | scripts/convert_ms_text_to_video_to_diffusers.py:183-191 | scripts/convert_svd_to_diffusers.py:296-305 \u2014 before extracting anything, compare \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 and \u0060scripts/convert_if.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_i2vgen_to_diffusers.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"1510c302a23210ab187ce28a0ece88da171fe5829df154d9af2d480fc0427464"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): scripts/convert_if.py:691-700 | scripts/convert_kakao_brain_unclip_to_diffusers.py:901-910 | scripts/convert_kandinsky_to_diffusers.py:852-861 | scripts/convert_shap_e_to_diffusers.py:912-921 \u2014 before extracting anything, compare \u0060scripts/convert_kakao_brain_unclip_to_diffusers.py\u0060 and \u0060scripts/convert_kandinsky_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 385 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_if.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b1f0208c11a6db0ca9213d5a346997cb06aa4886dd869e89747e83767fda2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:967-976 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:838-847 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1003-1012 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:967\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e156f769f47be2e4a74e92e42eeafd16beee07207c139051dbb1b2593891ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1438-1447 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1172-1178 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1427-1433 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1438\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26145a655025f19ffbe26c2360db0e09524b52c0ed6961ccf396ffe53bb5ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/community/clip_guided_images_mixing_stable_diffusion.py:222-231 | examples/community/clip_guided_stable_diffusion.py:157-166 | examples/community/clip_guided_stable_diffusion_img2img.py:292-301 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fdc051142b57cdca1c1a9b1a572f0fbf4987634236277b69e73f4641e50e3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/community/lpw_stable_diffusion_xl.py:1926-1935 | examples/community/mixture_tiling_sdxl.py:1193-1202 | examples/community/mod_controlnet_tile_sr_sdxl.py:1819-1828 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion_xl.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 388 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:1819\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"360b699849d6dfcc45c967d47347c37e5759a944d20877a6e9988c61d9a9b319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:819-828 | examples/community/stable_diffusion_tensorrt_inpaint.py:823-832 | examples/community/stable_diffusion_tensorrt_txt2img.py:735-744 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adeb3fe2d325e1d220c2ec86eccdd493b92e211d3a0105f8daf39e1d8f835a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/dreambooth/train_dreambooth_flux.py:1584-1593 | examples/dreambooth/train_dreambooth_lora_flux.py:1710-1719 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1976-1985 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flux.py:1584\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d57aee7eef4277d3704a068eb340ae247d80a22fc0fa6ea8cb506ce538d073b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1680-1688 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1628-1637 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1754-1762 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 186 separate duplicated blocks between them, totalling at least 3314 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1680\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b3ecdaf5329ebca6f51e5fd6f29ff57fc1579b84a21c5c9866701bf7e53af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/research_projects/autoencoderkl/train_autoencoderkl.py:827-836 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1138-1147 | examples/research_projects/gligen/train_gligen_text.py:488-497 \u2014 before extracting anything, compare \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py\u0060 and \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/autoencoderkl/train_autoencoderkl.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"3465cc72a9c885ca2640cfa87f27fc4d081f377b216932616e2bcc3140d24868"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:684-693 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:711-720 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:838-847 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:836\u0060 calls \u0060unwrap_model\u0060, \u0060get_input_embeddings\u0060, \u0060clone\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:682\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":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87a9e0ca818a071177e1840d1b19b2e861550b441a7063a0eb2b0f84e73f531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201310 lines \u00D7 5): examples/research_projects/ip_adapter/tutorial_train_faceid.py:129-138 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:131-140 | examples/research_projects/ip_adapter/tutorial_train_plus.py:131-133 | examples/research_projects/ip_adapter/tutorial_train_plus.py:147-150 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:191-200 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b263fc58bc64143463ed76532ed360decca093b75e0a60daeaf6ff170cfa7eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:282-289 | examples/research_projects/ip_adapter/tutorial_train_plus.py:298-305 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:345-354 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_plus.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 438 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/ip_adapter/tutorial_train_sdxl.py:345\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/ip_adapter/tutorial_train_sdxl.py:344\u0060 calls \u0060from_pretrained\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_plus.py:298\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":"examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b76a1442b4c70c4bc4ec595e64b87ebbd5c9f36d909dddf8b7f25f674afbe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/research_projects/lora/train_text_to_image_lora.py:452-461 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:491-500 | examples/text_to_image/train_text_to_image_lora.py:504-513 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1453 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lora/train_text_to_image_lora.py:452\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cb99fe7fdcc01b9e9db1e5992f601565f5f06c84b4751ab85ec72faaa97f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:132-141 | examples/textual_inversion/textual_inversion.py:138-147 | examples/textual_inversion/textual_inversion_sdxl.py:147-156 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1688 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:132\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, \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:142\u0060 calls \u0060autocast\u0060 and \u0060examples/textual_inversion/textual_inversion_sdxl.py:157\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25c57eddf447eb37a95a9638cd89a455266ee21e15b0aa176b2fd768083f67e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): scripts/convert_hunyuandit_controlnet_to_diffusers.py:139-148 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:176-185 | scripts/convert_hunyuandit_to_diffusers.py:161-170 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuandit_controlnet_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuandit_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_hunyuandit_controlnet_to_diffusers.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c5636397cddd98be42f25f5fa5b22af29fddcef18a5b5d744cd6e1602dcf2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1634-1643 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1357-1366 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1634\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, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1633\u0060 calls \u0060_collate_lora_metadata\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1356\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bbf8a41f1e224f5dfd5994988b694f3b922668d8a31fb8d5763bdeb0aec707"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1708-1717 | examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1719-1728 \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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1708}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c2210d5aa435404d7bd0c60105c57e8b2960d16fc0d7ea96c52bd954e9ccd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2351-2360 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2373-2382 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2361\u0060 calls \u0060load_text_encoders\u0060, \u0060to\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2383\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2351}}}],"partialFingerprints":{"codehealthFindingId/v1":"404317cdea994c77f9a675b79a6ac7705cb7deeae22d35b991ba0b023a633ac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): examples/community/adaptive_mask_inpainting.py:1120-1129 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1696-1704 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9df8b28d684e1d48a27907cb0a22d5aec2183f0b228fab640886c60b19715a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/masked_stable_diffusion_img2img.py:249-260 | examples/community/masked_stable_diffusion_xl_img2img.py:533-544 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/masked_stable_diffusion_img2img.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"3777bf89abf2ec7ec1ddd6d3ebfab5051d3abefcf87a2db5ecd802c3713ad9c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/community/matryoshka.py:3001-3010 | examples/community/matryoshka.py:3472-3481 \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":"examples/community/matryoshka.py"},"region":{"startLine":3001}}}],"partialFingerprints":{"codehealthFindingId/v1":"def9f3b872889ea894a46e0497f84d4f2966bde2fac4a12349206d86fdf1d497"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/community/mixture_tiling_sdxl.py:1066-1075 | examples/community/pipeline_stable_diffusion_xl_ipex.py:1312-1321 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_ipex.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 592 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"21277fe852cde02760a06f0564689ae7a4e3e206cbe2e98aeed8ce88f964edbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/community/pipeline_demofusion_sdxl.py:1074-1086 | examples/community/pipeline_demofusion_sdxl.py:1179-1188 \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":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cf3c0eb091ee4e0340657e12baa4d83c8bdd5b6e8aed51fd861903a0477b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): examples/community/pipeline_flux_differential_img2img.py:931-940 | examples/community/pipeline_z_image_differential_img2img.py:708-716 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_z_image_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b598d7b3cb32d4929f61ba3876b06bd7e717feaabab5e85a03363cadca9495d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/controlnet/train_controlnet_flux.py:1247-1256 | examples/controlnet/train_controlnet_flux.py:1258-1267 \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":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2627340ea8b52558ef56fe7286a38dc6bfda841b79ef2e8c1c50526e8181ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:934-942 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:906-915 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 104 separate duplicated blocks between them, totalling at least 1526 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:906\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"063cc5967e1bac9cd845606debd9cd7032d2622ec2cf11133ee6e1fc581bf95f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:450-459 | examples/research_projects/sana/train_sana_sprint_diffusers.py:685-694 \u2014 before extracting anything, compare \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py\u0060 and \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py\u0060 as WHOLE FILES: this scan already matched 65 separate duplicated blocks between them, totalling at least 1020 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py:682\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:448\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59dee466d825a92ba3e819a3c7a2c81f4f114a1123aa8eaa76fe43592f34bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201310 lines \u00D7 3): examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:97-106 | examples/research_projects/ip_adapter/tutorial_train_plus.py:97-106 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:146-148 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_plus.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 438 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:97\u0060 calls \u0060cat\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_sdxl.py:146\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"57964cdae06120701abd3127f9697f9927fe855373e2832ffa51c6d574d81fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/research_projects/sana/train_sana_sprint_diffusers.py:1498-1507 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1591-1600 \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":"examples/research_projects/sana/train_sana_sprint_diffusers.py"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c14736678925fedecaa4f2556d65932a16e7b19a0ae2b122d625d3c2ee853d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): scripts/convert_cogvideox_to_diffusers.py:161-170 | scripts/convert_ltx_to_diffusers.py:144-153 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_cogvideox_to_diffusers.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c91e07fafcea02bb3fd1d40db3efe2ec6bd98feb3a89e37fbcc39c80b0f36fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): scripts/convert_svd_to_diffusers.py:513-522 | scripts/convert_svd_to_diffusers.py:526-535 \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 \u0060scripts/convert_svd_to_diffusers.py:513\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/convert_svd_to_diffusers.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75b50b55f179844dd24d7fa17232d476f7bfa7383c9bf43d4ad05fb6e9827b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): utils/tests_fetcher.py:291-300 | utils/tests_fetcher.py:420-427 \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":"utils/tests_fetcher.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76f6f9215f8166ff34ea9016a4a5e41a1454fdf3ca8dc906f8bee75c2521d7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 84): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2043-2053 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1668-1678 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2032-2042 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1196-1206 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1178-1188 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1240-1250 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1147-1157 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1241-1251 | examples/controlnet/train_controlnet.py:1004-1014 | examples/controlnet/train_controlnet_flux.py:1192-1202 | examples/controlnet/train_controlnet_sd3.py:1249-1259 | examples/controlnet/train_controlnet_sdxl.py:1186-1196 | examples/custom_diffusion/train_custom_diffusion.py:1098-1108 | examples/dreambooth/train_dreambooth.py:1194-1204 | examples/dreambooth/train_dreambooth_flux.py:1515-1525 | examples/dreambooth/train_dreambooth_lora.py:1207-1217 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1786-1796 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1620-1630 | examples/dreambooth/train_dreambooth_lora_flux.py:1639-1649 | examples/dreambooth/train_dreambooth_lora_flux2.py:1771-1781 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1672-1682 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1728-1738 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1620-1630 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1871-1881 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1757-1767 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1906-1916 | examples/dreambooth/train_dreambooth_lora_hidream.py:1506-1516 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1864-1874 | examples/dreambooth/train_dreambooth_lora_krea2.py:1740-1750 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1301-1311 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1640-1650 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1692-1702 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1785-1795 | examples/dreambooth/train_dreambooth_lora_sana.py:1323-1333 | examples/dreambooth/train_dreambooth_lora_sd3.py:1672-1682 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1606-1616 | examples/dreambooth/train_dreambooth_lora_z_image.py:1655-1665 | examples/dreambooth/train_dreambooth_sd3.py:1493-1503 | examples/instruct_pix2pix/train_instruct_pix2pix.py:808-818 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:995-1005 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:740-748 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:576-586 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:592-602 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:741-751 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:850-860 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1166-1176 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1259-1269 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:765-775 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:901-911 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:883-893 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:886-896 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:653-662 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:680-689 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:976-986 | examples/research_projects/gligen/train_gligen_text.py:516-526 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:900-910 | examples/research_projects/lora/train_text_to_image_lora.py:757-767 | examples/research_projects/lpl/train_sdxl_lpl.py:1167-1177 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:516-525 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:747-757 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:764-774 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:804-813 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:521-531 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:936-946 | examples/research_projects/realfill/train_realfill.py:809-819 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1293-1303 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1226-1236 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1212-1222 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1629-1639 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:896-906 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:741-751 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1027-1037 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1040-1050 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:909-919 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:775-785 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:749-759 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1133-1143 | examples/text_to_image/train_text_to_image.py:915-925 | examples/text_to_image/train_text_to_image_lora.py:822-832 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1059-1069 | examples/text_to_image/train_text_to_image_sdxl.py:1036-1046 | examples/textual_inversion/textual_inversion.py:828-837 | examples/textual_inversion/textual_inversion_sdxl.py:870-879 | examples/unconditional_image_generation/train_unconditional.py:556-566 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2043}}}],"partialFingerprints":{"codehealthFindingId/v1":"888eceaf4fae520f3ffeec61990844d88aa74b6f49d3ab924d95d13a90728afa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 33): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2082-2089 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2073-2081 | examples/controlnet/train_controlnet_flux.py:1232-1239 | examples/controlnet/train_controlnet_sd3.py:1289-1296 | examples/dreambooth/train_dreambooth_flux.py:1556-1563 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1827-1834 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1661-1668 | examples/dreambooth/train_dreambooth_lora_flux.py:1680-1687 | examples/dreambooth/train_dreambooth_lora_flux2.py:1812-1819 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1713-1720 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1769-1776 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1661-1668 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1912-1919 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1798-1805 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1947-1954 | examples/dreambooth/train_dreambooth_lora_hidream.py:1547-1554 | examples/dreambooth/train_dreambooth_lora_krea2.py:1781-1788 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1342-1349 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1681-1688 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1733-1740 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1826-1833 | examples/dreambooth/train_dreambooth_lora_sana.py:1364-1371 | examples/dreambooth/train_dreambooth_lora_sd3.py:1713-1720 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1647-1655 | examples/dreambooth/train_dreambooth_lora_z_image.py:1696-1703 | examples/dreambooth/train_dreambooth_sd3.py:1534-1541 | examples/flux-control/train_control_flux.py:1032-1039 | examples/flux-control/train_control_lora_flux.py:1177-1184 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1172-1180 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1017-1024 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1670-1678 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:950-957 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1042-1050 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/flux-control/train_control_flux.py:1043\u0060 calls \u0060train\u0060 and \u0060examples/controlnet/train_controlnet_flux.py:1243\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7df8d148bd7982abda90f5dba99895cafbccf0aaaf09c80a3a9a83d46167c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 30): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2317-2325 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1859-1867 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2343-2351 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1408-1416 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1400-1408 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1471-1479 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1372-1380 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1475-1483 | examples/controlnet/train_controlnet.py:1107-1115 | examples/controlnet/train_controlnet_sd3.py:1389-1397 | examples/dreambooth/train_dreambooth.py:1348-1356 | examples/dreambooth/train_dreambooth_flux.py:1724-1732 | examples/dreambooth/train_dreambooth_lora.py:1340-1348 | examples/dreambooth/train_dreambooth_lora_flux.py:1863-1871 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1455-1463 | examples/dreambooth/train_dreambooth_lora_sana.py:1470-1478 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1875-1883 | examples/dreambooth/train_dreambooth_sd3.py:1679-1687 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1404-1412 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:901-909 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1055-1063 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1013-1021 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1016-1024 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1648-1656 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1411-1419 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1377-1385 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1917-1925 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1033-1041 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1254-1262 | examples/unconditional_image_generation/train_unconditional.py:638-646 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1854\u0060 calls \u0060enumerate\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2312\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2317}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0987b44235c0df3ed5ca7ea4063b6e371fed2747fae43649a6f5b591f5907a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 28): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2347-2355 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1886-1893 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2370-2377 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1486-1493 | examples/cogvideo/train_cogvideox_lora.py:1508-1515 | examples/custom_diffusion/train_custom_diffusion.py:1247-1254 | examples/dreambooth/train_dreambooth_flux.py:1751-1758 | examples/dreambooth/train_dreambooth_lora.py:1367-1374 | examples/dreambooth/train_dreambooth_lora_flux.py:1890-1897 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1869-1876 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1819-1826 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1960-1967 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2195-2202 | examples/dreambooth/train_dreambooth_lora_hidream.py:1682-1689 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:2067-2074 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1482-1489 | examples/dreambooth/train_dreambooth_lora_sana.py:1497-1504 | examples/dreambooth/train_dreambooth_lora_sd3.py:1893-1900 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1902-1909 | examples/dreambooth/train_dreambooth_lora_z_image.py:1834-1841 | examples/dreambooth/train_dreambooth_sd3.py:1706-1713 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:780-787 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:803-810 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1160-1167 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:850-857 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1404-1411 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1944-1951 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1060-1067 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2347\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2347}}}],"partialFingerprints":{"codehealthFindingId/v1":"884856dd1f08142d7e075a5b9f181d054a50ed4263f0e7bd42a1783c2f045226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 27): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1107-1115 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:959-967 | examples/dreambooth/train_dreambooth.py:647-655 | examples/dreambooth/train_dreambooth_flax.py:250-258 | examples/dreambooth/train_dreambooth_flux.py:798-806 | examples/dreambooth/train_dreambooth_lora.py:608-616 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:963-971 | examples/dreambooth/train_dreambooth_lora_flux.py:844-852 | examples/dreambooth/train_dreambooth_lora_flux2.py:905-913 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:910-918 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1010-1018 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:929-937 | examples/dreambooth/train_dreambooth_lora_hidream.py:851-859 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:974-982 | examples/dreambooth/train_dreambooth_lora_krea2.py:972-980 | examples/dreambooth/train_dreambooth_lora_lumina2.py:774-782 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:864-872 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:898-906 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:955-963 | examples/dreambooth/train_dreambooth_lora_sana.py:785-793 | examples/dreambooth/train_dreambooth_lora_sd3.py:838-846 | examples/dreambooth/train_dreambooth_lora_sdxl.py:845-853 | examples/dreambooth/train_dreambooth_lora_z_image.py:894-902 | examples/dreambooth/train_dreambooth_sd3.py:770-778 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:667-675 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:607-615 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:844-852 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:955\u0060 calls \u0060getattr\u0060, \u0060upper\u0060, \u0060ValueError\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1105\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d318b66ac8e16674889421c5d4c1a839a889030d5f0f2f34d62852f8f62b10ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 24): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1409-1417 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1143-1151 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1398-1406 | examples/dreambooth/train_dreambooth.py:879-887 | examples/dreambooth/train_dreambooth_flux.py:1100-1108 | examples/dreambooth/train_dreambooth_lora.py:832-840 | examples/dreambooth/train_dreambooth_lora_flux.py:1142-1150 | examples/dreambooth/train_dreambooth_lora_flux2.py:1142-1150 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1147-1155 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1327-1335 | examples/dreambooth/train_dreambooth_lora_hidream.py:998-1006 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1233-1241 | examples/dreambooth/train_dreambooth_lora_krea2.py:1215-1223 | examples/dreambooth/train_dreambooth_lora_lumina2.py:921-929 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1155-1163 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1189-1197 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1280-1288 | examples/dreambooth/train_dreambooth_lora_sd3.py:1133-1141 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1056-1064 | examples/dreambooth/train_dreambooth_lora_z_image.py:1132-1140 | examples/dreambooth/train_dreambooth_sd3.py:1058-1066 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:922-930 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:850-858 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1116-1124 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1409\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c21d925a48d7282a0ff133d20af0e6f306df8b6e270e5d0b14f4d2dc6fdbb2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 18): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1056-1064 | examples/instruct_pix2pix/train_instruct_pix2pix.py:712-720 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:913-921 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:663-671 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:513-521 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:527-535 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:670-678 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:804-812 | examples/research_projects/lora/train_text_to_image_lora.py:683-691 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:681-689 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:860-868 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:807-815 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:677-685 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:698-706 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:681-689 | examples/text_to_image/train_text_to_image.py:812-820 | examples/text_to_image/train_text_to_image_lora.py:693-701 | examples/vqgan/train_vqgan.py:796-803 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 496 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1055\u0060 calls \u0060list\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:912\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"a564618e2fc18a00daa68ee7d8191c8efeb508cf7ddbb9e4fe55287dada59158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 18): examples/dreambooth/train_dreambooth_flux.py:1131-1139 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1227-1235 | examples/dreambooth/train_dreambooth_lora_flux.py:1171-1179 | examples/dreambooth/train_dreambooth_lora_flux2.py:1171-1179 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1176-1184 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1271-1279 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1356-1364 | examples/dreambooth/train_dreambooth_lora_hidream.py:1027-1035 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1262-1270 | examples/dreambooth/train_dreambooth_lora_krea2.py:1244-1252 | examples/dreambooth/train_dreambooth_lora_lumina2.py:949-957 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1184-1192 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1219-1227 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1310-1318 | examples/dreambooth/train_dreambooth_lora_sana.py:962-970 | examples/dreambooth/train_dreambooth_lora_sd3.py:1161-1169 | examples/dreambooth/train_dreambooth_lora_z_image.py:1161-1169 | examples/dreambooth/train_dreambooth_sd3.py:1086-1094 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1894 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1022\u0060 calls \u0060to\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1221\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"74eb25a8372701e097a18240c80220c4867b908e5483fff9ba11af5924ef6715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 17): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:865-873 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:703-711 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:735-743 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:884-892 | examples/research_projects/lora/train_text_to_image_lora.py:863-871 | examples/research_projects/lpl/train_sdxl_lpl.py:1466-1474 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:890-898 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1074-1082 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:924-934 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1236-1244 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1252-1260 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:891-899 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:867-875 | examples/text_to_image/train_text_to_image.py:1081-1089 | examples/text_to_image/train_text_to_image_lora.py:968-976 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1243-1251 | examples/text_to_image/train_text_to_image_sdxl.py:1214-1222 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:924\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc3bb5c20e7615be65a17914cdf32d64131d5539d48e13a97184077b8ab7a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 16): examples/dreambooth/train_dreambooth_flux.py:652-660 | examples/dreambooth/train_dreambooth_lora_flux.py:701-709 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:727-735 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:723-731 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:841-849 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:746-754 | examples/dreambooth/train_dreambooth_lora_hidream.py:708-716 | examples/dreambooth/train_dreambooth_lora_lumina2.py:627-635 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:711-719 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:732-740 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:748-756 | examples/dreambooth/train_dreambooth_lora_sana.py:642-650 | examples/dreambooth/train_dreambooth_lora_sd3.py:695-703 | examples/dreambooth/train_dreambooth_lora_sdxl.py:691-699 | examples/dreambooth/train_dreambooth_sd3.py:627-635 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:695-703 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e91db74a2e0e5849888d87e065ae13b1d647aaf8ccb197f81cc315fcce7cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 16): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:428-437 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:313-322 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:320-329 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:429-438 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:773-781 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:455-464 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:395-404 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:499-508 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:394-403 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:431-440 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:429-438 | examples/text_to_image/train_text_to_image.py:510-519 | examples/text_to_image/train_text_to_image_flax.py:238-247 | examples/text_to_image/train_text_to_image_lora.py:434-443 | examples/unconditional_image_generation/train_unconditional.py:285-293 | examples/vqgan/train_vqgan.py:530-539 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:428\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41a3ccb6e7d8193397e0e29c038f51d09b93ed0b87cede84059f7f8967084c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 15): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:430-439 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:315-324 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:322-331 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:431-440 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:775-783 | examples/research_projects/lora/train_text_to_image_lora.py:377-386 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:268-276 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:396-405 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:457-467 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:433-442 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:431-440 | examples/text_to_image/train_text_to_image_flax.py:240-249 | examples/text_to_image/train_text_to_image_lora.py:436-445 | examples/text_to_image/train_text_to_image_lora_sdxl.py:496-506 | examples/unconditional_image_generation/train_unconditional.py:287-295 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:787\u0060 calls \u0060join\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:280\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97aca85165e332039aaf6ff81890974612a06cec92f08f05f0b358a67c254bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 14): examples/instruct_pix2pix/train_instruct_pix2pix.py:820-828 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:664-672 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:691-699 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:912-920 | examples/research_projects/lora/train_text_to_image_lora.py:769-777 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1047-1055 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:527-535 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:759-767 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:776-784 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:815-823 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:533-541 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:787-795 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:761-769 | examples/unconditional_image_generation/train_unconditional.py:568-576 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 662 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"9076cec0efc2cb326e013ab680c5291aa6423c8ad9cf903830f940de05edc9dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1610-1618 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1969-1977 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1116-1124 | examples/controlnet/train_controlnet.py:932-940 | examples/controlnet/train_controlnet_sdxl.py:1127-1135 | examples/custom_diffusion/train_custom_diffusion.py:1047-1055 | examples/instruct_pix2pix/train_instruct_pix2pix.py:743-751 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:835-843 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:724-732 | examples/text_to_image/train_text_to_image.py:837-845 | examples/text_to_image/train_text_to_image_lora.py:768-776 | examples/textual_inversion/textual_inversion_sdxl.py:804-812 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1610}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc28b5e0adf7856d1c0fac3ee1f49f23e43ddcd1ec6847dfc71d78d677a554b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): examples/cogview4-control/train_control_cogview4.py:829-838 | examples/controlnet/train_controlnet.py:818-827 | examples/controlnet/train_controlnet_flux.py:949-958 | examples/controlnet/train_controlnet_sd3.py:1053-1062 | examples/controlnet/train_controlnet_sdxl.py:937-946 | examples/flux-control/train_control_flux.py:819-828 | examples/instruct_pix2pix/train_instruct_pix2pix.py:535-544 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:591-600 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:634-643 | examples/research_projects/gligen/train_gligen_text.py:335-344 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:626-635 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1129-1137 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:646\u0060 calls \u0060save_pretrained\u0060, \u0060join\u0060 and \u0060examples/controlnet/train_controlnet.py:828\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0017519008ce4237126d82c7b0290bc87a9165dee4630e3f37f1d16a29a24be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 12): examples/cogview4-control/train_control_cogview4.py:1176-1183 | examples/controlnet/train_controlnet.py:1129-1136 | examples/controlnet/train_controlnet_flux.py:1376-1383 | examples/controlnet/train_controlnet_sd3.py:1411-1418 | examples/controlnet/train_controlnet_sdxl.py:1318-1325 | examples/flux-control/train_control_flux.py:1183-1190 | examples/flux-control/train_control_lora_flux.py:1329-1336 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1426-1433 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:1104-1112 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1276-1283 | examples/textual_inversion/textual_inversion.py:959-966 | examples/textual_inversion/textual_inversion_sdxl.py:1039-1046 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fc1e078e29e7df14914356ea7a2c4f5eafc1543196a5a7b0e86eccefe25fec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): examples/community/composable_stable_diffusion.py:226-234 | examples/community/interpolate_stable_diffusion.py:252-260 | examples/community/multilingual_stable_diffusion.py:271-279 | examples/community/pipeline_zero1to3.py:275-283 | examples/community/sd_text2img_k_diffusion.py:177-185 | examples/community/speech_to_image_diffusion.py:142-150 | examples/community/stable_diffusion_controlnet_img2img.py:267-275 | examples/community/stable_diffusion_controlnet_inpaint.py:366-374 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:351-359 | examples/community/stable_diffusion_ipex.py:398-406 | examples/community/stable_diffusion_repaint.py:371-379 | examples/community/wildcard_stable_diffusion.py:296-304 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/interpolate_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5ca6243a2ca93eff608542e86676e5806d4e3e321e3a19fcf5e626e765b3e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 12): examples/controlnet/train_controlnet.py:705-713 | examples/controlnet/train_controlnet_sd3.py:782-790 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:527-533 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:670-676 | examples/research_projects/lora/train_text_to_image_lora.py:682-689 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:680-687 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:806-813 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:676-683 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:698-704 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:681-687 | examples/text_to_image/train_text_to_image.py:811-818 | examples/text_to_image/train_text_to_image_lora.py:692-699 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 1830 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"497a989d9e6d60c17b92d9200d722788b32ed3d441ce69686b8234356902d2e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): examples/instruct_pix2pix/train_instruct_pix2pix.py:830-838 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:674-682 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:701-709 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:922-930 | examples/research_projects/lora/train_text_to_image_lora.py:779-787 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1057-1065 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:537-545 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:769-777 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:786-794 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:825-833 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:797-805 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:771-779 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 662 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:780\u0060 calls \u0060unwrap_model\u0060, \u0060get_input_embeddings\u0060, \u0060clone\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:840\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5092c0abef947b71201a7380901fe1c187855f6eb419a66f379ca0612f7c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1101-1109 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1152-1160 | examples/dreambooth/train_dreambooth_flux.py:792-800 | examples/dreambooth/train_dreambooth_lora_flux.py:838-846 | examples/dreambooth/train_dreambooth_lora_hidream.py:845-853 | examples/dreambooth/train_dreambooth_lora_lumina2.py:768-776 | examples/dreambooth/train_dreambooth_lora_sana.py:779-787 | examples/dreambooth/train_dreambooth_lora_sd3.py:832-840 | examples/dreambooth/train_dreambooth_lora_sdxl.py:839-847 | examples/dreambooth/train_dreambooth_sd3.py:764-772 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:838-846 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73778a73b8ebce315a623d0a4bd01f2c13a602710400af5127d13033af5a794"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1788-1796 | examples/custom_diffusion/train_custom_diffusion.py:1161-1169 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:592-600 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:733-741 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:760-768 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:568-576 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1100-1108 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:595-603 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:813-821 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:867-875 | examples/textual_inversion/textual_inversion.py:892-900 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 944 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:727\u0060 calls \u0060cat\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py:1155\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"1387a53111a4d478c6cd8dec67d00154c2d11700044bd74b3384f9c6bf0023d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 11): examples/dreambooth/train_dreambooth.py:81-88 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:85-92 | examples/research_projects/lpl/train_sdxl_lpl.py:146-153 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:81-88 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:67-74 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:81-88 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:76-83 | examples/text_to_image/train_text_to_image_lora.py:76-83 | examples/text_to_image/train_text_to_image_lora_sdxl.py:87-94 | examples/text_to_image/train_text_to_image_sdxl.py:80-87 | examples/textual_inversion/textual_inversion.py:91-99 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 48 separate duplicated blocks between them, totalling at least 730 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"26931b846bf7e6212e297d4b212a6f4f5234380c5ab3e4eaecfab38f46539418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 10): examples/cogview4-control/train_control_cogview4.py:1137-1144 | examples/controlnet/train_controlnet_sd3.py:1373-1380 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1762-1769 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1825-1832 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1775-1782 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1916-1923 | examples/flux-control/train_control_flux.py:1144-1151 | examples/flux-control/train_control_lora_flux.py:1290-1297 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1116-1123 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1016-1024 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cogview4-control/train_control_cogview4.py:1136\u0060 calls \u0060view\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1759\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"907c5a3e184c7d1cac2a830fe41493d1179b42edd78732132241b04d11e2a932"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 9): examples/dreambooth/train_dreambooth_flux.py:778-792 | examples/dreambooth/train_dreambooth_lora_flux.py:824-838 | examples/dreambooth/train_dreambooth_lora_hidream.py:831-845 | examples/dreambooth/train_dreambooth_lora_lumina2.py:754-768 | examples/dreambooth/train_dreambooth_lora_sana.py:765-779 | examples/dreambooth/train_dreambooth_lora_sd3.py:818-832 | examples/dreambooth/train_dreambooth_sd3.py:750-764 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:525-539 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:563-577 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db0a50f0e1b11d5438b9db9cd991bc594f589563771f1a0786dc5ca1d7d21ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1027-1039 | examples/dreambooth/train_dreambooth_lora_flux2.py:969-981 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:974-986 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1074-1086 | examples/dreambooth/train_dreambooth_lora_krea2.py:1036-1048 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:928-940 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:962-974 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1045-1057 | examples/dreambooth/train_dreambooth_lora_z_image.py:957-969 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6694cb5043882b0a88faac97c93287e690081fb7b73b5bfa255a8179ee73304"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 8): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1430-1437 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1422-1429 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1493-1500 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1394-1401 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1497-1504 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1372-1379 | examples/research_projects/realfill/train_realfill.py:929-936 | examples/vqgan/train_vqgan.py:1029-1037 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1382\u0060 calls \u0060log_validation\u0060 and \u0060examples/vqgan/train_vqgan.py:1038\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba32ea8c9af03b8d95ee3d4e4fdee32937cc4d7946252ddac23f7251c9ab2f17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): examples/dreambooth/train_dreambooth.py:642-650 | examples/dreambooth/train_dreambooth_flax.py:245-253 | examples/dreambooth/train_dreambooth_lora.py:603-611 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:274-282 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:321-329 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:320-328 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:662-670 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:602-610 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 463 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth.py:652\u0060 calls \u0060min\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py:283\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"042c921dcc8659b80543bc2680a347f03dbbddc2f58da829c5ad010ac432a8d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): examples/dreambooth/train_dreambooth_flax.py:197-205 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:202-210 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:246-254 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:248-256 | examples/research_projects/ip_adapter/tutorial_train_plus.py:264-272 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:309-317 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:172-180 | examples/textual_inversion/textual_inversion_flax.py:185-193 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flax.py:197\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c035ad4f60e7d01a2c6d2cef4a0ccc1282164f52c70c6e26af1637a00b00445"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): examples/instruct_pix2pix/train_instruct_pix2pix.py:541-549 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:597-605 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:632-640 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:530-538 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:312-320 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:657-665 | examples/text_to_image/train_text_to_image.py:650-658 | examples/unconditional_image_generation/train_unconditional.py:321-329 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5131b5d7edebe6b9c10ce7b7626546ed6ff5a2d07c66881fb1bba9a75f8140"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): examples/cosmos/train_cosmos_predict25_lora.py:682-690 | examples/instruct_pix2pix/train_instruct_pix2pix.py:909-917 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1115-1123 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1001-1009 | examples/research_projects/lora/train_text_to_image_lora.py:830-838 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:846-854 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:820-828 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cosmos/train_cosmos_predict25_lora.py"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c6ecc74a09c381d903e3ff941deeb0a84cb63622556e2f9237f67e2bda54ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1678-1686 | examples/dreambooth/train_dreambooth_lora_flux2.py:1666-1674 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1626-1634 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1752-1760 | examples/dreambooth/train_dreambooth_lora_krea2.py:1657-1665 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1557-1565 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1604-1612 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:1676\u0060 calls \u0060compute_remote_text_embeddings\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1636\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa3b7c78ed898600213fcc48d86d4a4a24ef5e22cfdb40d180f78af7aad428f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:208-216 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:205-213 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:391-401 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:178-186 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:413-423 | examples/textual_inversion/textual_inversion_flax.py:191-199 | examples/textual_inversion/textual_inversion_sdxl.py:427-437 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:391\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:203\u0060 calls \u0060add_argument\u0060, \u0060parse_args\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:391\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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"acef8b77070927770300f911cfe68dd01594d516fb7e495e3c00852c064cc6a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1067-1077 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1297-1305 | examples/dreambooth/train_dreambooth_lora_sdxl.py:959-967 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:958-966 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:491-499 | examples/text_to_image/train_text_to_image_lora_sdxl.py:530-538 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1067\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"957f3853a9fddf4fbdde0fd32835bcafb5d5878613ed450665c05400ec09c192"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 6): examples/community/lpw_stable_diffusion_xl.py:1906-1914 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:717-725 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1370-1378 | examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:1047-1054 | examples/community/pipeline_stable_diffusion_xl_instantid.py:1036-1043 | examples/community/stable_diffusion_xl_controlnet_reference.py:1322-1330 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1906}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65419e69cb1916f123db45b7ee90b870c5959c0f2520612c904b55918cf23ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 6): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:688-696 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:715-723 | examples/research_projects/lora/train_text_to_image_lora.py:796-803 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1073-1080 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:551-558 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:842-847 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a36bf63ca32afe8c97df66bf9b96aa3a40a642d01e40e27d426726c78dcd3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:242-250 | examples/dreambooth/train_dreambooth_lora_flux.py:196-204 | examples/dreambooth/train_dreambooth_lora_hidream.py:203-211 | examples/dreambooth/train_dreambooth_lora_krea2.py:215-223 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:194-202 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"272b89c09d898a814470da09bf8df19b46943f2c9350df4d4bbc72e36f9444b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1913-1919 | examples/dreambooth/train_dreambooth_flux.py:1426-1432 | examples/dreambooth/train_dreambooth_lora_flux.py:1530-1536 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1775-1781 | examples/dreambooth/train_dreambooth_lora_hidream.py:1402-1410 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1913}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8303ecee2527774a7e7aaa737e383bb205c7a29db63585bee2e2c43e92341d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1693-1702 | examples/dreambooth/train_dreambooth_lora.py:1000-1009 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1296-1305 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1017-1026 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1332-1341 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1690\u0060 calls \u0060isinstance\u0060, \u0060unwrap_model\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py:997\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"172d92b9c20ab26bedbdaff7730e1f9ecef03ffe3ccc35569cdf22c4e70f57ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): examples/instruct_pix2pix/train_instruct_pix2pix.py:900-908 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:992-1000 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:996-1004 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:837-845 | examples/text_to_image/train_text_to_image_lora.py:894-902 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"1951dd6a8af68093eeb5fcd39679fdbf943bd724e9d8041625fe008949827fde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 5): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:918-924 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:936-942 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1130-1136 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:908-916 | examples/text_to_image/train_text_to_image.py:1137-1143 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:908\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:913\u0060 calls \u0060enable_model_cpu_offload\u0060, \u0060enable_xformers_memory_efficient_attention\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:934\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf811b540dfdc63abf04f1143660d28124f269b8f58cde11bd498d58e5f7b3ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:803-811 | examples/dreambooth/train_dreambooth_flux.py:636-644 | examples/dreambooth/train_dreambooth_lora.py:535-543 | examples/text_to_image/train_text_to_image_sdxl.py:473-481 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_flux.py:645\u0060 calls \u0060add_argument\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:813\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"e304bbed24d3c5e47d1c603ef38107d6e9a7fad7850beea6d2aaa0e346a2ace5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): examples/controlnet/train_controlnet_sd3.py:215-223 | examples/dreambooth/train_dreambooth_lora_hidream.py:175-183 | examples/dreambooth/train_dreambooth_lora_sd3.py:174-182 | examples/dreambooth/train_dreambooth_sd3.py:150-158 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_hidream.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 918 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd429cc0c64fef4419ad894f84a7c1ddaf3920d77fc868f978dceaf9dbe68aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_krea2.py:1285-1293 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1224-1232 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1266-1274 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1357-1365 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:1285\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa9fba598a071d705fd69bc0709faf7b2e79e6a7acaad6de3ddff8da6f90a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): examples/research_projects/multi_token_textual_inversion/textual_inversion.py:795-803 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:849-857 | examples/textual_inversion/textual_inversion.py:874-882 | examples/textual_inversion/textual_inversion_sdxl.py:918-926 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 and \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1488 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/multi_token_textual_inversion/textual_inversion.py"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdd910b4c47c28675b1338fad90d498fe54f496f6620b82497b1e0c438ea28c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20139 lines \u00D7 7): scripts/convert_dit_to_diffusers.py:61-62 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:43-44 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:45-53 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:73-81 | scripts/convert_hunyuandit_to_diffusers.py:40-41 | scripts/convert_hunyuandit_to_diffusers.py:42-50 | scripts/convert_hunyuandit_to_diffusers.py:70-78 \u2014 there are 7 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_dit_to_diffusers.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d0bc15eecac05f56be641e1b22379b7650ad40cad6f62d25862330bad2054a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): scripts/convert_ldm_original_checkpoint_to_diffusers.py:119-127 | scripts/convert_original_audioldm2_to_diffusers.py:191-199 | scripts/convert_original_audioldm_to_diffusers.py:189-197 | scripts/convert_original_musicldm_to_diffusers.py:189-197 \u2014 before extracting anything, compare \u0060scripts/convert_ldm_original_checkpoint_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_ldm_original_checkpoint_to_diffusers.py:115\u0060 calls \u0060replace\u0060 and \u0060scripts/convert_original_audioldm2_to_diffusers.py:189\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/convert_ldm_original_checkpoint_to_diffusers.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"72bdd01ded909a253efe52ef602905e7558bccf4468a9e866425bea016c26404"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): scripts/convert_mochi_to_diffusers.py:170-178 | scripts/convert_mochi_to_diffusers.py:271-279 | scripts/convert_mochi_to_diffusers.py:356-364 | scripts/convert_mochi_to_diffusers.py:388-396 \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":"scripts/convert_mochi_to_diffusers.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e7e3be2a88608f103c5aea48f01c59f0f1c1eacb7989896cf62b3fb30c72f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1033-1041 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:843-851 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:525-533 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux_kontext.py\u0060 as WHOLE FILES: this scan already matched 148 separate duplicated blocks between them, totalling at least 2602 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f0718040eebff94cddb7e6ee21a64009c1da637447250cdb5ad43e1152f8d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1954-1962 | examples/dreambooth/train_dreambooth_lora_flux.py:1558-1566 | examples/dreambooth/train_dreambooth_lora_sd3.py:1595-1603 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85311b07c9778f0ae32fcde2f21b5d33032870a080a429e14c55e303ac5df88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1885-1893 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1479-1487 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1515-1523 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1f5d5108bdf8a84b71f6cb1999b3419166dc582a8679b84ac768d23f07797e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): examples/community/lpw_stable_diffusion_xl.py:1134-1143 | examples/community/pipeline_animatediff_img2video.py:683-691 | examples/community/pipeline_sdxl_style_aligned.py:957-966 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion_xl.py"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"970bd418a78e3b49e2fee723feaa05fb112c08c8c6355537ebd9a14c41c491af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/community/pipeline_flux_differential_img2img.py:507-517 | examples/community/pipeline_flux_with_cfg.py:468-478 | examples/community/pipeline_z_image_differential_img2img.py:309-319 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_differential_img2img.py\u0060 and \u0060examples/community/pipeline_flux_with_cfg.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 532 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_flux_differential_img2img.py:507\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":"examples/community/pipeline_flux_differential_img2img.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef36a6fc7284162928fd19701471cb79d9747e4a03e9d21091307831e0efeb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): examples/community/pipeline_hunyuandit_differential_img2img.py:1060-1068 | examples/community/pipeline_kolors_differential_img2img.py:1171-1179 | examples/community/pipeline_stable_diffusion_3_differential_img2img.py:909-917 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"1702e52ef27e40cfec4de647150ee6e5e18129d93ded08d55ce31b9a65c61c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:155-165 | examples/community/stable_diffusion_tensorrt_inpaint.py:159-169 | examples/community/stable_diffusion_tensorrt_txt2img.py:142-152 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bbe76ded3e8db9b47629731764797da2fe8d2774012afbade8cbfed7e27738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:168-176 | examples/community/stable_diffusion_tensorrt_inpaint.py:172-180 | examples/community/stable_diffusion_tensorrt_txt2img.py:155-163 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc1484a75552317b364dc2cd4ea4824b5e992a91189fe181113db34d653ec8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 4): examples/controlnet/train_controlnet_flux.py:803-811 | examples/controlnet/train_controlnet_sd3.py:800-803 | examples/controlnet/train_controlnet_sdxl.py:818-826 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:772-780 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py\u0060 as WHOLE FILES: this scan already matched 99 separate duplicated blocks between them, totalling at least 1591 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet_flux.py:801\u0060 calls \u0060stack\u0060, \u0060tensor\u0060 and \u0060examples/controlnet/train_controlnet_sd3.py:800\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":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a9550413ff86b8c7ab2445c4fe147c2dcba7eae78b0aedc9e1ad82c916462f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): examples/controlnet/train_controlnet_sd3.py:918-926 | examples/dreambooth/train_dreambooth_lora_sd3.py:1052-1060 | examples/dreambooth/train_dreambooth_sd3.py:977-985 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 965 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:918\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":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9d1623d8dcff7f9b7ba35fae9a2f808100f09cc7f3fac59078f9ec147fc311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 3): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:495-503 | examples/research_projects/gligen/train_gligen_text.py:218-223 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:117-122 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/gligen/train_gligen_text.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 160 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:495\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"496955e052ac0cc3a4ebbf2166cf89ae472fe98af4b234b0f12ac8e059c6db24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:800-813 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:782-795 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:547-560 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b709c8e90265020f1b29f06d17f3e7d2074455d7b24064a72c3b9a746fb3dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 3): examples/research_projects/multi_token_textual_inversion/textual_inversion.py:614-619 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:628-633 | examples/research_projects/realfill/train_realfill.py:594-602 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 and \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1488 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:614\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":"examples/research_projects/multi_token_textual_inversion/textual_inversion.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0891908525ea8f743d233ff48691cd19cfd31627125016a4c90bf8920cb3fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:355-363 | examples/text_to_image/train_text_to_image_flax.py:282-291 | examples/textual_inversion/textual_inversion_flax.py:368-376 \u2014 before extracting anything, compare \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:355\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":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36b1c6348d55da8b745da59f54ec51708fa22c32b3e1b35e14f703843027eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): scripts/convert_if.py:452-460 | scripts/convert_if.py:1055-1063 | scripts/convert_versatile_diffusion_to_diffusers.py:508-515 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_if.py:1052\u0060 calls \u0060any\u0060 and \u0060scripts/convert_if.py:451\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/convert_if.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bede2432153be95dd9a94d77312e3f1992ed4052e8acea64a90282f009178c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): examples/amused/train_amused.py:846-854 | examples/vqgan/train_vqgan.py:967-974 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/amused/train_amused.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73a93a746fa53f77bfb7d713bb1566188e8b09694b3656a6815433e35aa576f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/community/fresco_v2v.py:1198-1206 | examples/community/fresco_v2v.py:1353-1361 \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":"examples/community/fresco_v2v.py"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"779ff9e8a4b9da959b9fb3886c8a6b0081a18de3f1f45db99d3eeecddcad6c99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/community/mixture_tiling.py:351-359 | examples/community/mixture_tiling_sdxl.py:1127-1135 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"examples/community/mixture_tiling.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac9212b87070b03c82286c631e67729876d9c932c76625fe1d06817894e5d8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201310 lines \u00D7 3): examples/community/pipeline_animatediff_controlnet.py:191-195 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:229-238 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:376-385 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 321 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:228\u0060 calls \u0060register_to_config\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py:190\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":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a304da5377fc21a7b9b6c41faf715627511a7c6fcccc4fef8cbfb6a7b0c7af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:156-164 | examples/community/pipeline_stable_diffusion_xl_instantid.py:156-164 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"82637e9402d46b8b32a39c940094ce44a88d6d368a10e40dafacd04ba2878950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:255-263 | examples/community/pipeline_stable_diffusion_xl_instantid.py:255-263 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf8ebff9c36cf63e9f50fbe36893e14f9e24041f1fd66c66e3ca57a143fb29a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/community/stable_diffusion_controlnet_img2img.py:482-490 | examples/community/stable_diffusion_controlnet_inpaint.py:584-592 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 931 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/stable_diffusion_controlnet_inpaint.py:581\u0060 calls \u0060ValueError\u0060 and \u0060examples/community/stable_diffusion_controlnet_img2img.py:481\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"9523697f1518578d3e3279451c79619b1c637969a5cbfd47a343fef8d406462c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/dreambooth/train_dreambooth_flax.py:559-567 | examples/text_to_image/train_text_to_image_flax.py:505-513 \u2014 \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.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 28 separate duplicated blocks between them, totalling at least 452 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flax.py:559\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, \u0060examples/dreambooth/train_dreambooth_flax.py:571\u0060 calls \u0060split\u0060 and \u0060examples/text_to_image/train_text_to_image_flax.py:515\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f2a7bf45867f173594715a26495f53fb6e9fb9845f7c63caed58cdd0b5a944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:140-157 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:162-179 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"965a21a11418eb683032f3e8e01e57ac2680145523a316cfba79c79017c85881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1810-1818 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1954-1962 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 3378 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2_klein.py"},"region":{"startLine":1810}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d6a0dbad1cf1e960f818707aa8690284f5ba095e3e175ebdf6bd282bb2e812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sd3.py:1239-1247 | examples/dreambooth/train_dreambooth_sd3.py:1169-1177 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 188 separate duplicated blocks between them, totalling at least 3169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b234af1fa225314441eed7506519a2ff2fe7c78c88c837e6be86456e714c5d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/research_projects/ip_adapter/tutorial_train_faceid.py:371-379 | examples/research_projects/ip_adapter/tutorial_train_plus.py:391-399 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_plus.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 345 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"844a92cc3adf013f210aa65087f45ca7fef193c1d088a9ec9cddb09d9772a10b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/convert_asymmetric_vqgan_to_diffusers.py:74-82 | scripts/convert_asymmetric_vqgan_to_diffusers.py:96-104 \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 \u0060scripts/convert_asymmetric_vqgan_to_diffusers.py:74\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/convert_asymmetric_vqgan_to_diffusers.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"342d86d065575f5b792ee29ac2816f6c99213d844f5028d27cf6ae91ebe77733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/convert_cogvideox_to_diffusers.py:186-194 | scripts/convert_ltx_to_diffusers.py:170-178 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_ltx_to_diffusers.py:168\u0060 calls \u0060startswith\u0060 and \u0060scripts/convert_cogvideox_to_diffusers.py:185\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/convert_cogvideox_to_diffusers.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46819182d2f49b37bcbeb6118d83194ff9a8e30063b07e5ac20dcf61c3ad7da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): scripts/convert_stable_audio_3_to_diffusers.py:518-524 | scripts/convert_stable_audio_3_to_diffusers.py:531-539 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_stable_audio_3_to_diffusers.py:527\u0060 calls \u0060get\u0060 and \u0060scripts/convert_stable_audio_3_to_diffusers.py:518\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/convert_stable_audio_3_to_diffusers.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbee7950ae30b71458da1973603d6305def0cf5cc81fcf287815dc158548e43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 75): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2043-2050 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1353-1360 | examples/cogvideo/train_cogvideox_lora.py:1369-1376 | examples/controlnet/train_controlnet.py:1015-1022 | examples/controlnet/train_controlnet_flux.py:1203-1210 | examples/controlnet/train_controlnet_sd3.py:1260-1267 | examples/controlnet/train_controlnet_sdxl.py:1197-1204 | examples/dreambooth/train_dreambooth.py:1205-1212 | examples/dreambooth/train_dreambooth_flux.py:1526-1533 | examples/dreambooth/train_dreambooth_lora.py:1218-1225 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1797-1804 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1631-1638 | examples/dreambooth/train_dreambooth_lora_flux.py:1650-1657 | examples/dreambooth/train_dreambooth_lora_flux2.py:1782-1789 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1683-1690 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1739-1746 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1631-1638 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1882-1889 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1768-1775 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1917-1924 | examples/dreambooth/train_dreambooth_lora_hidream.py:1517-1524 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1875-1882 | examples/dreambooth/train_dreambooth_lora_krea2.py:1751-1758 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1312-1319 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1651-1658 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1703-1710 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1796-1803 | examples/dreambooth/train_dreambooth_lora_sana.py:1334-1341 | examples/dreambooth/train_dreambooth_lora_sd3.py:1683-1690 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1617-1624 | examples/dreambooth/train_dreambooth_lora_z_image.py:1666-1673 | examples/dreambooth/train_dreambooth_sd3.py:1504-1511 | examples/instruct_pix2pix/train_instruct_pix2pix.py:819-826 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1006-1013 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:749-756 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:587-594 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:603-610 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:752-759 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:861-868 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:776-783 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:912-919 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:894-901 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:897-904 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:663-670 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:690-697 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:987-994 | examples/research_projects/gligen/train_gligen_text.py:527-534 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:911-918 | examples/research_projects/lora/train_text_to_image_lora.py:768-775 | examples/research_projects/lpl/train_sdxl_lpl.py:1178-1185 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:758-765 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:775-782 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:814-821 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:532-539 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:947-954 | examples/research_projects/realfill/train_realfill.py:820-827 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1304-1311 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1237-1244 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1223-1230 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1640-1647 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:907-914 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:752-759 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1038-1045 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1051-1058 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:920-927 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:786-793 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:760-767 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1144-1151 | examples/text_to_image/train_text_to_image.py:926-933 | examples/text_to_image/train_text_to_image_lora.py:833-840 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1070-1077 | examples/text_to_image/train_text_to_image_sdxl.py:1047-1054 | examples/textual_inversion/textual_inversion.py:838-845 | examples/textual_inversion/textual_inversion_sdxl.py:880-887 | examples/unconditional_image_generation/train_unconditional.py:567-574 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 75 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 75 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2043}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf01c3bf6d01ea847daa80170a886e1ae1c8aec0dfc23111416e8bfcb195ae7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 51): examples/cogview4-control/train_control_cogview4.py:755-762 | examples/controlnet/train_controlnet.py:775-782 | examples/controlnet/train_controlnet_flux.py:864-871 | examples/controlnet/train_controlnet_sd3.py:981-988 | examples/controlnet/train_controlnet_sdxl.py:876-883 | examples/dreambooth/train_dreambooth.py:908-915 | examples/dreambooth/train_dreambooth_lora.py:860-867 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1085-1092 | examples/flux-control/train_control_flux.py:747-754 | examples/flux-control/train_control_lora_flux.py:777-784 | examples/instruct_pix2pix/train_instruct_pix2pix.py:472-479 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:532-539 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:487-494 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:377-384 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:390-397 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:488-495 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:609-616 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:833-840 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:511-518 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:553-560 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:543-550 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:650-657 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:477-484 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:476-483 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:530-537 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:390-397 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:453-460 | examples/research_projects/lora/train_text_to_image_lora.py:445-452 | examples/research_projects/lpl/train_sdxl_lpl.py:770-777 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:598-605 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:459-466 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:612-619 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:361-368 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:603-610 | examples/research_projects/realfill/train_realfill.py:576-583 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:951-958 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:879-886 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1145-1152 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:585-592 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:484-491 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:581-588 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:673-680 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:489-496 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:487-494 | examples/text_to_image/train_text_to_image.py:573-580 | examples/text_to_image/train_text_to_image_lora.py:497-504 | examples/text_to_image/train_text_to_image_lora_sdxl.py:600-607 | examples/text_to_image/train_text_to_image_sdxl.py:654-661 | examples/textual_inversion/textual_inversion.py:637-644 | examples/textual_inversion/textual_inversion_sdxl.py:636-643 | examples/unconditional_image_generation/train_unconditional.py:370-377 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/controlnet/train_controlnet.py:786\u0060 calls \u0060from_pretrained\u0060 and \u0060examples/cogview4-control/train_control_cogview4.py:766\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"12bc1da2f3eaf5c296483e49ae79d41df710abd057acbac7a9e18209000e2360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 30): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2318-2325 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2344-2351 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1409-1416 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1401-1408 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1472-1479 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1373-1380 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1476-1483 | examples/controlnet/train_controlnet.py:1108-1115 | examples/controlnet/train_controlnet_sd3.py:1390-1397 | examples/dreambooth/train_dreambooth.py:1349-1356 | examples/dreambooth/train_dreambooth_flux.py:1725-1732 | examples/dreambooth/train_dreambooth_lora.py:1341-1348 | examples/dreambooth/train_dreambooth_lora_flux.py:1864-1871 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1456-1463 | examples/dreambooth/train_dreambooth_lora_sana.py:1471-1478 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1876-1883 | examples/dreambooth/train_dreambooth_sd3.py:1680-1687 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1405-1412 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:902-909 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1056-1063 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1014-1021 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1017-1024 | examples/research_projects/realfill/train_realfill.py:908-915 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1649-1656 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1412-1419 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1378-1385 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1918-1925 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1034-1041 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1255-1262 | examples/unconditional_image_generation/train_unconditional.py:639-646 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py:1371\u0060 calls \u0060update_ema\u0060, \u0060parameters\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1407\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f51e9e085119f80772d4aa63bbbb5cedaa7997c61ab565755ad080b76280ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 20): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2030-2037 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2019-2026 | examples/dreambooth/train_dreambooth_flux.py:1502-1509 | examples/dreambooth/train_dreambooth_lora_flux.py:1626-1633 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1659-1666 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1607-1614 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1893-1900 | examples/dreambooth/train_dreambooth_lora_hidream.py:1493-1500 | examples/dreambooth/train_dreambooth_lora_krea2.py:1727-1734 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1288-1295 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1627-1634 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1679-1686 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1772-1779 | examples/dreambooth/train_dreambooth_lora_sana.py:1310-1317 | examples/dreambooth/train_dreambooth_lora_sd3.py:1659-1666 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1593-1600 | examples/dreambooth/train_dreambooth_sd3.py:1480-1487 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:963-970 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1616-1623 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:896-903 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2024\u0060 calls \u0060ceil\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2018\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2030}}}],"partialFingerprints":{"codehealthFindingId/v1":"7445824a8c8d772cff338e2f5d7d71eb01e350799c90d29f103151238d0bc706"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 20): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1152-1159 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1407-1414 | examples/dreambooth/train_dreambooth.py:888-895 | examples/dreambooth/train_dreambooth_flux.py:1109-1116 | examples/dreambooth/train_dreambooth_lora.py:841-848 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1208-1215 | examples/dreambooth/train_dreambooth_lora_hidream.py:1007-1014 | examples/dreambooth/train_dreambooth_lora_krea2.py:1224-1231 | examples/dreambooth/train_dreambooth_lora_lumina2.py:930-937 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1164-1171 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1198-1205 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1289-1296 | examples/dreambooth/train_dreambooth_lora_sana.py:943-950 | examples/dreambooth/train_dreambooth_lora_sd3.py:1142-1149 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1065-1072 | examples/dreambooth/train_dreambooth_sd3.py:1067-1074 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:845-852 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:931-938 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:859-866 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1125-1132 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8f03462054ea00155bf1abe3c83f6cf1917512889480e6b31fd40b885c3d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 19): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1059-1066 | examples/instruct_pix2pix/train_instruct_pix2pix.py:715-722 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:916-923 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:666-673 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:516-523 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:530-537 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:673-680 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:807-814 | examples/research_projects/lora/train_text_to_image_lora.py:686-693 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:684-691 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:863-870 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:810-817 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:680-687 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:701-708 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:684-691 | examples/text_to_image/train_text_to_image.py:815-822 | examples/text_to_image/train_text_to_image_flax.py:375-382 | examples/text_to_image/train_text_to_image_lora.py:696-703 | examples/vqgan/train_vqgan.py:799-805 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 496 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1055\u0060 calls \u0060list\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:912\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"32976d3b43d6cb2b75c16efcee7af144c79e5519714dfa09c585a1bc3eb82b06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 17): examples/controlnet/train_controlnet.py:666-673 | examples/controlnet/train_controlnet_flax.py:578-585 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:508-515 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:651-658 | examples/research_projects/lora/train_text_to_image_lora.py:655-662 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:653-660 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:820-827 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:555-562 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:779-786 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:644-651 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:887-894 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:670-677 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:653-660 | examples/text_to_image/train_text_to_image.py:777-784 | examples/text_to_image/train_text_to_image_flax.py:346-353 | examples/text_to_image/train_text_to_image_lora.py:653-660 | examples/text_to_image/train_text_to_image_lora_sdxl.py:913-920 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet.py:663\u0060 calls \u0060random\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:506\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e832a61190ad19cfcc129e61bf99a8e0d041293e30a1a259fa9936b0a47d00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 15): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:807-814 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:646-653 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:679-686 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:826-833 | examples/research_projects/lpl/train_sdxl_lpl.py:1288-1295 | examples/research_projects/lpl/train_sdxl_lpl.py:1332-1339 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:852-859 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1014-1021 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:855-862 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1176-1183 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1191-1198 | examples/text_to_image/train_text_to_image.py:1019-1026 | examples/text_to_image/train_text_to_image_lora.py:910-917 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1184-1191 | examples/text_to_image/train_text_to_image_sdxl.py:1154-1161 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f8019b0f58a357347294407ad345834cf24627d67ef95a1cadb0a669e5830f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 13): examples/custom_diffusion/train_custom_diffusion.py:1148-1155 | examples/instruct_pix2pix/train_instruct_pix2pix.py:859-866 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1051-1058 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:787-794 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:626-633 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:579-586 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1343-1351 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:951-958 | examples/research_projects/lora/train_text_to_image_lora.py:808-815 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1085-1094 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:800-807 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:854-861 | examples/textual_inversion/textual_inversion.py:879-886 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.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 42 separate duplicated blocks between them, totalling at least 571 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/custom_diffusion/train_custom_diffusion.py:1161\u0060 calls \u0060unet\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py:821\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":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbaf4fb04e88b303990e2aa466c1bc4ec68ada9e64479c4d4b0c8e9cc86f79b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 13): examples/dreambooth/train_dreambooth.py:187-192 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:165-170 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:168-173 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:886-891 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:96-101 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:144-149 | examples/research_projects/realfill/train_realfill.py:152-158 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:187-192 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:170-175 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:171-177 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:168-175 | examples/text_to_image/train_text_to_image.py:176-181 | examples/textual_inversion/textual_inversion.py:155-160 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 355 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/realfill/train_realfill.py:152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"684a940b7a8732766ead8ee4846beaf6375fa2bd86f79a3f6c8a12ff4b465bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 13): examples/dreambooth/train_dreambooth_lora.py:425-432 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:486-494 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:348-355 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:367-374 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:365-372 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:349-356 | examples/research_projects/lpl/train_sdxl_lpl.py:477-484 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:416-423 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:363-370 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:407-414 | examples/text_to_image/train_text_to_image_lora_sdxl.py:410-417 | examples/text_to_image/train_text_to_image_sdxl.py:411-418 | examples/textual_inversion/textual_inversion_sdxl.py:323-330 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 13 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 13 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora.py:425\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora.py:435\u0060 calls \u0060add_argument\u0060 and \u0060examples/textual_inversion/textual_inversion_sdxl.py:333\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79cb816e7bf3bc6882f2c0e31e3bae70c737b92adb317f14e88006cc0d2f6e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 11): examples/controlnet/train_controlnet.py:1048-1055 | examples/custom_diffusion/train_custom_diffusion.py:1144-1151 | examples/instruct_pix2pix/train_instruct_pix2pix.py:855-862 | examples/research_projects/gligen/train_gligen_text.py:572-579 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:947-954 | examples/research_projects/lora/train_text_to_image_lora.py:804-811 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1081-1090 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:796-803 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:850-857 | examples/textual_inversion/textual_inversion.py:875-882 | examples/textual_inversion/textual_inversion_sdxl.py:919-926 \u2014 \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.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 51 separate duplicated blocks between them, totalling at least 778 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/custom_diffusion/train_custom_diffusion.py:1161\u0060 calls \u0060unet\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py:821\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ed1446992ce6954e41b1ac3d8296057d329ee51f387910dfa898a9c604e43d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 11): examples/custom_diffusion/train_custom_diffusion.py:636-645 | examples/dreambooth/train_dreambooth.py:582-591 | examples/dreambooth/train_dreambooth_lora.py:543-552 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:227-234 | examples/research_projects/lpl/train_sdxl_lpl.py:597-606 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:602-611 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:542-551 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:452-461 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:485-494 | examples/text_to_image/train_text_to_image_lora_sdxl.py:491-500 | examples/text_to_image/train_text_to_image_sdxl.py:481-490 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth.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 67 separate duplicated blocks between them, totalling at least 993 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:636\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbec6636ea80b1e63a5ee35fd051f19ae999b3e267364291a8e6eae59812a98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 11): examples/custom_diffusion/train_custom_diffusion.py:1148-1155 | examples/instruct_pix2pix/train_instruct_pix2pix.py:859-866 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:579-586 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:951-958 | examples/research_projects/lora/train_text_to_image_lora.py:808-815 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1085-1094 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:800-807 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:854-861 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:996-1005 | examples/text_to_image/train_text_to_image_lora.py:875-884 | examples/textual_inversion/textual_inversion.py:879-886 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.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 42 separate duplicated blocks between them, totalling at least 571 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py:996\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, \u0060examples/custom_diffusion/train_custom_diffusion.py:1161\u0060 calls \u0060unet\u0060 and \u0060examples/research_projects/lora/train_text_to_image_lora.py:821\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":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd19369c321a03dbb65cb7c9a40397114bdb458486af26330c5c7cbba90178a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 10): examples/instruct_pix2pix/train_instruct_pix2pix.py:400-407 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:457-464 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:457-464 | examples/research_projects/lpl/train_sdxl_lpl.py:602-610 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:397-404 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:501-508 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:490-498 | examples/text_to_image/train_text_to_image.py:512-519 | examples/text_to_image/train_text_to_image_sdxl.py:486-494 | examples/vqgan/train_vqgan.py:532-539 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/lpl/train_sdxl_lpl.py:600\u0060 calls \u0060parse_args\u0060 and \u0060examples/text_to_image/train_text_to_image.py:510\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81a09a1630f8200772b36d7cd48a67265f8dcfb33af12c6561cefadab539f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1417-1424 | examples/dreambooth/train_dreambooth.py:898-905 | examples/dreambooth/train_dreambooth_flux.py:1119-1126 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1075-1082 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:467-474 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:466-473 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:941-948 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:869-876 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1135-1142 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 907 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_flux.py:1127\u0060 calls \u0060is_torch_npu_available\u0060, \u0060empty_cache\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1427\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df909f6c0e79e0f4af9a23c5d00932210309b44f96064c06609fc4b8b141a67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): examples/community/composable_stable_diffusion.py:278-285 | examples/community/lpw_stable_diffusion.py:727-734 | examples/community/pipeline_zero1to3.py:447-454 | examples/community/sd_text2img_k_diffusion.py:229-236 | examples/community/stable_diffusion_controlnet_img2img.py:323-330 | examples/community/stable_diffusion_controlnet_inpaint.py:422-429 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:407-414 | examples/community/stable_diffusion_ipex.py:458-465 | examples/community/stable_diffusion_repaint.py:432-439 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/lpw_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e671fc9d1096aa4d5456d6308b7524056beeb5c43ce1bc425a8efeee102142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1206-1214 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1188-1196 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1250-1258 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1157-1165 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1251-1259 | examples/custom_diffusion/train_custom_diffusion.py:1108-1116 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1176-1184 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1269-1277 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1045-1053 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8dabe56a73786ca8fd9b8c435f5b30bf87decf7a10cff967394d542811a6745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 9): examples/instruct_pix2pix/train_instruct_pix2pix.py:477-484 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:535-542 | examples/research_projects/lora/train_text_to_image_lora.py:450-457 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:464-471 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:509-516 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:590-597 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:489-495 | examples/text_to_image/train_text_to_image.py:578-585 | examples/text_to_image/train_text_to_image_lora.py:502-508 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py\u0060 as WHOLE FILES: this scan already matched 145 separate duplicated blocks between them, totalling at least 2660 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:477\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4824fbc7587f0a797ac1a89cdd00e10e02be86885eecc78cdd357838a22a87f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): examples/instruct_pix2pix/train_instruct_pix2pix.py:843-850 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:686-693 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:713-720 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:935-942 | examples/research_projects/lora/train_text_to_image_lora.py:794-801 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1071-1078 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:549-556 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:799-806 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:840-847 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 662 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/lora/train_text_to_image_lora.py:792\u0060 calls \u0060train\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:685\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"14876667956ed0dafabac9f15eeebe2b9aa977a5664e48d4d433fedecc0e8000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): scripts/convert_dit_to_diffusers.py:95-103 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:150-157 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:165-173 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:182-189 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:192-199 | scripts/convert_hunyuandit_to_diffusers.py:135-142 | scripts/convert_hunyuandit_to_diffusers.py:150-158 | scripts/convert_hunyuandit_to_diffusers.py:167-174 | scripts/convert_hunyuandit_to_diffusers.py:177-184 \u2014 there are 9 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 9 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_hunyuandit_controlnet_to_diffusers.py:178\u0060 calls \u0060pop\u0060 and \u0060scripts/convert_hunyuandit_controlnet_to_diffusers.py:149\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/convert_dit_to_diffusers.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e3a7a8c33fbaa4847bbf465894ed74ca047b1174351198279aef15f14ffa7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:316-323 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:374-381 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:506-513 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:286-293 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:523-530 | examples/textual_inversion/textual_inversion.py:551-558 | examples/textual_inversion/textual_inversion_flax.py:299-306 | examples/textual_inversion/textual_inversion_sdxl.py:540-547 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d015412f073ed81e081a121bd66bdef6c2e54aca45b350cf872c02e7eb48603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_flux2.py:1758-1765 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1715-1722 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1858-1865 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1744-1751 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1851-1858 | examples/dreambooth/train_dreambooth_lora_z_image.py:1642-1649 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 207 separate duplicated blocks between them, totalling at least 3698 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:1757\u0060 calls \u0060str\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_ideogram4.py:1849\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":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"a058f9e1afc7f7cb8ba3f5ad22be9eb1e2ebb69da1ee032f763a8fa0a64bf74d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): scripts/convert_amused.py:204-211 | scripts/convert_cogview3_to_diffusers.py:86-102 | scripts/convert_cogview4_to_diffusers.py:95-111 | scripts/convert_hunyuan_image_to_diffusers.py:193-211 | scripts/convert_pixart_alpha_to_diffusers.py:59-71 | scripts/convert_pixart_sigma_to_diffusers.py:59-71 \u2014 before extracting anything, compare \u0060scripts/convert_amused.py\u0060 and \u0060scripts/convert_pixart_alpha_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_cogview3_to_diffusers.py:86\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/convert_amused.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8f187d41161cf76f23e93d45977999cad970dd7f2d8db8b381a9af56a53267"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): scripts/convert_gligen_to_diffusers.py:224-231 | scripts/convert_i2vgen_to_diffusers.py:165-172 | scripts/convert_original_audioldm2_to_diffusers.py:328-335 | scripts/convert_original_audioldm_to_diffusers.py:337-344 | scripts/convert_original_musicldm_to_diffusers.py:333-340 | scripts/convert_versatile_diffusion_to_diffusers.py:398-405 \u2014 before extracting anything, compare \u0060scripts/convert_gligen_to_diffusers.py\u0060 and \u0060scripts/convert_i2vgen_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_original_audioldm2_to_diffusers.py:327\u0060 calls \u0060startswith\u0060 and \u0060scripts/convert_gligen_to_diffusers.py:223\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/convert_gligen_to_diffusers.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"560e9656225c00a8b1d17e1475a723b8e173fbf2e3c9b9447abae681e558520c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): examples/community/clip_guided_stable_diffusion_img2img.py:205-212 | examples/community/latent_consistency_img2img.py:209-216 | examples/community/rerender_a_video.py:561-568 | examples/community/stable_diffusion_controlnet_img2img.py:551-558 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:624-631 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_stable_diffusion_img2img.py:205\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion_img2img.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbcd1af1a5ee76713fb1e518fc8266e82179f06a8c3af3390ede752d4cbebb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:420-428 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:84-92 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:408-416 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:398-406 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:431-439 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb70614bc94ff76235570a1881dff503ba94ce1fe4e8175202874a604c9a1686"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): examples/controlnet/train_controlnet_flax.py:699-706 | examples/dreambooth/train_dreambooth_flax.py:383-390 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:358-365 | examples/text_to_image/train_text_to_image_flax.py:286-293 | examples/textual_inversion/textual_inversion_flax.py:371-378 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet_flax.py:696\u0060 calls \u0060PRNGKey\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:356\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flax.py"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd9dc05f01467d53d893a28d7cfb212adf61256f19614490c43ebb9f0905d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora.py:1324-1331 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:611-618 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:752-759 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:779-786 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1119-1126 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 590 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora.py:1333\u0060 calls \u0060clip_grad_norm_\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py:620\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e1decbce6fdf6a156986f83eec7b5d8e62118ced4a69a73095736e113dbc8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): examples/research_projects/lpl/train_sdxl_lpl.py:1215-1222 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:789-796 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1086-1093 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1085-1092 | examples/text_to_image/train_text_to_image_sdxl.py:1081-1088 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 83 separate duplicated blocks between them, totalling at least 1337 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9478a69b8e09b63ae2445858ef320f24f13e8ecf7794128f94e6e66a55f37b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): scripts/convert_ddpm_original_checkpoint_to_diffusers.py:86-93 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:116-124 | scripts/convert_original_audioldm_to_diffusers.py:186-194 | scripts/convert_original_musicldm_to_diffusers.py:186-194 | scripts/convert_versatile_diffusion_to_diffusers.py:233-241 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/convert_ldm_original_checkpoint_to_diffusers.py:115\u0060 calls \u0060replace\u0060 and \u0060scripts/convert_ddpm_original_checkpoint_to_diffusers.py:84\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/convert_ddpm_original_checkpoint_to_diffusers.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ec57af3a610c7880a4c85ec8998618596bf605af078e47f9c8f6da54218e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2176-2182 | examples/dreambooth/train_dreambooth_lora_flux.py:1743-1749 | examples/dreambooth/train_dreambooth_lora_sd3.py:1769-1776 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1033-1039 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2176}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54c44bfcaa550ce9136b0ec8b4e077353e853aace36529e90a87589675ddda7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): examples/community/llm_grounded_diffusion.py:1417-1424 | examples/community/pipeline_flux_kontext_multiple_images.py:452-459 | examples/community/pipeline_flux_semantic_guidance.py:522-529 | examples/community/pipeline_stable_diffusion_xl_ipex.py:507-514 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d66bf8fe5a585ca8abaa76faf738e452d1c2dbaba57c66772536cb8aa4fdea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 4): examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:727-734 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:785-790 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:759-766 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:817-822 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1635 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadb63bf86156356fe12557816a79a8292a1848c85aef2c770366b6937d38329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 4): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:491-496 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:169-174 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:412-419 | examples/unconditional_image_generation/train_unconditional.py:187-192 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:491\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:498\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:176\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"870621d2275e4f9f40fab714367795bcebde86de3439e234d05223f7bf5a71fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): examples/research_projects/lora/train_text_to_image_lora.py:458-465 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:615-621 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:629-635 | examples/research_projects/realfill/train_realfill.py:598-604 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 822 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lora/train_text_to_image_lora.py:458\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"4695144ab276c7204a834925cda4d32dafb767d9329164d90c289cc474a0f4e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:498-505 | examples/text_to_image/train_text_to_image_lora.py:511-518 | examples/textual_inversion/textual_inversion.py:655-662 | examples/textual_inversion/textual_inversion_sdxl.py:655-662 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 135 separate duplicated blocks between them, totalling at least 2248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:498\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"f908000f8dfccfef5154f332f62cc0e3149347f060178ad41948dd5dc8956170"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 4): scripts/convert_hunyuan_image_to_diffusers.py:671-678 | scripts/convert_hunyuan_image_to_diffusers.py:809-814 | scripts/convert_hunyuan_video1_5_to_diffusers.py:437-444 | scripts/convert_hunyuan_video1_5_to_diffusers.py:575-580 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuan_image_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuan_video1_5_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 384 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_hunyuan_image_to_diffusers.py:671\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/convert_hunyuan_image_to_diffusers.py"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"249694db327330195349cd4541adf1cc1387c61b4fe3a3c05b8e0fc403593041"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): scripts/convert_mochi_to_diffusers.py:169-175 | scripts/convert_mochi_to_diffusers.py:270-276 | scripts/convert_mochi_to_diffusers.py:298-304 | scripts/convert_mochi_to_diffusers.py:354-361 \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":"scripts/convert_mochi_to_diffusers.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fa47262b9c008de34693961c950962a7ad2010c446921a46aa983daf21079a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201318 lines \u00D7 3): examples/community/clip_guided_images_mixing_stable_diffusion.py:343-360 | examples/community/clip_guided_stable_diffusion.py:228-240 | examples/community/clip_guided_stable_diffusion_img2img.py:392-404 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py:343\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd186fb4103d5e9fc223c11e69332a89b7a8b2db547d28aa07e5ae9ba1bbb09e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/community/pipeline_demofusion_sdxl.py:966-973 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:1356-1363 | examples/community/stable_diffusion_reference.py:1432-1439 \u2014 before extracting anything, compare \u0060examples/community/pipeline_demofusion_sdxl.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 509 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"f310a90d4de4028755783e438af630d49c35f4cd7a187c068af7afb608df75ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/controlnet/train_controlnet.py:1095-1102 | examples/controlnet/train_controlnet_sdxl.py:1283-1290 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:784-791 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 126 separate duplicated blocks between them, totalling at least 2121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b61225322711d4a5ea19ab158023a4d695b78c521e16ddbacc8d0d3521b76c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:703-711 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:711-718 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:717-726 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 as WHOLE FILES: this scan already matched 96 separate duplicated blocks between them, totalling at least 1439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:703\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, \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:708\u0060 calls \u0060clone\u0060, \u0060prepare\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:717\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":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bd58e85769d69f9e856f72fd7a814b1cb5214402097b39ed059fd09798ea37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/research_projects/colossalai/train_dreambooth_colossalai.py:227-234 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:450-457 | examples/research_projects/sana/train_sana_sprint_diffusers.py:685-692 \u2014 before extracting anything, compare \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py\u0060 and \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 298 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py:682\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/colossalai/train_dreambooth_colossalai.py:225\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/colossalai/train_dreambooth_colossalai.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"034cc60038f31459d6302c695322e5e6fb93b4e608f0ba6e16ca8d0b4b11956e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:823-830 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:943-950 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:946-953 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 111 separate duplicated blocks between them, totalling at least 1755 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:937\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:817\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee4b263e4d7da21d59ca02b485aa0b830ca7bbc4c86fd729accba4e4882084b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:773-780 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:796-803 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:606-613 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:605\u0060 calls \u0060step\u0060, \u0060parameters\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:772\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":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3dde547cd0222ed4de1e0396c9ad05cf80de0538643c78de14400caf7437f3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:568-574 | examples/research_projects/realfill/train_realfill.py:506-513 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:605-611 \u2014 before extracting anything, compare \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py\u0060 and \u0060examples/research_projects/realfill/train_realfill.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 681 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:576\u0060 calls \u0060stack\u0060 and \u0060examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:614\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":"examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f331239888968526aae784a8107b65ee2b3bd215495a5d6bb5ab9159aff1967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:884-891 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:781-788 | examples/text_to_image/train_text_to_image_sdxl.py:768-775 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa776d2d14a9470de115c32b1e057051a4f109067e20189dea861e7286871a31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/research_projects/lpl/train_sdxl_lpl.py:1246-1253 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1147-1154 | examples/text_to_image/train_text_to_image_sdxl.py:1112-1119 \u2014 before extracting anything, compare \u0060examples/research_projects/lpl/train_sdxl_lpl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py\u0060 as WHOLE FILES: this scan already matched 159 separate duplicated blocks between them, totalling at least 2842 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/lpl/train_sdxl_lpl.py"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9aa232b6328d3fcd86ff63c5c5c9321b210ee532a897aa489894f0a581fe802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): scripts/convert_original_audioldm2_to_diffusers.py:736-745 | scripts/convert_original_audioldm_to_diffusers.py:701-710 | scripts/convert_original_musicldm_to_diffusers.py:707-716 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 and \u0060scripts/convert_original_audioldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bd9dcb7f2097a225938a23bff3b63003290cec0b20c0297a6530e48ecc8356"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20138 lines \u00D7 5): scripts/convert_pixart_alpha_to_diffusers.py:82-83 | scripts/convert_pixart_sigma_to_diffusers.py:81-82 | scripts/convert_sana_controlnet_to_diffusers.py:64-71 | scripts/convert_sana_to_diffusers.py:152-159 | scripts/convert_sana_video_to_diffusers.py:118-125 \u2014 before extracting anything, compare \u0060scripts/convert_pixart_alpha_to_diffusers.py\u0060 and \u0060scripts/convert_pixart_sigma_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_sana_controlnet_to_diffusers.py:64\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/convert_pixart_alpha_to_diffusers.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"97634fb7130ca838b52adf5a38371f2d7a23f5618db7a082c9902592a1770be5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1371-1377 | examples/text_to_image/train_text_to_image_lora.py:741-748 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 595 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7a5d6554ec2953cfad168460bad764211fdc1e8236edffac0190331796458f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2147-2154 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1086-1093 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 71 separate duplicated blocks between them, totalling at least 1102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f53414a6690d4052b31650bc01bceba4253e0aa8240654f83e880f1fc892d58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/community/adaptive_mask_inpainting.py:792-799 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:973-980 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:983\u0060 calls \u0060to\u0060 and \u0060examples/community/adaptive_mask_inpainting.py:801\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede406053195a21abc7f5a330a5f941c30cb55cacd18cdec644e70519aea26cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/community/adaptive_mask_inpainting.py:1216-1223 | examples/community/hd_painter.py:856-863 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"73029f134182ef312342f21c8339833a44b4733b9de44cb871023a7fe71cd4f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/community/gluegen.py:37-45 | examples/community/gluegen.py:48-56 \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 \u0060examples/community/gluegen.py:37\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"31629cce3f23ff14a80546a6e7aead602e9c2a41fbffe0c084593b70eea5d642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/community/ip_adapter_face_id.py:344-352 | examples/community/sde_drag.py:216-224 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/ip_adapter_face_id.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f717bcd37017806daba164a48c8d168bce315d135f4f80c6af133fd1f221f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/community/latent_consistency_interpolate.py:112-119 | examples/community/pipeline_animatediff_img2video.py:94-101 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_interpolate.py\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 471 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d458ef5d81fd98394f411f76e892ad953c5b7375081a234ad6583c67a69a09fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/community/latent_consistency_interpolate.py:603-610 | examples/community/latent_consistency_interpolate.py:630-637 \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":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9bbe14bc84bb4220c75c004452f39fc2e2c4c8caf6b025c132a5f6fc5148d2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/community/mixture_tiling_sdxl.py:1041-1048 | examples/community/mod_controlnet_tile_sr_sdxl.py:1581-1588 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"87370f719438904dfe18abc0eaf0fa31bc50642a80c7553d67a607ff2be38206"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_t5.py:178-185 | examples/community/pipeline_stable_diffusion_xl_t5.py:190-196 \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":"examples/community/pipeline_stable_diffusion_xl_t5.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbb8afa166a08e44d46fde2a1768707261c718cfb4e679ad243955d4050bb90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/pipeline_stg_ltx.py:86-97 | examples/community/pipeline_stg_ltx_image2video.py:91-102 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stg_ltx.py\u0060 and \u0060examples/community/pipeline_stg_ltx_image2video.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 943 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/pipeline_stg_ltx.py:86\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":"examples/community/pipeline_stg_ltx.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"34536c9de90ac1211833a5e4c7e47064a07bca202c32b5948159e523b0c2d35d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/community/regional_prompting_stable_diffusion.py:1594-1601 | examples/research_projects/sana/train_sana_sprint_diffusers.py:108-115 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/regional_prompting_stable_diffusion.py:1603\u0060 calls \u0060get_attn_maps\u0060 and \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py:116\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/regional_prompting_stable_diffusion.py"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf64423b08a6dd9cda3ffbd93def621ff69b841b51f67fd8fdb6093967b10ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1686-1695 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1661-1668 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 141 separate duplicated blocks between them, totalling at least 2650 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1c75f1591ce486bf395ca56c3d3168703955c17417f9398a4390486cdd02fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux2.py:1907-1914 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1879-1886 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 207 separate duplicated blocks between them, totalling at least 3698 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"c664635d4dccc7961c1fda7e55500ae0fdf96b2c197c4de9ba50c54fcbe4166c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_krea2.py:224-231 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:203-210 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwen_image.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_krea2.py:224\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":"examples/dreambooth/train_dreambooth_lora_krea2.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d1b3b12707892e39666e3b603eee34c401aa98d52a2d91057a6267407f529a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_lumina2.py:1242-1249 | examples/dreambooth/train_dreambooth_lora_sana.py:1264-1271 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_lumina2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sana.py\u0060 as WHOLE FILES: this scan already matched 194 separate duplicated blocks between them, totalling at least 3256 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_lumina2.py"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bbd2cbeb99f8a69a0d1f477ebe162293b66a266429c67906bf2aab7756c9e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:868-875 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1029-1036 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb7d64ccd7ad2fa0aaa452bfeb9c1ae109761ed109ede18d9905b654facd14d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:492-499 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:279-286 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"366d34b8827e1ad96c978ec249c6362616495e1e8ecb1ead60d102236ab23606"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/research_projects/lora/train_text_to_image_lora.py:873-880 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:860-867 \u2014 before extracting anything, compare \u0060examples/research_projects/lora/train_text_to_image_lora.py\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 822 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/lora/train_text_to_image_lora.py:873\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":"examples/research_projects/lora/train_text_to_image_lora.py"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aad80a9278542d1b43bd4c6d7abb7a93f480402fbc6567caa649556de618b48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/textual_inversion/textual_inversion.py:938-945 | examples/textual_inversion/textual_inversion_sdxl.py:1018-1025 \u2014 before extracting anything, compare \u0060examples/textual_inversion/textual_inversion.py\u0060 and \u0060examples/textual_inversion/textual_inversion_sdxl.py\u0060 as WHOLE FILES: this scan already matched 86 separate duplicated blocks between them, totalling at least 1368 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/textual_inversion/textual_inversion.py:938\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/textual_inversion/textual_inversion.py"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fe372988f727a0ae4a61d8f8af88b1bf1cca2518b632daecb33f2c97312051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): scripts/convert_consistency_decoder.py:289-296 | scripts/convert_consistency_decoder.py:320-327 \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":"scripts/convert_consistency_decoder.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c70edda09a149cfa38fd267633d0b5fbb1f84ccc38aa9dcd9680f43d3e455b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20138 lines \u00D7 3): scripts/convert_dit_to_diffusers.py:58-59 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:34-41 | scripts/convert_hunyuandit_to_diffusers.py:31-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_hunyuandit_controlnet_to_diffusers.py:42\u0060 calls \u0060chunk\u0060 and \u0060scripts/convert_dit_to_diffusers.py:61\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/convert_dit_to_diffusers.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bacb939a83d3b7b6822aa7241ffd4ce35d9c343baac1ea87a1b6487dec5950d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): scripts/convert_hunyuandit_controlnet_to_diffusers.py:66-109 | scripts/convert_hunyuandit_to_diffusers.py:63-106 \u2014 before extracting anything, compare \u0060scripts/convert_hunyuandit_controlnet_to_diffusers.py\u0060 and \u0060scripts/convert_hunyuandit_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_hunyuandit_controlnet_to_diffusers.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3927c9d53988d3b05c789c214a556e678f8d4d6a309e7cba1074600ee86ce762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): scripts/convert_kvae_audio_to_diffusers.py:164-172 | scripts/convert_pan2_to_diffusers.py:207-214 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_kvae_audio_to_diffusers.py:164\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kvae_audio_to_diffusers.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea9eb86084c177986a497eaa14ae3f666a8fae357cbd95600d946d4361389c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): scripts/convert_music_spectrogram_to_diffusers.py:137-144 | scripts/convert_music_spectrogram_to_diffusers.py:149-156 \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 \u0060scripts/convert_music_spectrogram_to_diffusers.py:137\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/convert_music_spectrogram_to_diffusers.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5fe91cba0a344041718b92830a7bd1e5e68bc54c8379a73e559329c694f33c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): scripts/convert_pixart_alpha_to_diffusers.py:158-165 | scripts/convert_pixart_sigma_to_diffusers.py:176-183 \u2014 before extracting anything, compare \u0060scripts/convert_pixart_alpha_to_diffusers.py\u0060 and \u0060scripts/convert_pixart_sigma_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_pixart_sigma_to_diffusers.py:185\u0060 calls \u0060from_pretrained\u0060 and \u0060scripts/convert_pixart_alpha_to_diffusers.py:166\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_pixart_alpha_to_diffusers.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb5680a51d4cf44a6cdc132f68bb7917b760395a05189bd10ed1ef3ad6dcd32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): scripts/convert_stable_diffusion_controlnet_to_onnx.py:327-337 | scripts/convert_stable_diffusion_controlnet_to_onnx.py:385-395 \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 \u0060scripts/convert_stable_diffusion_controlnet_to_onnx.py:327\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_stable_diffusion_controlnet_to_onnx.py:338\u0060 calls \u0060randn\u0060, \u0060to\u0060, \u0060rand\u0060 and \u0060scripts/convert_stable_diffusion_controlnet_to_onnx.py:396\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":"scripts/convert_stable_diffusion_controlnet_to_onnx.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b5a1fe7cd8f8654d908759d24413409c919b1a2fc551ef48943d015c994ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 85): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2047-2053 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2036-2042 | examples/cogview4-control/train_control_cogview4.py:983-989 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1200-1206 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1182-1188 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1244-1250 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1151-1157 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1245-1251 | examples/controlnet/train_controlnet.py:1008-1014 | examples/controlnet/train_controlnet_flux.py:1196-1202 | examples/controlnet/train_controlnet_sd3.py:1253-1259 | examples/controlnet/train_controlnet_sdxl.py:1190-1196 | examples/custom_diffusion/train_custom_diffusion.py:1102-1108 | examples/dreambooth/train_dreambooth.py:1198-1204 | examples/dreambooth/train_dreambooth_flux.py:1519-1525 | examples/dreambooth/train_dreambooth_lora.py:1211-1217 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1790-1796 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1624-1630 | examples/dreambooth/train_dreambooth_lora_flux.py:1643-1649 | examples/dreambooth/train_dreambooth_lora_flux2.py:1775-1781 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1676-1682 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1732-1738 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1624-1630 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1875-1881 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1761-1767 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1910-1916 | examples/dreambooth/train_dreambooth_lora_hidream.py:1510-1516 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1868-1874 | examples/dreambooth/train_dreambooth_lora_krea2.py:1744-1750 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1305-1311 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1644-1650 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1696-1702 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1789-1795 | examples/dreambooth/train_dreambooth_lora_sana.py:1327-1333 | examples/dreambooth/train_dreambooth_lora_sd3.py:1676-1682 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1610-1616 | examples/dreambooth/train_dreambooth_lora_z_image.py:1659-1665 | examples/dreambooth/train_dreambooth_sd3.py:1497-1503 | examples/flux-control/train_control_flux.py:972-978 | examples/flux-control/train_control_lora_flux.py:1117-1123 | examples/instruct_pix2pix/train_instruct_pix2pix.py:812-818 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:999-1005 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:742-748 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:580-586 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:596-602 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:745-751 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:854-860 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1170-1176 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1263-1269 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:769-775 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:905-911 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:887-893 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:890-896 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:656-662 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:683-689 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:980-986 | examples/research_projects/gligen/train_gligen_text.py:520-526 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:904-910 | examples/research_projects/lora/train_text_to_image_lora.py:761-767 | examples/research_projects/lpl/train_sdxl_lpl.py:1171-1177 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:751-757 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:768-774 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:807-813 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:525-531 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:940-946 | examples/research_projects/realfill/train_realfill.py:813-819 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1297-1303 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1230-1236 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1216-1222 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1633-1639 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:900-906 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:745-751 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1031-1037 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1044-1050 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:913-919 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:779-785 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:753-759 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1137-1143 | examples/text_to_image/train_text_to_image.py:919-925 | examples/text_to_image/train_text_to_image_lora.py:826-832 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1063-1069 | examples/text_to_image/train_text_to_image_sdxl.py:1040-1046 | examples/textual_inversion/textual_inversion.py:831-837 | examples/textual_inversion/textual_inversion_sdxl.py:873-879 | examples/unconditional_image_generation/train_unconditional.py:560-566 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/flux-control/train_control_flux.py:967\u0060 calls \u0060from_pretrained\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2044\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bd8de032ac7629bd525b3fbfdaa6e60b3b21fd5fc5bb8d78ddd5ada4449c26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 82): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2040-2048 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1665-1673 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2029-2037 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1193-1201 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1175-1183 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1237-1245 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1144-1152 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1238-1246 | examples/controlnet/train_controlnet.py:1001-1009 | examples/controlnet/train_controlnet_flux.py:1189-1197 | examples/controlnet/train_controlnet_sd3.py:1246-1254 | examples/controlnet/train_controlnet_sdxl.py:1183-1191 | examples/custom_diffusion/train_custom_diffusion.py:1095-1103 | examples/dreambooth/train_dreambooth.py:1191-1199 | examples/dreambooth/train_dreambooth_flux.py:1512-1520 | examples/dreambooth/train_dreambooth_lora.py:1204-1212 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1783-1791 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1617-1625 | examples/dreambooth/train_dreambooth_lora_flux.py:1636-1644 | examples/dreambooth/train_dreambooth_lora_flux2.py:1768-1776 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1669-1677 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1725-1733 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1617-1625 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1868-1876 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1754-1762 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1903-1911 | examples/dreambooth/train_dreambooth_lora_hidream.py:1503-1511 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1861-1869 | examples/dreambooth/train_dreambooth_lora_krea2.py:1737-1745 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1298-1306 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1637-1645 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1689-1697 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1782-1790 | examples/dreambooth/train_dreambooth_lora_sana.py:1320-1328 | examples/dreambooth/train_dreambooth_lora_sd3.py:1669-1677 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1603-1611 | examples/dreambooth/train_dreambooth_lora_z_image.py:1652-1660 | examples/dreambooth/train_dreambooth_sd3.py:1490-1498 | examples/instruct_pix2pix/train_instruct_pix2pix.py:805-813 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:992-1000 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:737-743 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:573-581 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:589-597 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:738-746 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:847-855 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1162-1171 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1256-1264 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:762-770 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:898-906 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:880-888 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:883-891 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:650-657 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:677-684 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:973-981 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:897-905 | examples/research_projects/lora/train_text_to_image_lora.py:754-762 | examples/research_projects/lpl/train_sdxl_lpl.py:1164-1172 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1032-1040 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:512-520 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:744-752 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:761-769 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:801-808 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:933-941 | examples/research_projects/realfill/train_realfill.py:806-814 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1290-1298 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1223-1231 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1209-1217 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1626-1634 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:893-901 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:738-746 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1024-1032 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1037-1045 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:906-914 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:772-780 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:746-754 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1129-1138 | examples/text_to_image/train_text_to_image.py:912-920 | examples/text_to_image/train_text_to_image_lora.py:819-827 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1056-1064 | examples/text_to_image/train_text_to_image_sdxl.py:1033-1041 | examples/textual_inversion/textual_inversion.py:825-832 | examples/textual_inversion/textual_inversion_sdxl.py:867-874 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b3af5435270587465123306e06a6c7de4210a103b62593bb8efedeec6014cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 79): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2048-2057 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2037-2046 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1347-1356 | examples/cogvideo/train_cogvideox_lora.py:1363-1372 | examples/cogview4-control/train_control_cogview4.py:984-993 | examples/controlnet/train_controlnet.py:1009-1018 | examples/controlnet/train_controlnet_flux.py:1197-1206 | examples/controlnet/train_controlnet_sd3.py:1254-1263 | examples/controlnet/train_controlnet_sdxl.py:1191-1200 | examples/dreambooth/train_dreambooth.py:1199-1208 | examples/dreambooth/train_dreambooth_flux.py:1520-1529 | examples/dreambooth/train_dreambooth_lora.py:1212-1221 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1791-1800 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1625-1634 | examples/dreambooth/train_dreambooth_lora_flux.py:1644-1653 | examples/dreambooth/train_dreambooth_lora_flux2.py:1776-1785 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1677-1686 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1733-1742 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1625-1634 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1876-1885 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1762-1771 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1911-1920 | examples/dreambooth/train_dreambooth_lora_hidream.py:1511-1520 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1869-1878 | examples/dreambooth/train_dreambooth_lora_krea2.py:1745-1754 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1306-1315 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1645-1654 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1697-1706 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1790-1799 | examples/dreambooth/train_dreambooth_lora_sana.py:1328-1337 | examples/dreambooth/train_dreambooth_lora_sd3.py:1677-1686 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1611-1620 | examples/dreambooth/train_dreambooth_lora_z_image.py:1660-1669 | examples/dreambooth/train_dreambooth_sd3.py:1498-1507 | examples/flux-control/train_control_flux.py:973-982 | examples/flux-control/train_control_lora_flux.py:1118-1127 | examples/instruct_pix2pix/train_instruct_pix2pix.py:813-822 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1000-1009 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:743-752 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:581-590 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:597-606 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:746-755 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:855-864 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:770-779 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:906-915 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:888-897 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:891-900 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:657-666 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:684-693 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:981-990 | examples/research_projects/gligen/train_gligen_text.py:521-530 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:905-914 | examples/research_projects/lora/train_text_to_image_lora.py:762-771 | examples/research_projects/lpl/train_sdxl_lpl.py:1172-1181 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:752-761 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:769-778 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:808-817 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:526-535 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:941-950 | examples/research_projects/realfill/train_realfill.py:814-823 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1298-1307 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1231-1240 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1217-1226 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1634-1643 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:901-910 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:746-755 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1032-1041 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1045-1054 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:914-923 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:780-789 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:754-763 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1138-1147 | examples/text_to_image/train_text_to_image.py:920-929 | examples/text_to_image/train_text_to_image_lora.py:827-836 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1064-1073 | examples/text_to_image/train_text_to_image_sdxl.py:1041-1050 | examples/textual_inversion/textual_inversion.py:832-841 | examples/textual_inversion/textual_inversion_sdxl.py:874-883 | examples/unconditional_image_generation/train_unconditional.py:561-570 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2048}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d396e7919ff8636f98e668c702439f330117241b8ccaf3e46d0c1621c26b171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 51): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2033-2039 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1658-1664 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2022-2028 | examples/cogview4-control/train_control_cogview4.py:963-969 | examples/controlnet/train_controlnet.py:994-1000 | examples/controlnet/train_controlnet_flux.py:1182-1188 | examples/controlnet/train_controlnet_sd3.py:1239-1245 | examples/controlnet/train_controlnet_sdxl.py:1176-1182 | examples/custom_diffusion/train_custom_diffusion.py:1088-1094 | examples/dreambooth/train_dreambooth.py:1184-1190 | examples/dreambooth/train_dreambooth_flux.py:1505-1511 | examples/dreambooth/train_dreambooth_lora.py:1197-1203 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1776-1782 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1610-1616 | examples/dreambooth/train_dreambooth_lora_flux.py:1629-1635 | examples/dreambooth/train_dreambooth_lora_flux2.py:1761-1767 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1662-1668 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1718-1724 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1610-1616 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1861-1867 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1747-1753 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1896-1902 | examples/dreambooth/train_dreambooth_lora_hidream.py:1496-1502 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1854-1860 | examples/dreambooth/train_dreambooth_lora_krea2.py:1730-1736 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1291-1297 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1630-1636 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1682-1688 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1775-1781 | examples/dreambooth/train_dreambooth_lora_sana.py:1313-1319 | examples/dreambooth/train_dreambooth_lora_sd3.py:1662-1668 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1596-1602 | examples/dreambooth/train_dreambooth_lora_z_image.py:1645-1651 | examples/dreambooth/train_dreambooth_sd3.py:1483-1489 | examples/flux-control/train_control_flux.py:953-959 | examples/flux-control/train_control_lora_flux.py:1098-1104 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:840-846 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:755-761 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:891-897 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:873-879 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:643-649 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:670-676 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:966-972 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1025-1031 | examples/research_projects/realfill/train_realfill.py:799-805 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1283-1289 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1216-1222 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1202-1208 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1619-1625 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:899-905 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1122-1128 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2030\u0060 calls \u0060init_trackers\u0060, \u0060vars\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py:1085\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2033}}}],"partialFingerprints":{"codehealthFindingId/v1":"b551e4d6268d900c208de39e0c2702491a89c962cad61fd0de668c882f29b9b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 30): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1169-1175 | examples/instruct_pix2pix/train_instruct_pix2pix.py:799-805 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:986-992 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:731-737 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:567-573 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:583-589 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:732-738 | examples/research_projects/autoencoder_rae/train_autoencoder_rae.py:321-326 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1156-1162 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:891-897 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:527-533 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:604-610 | examples/research_projects/lora/train_text_to_image_lora.py:748-754 | examples/research_projects/lpl/train_sdxl_lpl.py:1158-1164 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:738-744 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:755-761 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:795-801 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:927-933 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:887-893 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:732-738 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1018-1024 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1031-1037 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:766-772 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:740-746 | examples/text_to_image/train_text_to_image.py:906-912 | examples/text_to_image/train_text_to_image_lora.py:813-819 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1050-1056 | examples/text_to_image/train_text_to_image_sdxl.py:1027-1033 | examples/textual_inversion/textual_inversion.py:819-825 | examples/textual_inversion/textual_inversion_sdxl.py:861-867 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 496 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:535\u0060 calls \u0060info\u0060 and \u0060examples/research_projects/autoencoder_rae/train_autoencoder_rae.py:329\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":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18ad73f26da8c5b690e75eeef4a8ad2d1baf60693dc89ac1f48e66a303f8e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 22): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1104-1110 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1155-1161 | examples/dreambooth/train_dreambooth_flux.py:795-801 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:960-966 | examples/dreambooth/train_dreambooth_lora_flux.py:841-847 | examples/dreambooth/train_dreambooth_lora_flux2.py:902-908 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:907-913 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1007-1013 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:926-932 | examples/dreambooth/train_dreambooth_lora_hidream.py:848-854 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:971-977 | examples/dreambooth/train_dreambooth_lora_krea2.py:969-975 | examples/dreambooth/train_dreambooth_lora_lumina2.py:771-777 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:861-867 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:895-901 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:952-958 | examples/dreambooth/train_dreambooth_lora_sana.py:782-788 | examples/dreambooth/train_dreambooth_lora_sd3.py:835-841 | examples/dreambooth/train_dreambooth_lora_sdxl.py:842-848 | examples/dreambooth/train_dreambooth_lora_z_image.py:891-897 | examples/dreambooth/train_dreambooth_sd3.py:767-773 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:841-847 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c992d78d52494cd3719414148f2d31530ff996132c304041ef6bfae4377d7a05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 20): examples/controlnet/train_controlnet.py:776-782 | examples/controlnet/train_controlnet_flax.py:700-706 | examples/dreambooth/train_dreambooth.py:909-915 | examples/dreambooth/train_dreambooth_flax.py:384-390 | examples/dreambooth/train_dreambooth_lora.py:861-867 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:610-616 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:405-411 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:478-484 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:477-483 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:391-397 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:454-460 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:599-605 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:613-619 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:362-368 | examples/research_projects/realfill/train_realfill.py:577-583 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:952-958 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:880-886 | examples/text_to_image/train_text_to_image_flax.py:287-293 | examples/textual_inversion/textual_inversion.py:638-644 | examples/unconditional_image_generation/train_unconditional.py:371-377 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/controlnet/train_controlnet.py:772\u0060 calls \u0060set_seed\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:358\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"7987c2a30a1bcdfe01415b0a4406d78cc3923bdf4bd2ddcfbff8ffd1013a7926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 19): examples/custom_diffusion/train_custom_diffusion.py:1147-1155 | examples/instruct_pix2pix/train_instruct_pix2pix.py:858-866 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1050-1058 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:786-792 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:625-631 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:578-586 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1342-1351 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:716-724 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:743-751 | examples/research_projects/gligen/train_gligen_text.py:575-583 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:950-958 | examples/research_projects/lora/train_text_to_image_lora.py:807-815 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1084-1094 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:578-586 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:799-807 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:853-861 | examples/research_projects/realfill/train_realfill.py:869-878 | examples/textual_inversion/textual_inversion.py:878-886 | examples/textual_inversion/textual_inversion_sdxl.py:922-930 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.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 42 separate duplicated blocks between them, totalling at least 571 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:727\u0060 calls \u0060cat\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py:1158\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":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"13414fd0a685ff96f48bd6be9d494cc8c46314f0a7e461a8dfa9c8c65abbfb0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 18): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1414-1419 | examples/dreambooth/train_dreambooth.py:895-900 | examples/dreambooth/train_dreambooth_flux.py:1116-1121 | examples/dreambooth/train_dreambooth_lora.py:848-853 | examples/dreambooth/train_dreambooth_lora_hidream.py:1014-1019 | examples/dreambooth/train_dreambooth_lora_krea2.py:1231-1236 | examples/dreambooth/train_dreambooth_lora_lumina2.py:937-942 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1171-1176 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1205-1211 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1296-1302 | examples/dreambooth/train_dreambooth_lora_sana.py:950-955 | examples/dreambooth/train_dreambooth_lora_sd3.py:1149-1154 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1072-1077 | examples/dreambooth/train_dreambooth_sd3.py:1074-1079 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:393-398 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:938-943 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:866-871 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1132-1137 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 907 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1414\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, \u0060examples/dreambooth/train_dreambooth_lora_hidream.py:1022\u0060 calls \u0060to\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py:856\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"63bd470358d17aa6c566ea821cb12292f534a830bd8b0eec6c5dbe23d5f9e839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:700-706 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:863-869 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:873-879 | examples/controlnet/train_controlnet_sdxl.py:753-759 | examples/dreambooth/train_dreambooth_lora_sdxl.py:974-980 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:839-845 | examples/research_projects/controlnet/train_controlnet_webdataset.py:890-896 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:503-509 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:493-499 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:478-484 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:973-979 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:506-512 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:718-724 | examples/text_to_image/train_text_to_image_lora_sdxl.py:545-551 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 84 separate duplicated blocks between them, totalling at least 1625 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa50123e82f80fe402f273420b794ee878b83701e4679fa641c996f6ecf5b7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:256-262 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:277-283 | examples/dreambooth/train_dreambooth_lora_flux2.py:206-212 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:206-212 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:206-212 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:206-212 | examples/dreambooth/train_dreambooth_lora_hidream.py:208-214 | examples/dreambooth/train_dreambooth_lora_krea2.py:220-226 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:199-205 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:225-231 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:229-235 | examples/dreambooth/train_dreambooth_lora_z_image.py:205-211 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fb9412a26ccb9189f6f38a6c8b42ba677bc500ba0ce61f4049dc1352e0d242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1440-1448 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1503-1511 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1436-1446 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1045-1055 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1048-1058 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:603-610 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:694-700 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1162-1172 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:912-921 | examples/textual_inversion/textual_inversion.py:969-978 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 98 separate duplicated blocks between them, totalling at least 1991 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py:1436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc0c719bc1485ad4eeae745aa20859b5a69dd26cd74698112a7cfb29a0ab778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): examples/community/clip_guided_images_mixing_stable_diffusion.py:370-376 | examples/community/clip_guided_stable_diffusion.py:250-256 | examples/community/clip_guided_stable_diffusion_img2img.py:414-420 | examples/community/imagic_stable_diffusion.py:403-409 | examples/community/img2img_inpainting.py:321-327 | examples/community/interpolate_stable_diffusion.py:299-305 | examples/community/multilingual_stable_diffusion.py:334-340 | examples/community/speech_to_image_diffusion.py:189-195 | examples/community/wildcard_stable_diffusion.py:343-349 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"4390cd0127eb8dad2a2a80b69ea543d59652b7802230ba069682441a82a0eab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): examples/dreambooth/train_dreambooth_flax.py:200-206 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:205-211 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:202-208 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:249-255 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:251-257 | examples/research_projects/ip_adapter/tutorial_train_plus.py:267-273 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:312-318 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:175-181 | examples/textual_inversion/textual_inversion_flax.py:188-194 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flax.py:200\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf507fe0870e23f007a4db8885f165a85870a2a57feaa5fd20d9ff0be3e3a74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1268-1277 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1157-1166 | examples/dreambooth/train_dreambooth_lora_flux2.py:1211-1220 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1161-1170 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1216-1225 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1157-1166 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1307-1316 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1255-1264 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1331-1337 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1268\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb18c721331dff82b8aa340737afe26ec96de2d0630e11aa0c4db2226974de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1420-1426 | examples/dreambooth/train_dreambooth_lora_flux.py:1153-1159 | examples/dreambooth/train_dreambooth_lora_flux2.py:1153-1159 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1158-1164 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1253-1259 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1338-1344 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1244-1250 | examples/dreambooth/train_dreambooth_lora_z_image.py:1143-1149 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2776ffb4422cb2c65a5d34497e8287c802ccff9ccc229b8de89d14bacecf82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): examples/community/stable_diffusion_controlnet_reference.py:555-561 | examples/community/stable_diffusion_controlnet_reference.py:654-660 | examples/community/stable_diffusion_reference.py:1212-1218 | examples/community/stable_diffusion_reference.py:1316-1322 | examples/community/stable_diffusion_xl_controlnet_reference.py:962-968 | examples/community/stable_diffusion_xl_controlnet_reference.py:1061-1067 | examples/community/stable_diffusion_xl_reference.py:818-824 | examples/community/stable_diffusion_xl_reference.py:917-923 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_reference.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcceda9316f0e504ec303ba6a573445fd88828fceb86a94b0d1004496494aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1569-1575 | examples/dreambooth/train_dreambooth_lora_flux2.py:1522-1528 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1525-1531 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1614-1620 | examples/dreambooth/train_dreambooth_lora_krea2.py:1577-1583 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1484-1490 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1526-1532 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1618-1624 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"574847b8eff9f19ba724ed0ea01cd666fb69d3438c865d84d7d3338d98b52947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:245-251 | examples/dreambooth/train_dreambooth_lora_flux.py:199-205 | examples/dreambooth/train_dreambooth_lora_hidream.py:206-212 | examples/dreambooth/train_dreambooth_lora_krea2.py:218-224 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:197-203 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:223-229 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:227-233 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:245\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdc75274a8af6db42ed425ed41596037ebe459bf76cd54391db570e5216191f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:845-851 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:773-779 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1045-1051 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:535-541 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:431-437 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:527-533 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:620-626 \u2014 before extracting anything, compare \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 140 separate duplicated blocks between them, totalling at least 2226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcc3944e72314c60a8ff50d46db576485a2746b182571c1d6f8f5b559c7af81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 6): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1234-1239 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1297-1302 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1298-1303 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:949-955 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:931-937 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:934-940 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py\u0060 as WHOLE FILES: this scan already matched 84 separate duplicated blocks between them, totalling at least 1625 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60003c3dff20eef46912d6d87f1162a6581e46bc585d77d2bec57c11351667c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): examples/dreambooth/train_dreambooth_lora_flux2.py:1849-1855 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1818-1824 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1962-1968 | examples/dreambooth/train_dreambooth_lora_krea2.py:1831-1837 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1727-1733 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1779-1788 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_klein.py\u0060 as WHOLE FILES: this scan already matched 207 separate duplicated blocks between them, totalling at least 3698 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":1849}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe651c02657773f5a72c748b8fa4e7dfaae676cf0aece486972fe4a0aace490"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 6): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:979-984 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:957-962 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:960-965 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1131-1137 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1145-1151 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1141-1147 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:979\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"962d3750dea3290ffc58f1de321d3c857a7756f86ae8c65eecd567e8b9ef409f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1952-1958 | examples/dreambooth/train_dreambooth_lora_flux.py:1556-1562 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1817-1823 | examples/dreambooth/train_dreambooth_lora_sd3.py:1593-1599 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:920-926 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3226 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1952}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c737a4db72dfebce1b0e2f51111ebbbe05202d1cc743296d16a580e9324ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:676-682 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:509-516 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:656-662 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:654-660 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:679-685 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:676\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"087fe770f4c74a481a94ca220d326ae243fb932ea5dccab2464fdc9c2d161b69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:913-919 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:550-556 | examples/research_projects/lpl/train_sdxl_lpl.py:1021-1027 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:920-926 | examples/text_to_image/train_text_to_image_sdxl.py:908-914 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 and \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 593 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ab362f5f823a6b7a9e3e3792cccc80ea131a8abd8046328dc0ea8c853f2411"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): scripts/convert_hunyuan_image_to_diffusers.py:878-885 | scripts/convert_hunyuan_image_to_diffusers.py:908-915 | scripts/convert_hunyuan_image_to_diffusers.py:951-958 | scripts/convert_hunyuan_image_to_diffusers.py:981-988 | scripts/convert_hunyuan_image_to_diffusers.py:1018-1024 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_hunyuan_image_to_diffusers.py:918\u0060 calls \u0060load_original_transformer_checkpoint\u0060, \u0060load_original_vae_checkpoint\u0060 and \u0060scripts/convert_hunyuan_image_to_diffusers.py:887\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/convert_hunyuan_image_to_diffusers.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"c734288bf5bb06df1fc6476abcc9837f19bf9f3720c3fff533ef5d44803692e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): scripts/convert_if.py:662-668 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:115-121 | scripts/convert_original_audioldm_to_diffusers.py:185-191 | scripts/convert_original_musicldm_to_diffusers.py:185-191 | scripts/convert_versatile_diffusion_to_diffusers.py:232-238 \u2014 before extracting anything, compare \u0060scripts/convert_if.py\u0060 and \u0060scripts/convert_ldm_original_checkpoint_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_if.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e66d83c585be2b82966180c1b41bdf79bf192c6769c2f064b35d5591d29a4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): scripts/convert_mochi_to_diffusers.py:172-178 | scripts/convert_mochi_to_diffusers.py:222-228 | scripts/convert_mochi_to_diffusers.py:273-279 | scripts/convert_mochi_to_diffusers.py:358-364 | scripts/convert_mochi_to_diffusers.py:390-396 \u2014 all 5 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 \u0060scripts/convert_mochi_to_diffusers.py:172\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/convert_mochi_to_diffusers.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"6631a9704f00b53d161e2cc8e04c4024fe1dc629842a25e800c06ead6a0c7012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:105-111 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:114-120 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:114-120 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:112-118 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:104\u0060 calls \u0060from_config\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:112\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":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf3a6807bfe6c64be0d72008efd86584f76d6e09284d30c34746be57bcd243c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:809-815 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:945-951 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:927-933 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:930-936 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"689d61d67bc6be711f10bba9d9bc3b85e2d5e1ab17fe85aaced980a0c104eaa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): examples/research_projects/ip_adapter/tutorial_train_faceid.py:139-145 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:141-147 | examples/research_projects/ip_adapter/tutorial_train_plus.py:151-157 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:201-207 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a14ecfa75a64772558523f0fa39810b34d208a3c2369e20085a527fa9ba637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:133-139 | examples/research_projects/realfill/train_realfill.py:128-134 | examples/textual_inversion/textual_inversion.py:139-145 | examples/textual_inversion/textual_inversion_sdxl.py:148-154 \u2014 before extracting anything, compare \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py\u0060 and \u0060examples/research_projects/realfill/train_realfill.py\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:133\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, \u0060examples/research_projects/realfill/train_realfill.py:126\u0060 calls \u0060unwrap_model\u0060, \u0060from_config\u0060 and \u0060examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:133\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":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"043f31bd0e5d958598d545fa2e5990fbbcbd4ca1dc15c38ef227b7805e50ad66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): scripts/convert_if.py:330-336 | scripts/convert_if.py:909-915 | scripts/convert_original_audioldm2_to_diffusers.py:347-353 | scripts/convert_original_audioldm2_to_diffusers.py:354-360 \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":"scripts/convert_if.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cda7846c72c2e16f4d69e9aff595fe7c7f9560a45e09d8f40f4cde2f9b0d434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): scripts/convert_if.py:339-345 | scripts/convert_if.py:918-924 | scripts/convert_original_audioldm2_to_diffusers.py:349-355 | scripts/convert_original_audioldm2_to_diffusers.py:356-362 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_if.py:339\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_if.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"c223f682b28548852c566ccfea516738f22a0dc4f1ef44b3c360f858f236d9c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/community/pipeline_hunyuandit_differential_img2img.py:1063-1069 | examples/community/pipeline_kolors_differential_img2img.py:1174-1181 | examples/community/pipeline_stable_diffusion_xl_differential_img2img.py:1332-1339 \u2014 before extracting anything, compare \u0060examples/community/pipeline_hunyuandit_differential_img2img.py\u0060 and \u0060examples/community/pipeline_kolors_differential_img2img.py\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_hunyuandit_differential_img2img.py"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8d3d8c8b4d2df0350cf9af25b1e2356b4be183518471aa4f4101b147bf37f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:259-265 | examples/community/stable_diffusion_tensorrt_inpaint.py:263-269 | examples/community/stable_diffusion_tensorrt_txt2img.py:246-252 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"d640c9df9e2e2496b83a725812cf74401130c5e17b0e87eec1db0d9aca35caf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:511-519 | examples/community/stable_diffusion_tensorrt_inpaint.py:515-523 | examples/community/stable_diffusion_tensorrt_txt2img.py:498-506 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"d374e1fa0a347596bc49ad9dbd66a48a95026c3a6214be9e2a53a11321aca114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/custom_diffusion/train_custom_diffusion.py:78-84 | examples/dreambooth/train_dreambooth_lora.py:92-98 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:88-94 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05ef1c4f943bca4107a1b041fd26aeecdaec96b1852088e448fb40e367fa687"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:644-654 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:176-182 | examples/unconditional_image_generation/train_unconditional.py:194-200 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:644\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49dae8ed47893cb3fc0aae0dd65ea25732e1ecdc8f5a710ee66a0a44599ddb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): scripts/convert_consistency_decoder.py:249-256 | scripts/convert_consistency_decoder.py:279-286 | scripts/convert_consistency_decoder.py:310-317 \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":"scripts/convert_consistency_decoder.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be0cf30b7310c957b94a5dcc04dd2db6080d174471f7b1eb02060d259fa6df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): scripts/convert_dit_to_diffusers.py:65-71 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:108-114 | scripts/convert_hunyuandit_to_diffusers.py:105-111 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_dit_to_diffusers.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"929960f629d323d5d315bd85ef28666e495597cff8bf4a46589c72f934df1308"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): scripts/convert_mochi_to_diffusers.py:187-193 | scripts/convert_mochi_to_diffusers.py:288-294 | scripts/convert_mochi_to_diffusers.py:373-379 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_mochi_to_diffusers.py:187\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/convert_mochi_to_diffusers.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"638294aa2e289fbbd16e795b8689fea3ba031989d34d867b9cea83392ee31bc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/community/adaptive_mask_inpainting.py:1208-1214 | examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1805-1811 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/adaptive_mask_inpainting.py:1208\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b7e1c7daec138b5a4592a6c3a8248d3fb815796c853a6c9b9494677a1375b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/community/edict_pipeline.py:98-104 | examples/community/edict_pipeline.py:117-123 \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":"examples/community/edict_pipeline.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a1c42f7b1b8196cfdfc3ecd16d548722c29717fd0bd9a7f8dd319c6cd2f8c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): examples/community/mixture_tiling.py:213-218 | examples/community/mixture_tiling_sdxl.py:654-660 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/mixture_tiling.py:219\u0060 calls \u0060isinstance\u0060 and \u0060examples/community/mixture_tiling_sdxl.py:662\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"454f80e3ca9ebaf83851fdbcac78d564947959f9fbf30c097f48b5711b495682"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/community/mod_controlnet_tile_sr_sdxl.py:351-357 | examples/community/pipeline_controlnet_xl_kolors_inpaint.py:289-295 \u2014 before extracting anything, compare \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 336 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/mod_controlnet_tile_sr_sdxl.py:358\u0060 calls \u0060is_invisible_watermark_available\u0060 and \u0060examples/community/pipeline_controlnet_xl_kolors_inpaint.py:297\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":"examples/community/mod_controlnet_tile_sr_sdxl.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"87dc7b6e2fc063bd6ec51793492b7e6ad33ee738ed89234205371f5728be0427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/community/pipeline_demofusion_sdxl.py:984-990 | examples/community/pipeline_demofusion_sdxl.py:1244-1250 \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":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ab96e7f9d0ca27eee9b6ef9610b7c51a5672d714bfb4d9822eaac057628393"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/community/stable_diffusion_tensorrt_img2img.py:94-103 | examples/community/stable_diffusion_tensorrt_inpaint.py:98-107 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"263c7facd0e1b4d330cfc5c565266cf6e2a3983d661be198d5798186607b59fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/community/unclip_image_interpolation.py:30-38 | examples/community/unclip_text_interpolation.py:26-34 \u2014 before extracting anything, compare \u0060examples/community/unclip_image_interpolation.py\u0060 and \u0060examples/community/unclip_text_interpolation.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 179 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a9a8dc2304f35d89dffa8105e276894f983078263739dc20e5c896ba091596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/controlnet/train_controlnet_flux.py:1082-1088 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:817-823 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_flux.py\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 739 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_flux.py"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"720a0102dcf0c9be503b991d8d7336472dcc231e7df7704d64219954b7d42998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 86): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2039-2044 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1664-1669 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2028-2033 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1336-1341 | examples/cogvideo/train_cogvideox_lora.py:1352-1357 | examples/cogview4-control/train_control_cogview4.py:969-974 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1192-1197 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1174-1179 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1236-1241 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1143-1148 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1237-1242 | examples/controlnet/train_controlnet.py:1000-1005 | examples/controlnet/train_controlnet_flux.py:1188-1193 | examples/controlnet/train_controlnet_sd3.py:1245-1250 | examples/controlnet/train_controlnet_sdxl.py:1182-1187 | examples/custom_diffusion/train_custom_diffusion.py:1094-1099 | examples/dreambooth/train_dreambooth.py:1190-1195 | examples/dreambooth/train_dreambooth_flux.py:1511-1516 | examples/dreambooth/train_dreambooth_lora.py:1203-1208 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1782-1787 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1616-1621 | examples/dreambooth/train_dreambooth_lora_flux.py:1635-1640 | examples/dreambooth/train_dreambooth_lora_flux2.py:1767-1772 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1668-1673 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1724-1729 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1616-1621 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1867-1872 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1753-1758 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1902-1907 | examples/dreambooth/train_dreambooth_lora_hidream.py:1502-1507 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1860-1865 | examples/dreambooth/train_dreambooth_lora_krea2.py:1736-1741 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1297-1302 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1636-1641 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1688-1693 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1781-1786 | examples/dreambooth/train_dreambooth_lora_sana.py:1319-1324 | examples/dreambooth/train_dreambooth_lora_sd3.py:1668-1673 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1602-1607 | examples/dreambooth/train_dreambooth_lora_z_image.py:1651-1656 | examples/dreambooth/train_dreambooth_sd3.py:1489-1494 | examples/flux-control/train_control_flux.py:959-964 | examples/flux-control/train_control_lora_flux.py:1104-1109 | examples/instruct_pix2pix/train_instruct_pix2pix.py:804-809 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:991-996 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:736-741 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:572-577 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:588-593 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:737-742 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:846-851 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1161-1167 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1255-1260 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:761-766 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:897-902 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:879-884 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:649-654 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:676-681 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:972-977 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:896-901 | examples/research_projects/lora/train_text_to_image_lora.py:753-758 | examples/research_projects/lpl/train_sdxl_lpl.py:1163-1168 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1031-1036 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:743-748 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:760-765 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:800-805 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:932-937 | examples/research_projects/realfill/train_realfill.py:805-810 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1289-1294 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1222-1227 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1208-1213 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1625-1630 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:892-897 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:737-742 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1023-1028 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1036-1041 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:905-910 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:771-776 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:745-750 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1128-1134 | examples/text_to_image/train_text_to_image.py:911-916 | examples/text_to_image/train_text_to_image_lora.py:818-823 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1055-1060 | examples/text_to_image/train_text_to_image_sdxl.py:1032-1037 | examples/textual_inversion/textual_inversion.py:824-829 | examples/textual_inversion/textual_inversion_sdxl.py:866-871 | examples/vqgan/train_vqgan.py:842-847 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2036\u0060 calls \u0060info\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1189\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed52dbb67f845c4a1e304d77d46005cad750f537b8d6207063311d08105aaac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 83): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2039-2044 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1664-1669 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2028-2033 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1336-1341 | examples/cogvideo/train_cogvideox_lora.py:1352-1357 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1192-1197 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1174-1179 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1236-1241 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1143-1148 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1237-1242 | examples/controlnet/train_controlnet.py:1000-1005 | examples/controlnet/train_controlnet_flux.py:1188-1193 | examples/controlnet/train_controlnet_sd3.py:1245-1250 | examples/controlnet/train_controlnet_sdxl.py:1182-1187 | examples/custom_diffusion/train_custom_diffusion.py:1094-1099 | examples/dreambooth/train_dreambooth.py:1190-1195 | examples/dreambooth/train_dreambooth_flux.py:1511-1516 | examples/dreambooth/train_dreambooth_lora.py:1203-1208 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1782-1787 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1616-1621 | examples/dreambooth/train_dreambooth_lora_flux.py:1635-1640 | examples/dreambooth/train_dreambooth_lora_flux2.py:1767-1772 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1668-1673 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1724-1729 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1616-1621 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1867-1872 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1753-1758 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1902-1907 | examples/dreambooth/train_dreambooth_lora_hidream.py:1502-1507 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1860-1865 | examples/dreambooth/train_dreambooth_lora_krea2.py:1736-1741 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1297-1302 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1636-1641 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1688-1693 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1781-1786 | examples/dreambooth/train_dreambooth_lora_sana.py:1319-1324 | examples/dreambooth/train_dreambooth_lora_sd3.py:1668-1673 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1602-1607 | examples/dreambooth/train_dreambooth_lora_z_image.py:1651-1656 | examples/dreambooth/train_dreambooth_sd3.py:1489-1494 | examples/instruct_pix2pix/train_instruct_pix2pix.py:804-809 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:991-996 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:736-741 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:572-577 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:588-593 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:737-742 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:846-851 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1161-1167 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1255-1260 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:761-766 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:897-902 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:879-884 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:649-654 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:676-681 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:972-977 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:896-901 | examples/research_projects/lora/train_text_to_image_lora.py:753-758 | examples/research_projects/lpl/train_sdxl_lpl.py:1163-1168 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:1031-1036 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:511-517 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:743-748 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:760-765 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:800-805 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:932-937 | examples/research_projects/realfill/train_realfill.py:805-810 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1289-1294 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1222-1227 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1208-1213 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1625-1630 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:892-897 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:737-742 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1023-1028 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1036-1041 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:905-910 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:771-776 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:745-750 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1128-1134 | examples/text_to_image/train_text_to_image.py:911-916 | examples/text_to_image/train_text_to_image_lora.py:818-823 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1055-1060 | examples/text_to_image/train_text_to_image_sdxl.py:1032-1037 | examples/textual_inversion/textual_inversion.py:824-829 | examples/textual_inversion/textual_inversion_sdxl.py:866-871 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2036\u0060 calls \u0060info\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1189\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"1711235c0166db5a099e15eb40a23f21df7365750336dca4c20649f15bf0f778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 53): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1881-1886 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2365-2370 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1481-1486 | examples/cogvideo/train_cogvideox_lora.py:1503-1508 | examples/custom_diffusion/train_custom_diffusion.py:1242-1247 | examples/dreambooth/train_dreambooth.py:1370-1375 | examples/dreambooth/train_dreambooth_flux.py:1746-1751 | examples/dreambooth/train_dreambooth_lora.py:1362-1367 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1987-1992 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1801-1806 | examples/dreambooth/train_dreambooth_lora_flux.py:1885-1890 | examples/dreambooth/train_dreambooth_lora_flux2.py:1971-1976 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1864-1869 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1943-1948 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1814-1819 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2085-2090 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1955-1960 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2190-2195 | examples/dreambooth/train_dreambooth_lora_hidream.py:1677-1682 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:2062-2067 | examples/dreambooth/train_dreambooth_lora_krea2.py:1971-1976 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1477-1482 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1850-1855 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1918-1923 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:2014-2019 | examples/dreambooth/train_dreambooth_lora_sana.py:1492-1497 | examples/dreambooth/train_dreambooth_lora_sd3.py:1888-1893 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1897-1902 | examples/dreambooth/train_dreambooth_lora_z_image.py:1829-1834 | examples/dreambooth/train_dreambooth_sd3.py:1701-1706 | examples/instruct_pix2pix/train_instruct_pix2pix.py:951-956 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1157-1162 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:860-865 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:698-703 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:730-735 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:879-884 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1155-1160 | examples/research_projects/lpl/train_sdxl_lpl.py:1461-1466 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1670-1675 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1433-1438 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1399-1404 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1939-1944 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1069-1074 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1231-1236 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1247-1252 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1055-1060 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:886-891 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:862-867 | examples/text_to_image/train_text_to_image.py:1076-1081 | examples/text_to_image/train_text_to_image_lora.py:962-968 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1238-1243 | examples/text_to_image/train_text_to_image_sdxl.py:1209-1214 | examples/unconditional_image_generation/train_unconditional.py:660-665 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1890\u0060 calls \u0060log\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:961\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1881}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0bfd428e5de6bf9bc918e6f69557a7bdce71959f2d90e94c247b3a50edddda8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 30): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2320-2325 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2346-2351 | examples/controlnet/train_controlnet.py:1110-1115 | examples/controlnet/train_controlnet_sd3.py:1392-1397 | examples/dreambooth/train_dreambooth.py:1351-1356 | examples/dreambooth/train_dreambooth_flux.py:1727-1732 | examples/dreambooth/train_dreambooth_lora.py:1343-1348 | examples/dreambooth/train_dreambooth_lora_flux.py:1866-1871 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1458-1463 | examples/dreambooth/train_dreambooth_lora_sana.py:1473-1478 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1878-1883 | examples/dreambooth/train_dreambooth_sd3.py:1682-1687 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:977-982 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:904-909 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1058-1063 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1016-1021 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1019-1024 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:1085-1090 | examples/research_projects/realfill/train_realfill.py:910-915 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1651-1656 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1414-1419 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1380-1385 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1920-1925 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1212-1217 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1228-1233 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1036-1041 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1257-1262 | examples/textual_inversion/textual_inversion.py:940-945 | examples/textual_inversion/textual_inversion_sdxl.py:1020-1025 | examples/unconditional_image_generation/train_unconditional.py:641-646 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:975\u0060 calls \u0060step\u0060, \u0060parameters\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2318\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2320}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3674873f60388672de26236d409173837cfd9dd807811b2bcb5dd84ab885e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 29): examples/cogview4-control/train_control_cogview4.py:369-374 | examples/controlnet/train_controlnet.py:395-400 | examples/controlnet/train_controlnet_flax.py:316-321 | examples/controlnet/train_controlnet_flux.py:419-424 | examples/controlnet/train_controlnet_sdxl.py:437-442 | examples/dreambooth/train_dreambooth.py:427-432 | examples/flux-control/train_control_flux.py:361-366 | examples/flux-control/train_control_lora_flux.py:393-398 | examples/instruct_pix2pix/train_instruct_pix2pix.py:326-331 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:383-388 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:238-243 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:298-303 | examples/research_projects/gligen/train_gligen_text.py:212-217 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:377-382 | examples/research_projects/lora/train_text_to_image_lora.py:299-304 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:286-291 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:144-149 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:303-308 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:298-303 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:450-455 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:427-432 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:385-390 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:289-294 | examples/text_to_image/train_text_to_image.py:407-412 | examples/text_to_image/train_text_to_image_flax.py:187-192 | examples/text_to_image/train_text_to_image_lora.py:340-345 | examples/textual_inversion/textual_inversion.py:325-330 | examples/textual_inversion/textual_inversion_flax.py:157-162 | examples/vqgan/train_vqgan.py:443-448 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:369\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/cogview4-control/train_control_cogview4.py:376\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:293\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a7dad2526e66f5920e89aac49d53b54560f97bce7e10740d8225dc15ab768a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 28): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1958-1968 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:2056-2066 | examples/custom_diffusion/train_custom_diffusion.py:1288-1298 | examples/custom_diffusion/train_custom_diffusion.py:1348-1358 | examples/dreambooth/train_dreambooth.py:190-199 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:737-747 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:769-779 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:140-150 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:159-169 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:157-167 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:155-165 | examples/research_projects/lora/train_text_to_image_lora.py:898-908 | examples/research_projects/lora/train_text_to_image_lora.py:1009-1019 | examples/research_projects/lpl/train_sdxl_lpl.py:1522-1532 | examples/research_projects/lpl/train_sdxl_lpl.py:1587-1597 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:60-70 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:889-899 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:147-156 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:190-199 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:963-973 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1276-1286 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1349-1359 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1304-1314 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1359-1369 | examples/text_to_image/train_text_to_image_sdxl.py:1270-1280 | examples/text_to_image/train_text_to_image_sdxl.py:1335-1345 | examples/textual_inversion/textual_inversion.py:158-167 | examples/vqgan/train_vqgan.py:179-184 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 944 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1958\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae6149cc86082db64eb8e3c6034853c5fbed4ae2b916670530ad852184a0db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 25): examples/cogview4-control/train_control_cogview4.py:1176-1181 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1430-1435 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1422-1427 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1493-1498 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1394-1399 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1497-1502 | examples/controlnet/train_controlnet.py:1129-1134 | examples/controlnet/train_controlnet_flux.py:1376-1381 | examples/controlnet/train_controlnet_sd3.py:1411-1416 | examples/controlnet/train_controlnet_sdxl.py:1318-1323 | examples/flux-control/train_control_flux.py:1183-1188 | examples/flux-control/train_control_lora_flux.py:1329-1334 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:996-1001 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1372-1377 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1426-1431 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:923-928 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1077-1082 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1035-1040 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1038-1043 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:1104-1110 | examples/research_projects/realfill/train_realfill.py:929-934 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1276-1281 | examples/textual_inversion/textual_inversion.py:959-964 | examples/textual_inversion/textual_inversion_sdxl.py:1039-1044 | examples/vqgan/train_vqgan.py:1029-1034 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 25 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 25 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1382\u0060 calls \u0060log_validation\u0060 and \u0060examples/vqgan/train_vqgan.py:1038\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d555abfbfdc8ec4fb2decbe903bf82f9725ff1ba93d9f509c1b6fe75e3e5fc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 24): examples/dreambooth/train_dreambooth_flux.py:106-111 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:172-177 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:194-199 | examples/dreambooth/train_dreambooth_lora_flux.py:112-117 | examples/dreambooth/train_dreambooth_lora_flux2.py:125-130 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:125-130 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:125-130 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:125-130 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:220-225 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:227-232 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:116-121 | examples/dreambooth/train_dreambooth_lora_hidream.py:97-102 | examples/dreambooth/train_dreambooth_lora_lumina2.py:96-101 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:118-123 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:142-147 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:144-149 | examples/dreambooth/train_dreambooth_lora_sana.py:113-118 | examples/dreambooth/train_dreambooth_lora_sd3.py:102-108 | examples/dreambooth/train_dreambooth_lora_sdxl.py:116-122 | examples/dreambooth/train_dreambooth_lora_z_image.py:125-130 | examples/dreambooth/train_dreambooth_sd3.py:93-99 | examples/research_projects/sana/train_sana_sprint_diffusers.py:227-232 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:116-122 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:90-95 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1894 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d5c29be69867f7d8318652df1e77c736eb4041f8b0597a7d7888801ad22e3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 21): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1429-1434 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1417-1422 | examples/dreambooth/train_dreambooth.py:898-903 | examples/dreambooth/train_dreambooth_flux.py:1119-1124 | examples/dreambooth/train_dreambooth_lora.py:851-856 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1218-1223 | examples/dreambooth/train_dreambooth_lora_flux.py:1162-1167 | examples/dreambooth/train_dreambooth_lora_flux2.py:1162-1167 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1167-1172 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1347-1352 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1253-1258 | examples/dreambooth/train_dreambooth_lora_lumina2.py:940-945 | examples/dreambooth/train_dreambooth_lora_sana.py:953-958 | examples/dreambooth/train_dreambooth_lora_sd3.py:1152-1157 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1075-1080 | examples/dreambooth/train_dreambooth_lora_z_image.py:1152-1157 | examples/dreambooth/train_dreambooth_sd3.py:1077-1082 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:396-401 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:941-946 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:869-874 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1135-1140 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:1426\u0060 calls \u0060autocast\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1215\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":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a6ccd53a25da167e377c449fbcf32a74387b97dd21e8ad34e663486f1a2014"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 20): examples/community/stable_diffusion_controlnet_reference.py:483-488 | examples/community/stable_diffusion_controlnet_reference.py:528-533 | examples/community/stable_diffusion_controlnet_reference.py:568-573 | examples/community/stable_diffusion_controlnet_reference.py:628-633 | examples/community/stable_diffusion_controlnet_reference.py:667-672 | examples/community/stable_diffusion_reference.py:1135-1140 | examples/community/stable_diffusion_reference.py:1180-1185 | examples/community/stable_diffusion_reference.py:1225-1230 | examples/community/stable_diffusion_reference.py:1285-1290 | examples/community/stable_diffusion_reference.py:1329-1334 | examples/community/stable_diffusion_xl_controlnet_reference.py:890-895 | examples/community/stable_diffusion_xl_controlnet_reference.py:935-940 | examples/community/stable_diffusion_xl_controlnet_reference.py:975-980 | examples/community/stable_diffusion_xl_controlnet_reference.py:1035-1040 | examples/community/stable_diffusion_xl_controlnet_reference.py:1074-1079 | examples/community/stable_diffusion_xl_reference.py:746-751 | examples/community/stable_diffusion_xl_reference.py:791-796 | examples/community/stable_diffusion_xl_reference.py:831-836 | examples/community/stable_diffusion_xl_reference.py:891-896 | examples/community/stable_diffusion_xl_reference.py:930-935 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_reference.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d08b83a73c32ec55286a9238db60407b8f987e84a56d2ccfbc2752f06778c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 18): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:668-674 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:501-507 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:648-654 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:646-652 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:671-677 | examples/dreambooth/train_dreambooth_lora.py:427-432 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:488-494 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:350-355 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:369-374 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:367-372 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:351-356 | examples/research_projects/lpl/train_sdxl_lpl.py:479-484 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:418-423 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:365-370 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:409-414 | examples/text_to_image/train_text_to_image_lora_sdxl.py:412-417 | examples/text_to_image/train_text_to_image_sdxl.py:413-418 | examples/textual_inversion/textual_inversion_sdxl.py:325-330 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:668\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora.py:435\u0060 calls \u0060add_argument\u0060 and \u0060examples/textual_inversion/textual_inversion_sdxl.py:333\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"08050ca9dda6cfff590ad48b442a3b806537a8f4871d23df0f0f43cae69cb68f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 16): examples/community/stable_diffusion_controlnet_reference.py:517-531 | examples/community/stable_diffusion_controlnet_reference.py:557-571 | examples/community/stable_diffusion_controlnet_reference.py:617-631 | examples/community/stable_diffusion_controlnet_reference.py:656-670 | examples/community/stable_diffusion_reference.py:1169-1183 | examples/community/stable_diffusion_reference.py:1214-1228 | examples/community/stable_diffusion_reference.py:1274-1288 | examples/community/stable_diffusion_reference.py:1318-1332 | examples/community/stable_diffusion_xl_controlnet_reference.py:924-938 | examples/community/stable_diffusion_xl_controlnet_reference.py:964-978 | examples/community/stable_diffusion_xl_controlnet_reference.py:1024-1038 | examples/community/stable_diffusion_xl_controlnet_reference.py:1063-1077 | examples/community/stable_diffusion_xl_reference.py:780-794 | examples/community/stable_diffusion_xl_reference.py:820-834 | examples/community/stable_diffusion_xl_reference.py:880-894 | examples/community/stable_diffusion_xl_reference.py:919-933 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_reference.py\u0060 and \u0060examples/community/stable_diffusion_reference.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 489 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95bd0bc39a45bf118c6d985695d39702d25abb3c9d87cbbb5f2ca888b5369eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 15): examples/instruct_pix2pix/train_instruct_pix2pix.py:932-937 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1138-1143 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:841-846 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:679-684 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:711-716 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:860-865 | examples/research_projects/gligen/train_gligen_text.py:629-634 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:1024-1029 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1050-1055 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:890-895 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:867-872 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:843-848 | examples/text_to_image/train_text_to_image.py:1057-1062 | examples/text_to_image/train_text_to_image_lora.py:943-948 | examples/vqgan/train_vqgan.py:1010-1015 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 as WHOLE FILES: this scan already matched 115 separate duplicated blocks between them, totalling at least 1994 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:929\u0060 calls \u0060log\u0060 and \u0060examples/research_projects/gligen/train_gligen_text.py:627\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix.py"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"afad29cc964f53c5e69d9b73ac1814234eb29d64f3722adb0c614b36e1570514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 14): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:259-264 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:280-285 | examples/dreambooth/train_dreambooth_lora_flux2.py:209-215 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:209-215 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:209-215 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:209-215 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:303-308 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:310-315 | examples/dreambooth/train_dreambooth_lora_hidream.py:211-217 | examples/dreambooth/train_dreambooth_lora_krea2.py:223-229 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:202-208 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:228-234 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:232-238 | examples/dreambooth/train_dreambooth_lora_z_image.py:208-214 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:209\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:255\u0060 calls \u0060to\u0060, \u0060set_progress_bar_config\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py:300\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb6bac2f5348051dbc6df2810dd20f23d480fdb8baa598288f4329e857e3dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 13): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1474-1479 | examples/controlnet/train_controlnet_sdxl.py:909-914 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1130-1135 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:785-790 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:577-582 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:684-689 | examples/research_projects/lpl/train_sdxl_lpl.py:804-809 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1190-1195 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:614-619 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:707-712 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:860-865 | examples/text_to_image/train_text_to_image_lora_sdxl.py:633-638 | examples/text_to_image/train_text_to_image_sdxl.py:688-693 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/controlnet/train_controlnet_sdxl.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fefef003c1fbf3ff724b07100cc6b3bbf2d46f3ce7e1a08cf8f84513e4fa7ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 13): examples/custom_diffusion/train_custom_diffusion.py:79-87 | examples/dreambooth/train_dreambooth.py:83-92 | examples/dreambooth/train_dreambooth_lora.py:93-101 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:87-94 | examples/research_projects/lpl/train_sdxl_lpl.py:148-153 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:83-92 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:89-97 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:69-76 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:83-91 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:78-83 | examples/text_to_image/train_text_to_image_lora.py:78-85 | examples/text_to_image/train_text_to_image_lora_sdxl.py:89-97 | examples/text_to_image/train_text_to_image_sdxl.py:82-87 \u2014 \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/dreambooth/train_dreambooth.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 67 separate duplicated blocks between them, totalling at least 993 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:79\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a889353f0df9269cac4a09a39a0a0f8af4cded6e928c2b15e031d67bf9e9fa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 15): scripts/convert_dit_to_diffusers.py:76-80 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:49-54 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:60-65 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:77-82 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:83-88 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:94-99 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:119-124 | scripts/convert_hunyuandit_controlnet_to_diffusers.py:129-134 | scripts/convert_hunyuandit_to_diffusers.py:46-51 | scripts/convert_hunyuandit_to_diffusers.py:57-62 | scripts/convert_hunyuandit_to_diffusers.py:74-79 | scripts/convert_hunyuandit_to_diffusers.py:80-85 | scripts/convert_hunyuandit_to_diffusers.py:91-96 | scripts/convert_hunyuandit_to_diffusers.py:116-121 | scripts/convert_hunyuandit_to_diffusers.py:123-126 \u2014 there are 15 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 15 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_dit_to_diffusers.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b535788b49fa65ad171bfc89693a0d96c0b9e6defc9e85f4e8acf8a8c2491307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1172-1180 | examples/dreambooth/train_dreambooth_flux.py:781-789 | examples/dreambooth/train_dreambooth_lora_flux.py:827-835 | examples/dreambooth/train_dreambooth_lora_hidream.py:834-842 | examples/dreambooth/train_dreambooth_lora_lumina2.py:757-765 | examples/dreambooth/train_dreambooth_lora_sana.py:768-776 | examples/dreambooth/train_dreambooth_lora_sd3.py:821-829 | examples/dreambooth/train_dreambooth_lora_sdxl.py:826-834 | examples/dreambooth/train_dreambooth_sd3.py:753-761 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:528-536 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:825-833 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:566-574 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 124 separate duplicated blocks between them, totalling at least 1869 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56a69c2d8cf7201770f0cfc41a844a1e60bdac7f24bea378619373656beff92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1417-1422 | examples/dreambooth/train_dreambooth.py:898-903 | examples/dreambooth/train_dreambooth_flux.py:1119-1124 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1075-1080 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:396-401 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:467-472 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:466-471 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:941-946 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:869-874 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1135-1140 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 66 separate duplicated blocks between them, totalling at least 907 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5afc18206edf39897eb535d72d34621e49efc6bdecfc7319f66d73178cdd631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): examples/cogview4-control/train_control_cogview4.py:1157-1162 | examples/controlnet/train_controlnet_flux.py:1357-1362 | examples/controlnet/train_controlnet_sdxl.py:1299-1304 | examples/flux-control/train_control_flux.py:1164-1169 | examples/flux-control/train_control_lora_flux.py:1310-1315 | examples/research_projects/lpl/train_sdxl_lpl.py:1442-1447 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1219-1224 | examples/text_to_image/train_text_to_image_sdxl.py:1190-1195 \u2014 before extracting anything, compare \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet_flux.py\u0060 as WHOLE FILES: this scan already matched 91 separate duplicated blocks between them, totalling at least 1536 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/text_to_image/train_text_to_image_lora_sdxl.py:1215\u0060 calls \u0060log\u0060 and \u0060examples/cogview4-control/train_control_cogview4.py:1154\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":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b768cb36ae675922db24a83efc2b8cda4aa07287f30c563b8aaf9a8678d7bd84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:350-355 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:408-413 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:542-547 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:320-325 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:557-562 | examples/textual_inversion/textual_inversion.py:585-590 | examples/textual_inversion/textual_inversion_flax.py:333-338 | examples/textual_inversion/textual_inversion_sdxl.py:584-589 \u2014 before extracting anything, compare \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py\u0060 and \u0060examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 627 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:358\u0060 calls \u0060freeze_params\u0060 and \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:550\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba79b62d68c5db7360c37bb18f5f196da3b890c9ba74b04fc2b138ba8e171bd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): examples/community/imagic_stable_diffusion.py:447-452 | examples/community/img2img_inpainting.py:414-419 | examples/community/interpolate_stable_diffusion.py:352-357 | examples/community/multilingual_stable_diffusion.py:387-392 | examples/community/seed_resize_stable_diffusion.py:319-324 | examples/community/speech_to_image_diffusion.py:242-247 | examples/community/wildcard_stable_diffusion.py:396-401 \u2014 before extracting anything, compare \u0060examples/community/imagic_stable_diffusion.py\u0060 and \u0060examples/community/img2img_inpainting.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"898348e42e967d63ddfcc8b1696fe6b3ed2657a10f43bbd7ad46b029f6f403cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): examples/controlnet/train_controlnet.py:801-806 | examples/custom_diffusion/train_custom_diffusion.py:829-834 | examples/instruct_pix2pix/train_instruct_pix2pix.py:487-492 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:534-540 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:545-550 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:621-627 | examples/text_to_image/train_text_to_image.py:609-615 \u2014 \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.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 51 separate duplicated blocks between them, totalling at least 778 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet.py:801\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c28ace0c26090681add9ca8527dc097a3867adce3f08e6ab9d20d06673ef9c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1868-1874 | examples/dreambooth/train_dreambooth_lora_flux2.py:1847-1853 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1816-1822 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1960-1966 | examples/dreambooth/train_dreambooth_lora_krea2.py:1829-1835 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1725-1731 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1777-1783 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 as WHOLE FILES: this scan already matched 184 separate duplicated blocks between them, totalling at least 3265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1875\u0060 calls \u0060to\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2.py:1854\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16c13ddf9dc34960a6acb7ffc62d9870da8269f8279a3554063a70e88aa7c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:912-917 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:548-554 | examples/research_projects/lpl/train_sdxl_lpl.py:1020-1025 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:943-948 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:919-924 | examples/text_to_image/train_text_to_image_lora_sdxl.py:975-980 | examples/text_to_image/train_text_to_image_sdxl.py:907-912 \u2014 before extracting anything, compare \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py\u0060 and \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 593 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:941\u0060 calls \u0060basename\u0060 and \u0060examples/research_projects/lpl/train_sdxl_lpl.py:1019\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"758847939384f614402dde5f596bfcc3aa0aee3da619dd351b96f9d86f094153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:571-576 | examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:598-603 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:816-821 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:870-875 | examples/textual_inversion/textual_inversion.py:895-900 | examples/textual_inversion/textual_inversion_sdxl.py:961-969 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/textual_inversion/textual_inversion_sdxl.py:961\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"9696a7a4f0b95b87f6b3300496dae6d032e27ce57580365599d418f8a0d4217f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): scripts/convert_if.py:1111-1116 | scripts/convert_ldm_original_checkpoint_to_diffusers.py:312-317 | scripts/convert_original_audioldm2_to_diffusers.py:492-497 | scripts/convert_original_audioldm_to_diffusers.py:475-480 | scripts/convert_original_musicldm_to_diffusers.py:471-476 | scripts/convert_versatile_diffusion_to_diffusers.py:566-571 \u2014 before extracting anything, compare \u0060scripts/convert_if.py\u0060 and \u0060scripts/convert_ldm_original_checkpoint_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_if.py"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f616a8aa0f151fe5bc7fd821eda7b64e5957c22f2f51fe711bc6f0fc69410ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): examples/community/mixture_canvas.py:232-237 | examples/community/mixture_tiling.py:392-397 | examples/community/mixture_tiling_sdxl.py:691-696 | examples/community/pipeline_faithdiff_stable_diffusion_xl.py:1004-1009 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_canvas.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2db629e7db6052573a78691c52ed59ff782994f5fa5cca0d1790fad25a2943a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:491-496 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:169-174 | examples/research_projects/sana/train_sana_sprint_diffusers.py:542-547 | examples/unconditional_image_generation/train_unconditional.py:187-192 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:491\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py:498\u0060 calls \u0060add_argument\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:176\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9a3ee0c8752511df3eb9933f408a6594f73e67cf9309c68b856fc6ae189b45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/community/stable_diffusion_controlnet_img2img.py:98-103 | examples/community/stable_diffusion_controlnet_inpaint.py:196-201 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:188-193 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_controlnet_img2img.py\u0060 and \u0060examples/community/stable_diffusion_controlnet_inpaint.py\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 931 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/stable_diffusion_controlnet_img2img.py:98\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":"examples/community/stable_diffusion_controlnet_img2img.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"986afa48c092ceeef30f0043f53015b6360dec619ffe3b20a4b9fafc457ddeac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/controlnet/train_controlnet.py:70-75 | examples/research_projects/controlnet/train_controlnet_webdataset.py:310-315 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:70-75 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 as WHOLE FILES: this scan already matched 102 separate duplicated blocks between them, totalling at least 1724 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acc82832513db3b166bac3d7d663f518e5a4c71e79642da3d33ba534e91eee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/research_projects/pixart/train_pixart_controlnet_hf.py:977-982 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:781-786 | examples/text_to_image/train_text_to_image_lora.py:862-867 \u2014 before extracting anything, compare \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py\u0060 as WHOLE FILES: this scan already matched 82 separate duplicated blocks between them, totalling at least 1353 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/pixart/train_pixart_controlnet_hf.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aac1ec161918ae9a4cdd2da66026f6d5afc4df69346a65b61135861700dd4f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/community/clip_guided_stable_diffusion.py:30-40 | examples/community/clip_guided_stable_diffusion_img2img.py:104-114 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 311 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_stable_diffusion.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3645491432932746a2924cc8dd5ebd2be7629ffd75d3f017b2bcad7c8f0a8f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/community/fresco_v2v.py:116-121 | examples/community/rerender_a_video.py:91-96 \u2014 before extracting anything, compare \u0060examples/community/fresco_v2v.py\u0060 and \u0060examples/community/rerender_a_video.py\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 637 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c62e228c60fa07b75b7c4c76169e9f5c21272e99d43cd8a46dc39186cfbb679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/community/gluegen.py:86-91 | examples/community/gluegen.py:94-99 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/community/gluegen.py:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/gluegen.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"720620df20814919b791bf34bae7954753a5c8df30a5c9f73bec0daf381325a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): examples/community/pipeline_null_text_inversion.py:106-112 | examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py:1380-1385 \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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_null_text_inversion.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"34591cc18aa509850c557b890a1d56127e8a75dd57fa766477dfba6e9d596b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/community/pipeline_zero1to3.py:759-764 | src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py:594-599 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_zero1to3.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a48cdf93999731032819c9fd7e147ba09845e0217661df363341a49f643964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/dreambooth/train_dreambooth.py:764-769 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:784-789 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py\u0060 as WHOLE FILES: this scan already matched 173 separate duplicated blocks between them, totalling at least 3201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a94709aad9791e29945f4859484b0006ce5e904f7a4d1dac013816a13bc2613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/research_projects/anytext/anytext_controlnet.py:70-75 | examples/research_projects/anytext/anytext_controlnet.py:87-92 \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 \u0060examples/research_projects/anytext/anytext_controlnet.py:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext_controlnet.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cc9869392eb01ff6955d7fecafab6e64b3f3c658cb229e5b5b1c2c12bfec37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 80): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2050-2054 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2039-2043 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1349-1353 | examples/cogvideo/train_cogvideox_lora.py:1365-1369 | examples/cogview4-control/train_control_cogview4.py:986-990 | examples/controlnet/train_controlnet.py:1011-1015 | examples/controlnet/train_controlnet_flux.py:1199-1203 | examples/controlnet/train_controlnet_sd3.py:1256-1260 | examples/controlnet/train_controlnet_sdxl.py:1193-1197 | examples/dreambooth/train_dreambooth.py:1201-1205 | examples/dreambooth/train_dreambooth_flux.py:1522-1526 | examples/dreambooth/train_dreambooth_lora.py:1214-1218 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1793-1797 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1627-1631 | examples/dreambooth/train_dreambooth_lora_flux.py:1646-1650 | examples/dreambooth/train_dreambooth_lora_flux2.py:1778-1782 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1679-1683 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1735-1739 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1627-1631 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:1878-1882 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1764-1768 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1913-1917 | examples/dreambooth/train_dreambooth_lora_hidream.py:1513-1517 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:1871-1875 | examples/dreambooth/train_dreambooth_lora_krea2.py:1747-1751 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1308-1312 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1647-1651 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1699-1703 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1792-1796 | examples/dreambooth/train_dreambooth_lora_sana.py:1330-1334 | examples/dreambooth/train_dreambooth_lora_sd3.py:1679-1683 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1613-1617 | examples/dreambooth/train_dreambooth_lora_z_image.py:1662-1666 | examples/dreambooth/train_dreambooth_sd3.py:1500-1504 | examples/flux-control/train_control_flux.py:975-979 | examples/flux-control/train_control_lora_flux.py:1120-1124 | examples/instruct_pix2pix/train_instruct_pix2pix.py:815-819 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1002-1006 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:745-749 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:583-587 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:599-603 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:748-752 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:857-861 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:772-776 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:908-912 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:890-894 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:893-897 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:659-663 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:686-690 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:983-987 | examples/research_projects/gligen/train_gligen_text.py:523-527 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:907-911 | examples/research_projects/lora/train_text_to_image_lora.py:764-768 | examples/research_projects/lpl/train_sdxl_lpl.py:1174-1178 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:754-758 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:771-775 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:810-814 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:528-532 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:943-947 | examples/research_projects/realfill/train_realfill.py:816-820 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1300-1304 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1233-1237 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1219-1223 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1636-1640 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:903-907 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:748-752 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1034-1038 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1047-1051 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:916-920 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:782-786 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:756-760 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1140-1144 | examples/text_to_image/train_text_to_image.py:922-926 | examples/text_to_image/train_text_to_image_lora.py:829-833 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1066-1070 | examples/text_to_image/train_text_to_image_sdxl.py:1043-1047 | examples/textual_inversion/textual_inversion.py:834-838 | examples/textual_inversion/textual_inversion_sdxl.py:876-880 | examples/unconditional_image_generation/train_unconditional.py:563-567 | examples/vqgan/train_vqgan.py:864-868 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2050\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2050}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df7453f03504e820dfd4f7a60bb874f5c405a0f5f957b531b59fc918dc39a46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 58): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2321-2325 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2347-2351 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1463-1467 | examples/cogvideo/train_cogvideox_lora.py:1485-1489 | examples/cogview4-control/train_control_cogview4.py:1158-1162 | examples/controlnet/train_controlnet.py:1111-1115 | examples/controlnet/train_controlnet_flux.py:1358-1362 | examples/controlnet/train_controlnet_sd3.py:1393-1397 | examples/controlnet/train_controlnet_sdxl.py:1300-1304 | examples/dreambooth/train_dreambooth.py:1352-1356 | examples/dreambooth/train_dreambooth_flux.py:1728-1732 | examples/dreambooth/train_dreambooth_lora.py:1344-1348 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1969-1973 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1783-1787 | examples/dreambooth/train_dreambooth_lora_flux.py:1867-1871 | examples/dreambooth/train_dreambooth_lora_flux2.py:1953-1957 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1846-1850 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1925-1929 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1796-1800 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2067-2071 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1937-1941 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2172-2176 | examples/dreambooth/train_dreambooth_lora_hidream.py:1659-1663 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:2044-2048 | examples/dreambooth/train_dreambooth_lora_krea2.py:1953-1957 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1459-1463 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1832-1836 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1900-1904 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:1996-2000 | examples/dreambooth/train_dreambooth_lora_sana.py:1474-1478 | examples/dreambooth/train_dreambooth_lora_sd3.py:1870-1874 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1879-1883 | examples/dreambooth/train_dreambooth_lora_z_image.py:1811-1815 | examples/dreambooth/train_dreambooth_sd3.py:1683-1687 | examples/flux-control/train_control_flux.py:1165-1169 | examples/flux-control/train_control_lora_flux.py:1311-1315 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:978-982 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:905-909 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:1059-1063 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:1017-1021 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:1020-1024 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1137-1141 | examples/research_projects/lpl/train_sdxl_lpl.py:1443-1447 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:1086-1090 | examples/research_projects/realfill/train_realfill.py:911-915 | examples/research_projects/sana/train_sana_sprint_diffusers.py:1652-1656 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:1415-1419 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1381-1385 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1921-1925 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1213-1217 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1229-1233 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1037-1041 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1258-1262 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1220-1224 | examples/text_to_image/train_text_to_image_sdxl.py:1191-1195 | examples/textual_inversion/textual_inversion.py:941-945 | examples/textual_inversion/textual_inversion_sdxl.py:1021-1025 | examples/unconditional_image_generation/train_unconditional.py:642-646 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 1863 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/autoencoderkl/train_autoencoderkl.py:975\u0060 calls \u0060step\u0060, \u0060parameters\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:2318\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":2321}}}],"partialFingerprints":{"codehealthFindingId/v1":"1273b8486c3214e40c27f07f22fe9e8b7fc228a1cca49b235a5881e0c9aed0e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 54): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1885-1889 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2369-2373 | examples/cogvideo/train_cogvideox_image_to_video_lora.py:1485-1489 | examples/cogvideo/train_cogvideox_lora.py:1507-1511 | examples/custom_diffusion/train_custom_diffusion.py:1246-1250 | examples/dreambooth/train_dreambooth_flux.py:1750-1754 | examples/dreambooth/train_dreambooth_lora.py:1366-1370 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:1991-1995 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1805-1809 | examples/dreambooth/train_dreambooth_lora_flux.py:1889-1893 | examples/dreambooth/train_dreambooth_lora_flux2.py:1975-1979 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1868-1872 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:1947-1951 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1818-1822 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:2089-2093 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1959-1963 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:2194-2198 | examples/dreambooth/train_dreambooth_lora_hidream.py:1681-1685 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:2066-2070 | examples/dreambooth/train_dreambooth_lora_krea2.py:1975-1979 | examples/dreambooth/train_dreambooth_lora_lumina2.py:1481-1485 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:1854-1858 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:1922-1926 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:2018-2022 | examples/dreambooth/train_dreambooth_lora_sana.py:1496-1500 | examples/dreambooth/train_dreambooth_lora_sd3.py:1892-1896 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1901-1905 | examples/dreambooth/train_dreambooth_lora_z_image.py:1833-1837 | examples/dreambooth/train_dreambooth_sd3.py:1705-1709 | examples/instruct_pix2pix/train_instruct_pix2pix.py:955-959 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:1161-1165 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:864-868 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:702-706 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:734-738 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:883-887 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:779-783 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:802-806 | examples/research_projects/flux_lora_quantization/train_dreambooth_lora_flux_miniature.py:1159-1163 | examples/research_projects/lora/train_text_to_image_lora.py:862-866 | examples/research_projects/lpl/train_sdxl_lpl.py:1465-1469 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:849-853 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:889-893 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:1403-1407 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1943-1947 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:1073-1077 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1235-1239 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1251-1255 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:1059-1063 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:890-894 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:866-870 | examples/text_to_image/train_text_to_image.py:1080-1084 | examples/text_to_image/train_text_to_image_lora.py:966-971 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1242-1246 | examples/text_to_image/train_text_to_image_sdxl.py:1213-1217 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1890\u0060 calls \u0060log\u0060 and \u0060examples/instruct_pix2pix/train_instruct_pix2pix.py:961\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b99da44b849781b5795adf42e159fdbdff2f61cea2d16f5227ab01c464c851"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 49): examples/cogview4-control/train_control_cogview4.py:376-380 | examples/controlnet/train_controlnet.py:402-406 | examples/controlnet/train_controlnet_flax.py:323-327 | examples/controlnet/train_controlnet_flux.py:426-430 | examples/controlnet/train_controlnet_sd3.py:473-477 | examples/controlnet/train_controlnet_sdxl.py:444-448 | examples/custom_diffusion/train_custom_diffusion.py:542-546 | examples/dreambooth/train_dreambooth.py:434-438 | examples/dreambooth/train_dreambooth_flax.py:172-176 | examples/dreambooth/train_dreambooth_lora.py:435-439 | examples/flux-control/train_control_flux.py:368-372 | examples/flux-control/train_control_lora_flux.py:400-404 | examples/instruct_pix2pix/train_instruct_pix2pix.py:333-337 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:390-394 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:348-352 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:245-249 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:252-256 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:352-356 | examples/research_projects/autoencoderkl/train_autoencoderkl.py:305-309 | examples/research_projects/colossalai/train_dreambooth_colossalai.py:194-200 | examples/research_projects/controlnet/train_controlnet_webdataset.py:641-645 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:358-362 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:377-381 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:375-379 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:359-363 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:220-224 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:216-220 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:384-388 | examples/research_projects/lora/train_text_to_image_lora.py:306-310 | examples/research_projects/lpl/train_sdxl_lpl.py:487-491 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:361-365 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:310-314 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:457-462 | examples/research_projects/realfill/train_realfill.py:318-322 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:434-438 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:426-430 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:392-396 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:296-300 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:373-377 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:417-421 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:354-358 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:352-356 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:419-423 | examples/text_to_image/train_text_to_image.py:414-418 | examples/text_to_image/train_text_to_image_flax.py:194-198 | examples/text_to_image/train_text_to_image_lora.py:347-351 | examples/text_to_image/train_text_to_image_lora_sdxl.py:420-424 | examples/text_to_image/train_text_to_image_sdxl.py:421-425 | examples/vqgan/train_vqgan.py:450-454 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/controlnet/train_controlnet.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 75 separate duplicated blocks between them, totalling at least 1214 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogview4-control/train_control_cogview4.py:376\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/cogview4-control/train_control_cogview4.py:374\u0060 calls \u0060add_argument\u0060 and \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:243\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2dbc978ba52f940c8b529ba933d727323691f7f57183cd59176cfc02f6b5f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 35): examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1171-1175 | examples/dreambooth/train_dreambooth_flax.py:622-626 | examples/instruct_pix2pix/train_instruct_pix2pix.py:801-805 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:988-992 | examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:733-737 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:569-573 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:585-589 | examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:734-738 | examples/research_projects/autoencoder_rae/train_autoencoder_rae.py:322-326 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1158-1162 | examples/research_projects/instructpix2pix_lora/train_instruct_pix2pix_lora.py:893-897 | examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:529-533 | examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:606-610 | examples/research_projects/lora/train_text_to_image_lora.py:750-754 | examples/research_projects/lpl/train_sdxl_lpl.py:1160-1164 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:740-744 | examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py:575-579 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:757-761 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:797-801 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:929-933 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image.py:889-893 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:734-738 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1020-1024 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1033-1037 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:768-772 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:742-746 | examples/text_to_image/train_text_to_image.py:908-912 | examples/text_to_image/train_text_to_image_flax.py:548-552 | examples/text_to_image/train_text_to_image_lora.py:815-819 | examples/text_to_image/train_text_to_image_lora_sdxl.py:1052-1056 | examples/text_to_image/train_text_to_image_sdxl.py:1029-1033 | examples/textual_inversion/textual_inversion.py:821-825 | examples/textual_inversion/textual_inversion_flax.py:594-598 | examples/textual_inversion/textual_inversion_sdxl.py:863-867 | examples/vqgan/train_vqgan.py:839-843 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 35 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 35 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:983\u0060 calls \u0060init_trackers\u0060, \u0060vars\u0060 and \u0060examples/dreambooth/train_dreambooth_flax.py:620\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl.py"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8f642b8a6f74f8519dde03f146542dff3d3a2b5407e5aab44c2e841dd0e945"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 29): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:118-123 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:112-117 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:133-138 | examples/dreambooth/train_dreambooth_flux.py:104-109 | examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:170-175 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:192-197 | examples/dreambooth/train_dreambooth_lora_flux.py:110-115 | examples/dreambooth/train_dreambooth_lora_flux2.py:123-128 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:123-128 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:123-128 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:123-128 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:218-223 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:225-230 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:114-119 | examples/dreambooth/train_dreambooth_lora_hidream.py:95-100 | examples/dreambooth/train_dreambooth_lora_ideogram4.py:120-125 | examples/dreambooth/train_dreambooth_lora_krea2.py:117-122 | examples/dreambooth/train_dreambooth_lora_lumina2.py:94-99 | examples/dreambooth/train_dreambooth_lora_qwen_image.py:116-121 | examples/dreambooth/train_dreambooth_lora_qwenimage21.py:140-145 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:142-147 | examples/dreambooth/train_dreambooth_lora_sana.py:111-116 | examples/dreambooth/train_dreambooth_lora_sd3.py:100-105 | examples/dreambooth/train_dreambooth_lora_sdxl.py:114-119 | examples/dreambooth/train_dreambooth_lora_z_image.py:123-128 | examples/dreambooth/train_dreambooth_sd3.py:91-96 | examples/research_projects/sana/train_sana_sprint_diffusers.py:225-230 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:114-119 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:88-93 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 as WHOLE FILES: this scan already matched 94 separate duplicated blocks between them, totalling at least 1520 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f38ddf0855bd7c619395be919ae80f235441961fc6a92bbcb50388d1a758cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 29): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1957-1962 | examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:2055-2060 | examples/custom_diffusion/train_custom_diffusion.py:1287-1292 | examples/custom_diffusion/train_custom_diffusion.py:1347-1352 | examples/dreambooth/train_dreambooth.py:189-194 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_decoder.py:736-741 | examples/kandinsky2_2/text_to_image/train_text_to_image_lora_prior.py:768-773 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:139-144 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:158-163 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:156-161 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:154-159 | examples/research_projects/lora/train_text_to_image_lora.py:897-902 | examples/research_projects/lora/train_text_to_image_lora.py:1008-1013 | examples/research_projects/lpl/train_sdxl_lpl.py:1521-1526 | examples/research_projects/lpl/train_sdxl_lpl.py:1586-1591 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:59-64 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:888-893 | examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:146-151 | examples/research_projects/realfill/train_realfill.py:155-159 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:189-194 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora.py:962-967 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1275-1280 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:1348-1353 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1303-1308 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:1358-1363 | examples/text_to_image/train_text_to_image_sdxl.py:1269-1274 | examples/text_to_image/train_text_to_image_sdxl.py:1334-1339 | examples/textual_inversion/textual_inversion.py:157-162 | examples/vqgan/train_vqgan.py:178-183 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 as WHOLE FILES: this scan already matched 61 separate duplicated blocks between them, totalling at least 944 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1957\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1957}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f4b0df3a1a40c65f5ae9df7e6d6e6924f7747197f1313ab6eb1d3401cd5e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 23): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:668-674 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:501-507 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:648-654 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:646-652 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:671-677 | examples/custom_diffusion/train_custom_diffusion.py:534-539 | examples/dreambooth/train_dreambooth_lora.py:427-432 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:488-494 | examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:350-355 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:369-374 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:367-372 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:351-356 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:212-217 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:208-213 | examples/research_projects/lpl/train_sdxl_lpl.py:479-484 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:354-358 | examples/research_projects/realfill/train_realfill.py:311-315 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:418-423 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:365-370 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:409-414 | examples/text_to_image/train_text_to_image_lora_sdxl.py:412-417 | examples/text_to_image/train_text_to_image_sdxl.py:413-418 | examples/textual_inversion/textual_inversion_sdxl.py:325-330 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:668\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:353\u0060 calls \u0060add_argument\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:668\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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"587ba4465562e278f5d5479fa7db6059f65ef91e2b780c5d0861e9f6f571588d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:810-815 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:792-797 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:557-562 | examples/research_projects/lpl/train_sdxl_lpl.py:1009-1013 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:925-929 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:908-912 | examples/text_to_image/train_text_to_image_lora_sdxl.py:957-961 | examples/text_to_image/train_text_to_image_sdxl.py:896-900 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 and \u0060examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py\u0060 as WHOLE FILES: this scan already matched 137 separate duplicated blocks between them, totalling at least 2273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1ae838b8a0861191167bbba1cce70d57e98c5d525c7d23f65fa8ae50661bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): examples/community/lpw_stable_diffusion.py:738-742 | examples/community/pipeline_zero1to3.py:458-462 | examples/community/stable_diffusion_controlnet_img2img.py:334-338 | examples/community/stable_diffusion_controlnet_inpaint.py:433-437 | examples/community/stable_diffusion_controlnet_inpaint_img2img.py:418-422 | examples/community/stable_diffusion_ipex.py:469-473 | examples/community/stable_diffusion_repaint.py:462-466 \u2014 before extracting anything, compare \u0060examples/community/lpw_stable_diffusion.py\u0060 and \u0060examples/community/pipeline_zero1to3.py\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 289 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"a897ebc57c5c3fee5bf4206a93c6c280ed9ffb4fbe4f9f632f0dd15a6a2414d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:1412-1416 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:1404-1408 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:1475-1479 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:1376-1380 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:1479-1483 | examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1354-1358 | examples/research_projects/controlnet/train_controlnet_webdataset.py:1408-1412 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 79 separate duplicated blocks between them, totalling at least 1557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c85d48088787e241b0281c8a275efc15caa5383d202cae7dd8ed6bd3413bce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): scripts/convert_if.py:329-333 | scripts/convert_if.py:343-347 | scripts/convert_if.py:908-912 | scripts/convert_if.py:922-926 | scripts/convert_original_audioldm2_to_diffusers.py:346-350 | scripts/convert_original_audioldm2_to_diffusers.py:353-357 | scripts/convert_original_audioldm2_to_diffusers.py:360-364 \u2014 there are 7 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 7 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_if.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"b157a80c137633361af08d12e9852d6f8fa6a107312ca12fa5fa224fa1a13533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1751-1756 | examples/dreambooth/train_dreambooth_lora_flux.py:1384-1388 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1583-1587 | examples/dreambooth/train_dreambooth_lora_sd3.py:1413-1417 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1354-1359 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1390-1395 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 123 separate duplicated blocks between them, totalling at least 1845 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_sd3.py:1418\u0060 calls \u0060list\u0060, \u0060filter\u0060, \u0060parameters\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py:1391\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":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1751}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ffb376933811a5ac3a55308a1c1b28e8d9008215016b03798fe2bf57ce90a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): examples/custom_diffusion/train_custom_diffusion.py:534-539 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:212-217 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:208-213 | examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:354-358 | examples/research_projects/realfill/train_realfill.py:311-315 | examples/research_projects/sana/train_sana_sprint_diffusers.py:555-563 \u2014 before extracting anything, compare \u0060examples/custom_diffusion/train_custom_diffusion.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 571 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/custom_diffusion/train_custom_diffusion.py:534\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py:553\u0060 calls \u0060add_argument\u0060 and \u0060examples/custom_diffusion/train_custom_diffusion.py:533\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f08a108463b37109d4d5492f907cd33e0215b6ac4dfa8ad4bbb7d48c376145"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:776-780 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:799-803 | examples/research_projects/lora/train_text_to_image_lora.py:859-863 | examples/research_projects/multi_token_textual_inversion/textual_inversion.py:846-850 | examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:886-890 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:609-613 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/multi_token_textual_inversion/textual_inversion.py:843\u0060 calls \u0060join\u0060, \u0060save_progress\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:774\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6891a47088889fbcc90f7da3039ca876048a3c0a0cddf0d21df4d4b319ac8f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1146-1150 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1179-1183 | examples/dreambooth/train_dreambooth_lora_sdxl.py:833-837 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:832-836 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f08a4b8ad9c202d79680b46ac78eabc540acfb0ad771de7fabc3cd458892205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:820-824 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:958-962 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:940-944 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:943-947 \u2014 before extracting anything, compare \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py\u0060 as WHOLE FILES: this scan already matched 112 separate duplicated blocks between them, totalling at least 1771 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:820\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:955\u0060 calls \u0060to\u0060 and \u0060examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:817\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":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"77df1ac47a8939225a524306036e71837ebf4d330ca50f9a63ff40c65a557ad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2106-2110 | examples/dreambooth/train_dreambooth_lora_sd3.py:1730-1734 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1665-1669 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 125 separate duplicated blocks between them, totalling at least 1905 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f439de508eda93e5b395f00bf8ff61bd819add07df35d892e36dedeb21e76cf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:2138-2142 | examples/dreambooth/train_dreambooth_lora_sdxl.py:1689-1693 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:1710-1714 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 190 separate duplicated blocks between them, totalling at least 2982 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bf438e40ca91bcad5bc43523e890039a3fc7bbd2c7692c86da0ca970bec4c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/cogvideo/train_cogvideox_image_to_video_lora.py:233-243 | examples/cogvideo/train_cogvideox_lora.py:224-234 | examples/cosmos/train_cosmos_predict25_lora.py:191-195 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py:233\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"5025ff0aee3ad18b0f9bcfe0e0aff81ce1d5dc44b2e12035c103f45535f69149"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/community/clip_guided_images_mixing_stable_diffusion.py:376-380 | examples/community/clip_guided_stable_diffusion_img2img.py:420-424 | examples/community/seed_resize_stable_diffusion.py:256-260 \u2014 before extracting anything, compare \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py\u0060 and \u0060examples/community/clip_guided_stable_diffusion_img2img.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/seed_resize_stable_diffusion.py:253\u0060 calls \u0060randn\u0060 and \u0060examples/community/clip_guided_images_mixing_stable_diffusion.py:375\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/clip_guided_images_mixing_stable_diffusion.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"561a2ca90d77ba809a2da9dc839d6d1b6e938db7ea4009e5fe985cc7c83b86b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/dreambooth/train_dreambooth_flax.py:166-170 | examples/research_projects/sana/train_sana_sprint_diffusers.py:539-543 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:411-416 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flax.py\u0060 and \u0060examples/research_projects/sana/train_sana_sprint_diffusers.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 289 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_flax.py:166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c9dddc5a3f22d4bd93ae582fc3eb61ae55aa4e32fd19bcb4ac5a47772c4924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1703-1705 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1739-1743 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:1687-1691 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:1838-1842 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 139 separate duplicated blocks between them, totalling at least 2531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1703\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:1743\u0060 calls \u0060offload_models\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:1705\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":"examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f79acbef742e43d2035e86df94281b5054ff0149145072acb174431f3f7780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/research_projects/consistency_training/train_cm_ct_unconditional.py:1403-1407 | examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:615-619 | examples/unconditional_image_generation/train_unconditional.py:667-671 \u2014 before extracting anything, compare \u0060examples/research_projects/consistency_training/train_cm_ct_unconditional.py\u0060 and \u0060examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"083cc7c7c38f5c2ebe3597b999f1625cef389f535827bf9d297ee17c1a046289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:493-497 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:492-497 | examples/research_projects/ip_adapter/tutorial_train_faceid.py:279-284 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d28f40d0d593bbe3d958d86a942f43419b6312fd4a1cd03928d55daedc327e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/amused/train_amused.py:117-121 | examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py:386-390 \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 \u0060examples/amused/train_amused.py:117\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":"examples/amused/train_amused.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a25c9234c3051b8ad4590033dc85c59bc86fe482aa71121c7f35b40161eba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/community/adaptive_mask_inpainting.py:1214-1218 | examples/community/pipeline_stable_diffusion_upscale_ldm3d.py:715-719 \u2014 before extracting anything, compare \u0060examples/community/adaptive_mask_inpainting.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_upscale_ldm3d.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 399 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/adaptive_mask_inpainting.py"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f8eb25de76b742897b2d18d141d0395fccc4e992f2157347aa36100dbc4daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/community/composable_stable_diffusion.py:289-293 | examples/community/sd_text2img_k_diffusion.py:240-244 \u2014 before extracting anything, compare \u0060examples/community/composable_stable_diffusion.py\u0060 and \u0060examples/community/sd_text2img_k_diffusion.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 275 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/composable_stable_diffusion.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fe5314335fd808e2d478c93344b05a563149b28950a4c828160f03675d40e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/community/fresco_v2v.py:201-206 | examples/community/fresco_v2v.py:207-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/fresco_v2v.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"362b77c3f41440bd64c3b256580feb21ed66ad6ef54f8050d683ffaddfc4d44e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/community/pipeline_animatediff_controlnet.py:1112-1117 | examples/community/pipeline_animatediff_img2video.py:964-968 \u2014 before extracting anything, compare \u0060examples/community/pipeline_animatediff_controlnet.py\u0060 and \u0060examples/community/pipeline_animatediff_img2video.py\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 594 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/pipeline_animatediff_img2video.py:969\u0060 calls \u0060AnimateDiffPipelineOutput\u0060 and \u0060examples/community/pipeline_animatediff_controlnet.py:1118\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":"examples/community/pipeline_animatediff_controlnet.py"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b2805cb5839c3be7d680474a5bae1439cc3963a2b1a90f3e64384823a1827b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/community/pipeline_demofusion_sdxl.py:553-558 | examples/community/pipeline_demofusion_sdxl.py:559-564 \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":"examples/community/pipeline_demofusion_sdxl.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a90d3af1ab0ef6999f5727ffc9eda4ed7ab37b5ceb087c00337acebb421408a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/controlnet/train_controlnet_sd3.py:467-471 | examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py:412-416 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1065 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/controlnet/train_controlnet_sd3.py:467\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c14ecbde109af9892def5206361aae76f8a11ae9634ba1c02fd01e13dfe73f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/dreambooth/train_dreambooth.py:1322-1328 | examples/research_projects/pixart/train_pixart_controlnet_hf.py:1057-1063 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/research_projects/pixart/train_pixart_controlnet_hf.py\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 532 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e5ca6429bd1e5baccd7aaf507f58f529f63a14f2bb5e969cec16c912e702dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_ideogram4.py:1926-1931 | examples/dreambooth/train_dreambooth_lora_z_image.py:1720-1725 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_ideogram4.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_z_image.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2595 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_ideogram4.py"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"581e15af65fae6cfe3419c5e9c7dbdb9bc310125c44b5b7a5f7297a4272f8187"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/research_projects/controlnet/train_controlnet_webdataset.py:1318-1323 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:1183-1187 \u2014 before extracting anything, compare \u0060examples/research_projects/controlnet/train_controlnet_webdataset.py\u0060 and \u0060examples/t2i_adapter/train_t2i_adapter_sdxl.py\u0060 as WHOLE FILES: this scan already matched 122 separate duplicated blocks between them, totalling at least 2078 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"a648dba31cd79a9bd4f49ff19535b06842cfcf10dcd2646790076f975139aeb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:59-79 | examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:55-75 \u2014 before extracting anything, compare \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py\u0060 and \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py\u0060 as WHOLE FILES: this scan already matched 109 separate duplicated blocks between them, totalling at least 1746 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:59\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":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"625a56df939116adc30fa7a74412e4959349b3c50e5af6d8c413843042727167"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/convert_consistency_to_diffusers.py:190-194 | scripts/convert_consistency_to_diffusers.py:198-202 \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":"scripts/convert_consistency_to_diffusers.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22e07c04688ea9664e815e675162798565e19dd9079c0b3713a8b6cca1a729e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/convert_hunyuan_video_to_diffusers.py:267-271 | scripts/convert_ltx_to_diffusers.py:387-395 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/convert_ltx_to_diffusers.py:387\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_hunyuan_video_to_diffusers.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"6234b1ad29baa786e207a3e48a51c319e99378eef5e4a613d77d9b3b557cbc5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:224-230 | examples/dreambooth/train_dreambooth_flux.py:164-170 | examples/dreambooth/train_dreambooth_lora_flux.py:178-184 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:182-188 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d0cd9bb902fadc949be1ede7d729d472c76bf01da88f7cd12b477d4c1d4bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py:289-302 | examples/dreambooth/train_dreambooth_flux.py:223-236 | examples/dreambooth/train_dreambooth_lora_flux.py:243-256 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:250-263 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py\u0060 and \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 as WHOLE FILES: this scan already matched 149 separate duplicated blocks between them, totalling at least 2517 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"03858d0e039b15ad6854f4309ace4c397125afd3081ac0aa8fb0d7d1a13ba7cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 21): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:230-244 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:321-335 | examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:460-474 | examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:262-276 | examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:434-448 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:438-452 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:457-471 | examples/controlnet/train_controlnet_sdxl.py:215-229 | examples/dreambooth/train_dreambooth_lora_sdxl.py:246-260 | examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:126-140 | examples/research_projects/controlnet/train_controlnet_webdataset.py:421-435 | examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:77-91 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora.py:77-91 | examples/research_projects/diffusion_orpo/train_diffusion_orpo_sdxl_lora_wds.py:75-89 | examples/research_projects/lpl/train_sdxl_lpl.py:185-199 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:243-257 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:122-136 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_sdxl.py:115-129 | examples/t2i_adapter/train_t2i_adapter_sdxl.py:181-195 | examples/text_to_image/train_text_to_image_lora_sdxl.py:169-183 | examples/text_to_image/train_text_to_image_sdxl.py:119-133 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f3811c36fd9b3a0b5592c34b43a207c2a5ad55fbeb481544ec0207239e0409"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:743-748 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:909-914 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7476626c96473e3a0e9bb9d7a9e5e48a58245c160b54c8500ef73772341848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:1053-1062 | examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:1281-1290 \u2014 before extracting anything, compare \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py\u0060 and \u0060examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py\u0060 as WHOLE FILES: this scan already matched 147 separate duplicated blocks between them, totalling at least 2581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28648058c1c8405d3d1563448a9d329af4053ce8c9bd51dd566679e2ab997e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/cogvideo/train_cogvideox_image_to_video_lora.py:812-823 | examples/cogvideo/train_cogvideox_lora.py:834-845 \u2014 before extracting anything, compare \u0060examples/cogvideo/train_cogvideox_image_to_video_lora.py\u0060 and \u0060examples/cogvideo/train_cogvideox_lora.py\u0060 as WHOLE FILES: this scan already matched 101 separate duplicated blocks between them, totalling at least 2338 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogvideo/train_cogvideox_image_to_video_lora.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1d6fbe20c0d9a4808fd15f6030c41a4a30385518707b7b32d0818aa0c21475"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): examples/community/imagic_stable_diffusion.py:99-108 | examples/community/mixture_canvas.py:280-289 | examples/community/mixture_tiling.py:149-158 | examples/community/seed_resize_stable_diffusion.py:61-70 \u2014 before extracting anything, compare \u0060examples/community/imagic_stable_diffusion.py\u0060 and \u0060examples/community/seed_resize_stable_diffusion.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/community/mixture_tiling.py:160\u0060 calls \u0060SeedTilesMode\u0060 and \u0060examples/community/seed_resize_stable_diffusion.py:72\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"edee3396f0f1e85698c63aa1a5ef67b7d5575a551693a0e82f00a8d1a4c289c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/community/latent_consistency_img2img.py:679-684 | examples/community/latent_consistency_txt2img.py:587-592 \u2014 before extracting anything, compare \u0060examples/community/latent_consistency_img2img.py\u0060 and \u0060examples/community/latent_consistency_txt2img.py\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 685 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/latent_consistency_img2img.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a680a9e6f0878893cd537e4de7522b8d5760e9d40fc7734db2cb88124d16fe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/community/mixture_tiling.py:52-64 | examples/community/mixture_tiling_sdxl.py:86-98 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcda2b431d8e5d32f1024c1e467dc36aed04d7cce61555dca8baccf22580afc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/community/mixture_tiling.py:73-84 | examples/community/mixture_tiling_sdxl.py:107-118 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling.py\u0060 and \u0060examples/community/mixture_tiling_sdxl.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"af459caa1a48ed085d604d1f86fe3c9be159d6dbc5cdc9c2d3a86fcd6e633264"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): examples/community/pipeline_flux_kontext_multiple_images.py:642-653 | examples/community/pipeline_flux_rf_inversion.py:552-563 | examples/community/pipeline_flux_semantic_guidance.py:701-712 | examples/community/pipeline_flux_with_cfg.py:529-540 | examples/community/pipeline_stable_diffusion_boxdiff.py:529-540 | examples/community/pipeline_stable_diffusion_pag.py:496-507 | examples/community/pipeline_stg_hunyuan_video.py:506-517 | examples/community/pipeline_stg_mochi.py:479-490 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:261-272 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f47752e784288197f45cbe70f19a5a2bf825accfd8fc2e4197ba3d09b7a536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): examples/community/pipeline_flux_kontext_multiple_images.py:657-667 | examples/community/pipeline_flux_rf_inversion.py:566-576 | examples/community/pipeline_flux_semantic_guidance.py:716-726 | examples/community/pipeline_flux_with_cfg.py:543-553 | examples/community/pipeline_stable_diffusion_boxdiff.py:543-553 | examples/community/pipeline_stable_diffusion_pag.py:510-520 | examples/community/pipeline_stg_hunyuan_video.py:520-530 | examples/community/pipeline_stg_mochi.py:493-503 | examples/research_projects/promptdiffusion/pipeline_prompt_diffusion.py:276-286 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_kontext_multiple_images.py\u0060 and \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 619 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"151844143f0eac9b405a5646ea9b89aa4daa08edb42365770f9d8b8fb4b6c8ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): examples/community/pipeline_flux_rf_inversion.py:526-536 | examples/community/pipeline_flux_with_cfg.py:503-513 | examples/community/pipeline_stable_diffusion_boxdiff.py:503-513 | examples/community/pipeline_stable_diffusion_pag.py:470-480 | examples/community/pipeline_stg_hunyuan_video.py:480-490 | examples/community/pipeline_stg_mochi.py:453-463 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 and \u0060examples/community/pipeline_flux_with_cfg.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/community/pipeline_stg_hunyuan_video.py:476\u0060 calls \u0060randn_tensor\u0060 and \u0060examples/community/pipeline_stg_mochi.py:450\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17dc6b677c14ab21386cd9c5ec8e805ce0de7e2a8036310a0f72b9db03e5b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): examples/community/pipeline_flux_rf_inversion.py:539-549 | examples/community/pipeline_flux_with_cfg.py:516-526 | examples/community/pipeline_stable_diffusion_boxdiff.py:516-526 | examples/community/pipeline_stable_diffusion_pag.py:483-493 | examples/community/pipeline_stg_hunyuan_video.py:493-503 | examples/community/pipeline_stg_mochi.py:466-476 \u2014 before extracting anything, compare \u0060examples/community/pipeline_flux_rf_inversion.py\u0060 and \u0060examples/community/pipeline_flux_with_cfg.py\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 525 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_flux_rf_inversion.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c25bbedeb055fafdbbae766c2fe644c95b12e0c9aab2a83a1fe57c070a9beda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:56-62 | examples/community/pipeline_stable_diffusion_xl_instantid.py:56-62 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb629c7bbae2094498079b9fa8c7faa61e6a76ef8ccbd2653f1146376b8972e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:66-73 | examples/community/pipeline_stable_diffusion_xl_instantid.py:66-73 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe3e6300175ebcacce67cfdf90c5d7feff693b69fe58726e82eab8e1469ca92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py:353-357 | examples/community/pipeline_stable_diffusion_xl_instantid.py:353-357 \u2014 before extracting anything, compare \u0060examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py\u0060 and \u0060examples/community/pipeline_stable_diffusion_xl_instantid.py\u0060 as WHOLE FILES: this scan already matched 73 separate duplicated blocks between them, totalling at least 1156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81b3b40baabc6da564cd2dab88fe79c0fff9fe6fa37720f12f42482faeb2a5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:115-119 | examples/community/stable_diffusion_tensorrt_inpaint.py:119-123 | examples/community/stable_diffusion_tensorrt_txt2img.py:102-106 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f963142ae79e6934396f52dbaa7276eabcfe21e73a61d5474aa0cf312fe5a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): examples/community/stable_diffusion_tensorrt_img2img.py:201-209 | examples/community/stable_diffusion_tensorrt_inpaint.py:205-213 | examples/community/stable_diffusion_tensorrt_txt2img.py:188-196 | scripts/convert_stable_diffusion_controlnet_to_onnx.py:55-63 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e560a411f661b22c2ee5f99853a095fb80dae82b0df6985d00943a1920fefade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:251-256 | examples/community/stable_diffusion_tensorrt_inpaint.py:255-260 | examples/community/stable_diffusion_tensorrt_txt2img.py:238-243 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"30620f9c15d58ae2514c4720fc593dfe296a60c98b9cd09f907a02160c7cb83a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:413-419 | examples/community/stable_diffusion_tensorrt_inpaint.py:417-423 | examples/community/stable_diffusion_tensorrt_txt2img.py:400-406 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"250dfa0f81dd6a89c6b817dd6383b635aa15e584f739bced6844223f9da1b3b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:433-440 | examples/community/stable_diffusion_tensorrt_inpaint.py:437-444 | examples/community/stable_diffusion_tensorrt_txt2img.py:420-427 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"295b52ededa6339cd36bab8bf4358a6495e90d091c81575007199f4ed7ae7c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:451-460 | examples/community/stable_diffusion_tensorrt_inpaint.py:455-464 | examples/community/stable_diffusion_tensorrt_txt2img.py:438-447 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"9206d7e144252da95fa599ad3f07948c625132498b1de327788ebb2d883ec6f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 6): examples/community/stable_diffusion_tensorrt_img2img.py:476-500 | examples/community/stable_diffusion_tensorrt_img2img.py:550-569 | examples/community/stable_diffusion_tensorrt_inpaint.py:480-504 | examples/community/stable_diffusion_tensorrt_inpaint.py:554-573 | examples/community/stable_diffusion_tensorrt_txt2img.py:463-487 | examples/community/stable_diffusion_tensorrt_txt2img.py:537-556 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d642f2b34b31713f168977dc0d105e1c913eef0a7e30f74c0f562b4071c11e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/community/stable_diffusion_tensorrt_img2img.py:523-530 | examples/community/stable_diffusion_tensorrt_txt2img.py:510-517 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_txt2img.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 699 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c6bc60fe8f07a4ef827876fa8989e8f4dba12e6b1e2f3a09005ecc1cb4a187"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/community/stable_diffusion_tensorrt_img2img.py:924-929 | examples/community/stable_diffusion_tensorrt_inpaint.py:1007-1012 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec87e36bae8181f9fa5a27a631a81bcc4c811806c4a091254d4272b20ea10b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/community/stable_diffusion_tensorrt_img2img.py:1023-1029 | examples/community/stable_diffusion_tensorrt_inpaint.py:1106-1112 | examples/community/stable_diffusion_tensorrt_txt2img.py:957-963 \u2014 before extracting anything, compare \u0060examples/community/stable_diffusion_tensorrt_img2img.py\u0060 and \u0060examples/community/stable_diffusion_tensorrt_inpaint.py\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 694 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41babbb89315e210e6c4439b7b6bbf9f97f01681f1e37b6a8640d3d21b1ad74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:445-454 | examples/consistency_distillation/train_lcm_distill_sd_wds.py:423-432 | examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:384-393 \u2014 before extracting anything, compare \u0060examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py\u0060 and \u0060examples/consistency_distillation/train_lcm_distill_sd_wds.py\u0060 as WHOLE FILES: this scan already matched 93 separate duplicated blocks between them, totalling at least 1884 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"db29add99e5bc87b517ec12ded9852c97ca24421e2bfcc8895c94560351bd427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/controlnet/train_controlnet_sd3.py:231-244 | examples/dreambooth/train_dreambooth_lora_sd3.py:233-246 | examples/dreambooth/train_dreambooth_sd3.py:209-222 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 as WHOLE FILES: this scan already matched 64 separate duplicated blocks between them, totalling at least 965 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet_sd3.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"b739562dbfd485154817d3799b2e7180861b1f3c810e42ab399d65055e2b6338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:773-786 | examples/dreambooth/train_dreambooth_lora.py:726-739 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:793-806 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:721-734 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef6a9db67896ee28a29e17f751df606fdb84c3c65e1cc6f3e79c42b40325921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): examples/dreambooth/train_dreambooth.py:790-804 | examples/dreambooth/train_dreambooth_lora.py:743-757 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py:810-824 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py:738-752 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora.py\u0060 as WHOLE FILES: this scan already matched 130 separate duplicated blocks between them, totalling at least 2085 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c6ccbc7bd802176f4ea1685b878c10434dae9cdfcddd32d814595edcdc57e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/dreambooth/train_dreambooth_flux.py:884-894 | examples/dreambooth/train_dreambooth_lora_flux.py:930-940 | examples/dreambooth/train_dreambooth_lora_flux_kontext.py:1104-1114 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_flux.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux.py\u0060 as WHOLE FILES: this scan already matched 195 separate duplicated blocks between them, totalling at least 3291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_flux.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"9678509efdd5b8546603c3efb2a18e1ffbe45a48827f5d2e2002197c651e0dca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_bria_fibo2.py:318-324 | examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py:339-345 | examples/dreambooth/train_dreambooth_lora_flux3_klein.py:356-362 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:363-369 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_bria_fibo2_img2img.py\u0060 as WHOLE FILES: this scan already matched 146 separate duplicated blocks between them, totalling at least 2716 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_bria_fibo2.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f323ab9a76bcc0bb778eb67cb9b7901c9ce3173984145ba215117f90d3172d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): examples/dreambooth/train_dreambooth_lora_flux2.py:243-249 | examples/dreambooth/train_dreambooth_lora_flux2_img2img.py:244-250 | examples/dreambooth/train_dreambooth_lora_flux2_klein.py:243-249 | examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py:245-251 | examples/dreambooth/train_dreambooth_lora_z_image.py:243-249 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux2.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux2_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 2979 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux2.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e33970139f0d6ddd64ae7e3a953f621ddb570a7a08ceffed48f7af03d81c675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_ideogram4.py:301-308 | examples/dreambooth/train_dreambooth_lora_krea2.py:306-313 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_ideogram4.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_krea2.py\u0060 as WHOLE FILES: this scan already matched 105 separate duplicated blocks between them, totalling at least 1795 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_ideogram4.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7a9fef742be9b17732d3f0557d416da8fd457a5eda43fa3057dec48e17b0d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_qwenimage21.py:123-128 | examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py:125-130 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_qwenimage21_img2img.py\u0060 as WHOLE FILES: this scan already matched 211 separate duplicated blocks between them, totalling at least 4020 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_qwenimage21.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e471cbb0201c314e5c0d509407e64cea37a817dfed9855e4f605b3200bc25c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_sd3.py:924-932 | examples/dreambooth/train_dreambooth_sd3.py:856-864 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sd3.py\u0060 and \u0060examples/dreambooth/train_dreambooth_sd3.py\u0060 as WHOLE FILES: this scan already matched 188 separate duplicated blocks between them, totalling at least 3169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sd3.py"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"606ea4128dcd5e20db01dd59c945d54b342c10ff6a2e3571438f8874a543fb82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): examples/dreambooth/train_dreambooth_lora_sdxl.py:944-952 | examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py:943-951 | examples/research_projects/scheduled_huber_loss_training/text_to_image/train_text_to_image_lora_sdxl.py:476-484 | examples/text_to_image/train_text_to_image_lora_sdxl.py:515-523 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_sdxl.py\u0060 and \u0060examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora_sdxl.py\u0060 as WHOLE FILES: this scan already matched 219 separate duplicated blocks between them, totalling at least 3741 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_sdxl.py"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cccf2202ae5135c1f3751124ebd95e00e55e6268e25bcb1205bb348d90ae23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:70-80 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:69-79 | examples/research_projects/wuerstchen/text_to_image/train_text_to_image_prior.py:70-80 \u2014 before extracting anything, compare \u0060examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py\u0060 and \u0060examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py\u0060 as WHOLE FILES: this scan already matched 87 separate duplicated blocks between them, totalling at least 1312 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f4aa111bd81454850d3607503a78cb933350528d044f208b802c7e37ce3b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): examples/research_projects/ip_adapter/tutorial_train_faceid.py:111-117 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:113-119 | examples/research_projects/ip_adapter/tutorial_train_plus.py:113-119 | examples/research_projects/ip_adapter/tutorial_train_sdxl.py:171-177 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd5e0ee16e5aeaf01c48cafddda1d001af9d9d7b233af5ba3eb07a6dbdb0903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/research_projects/ip_adapter/tutorial_train_faceid.py:120-124 | examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py:122-126 | examples/research_projects/ip_adapter/tutorial_train_plus.py:122-126 \u2014 before extracting anything, compare \u0060examples/research_projects/ip_adapter/tutorial_train_faceid.py\u0060 and \u0060examples/research_projects/ip_adapter/tutorial_train_ip-adapter.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 427 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/ip_adapter/tutorial_train_faceid.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d348710aa2070315cb2dfdfde6089559dd9fce5ad084020ea4b50780a22cdc4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/research_projects/sdxl_flax/sdxl_single.py:59-63 | examples/research_projects/sdxl_flax/sdxl_single_aot.py:61-65 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/sdxl_flax/sdxl_single.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"258684e52f31b1a53b64f7a736ffd3a0328be7d0ab42e246fe03eea6bf1ed1fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): scripts/convert_cogvideox_to_diffusers.py:124-131 | scripts/convert_cosmos_to_diffusers.py:569-576 | scripts/convert_dcae_to_diffusers.py:83-90 | scripts/convert_hunyuan_video_to_diffusers.py:211-218 | scripts/convert_ltx_to_diffusers.py:120-127 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/convert_cogvideox_to_diffusers.py:134\u0060 calls \u0060update_state_dict_inplace\u0060, \u0060pop\u0060 and \u0060scripts/convert_cosmos_to_diffusers.py:579\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/convert_cogvideox_to_diffusers.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce83283247799889921ff641758bc9269e25760fb36f7e33deebcd90589d51b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): scripts/convert_cogview4_to_diffusers.py:56-68 | scripts/convert_cogview4_to_diffusers_megatron.py:132-144 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_cogview4_to_diffusers.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b709de992471e7c02c182cee73dcf91c297ed099a72f680e2357cb135524e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/convert_flux2_to_diffusers.py:60-68 | scripts/convert_ltx2_to_diffusers.py:1265-1273 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_flux2_to_diffusers.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee6db71e394d75a35b14a08f7394240a7f5c418f6044af3364f06323c0f0806"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): scripts/convert_flux_to_diffusers.py:52-60 | scripts/convert_flux_xlabs_ipadapter_to_diffusers.py:39-47 | scripts/convert_ovis_image_to_diffusers.py:41-49 \u2014 before extracting anything, compare \u0060scripts/convert_flux_to_diffusers.py\u0060 and \u0060scripts/convert_flux_xlabs_ipadapter_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_flux_to_diffusers.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf9cf413b11552acf9fbeec06e65a8bf68c40af105e53c6ea703991a1051ce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/convert_hunyuan_video1_5_to_diffusers.py:611-615 | scripts/convert_wan_to_diffusers.py:321-325 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_hunyuan_video1_5_to_diffusers.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a9f56bccf5932cf9a96acd5d7418dacdcb9a802e509830db1b35fdcb7d8f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): scripts/convert_kakao_brain_unclip_to_diffusers.py:800-823 | scripts/convert_kandinsky_to_diffusers.py:751-774 \u2014 before extracting anything, compare \u0060scripts/convert_kakao_brain_unclip_to_diffusers.py\u0060 and \u0060scripts/convert_kandinsky_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 385 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7e6cec9c6bab58a6b5e7ee01177608c2beacaf4ffe2d993c168267a22ad2cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/convert_kakao_brain_unclip_to_diffusers.py:1034-1040 | scripts/convert_shap_e_to_diffusers.py:1005-1011 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"491b1c279e3f7957dd9ea9b3a5580068f3d51048bbefbf269bbf199fadca2287"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): scripts/convert_kandinsky_to_diffusers.py:891-905 | scripts/convert_kandinsky_to_diffusers.py:909-927 | scripts/convert_kandinsky_to_diffusers.py:1303-1317 | scripts/convert_shap_e_to_diffusers.py:968-984 \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. 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":"scripts/convert_kandinsky_to_diffusers.py"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b63ed98d8b8261c6aad661d9a2a740a56f3699f40c7bd426d937abec45434a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): scripts/convert_kandinsky_to_diffusers.py:1273-1299 | scripts/convert_vq_diffusion_to_diffusers.py:173-200 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kandinsky_to_diffusers.py"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c089e9305e4eca8337e23b7a57c998b6aea640addd7bf518720edbfb6218b063"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/cogview4-control/train_control_cogview4.py:698-702 | examples/flux-control/train_control_flux.py:690-694 | examples/flux-control/train_control_lora_flux.py:718-722 \u2014 \u0060examples/cogview4-control/train_control_cogview4.py\u0060 and \u0060examples/flux-control/train_control_flux.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 123 separate duplicated blocks between them, totalling at least 2399 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cogview4-control/train_control_cogview4.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"394ed68e60f86060fee4fd76043650c502eae950c76d74ede3da58154067c31c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/community/mixture_tiling_sdxl.py:645-649 | examples/community/mod_controlnet_tile_sr_sdxl.py:668-672 \u2014 before extracting anything, compare \u0060examples/community/mixture_tiling_sdxl.py\u0060 and \u0060examples/community/mod_controlnet_tile_sr_sdxl.py\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 461 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bdd9415d401843ecb572b14c951396329c85ce4a37cbf488feb6ed23a805ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/controlnet/train_controlnet.py:720-725 | examples/controlnet/train_controlnet_flax.py:643-648 \u2014 before extracting anything, compare \u0060examples/controlnet/train_controlnet.py\u0060 and \u0060examples/controlnet/train_controlnet_flax.py\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 495 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/controlnet/train_controlnet.py"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff42767f3ec6395b2365f39207294ed3a1d7e4a351c2b3162cdcf2e65dc222c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/dreambooth/train_dreambooth_lora_flux3_klein.py:141-145 | examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py:140-144 \u2014 before extracting anything, compare \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein.py\u0060 and \u0060examples/dreambooth/train_dreambooth_lora_flux3_klein_img2img.py\u0060 as WHOLE FILES: this scan already matched 155 separate duplicated blocks between them, totalling at least 3019 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/dreambooth/train_dreambooth_lora_flux3_klein.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a525200115fcac628139d0730e754bcf8cf3a3a79d4b342c5685887ab99f455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/convert_if.py:1154-1158 | scripts/convert_if.py:1160-1164 \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":"scripts/convert_if.py"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"45dbc4dddd3dd32e8068c8964d08b285436a3c5bf055abcf7f0ff31ba5c4c48f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/convert_original_audioldm2_to_diffusers.py:203-209 | scripts/convert_original_musicldm_to_diffusers.py:201-207 \u2014 before extracting anything, compare \u0060scripts/convert_original_audioldm2_to_diffusers.py\u0060 and \u0060scripts/convert_original_musicldm_to_diffusers.py\u0060 as WHOLE FILES: this scan already matched 56 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75c2faff06f495733835404e80a16ed932d806a055a1e14fa03abfd75244532"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): utils/consolidated_test_report.py:394-398 | utils/consolidated_test_report.py:593-597 | utils/consolidated_test_report.py:678-682 \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":"utils/consolidated_test_report.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"879dbe50ac6cd57f4368134841dddaefe4bc5b4390245975f0ee797f08b741ce"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ModelMixin (LCOM4 18): ModelMixin\u0027s methods fall into 18 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 18 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3df4435ba7a2ab380ec85e36c3646c17246a5e53d0009beddccd0d7745e7225"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PeftAdapterMixin (LCOM4 9): PeftAdapterMixin\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/peft.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff0ae3fcb928f01467800d2fd621b9ce70c273bffee9f56b807c60d11fe863d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MatryoshkaUNet2DConditionModel (LCOM4 7): MatryoshkaUNet2DConditionModel\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/matryoshka.py"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"822482818eb05806ca1c6332072831d74d7067e730468790da611845cbd630a1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Attention (LCOM4 7): Attention\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91463f9a4fda1554c47efd0aa78275216023589b7035084a54618aa7c54e6b7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DiffusionPipeline (LCOM4 7): DiffusionPipeline\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1cfdd3e79faf44cf55dc2ba19cfd589f1abbf211193de337aa7caf5efbfc77"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CacheTesterMixin (LCOM4 6): CacheTesterMixin\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/models/testing_utils/cache.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da7e03aeb95d49e1ddbb86004e093cc8b87b70ffa181a32bcebc4a4d953d03c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LoraHotSwappingForModelTesterMixin (LCOM4 6): LoraHotSwappingForModelTesterMixin\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/models/testing_utils/lora.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1778351f6222a2336f639c5bffcede74c6cfb8e43d08d3cb5fab34f9e03abca"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AnyTextPipeline (LCOM4 5): AnyTextPipeline\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/anytext/anytext.py"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d538aaa2c6d48a2b9ea52ddc40e786e0500e024368ab62cc923ca11f0da54a8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AnimateDiffFreeNoiseMixin (LCOM4 5): AnimateDiffFreeNoiseMixin\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/free_noise_utils.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1085d6816930e97670e233eff9417838a8c61cdbc40a53c5a613d8b808f660"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TorchCompileTesterMixin (LCOM4 5): TorchCompileTesterMixin\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/models/testing_utils/compile.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1a1c8e9433cc9b850429b66f44d7d6f2d963c6768f5c7788c42ca609a2d4a0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UNetFlatConditionModel (LCOM4 4): UNetFlatConditionModel\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb53408e4ee9c162106845149ca6eeaba164cc4a9bdc323ca9ec9cb3aaea5769"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BnB8BitDiffusersQuantizer (LCOM4 4): BnB8BitDiffusersQuantizer\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"24867304880d2da67ec9c9232eb31c23c50bb312e63d45a2e19250ccaee4dd30"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: test_one_request_upon_cached: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022Flaky behaviour on CI. Re-enable after migrating to new runners\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/models/test_modeling_common.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9249c35b128dd2c953ef7e2d10af6c35709d7739e5f4ac86b0ca12857ac4cd8"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: test_float16_inference: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022PE generation is non-deterministic on CPU\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/modular_pipelines/ernie_image/test_modular_pipeline_ernie_image.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"157cc8c555a6539a12170a5c2f6e532ffc1566b71b6b37625e5631c4827dac58"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: test_save_from_pretrained: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022Pyramid multi-stage noise makes save/load comparison unreliable with tiny models\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/modular_pipelines/helios/test_modular_pipeline_helios.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3c17274f767c12ae2481d51ebb96039a0ec69a0cbea886db920b8c6ae4e846"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: test_components_auto_cpu_offload_inference_consistent: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022Pyramid multi-stage noise makes offload comparison unreliable with tiny models\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/modular_pipelines/helios/test_modular_pipeline_helios.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f2d2c14f01ee29bd69e851fd0b2f705467fd6e40ded48c9357658d74484258"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: test_one_request_upon_cached: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022Flaky behaviour on CI. Re-enable after migrating to new runners\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/pipelines/test_pipelines.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"632d48c6c9879f0663f095c9b30a03a34dc0b995c052a46a39d777b561c5c44c"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: test_less_downloads_passed_object_calls: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022Flaky behaviour on CI. Re-enable after migrating to new runners\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/pipelines/test_pipelines.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42cee0bbacbff620bdbe426845ef2d76450f8ffbf07d00185a05df12f170749"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/models/modeling_utils.py: src/diffusers/models/modeling_utils.py changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 94 in ModelMixin.from_pretrained at line 904. 2 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/models/modeling_utils.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"2316c142e2b7cbfcaa8b44ce8378537ef61d0afc8a405600f5160cc87accdbeb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/modular_pipelines/modular_pipeline.py: src/diffusers/modular_pipelines/modular_pipeline.py changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in ModularPipeline.__init__ at line 1713. 2 of those changes were fix/bug commits, and the other 18 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/modular_pipelines/modular_pipeline.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"57405c888c77764b96bfc626b23f99a3fac299c786325ed79d63522672b24a56"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/loaders/single_file_utils.py: src/diffusers/loaders/single_file_utils.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 95 in single_file_utils.infer_diffusers_model_type at line 604. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/loaders/single_file_utils.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0ebf3321b8e96fe128df4e55c2541e80710ccb9c3ee1509a928d90849e32bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/pipeline_utils.py: src/diffusers/pipelines/pipeline_utils.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in DiffusionPipeline.from_pretrained at line 640. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/pipeline_utils.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_utils.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fadb5e9d315da7259b6398df95b0bb7ae17ebef2ae30ef843c3f799b8bb20b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py: src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in Cosmos3OmniPipeline.__call__ at line 1318. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dde96e69058e95ae27a7e26e018d8b440e6ea4f10b867c0adfc6d09145df4b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py: src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in LTX2InContextPipeline.__call__ at line 1780. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2658d41a25486a2e3513d37043f74695120a4e17bec140f2440980ba5a6e755"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/models/attention_dispatch.py: src/diffusers/models/attention_dispatch.py changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in attention_dispatch._check_attention_backend_requirements at line 525. 6 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/models/attention_dispatch.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74daa0debc3f4beb16c146b5524950e001050f4039b1eaed76551e74356fffa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py: src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in StableDiffusionXLControlNetUnionPipeline.__call__ at line 978. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"261e7c3f828e7c14ac448410d29812afc8f2d811f866479fae36a4be8cf95599"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py: src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in LTX2ConditionPipeline.__call__ at line 1350. 2 of those changes were fix/bug commits, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"70736455802a84127779022afd64e9649ecedd2c7b2c89d73cf5875dcf13a40a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py: src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in LTX2ImageToVideoPipeline.__call__ at line 985. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafe3be54bb087560f67143e44f375c8c44cb4c6e1cf90bf226b0a4541ea7b14"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py: src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 77 in StableDiffusionXLControlNetPAGPipeline.__call__ at line 1005. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccdf128f651d9f32b90cfb2572714fe9a6f768fe5b3b02a051d23161839aec7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py: src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 75 in StableDiffusionXLControlNetPipeline.__call__ at line 1001. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc185fc24069031257574712c5777211c192beb836f35ac6da6dff7bcad132ca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/ltx2/pipeline_ltx2.py: src/diffusers/pipelines/ltx2/pipeline_ltx2.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in LTX2Pipeline.__call__ at line 931. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/ltx2/pipeline_ltx2.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"c977d03d93e25dc8bf0117b758e40c459aaa4ef8628a4062128f9ea71bbb366a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py: src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in FluxKontextInpaintPipeline.__call__ at line 886. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"755ea26f1c3e65ef5619a906621a3b9fe6fcde683b4240bac06f58a39e84fe13"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/pipeline_loading_utils.py: src/diffusers/pipelines/pipeline_loading_utils.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in pipeline_loading_utils.load_sub_model at line 779. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/pipeline_loading_utils.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_loading_utils.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3c1d2449403cf60317e32d8b4f0a8c5b0d78c53f638791eef55e978f88235f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/z_image/pipeline_z_image_omni.py: src/diffusers/pipelines/z_image/pipeline_z_image_omni.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in ZImageOmniPipeline.__call__ at line 363. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/z_image/pipeline_z_image_omni.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_omni.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6266cfc52ad35f021be5c82a2f27d347ade2c781ff4fa09e0e739c2ffff5f5f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/chroma/pipeline_chroma.py: src/diffusers/pipelines/chroma/pipeline_chroma.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in ChromaPipeline.__call__ at line 589. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/chroma/pipeline_chroma.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e9089aed5a3dac0862240fb4f3e2278ebe2f555e5758e9b359e7e6ecb09f06"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py: src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in SkyReelsV2DiffusionForcingImageToVideoPipeline.__call__ at line 646. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"436e5799d4ddb6709cbe990cc03241acb3a3f781953323531752f4a67e1ccde5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/models/transformers/transformer_ltx2.py: src/diffusers/models/transformers/transformer_ltx2.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in LTX2VideoTransformer3DModel.forward at line 1354. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/models/transformers/transformer_ltx2.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c7ce1ff0f87c950e2b7c28202f39a44b89b7b0f36ab41671c9652273f32dc8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/loaders/peft.py: src/diffusers/loaders/peft.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in PeftAdapterMixin.load_lora_adapter at line 85. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/loaders/peft.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/peft.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"03460d48530a0fb2800c3ca80376e6a551772591975bdbf3f3ef0506ae185914"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py: src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in StableDiffusionControlNetPAGPipeline.__call__ at line 865. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6831409cb8793cb076274eaddec130c21535ef986095b87724a4cc18cc31ff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py: src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in ChromaInpaintPipeline.__call__ at line 766. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab13577f9f904217b494998687b711bcc1aa8c035ad61b6457795fb08fa14e45"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/controlnet/pipeline_controlnet.py: src/diffusers/pipelines/controlnet/pipeline_controlnet.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in StableDiffusionControlNetPipeline.__call__ at line 909. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a994ee195b8736ef39d8c4689e7e623b8cce75426f5e687ab8012b7aee01570"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py: src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in ChromaImg2ImgPipeline.__call__ at line 648. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab74e4cfdac3929be4df407117e8d78f345aa9081ca3b29b99f9f48600e31b2d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py: src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in StableDiffusionXLPipeline.__call__ at line 825. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"648b6e89725d1fcb64f5e73cd74938b122f5114df5e544b23381cd545796e482"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py: src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in VisualClozeGenerationPipeline.__call__ at line 661. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/visualcloze/pipeline_visualcloze_generation.py"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f40ba2f8678aba1a1678e4fc2c34764f985d4d7c46ff8252e4423e3de732a0e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py: src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in SkyReelsV2DiffusionForcingVideoToVideoPipeline.__call__ at line 686. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"221fc5d9180a2f9f2c6444b2f893c8420cde45b9f09368e4bb32fcb84629166e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py: src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in QwenImage21Pipeline.__call__ at line 511. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f66101d396b40d20c9db453f9b44d0b206e45de85be655976e6784b45368dec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py: src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in BriaFiboEditPipeline.__call__ at line 601. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"754162728a3ab3a42b999212c1596b4f45ca0d445a5384d51a6a41db327d96c2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/flux/pipeline_flux.py: src/diffusers/pipelines/flux/pipeline_flux.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in FluxPipeline.__call__ at line 602. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/flux/pipeline_flux.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f73003e9ab21d49450e67e2f31c0f708c2fb16ee853bf993490e574026ca087"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/wan/pipeline_wan.py: src/diffusers/pipelines/wan/pipeline_wan.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in WanPipeline.__call__ at line 384. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/wan/pipeline_wan.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7697461e7e0c45b12f078a81c9c27f8526610f353010d7b3a32c87d1de1d82"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/commands/run.py: src/diffusers/commands/run.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in run._maybe_submit_remote at line 1035. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/commands/run.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/commands/run.py"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9c784b5a7384d375c500e67fd13c4bb08eaa16ae31e5734cc6e19430c9f59e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py: src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in ZImageInpaintPipeline.__call__ at line 537. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1cf3c32d2afbeb20ff25c25dd4dd012382068527262c5836225f12cc77db5e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/modular_pipelines/cosmos/denoise.py: src/diffusers/modular_pipelines/cosmos/denoise.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Cosmos3LoopDenoiser.__call__ at line 198. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/modular_pipelines/cosmos/denoise.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/denoise.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba592633c957107665a513c2687f0c5f632a6cf360834367b023fdc8c4baab71"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py: src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in ZImageImg2ImgPipeline.__call__ at line 371. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4d269f8a4d27787606bb394f1b4ba49267727dd5d37d03c10aa6e940a66af4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py: src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in StableDiffusion3Pipeline.__call__ at line 774. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"2381c989ade5a0b9f998f60318dc4a8ab8f9e582962c315c49a6090f8d51bab5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py: src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in HiDreamImagePipeline.__call__ at line 676. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f55ca8d597a56d35b60036113bb0b1821a969cd2d03f2c756d5dbeb1ea76af7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/z_image/pipeline_z_image.py: src/diffusers/pipelines/z_image/pipeline_z_image.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in ZImagePipeline.__call__ at line 299. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/z_image/pipeline_z_image.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b346ef5c31066a3fb10948bad8c88e8f65b1614c636fd46a771566dd08dd7c4c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py: src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in ZImageControlNetPipeline.__call__ at line 389. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"19acf1669fc21704a71d85008c03d8dae1e31b8524924a78a31145fd7f5aecd1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/flux2/pipeline_flux2_klein.py: src/diffusers/pipelines/flux2/pipeline_flux2_klein.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in Flux2KleinPipeline.__call__ at line 616. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/flux2/pipeline_flux2_klein.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"5216b9c1af69f135ff0f18b954de1362d526ee334ee8844f6f7cca35c7d0e7db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py: src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in ZImageControlNetInpaintPipeline.__call__ at line 396. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9998af7df69989978678d90aca7c692ed3994d123a8f2c30501f8e8f273f810"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/wan/pipeline_wan_i2v.py: src/diffusers/pipelines/wan/pipeline_wan_i2v.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in WanImageToVideoPipeline.__call__ at line 512. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/wan/pipeline_wan_i2v.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_i2v.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e23d9b740e7650cdf1998339755d7a27739c0c7382e1843ac988905578eb851"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/loaders/lora_base.py: src/diffusers/loaders/lora_base.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in LoraBaseMixin.set_adapters at line 698. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/loaders/lora_base.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c6ef294861574194602b9123acc783d93727d94eed6a8caca7a2f754c71df5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/flux2/pipeline_flux2.py: src/diffusers/pipelines/flux2/pipeline_flux2.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in Flux2Pipeline.__call__ at line 748. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/flux2/pipeline_flux2.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"be44763ec6f8b4baf1373961c1f8d3f14e4a41019487f18c4a5f027a816937cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py: src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in BriaFiboPipeline.__call__ at line 437. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccbc61c98ce16b35bec49040de391a6c1a9cf06475275cd9fd078627b370fd0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py: src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in DiffusionGemmaPipeline.__call__ at line 165. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca00c2b0a1d29a74ec59c1bd3898358e6d73e52012456fa2d948c89dabbb679"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py: src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in JoyImageEditPipeline.__call__ at line 602. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6ce94a9d34528dec60305d24f82e65464396209f49c548cb3c9e47251bd775"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/mochi/pipeline_mochi.py: src/diffusers/pipelines/mochi/pipeline_mochi.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in MochiPipeline.__call__ at line 446. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/mochi/pipeline_mochi.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/mochi/pipeline_mochi.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f2185a1bd84377e2e438d346faef5d40075c796b239a3f6c50ef73afad072f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/modular_pipelines/cosmos/before_denoise.py: src/diffusers/modular_pipelines/cosmos/before_denoise.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Cosmos3ActionPrepareLatentsStep.__call__ at line 333. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/modular_pipelines/cosmos/before_denoise.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/cosmos/before_denoise.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33f80695500874d862c8c7c17077a7a6e899728086668a28ee7cdae1685ec18"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/models/transformers/transformer_z_image.py: src/diffusers/models/transformers/transformer_z_image.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ZImageTransformer2DModel.forward at line 897. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/models/transformers/transformer_z_image.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_z_image.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"62dc4b0c29597e6bc72e20130d6b4cb85b0078c646c09223cd7d0bc6ac659084"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py: src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in HunyuanVideoPipeline.__call__ at line 440. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa04ad6501152a3f9c401160916175fb7b69487a0b8e6cfb41fb5aeb27189dd1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/loaders/single_file.py: src/diffusers/loaders/single_file.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in single_file.load_single_file_sub_model at line 50. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/loaders/single_file.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac121f6ec524886a4a15ac4e12e268c19f22fbdfc058230c5878fa658588181"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py: src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in LDMTextToImagePipeline.__call__ at line 75. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:33:33 -10:00\u0027 --until=\u00272026-11-13 12:33:33 -10:00\u0027 --full-history --no-merges -- src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62f3241dbc4eb1463022ef701483430ed30de351452d2d74932dbca1cce9751"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 6 significant file(s) lose their only recent owner: src/diffusers/modular_pipelines/qwenimage/modular_blocks_qwenimage.py, src/diffusers/modular_pipelines/flux3/prompt_upsampler.py, src/diffusers/modular_pipelines/qwenimage/modular_blocks_qwenimage_edit.py, src/diffusers/modular_pipelines/qwenimage/modular_blocks_qwenimage_edit_plus.py, utils/modular_auto_docstring.py, src/diffusers/modular_pipelines/qwenimage/modular_blocks_qwenimage_layered.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cbbaa43892bac27f48db5d21f640efb3b8fd2b528bb8e105de669b2e7f0a6416"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 6 significant file(s) lose their only recent owner: src/diffusers/schedulers/scheduling_vq_diffusion.py, src/diffusers/schedulers/scheduling_unclip.py, src/diffusers/schedulers/scheduling_sde_ve.py, src/diffusers/schedulers/scheduling_scm.py, src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py, src/diffusers/schedulers/scheduling_ipndm.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6614eaceff695adda3b6e1c6223262ade1e3c842d8b372436caf485226e6f8b3"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 4 significant file(s) lose their only recent owner: src/diffusers/pipelines/llada2/pipeline_llada2.py, src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py, src/diffusers/schedulers/scheduling_block_refinement.py, src/diffusers/schedulers/scheduling_discrete_ddim.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5a4c3afad18f41ec21f23be4951747833e67807a6fb549441a62d7f58fd48dbc"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 3 significant file(s) lose their only recent owner: src/diffusers/hooks/sea_cache.py, src/diffusers/modular_pipelines/cosmos/decoders.py, src/diffusers/modular_pipelines/cosmos/before_encoder.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"36de998d0aabb59550d3e090609cb921fd8f4fd450a4f3b3dccc0129ba60d5b7"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 8 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (29 single-owned of 1009 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 1009 of the 1268 production source files in this repository met that bar). They are anonymized user #5 (2 file(s)), anonymized user #6 (2 file(s)), anonymized user #7 (1 file(s)), anonymized user #8 (1 file(s)), anonymized user #9 (1 file(s)), anonymized user #10 (1 file(s)) (\u002B2 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src/diffusers/modular_pipelines/flux/before_denoise.py, utils/extract_tests_from_mixin.py, scripts/convert_prx_to_diffusers.py, src/diffusers/pipelines/prx/__init__.py, src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py, src/diffusers/pipelines/cosmos/mixed_precision.py, src/diffusers/commands/skills.py, scripts/convert_sana_video_to_diffusers.py (\u002B2 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: fix \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":"utils/check_repo.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"266de6c393ab45a5ac0d9340aedf44d20ba6a65a1aca9abfbc570d02935f4120"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (patil-suraj): Fix this test \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":"tests/schedulers/test_scheduler_edm_dpmsolver_multistep.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea42582ec2029b8e9b287ca51156dc71e048fc64f157bcd962af221586a56dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: get expected sum and mean \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":"tests/schedulers/test_scheduler_lcm.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f17762b1dc119c31a2babcc232d07d3d133b43369fa36d836b4c6fed8d5041"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: get expected sum and mean \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":"tests/schedulers/test_scheduler_lcm.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"03bf3d890abfd0371bb44522a998abc4f1ce781fc17eb2c9f2efc07d11d5a280"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO adapt with class SchedulerCommonTest (scheduler needs Numpy Integration) \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":"tests/schedulers/test_scheduler_score_sde_ve.py"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"df029315a5b568493727fdb1198ff584686d3ea543c07cbabd6aabe055b9c0f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Suraj) - delete the following two lines once DDPM, DDIM, and PNDM have timesteps casted to float by default \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":"tests/schedulers/test_schedulers.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"b219502c34dbebe84f67728401e6aa4ad4e02680ffd681e8a0a50c9f0ab761d4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: how to test this? encode-\u003Edecode is lossy. expected slice of encoded latent? \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":"tests/remote/test_remote_encode.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2e79ab9a89bd8ba203462f28dac3b2e7b01872f0682276cb2083579f4bfc55"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: For some reason this test fails on MPS where no HEAD call is made. \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":"tests/pipelines/test_pipelines.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81192ce3f6c63c689620338c85e757788ea869eeaeaf93f165c32d9c500c099"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: For some reason this test fails on MPS where no HEAD call is made. \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":"tests/pipelines/test_pipelines.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0a4df91bd5d901f5400b60584936643582dd9c6a74bfdccbcc9eddbec70550"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hack since Python doesn\u0027t like overwriting modules: https://stackoverflow.com/questions/3105801/unload-a-module-in-python \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":"tests/pipelines/test_pipelines.py"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"24acc5c0dff2c96ee68d7848e825966c03faffd58cd30cced319690122d1c4fd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: impl FlowDPMSolverMultistepScheduler \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":"tests/pipelines/wan/test_wan.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c15625177a1f156b15b6c5b18fa944a628ad7ad5faee95cd7a7271b1d4c860"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: impl FlowDPMSolverMultistepScheduler \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":"tests/pipelines/wan/test_wan_image_to_video.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e82b757cf571171316ce8a0bcdbd3bd54f75e0ae64f87b3b4e0502679429805"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: impl FlowDPMSolverMultistepScheduler \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":"tests/pipelines/wan/test_wan_image_to_video.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"832fb924427eb8e93329be8bf5e0966f74522b3623ddec34315754c535c8fae1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: impl FlowDPMSolverMultistepScheduler \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":"tests/pipelines/chronoedit/test_chronoedit.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9674e094a0a615f2ac623de2272f854db47d583bca08d69ce79f04ceb60b35"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 12 files: The identical TodoComment appears in 12 files (14 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 14 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022# TODO\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/pipelines/wan/test_wan.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c434cd96b039edea2ebda9bdde2282f2a899bd71a2f5f2b2cdf8ed297be3b6af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: can we set this to num_frames? \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":"tests/pipelines/wan/test_wan_animate.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b22166760f7ab0aa0d52a5856298e9d387edb8670c79d550e448db25ea4d964"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan, dhruv): the cache tester mixins should probably be rewritten so that more models can be tested out \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":"tests/pipelines/testing_utils/cache.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d59e5aabcbebe9c878e69de1c91164538e7a94af049ba76d97128f1cbce960"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(diffusers): Discuss a common naming convention across library for 1.0.0 release \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":"tests/pipelines/testing_utils/lora.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce51240acd25e3fd7204a6be137d3c1f5c0cda9f600aea3680ecf3b06f174fd1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(diffusers): Discuss a common naming convention across library for 1.0.0 release \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":"tests/lora/utils.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"507d907a804d96fa668c45b6f8a9fe87add81fd5be339a28567d8772e6bb8fa4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use tensor inputs instead of PIL, this is here just to leave the old expected_slices untouched \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":"tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_inpaint.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d954eea1657f78ea1f49a0e211a56add5f698b9274245b7f2ff2d9ca5cfaaab0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use tensor inputs instead of PIL, this is here just to leave the old expected_slices untouched \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":"tests/pipelines/stable_diffusion_2/test_stable_diffusion_inpaint.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e416c46c84b32d96d11cbef50f85ede249a32fb80e62e8479cf8e76265f858"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use tensor inputs instead of PIL, this is here just to leave the old expected_slices untouched \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":"tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"69afd8ccfee4253a0a547cbc6672c44ac2f0f5164d9d76dd4be9e44eeb8ffd71"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use tensor inputs instead of PIL, this is here just to leave the old expected_slices untouched \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":"tests/pipelines/pag/test_pag_sd_inpaint.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe80bc1034c4a44adf4e888eefcdce75e993242d335558efd1c7318c4783a5f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use tensor inputs instead of PIL, this is here just to leave the old expected_slices untouched \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":"tests/pipelines/pag/test_pag_sdxl_inpaint.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3d08d73056785d76b121231a2de92d532e5a19b08e568a37cbc202af15c915"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 11 files: The identical TodoComment appears in 11 files (11 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 11 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022# TODO(aryan): Create a dummy gemma model with smol vocab size\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/pipelines/sana_video/test_sana_video.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37c97de985fa488ff84abb6f00309a2b50b2a098a00031724e42978801f96b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(PVP, Sayak) need to fix later \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":"tests/pipelines/pixart_sigma/test_pixart.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"689a087a3b69b1306046c4e9a89be2ed52e5e24965e2bdc0e14252c576f4f8d5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(PVP, Sayak) need to fix later \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":"tests/pipelines/pixart_sigma/test_pixart.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"177f688b2b2463892c8bf4c80a8062aead832789e42590b019f67593adcbf607"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(PVP, Sayak) need to fix later \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":"tests/pipelines/pixart_alpha/test_pixart.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"24899adc4e8525e3044945495204352f397fadaf46691cb6f3be783da354f36a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(PVP, Sayak) need to fix later \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":"tests/pipelines/pixart_alpha/test_pixart.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e68e4b86393898a3a8d60fa9bcc857371eed6564e959963e68f5240abf938d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(YiYi) need to fix later \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":"tests/pipelines/pag/test_pag_hunyuan_dit.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a0808c07844540a77fa13bbd6a67cacead60b669517f0a852e7ca2a33e8bb1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(YiYi) need to fix later \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":"tests/pipelines/pag/test_pag_hunyuan_dit.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaaa76ef649a86bbc508d6a4fa0724a0d36eaa9227f2f43ee01c146adfe6e66"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(YiYi) need to fix later \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":"tests/pipelines/hunyuandit/test_hunyuan_dit.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47c849109962fd4b06bec1cecabfa618b71c05d53d623cc8d3dd8e745ed0144"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(YiYi) need to fix later \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":"tests/pipelines/hunyuandit/test_hunyuan_dit.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91487fb466e06d69cca1ad09025b10d1fd9b5338e5c20358ba942e19f3f56d9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): change this to THUDM/CogView4 once released \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":"tests/pipelines/cogview4/test_cogview4.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"49398a11e554a3ae32d5a6be894811437cf2eca3fd9bb52ebf92863dc74b2418"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We don\u0027t run the (leaf_level, True) case that is enabled for other models. \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":"tests/pipelines/cogview4/test_cogview4.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"607d7fd66b44542dea41d69c5a1157eb38d0b7eb8ce9bbebc44d7d8f59f511c4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): Look into this more deeply \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":"tests/pipelines/cogvideo/test_cogvideox_video2video.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eba7b4bae98dbe97ac831be4f69878181f87e961f6dd4ea6cd3b3080b90369c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): Only for now, since VAE decoding without tiling is not yet implemented here \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":"tests/pipelines/allegro/test_allegro.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43d5f46aba423b697d14087f69a029b6b3c02e1c1c9fde9fc210692dd593593"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: move to \u0060ModularGuiderTesterMixin\u0060 -- guider-disabled negative-prompt handling is generic \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":"tests/modular_pipelines/flux3/test_modular_pipeline_flux3.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eea25aa7050b9f8f8fca1b0709bf2ea02c442224e223e0506a6384a4cb3602e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: generic too (huggingface/diffusers#14469): a standalone text encoder node has no guider, so it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/modular_pipelines/flux3/test_modular_pipeline_flux3.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"3063cc55c6bc51cf4a1a7f3739f164d13b198ca50f68c62ae7a752ed9327f7b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (Dhruv): Update text encoder config so that vocab_size matches tokenizer \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":"tests/modular_pipelines/flux2/test_modular_pipeline_flux2.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4761bbc7c068567f0fef4df79e297f7c197c288a9a9af8d08904113f021f4a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (Dhruv): Update text encoder config so that vocab_size matches tokenizer \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":"tests/modular_pipelines/flux2/test_modular_pipeline_flux2.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0356297569920167deb6f534cf0a0ff0880b9f70da1cb80bdade4643b6edfe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (Dhruv): Update text encoder config so that vocab_size matches tokenizer \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":"tests/modular_pipelines/flux2/test_modular_pipeline_flux2_klein.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d73d8d2d31a827b74680544cd3a7df7706807a36ae032022aa7653bf5f68df"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (Dhruv): Update text encoder config so that vocab_size matches tokenizer \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":"tests/modular_pipelines/flux2/test_modular_pipeline_flux2_klein.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3c2286730119c3e6a7a2f26cdebaf1e40ff5d74af75edbd4cc074b991a70a5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (Dhruv): Update text encoder config so that vocab_size matches tokenizer \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":"tests/modular_pipelines/flux2/test_modular_pipeline_flux2_klein_base.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c181dc0bebeb1f6ad5b7be6f3d0bbd64cb256f42c43124c8781d32d9d1557a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (Dhruv): Update text encoder config so that vocab_size matches tokenizer \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":"tests/modular_pipelines/flux2/test_modular_pipeline_flux2_klein_base.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a53c2e37aeead49ae52b5db932b03ab25ac081a11bb8f09187390ff05a6a80"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This standalone function maintains backward compatibility with pipeline tests \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":"tests/models/transformers/test_models_transformer_flux.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f42e1e8e6a4b63145b2327e6e59c0130a72c726f0aa5b4f10c31fd78131cf2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add pretrained_model_name_or_path once a tiny LTX model is available on the Hub \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":"tests/models/transformers/test_models_transformer_ltx.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c940154cb9df80f19315741a59215170d3993beb394f79135d4c51278eb010ce"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add pretrained_model_name_or_path once a tiny LTX model is available on the Hub \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":"tests/models/transformers/test_models_transformer_ltx.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c441da541670cb41249a4c6f746c248aa261c8eb9424023dcc0df18ace0756"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add pretrained_model_name_or_path once a tiny LTX2 model is available on the Hub \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":"tests/models/transformers/test_models_transformer_ltx2.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"8328152a28638f173adfad023b2b95a457f3c1097a00f8415d9fd07848e42af3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add pretrained_model_name_or_path once a tiny LTX2 model is available on the Hub \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":"tests/models/transformers/test_models_transformer_ltx2.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79b113a601a21bee9eca6376b2c0acc9b422ae963d5db036a194556f99eccf2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Set Hub repository ID \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":"tests/models/transformers/test_models_transformer_motif_video.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"5144315a8cece8d1abd3e3ac14b27edae7398e003323cee3892232801428c112"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add pretrained_model_name_or_path once a tiny NucleusMoE model is available on the Hub \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":"tests/models/transformers/test_models_transformer_nucleusmoe_image.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"24757cb2fa1054ac29d9b9d5c127eb877c34e7b4dfec2e0de6ca77ee44bcae6f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add pretrained_model_name_or_path once a tiny NucleusMoE model is available on the Hub \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":"tests/models/transformers/test_models_transformer_nucleusmoe_image.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dae77950b0b60287eaa3eb8362242d79cf07b5789b4fc370488fbc1bd0cde1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add pretrained_model_name_or_path once a tiny Z-Image model is available on the Hub \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":"tests/models/transformers/test_models_transformer_z_image.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"30963eef377c89b77469add85952cb5868f384f2ed0449bc27a714d7c595dc83"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add pretrained_model_name_or_path once a tiny Z-Image model is available on the Hub \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":"tests/models/transformers/test_models_transformer_z_image.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"308dc28ff6ab2afe747a2ce903f4d6c03027021802ef1966523ccf5e4761632c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove this when we remove the deprecation warning, and the \u0060kwargs\u0060 argument, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/configuration_utils.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"934da5b32c2947880eece7601b5f46936affe3f2c1d9b1bb93709e66d69a3567"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick) - make sure to remove the following lines when config==\u0022model_path\u0022 is deprecated \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/configuration_utils.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc73aeba0dec0677af515d51c1694b733e45047ab7e5a28286da7d9ed7f9db3f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: we will get this info in the etag soon, so retrieve it from there and not here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/dynamic_modules_utils.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cf3459446d9efef3aa17b9692be2cc8e127597d89e760cb699174c6488c1ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Dhruv. Remove by Diffusers release 0.33.0 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/export_utils.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"be76a46f00b1a505bb22c60eb4e41ae60283d09f6e5a5d0c5c0f1bac4559bb9a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO can be removed once that PEFT version is no longer supported. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/peft_utils.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"38688a3f8a8169015bb0b567ce340b5038aec63a3f26d990ee2bba4ad5ca8728"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment repeated across 14 files: The identical HackComment appears in 14 files (40 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 40 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022# Hack to make sure that other schedulers which copy this function don\u0027t break\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"8080c79fce0f223ba9f151f5c3be760f09d75ee9830800244af55dd79e589132"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 14 files: The identical TodoComment appears in 14 files (40 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 40 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022# TODO: Add this logic to the other schedulers\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a78a2973112db4f97d85c902a783e3738cf14f5bef70d194c4d1d7ece3562b7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Support the full EDM scalings for all prediction types and timestep types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_euler_discrete.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f2174a2e6f8574ac0962ebcc5d445d41937110d8d4a9c615f3a3af1a339f1e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Support the full EDM scalings for all prediction types and timestep types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_euler_discrete.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f875e62dd7b45e458ba06a82ec8f29bba2a9f1765964cabb9bc7549d6dcf28a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: also reset self.num_inference_steps? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_lcm.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b0941212f3488462412ee6ba67b6c516401b84ad0025b467575760f90b72dd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: also reset self.num_inference_steps? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_tcd.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"81773b366bc83c9d49bc22ec8ba20d4237605c6b6490b3a1599ec6201de3b13b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO is the variable diffusion the correct scaling term for the noise? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_sde_ve.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b1bda46b349399b97ab5b372800d4c8c383567bb74b6cd7a7cdcde6479823a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick) better comments \u002B non-PyTorch \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/deprecated/scheduling_sde_vp.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ac93fcbec8c299e9dcd14075b4d583fac003cba53e5bd576c1724ec6786416"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: (Dhruv) Add this as an init argument when we can support loading unquantized checkpoints. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/quantization_config.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22ca86115172711e8b269b48dcfa37113db5be6a9f226611826a65acaa4076e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Isotr0py): Currently, we don\u0027t have MMQ kernel for I-Matrix quantization. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/gguf/utils.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb56fb9fe6462805f033015bd72d627c293590cabf253cde29614c41b619bc26"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Isotr0py): GGUF\u0027s MMQ and MMVQ implementation are designed for \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/quantizers/gguf/utils.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef965f7f0f9f89f4ffdf7d0ea5dc443f9a1afd91fe403b0cf6b505643bc99a1c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): Discuss on what\u0027s the best way to provide more control to users \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/free_noise_utils.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"b315d0e4b7f25f1f7a969c39e6326003bcfdc0afbad6500abfc30be76d61330e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: separate out different device_map methods when it gets to it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pipeline_loading_utils.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"93db8018981d99fa18d4119fab1de781fba1360cbf20d9b31e630c41047b85a6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: also support np.ndarray input (e.g. from decord like the original implementation?) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_animate.py"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4240a4c80dd39f3dcf54345bbdd13c3dbdd41223c69f62e7a316999f88af1d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_vace.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"f336be7a67b3c1039ad64fd42b693cd6a4b1675965ba948d448b9a4e8fb58caa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_vace.py"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"71142c185691a456e5447bdfcae2acf42072c0ea13832aaf58deccb56220fa50"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_vace.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5cf88edf114b886e2c33d5c3629b3256a6734e271be3580b64a1757015b343"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan_vace.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3986ee5e30915552650a04c7b23e941188d9b08114261474ccf112fc33edb25"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 73 files: The identical TodoComment appears in 73 files (73 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 73 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022# 6. Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a7f5b688e542a6b3321d948da3885361ca3cd15e6affbfa4a6d74813f1b98a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # 6.1 Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"af13ee0458c14be89180aa36e70cc08f1ed5315041b3718b49dd1a9e1240e116"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: clean up later \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"73312ca8765c09c5282f2f6214a6febc373bdfa84c91af2b1deec401f4b50ef2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 16 files: The identical TodoComment appears in 16 files (16 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 16 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022# 9. Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fe018ec51bf9dcdd2b63b9a19f9e2bd461ad008c1ce1959dac6d2885a952ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 10 files: The identical TodoComment appears in 10 files (10 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 10 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022# 8. Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f89016abb78acdd042ec52fe2963117f161e1f42992735079fec1febf2933c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: feature_extractor is required to encode images (if they are in PIL format), \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52c98aba505459061cbb0b0e243810d3c7aa68cb333118145df45ee10ec9cfd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 43 files: The identical TodoComment appears in 43 files (43 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 43 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022# 7. Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fff6cc0eb21c71ec77f53a02984cb6da2edceed563cc9ecc4275d4d7f2f84db"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO update model path \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c29b77cfdf85eec19e98ca5a91668139d6dc9e4d12420cb5daa0303d2952e02"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # 12. Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"7617f8e91a5275957b34458aa5f2d0bcdb94c4f6cd7531361f0081e6401a13f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: replace this with \u0060tie_last_hidden_states=False\u0060 in the text encoder\u0027s config, which \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"6934954c80ed29dcf2ba22c839721c0d71f8c4740c20ae8efcd11bf06c285827"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 21 files: The identical TodoComment appears in 21 files (21 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 21 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022# TODO: this requires sync between CPU and GPU. So try to pass timesteps as tensors if you can\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28f097c81cac2e925cf91145484c8f8d15ece14316a73d07bd3eeda58c315b7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # 7.2 Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4e12b1d15cc699b1cfebe15bfe5182f1e41c8ff4d23d43949d300c8e79ca52"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: determine these scaling factors from model parameters \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/mochi/pipeline_mochi.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"333e6f3d2054c104ed401af4a195069af3bc139bf252a358d2c7e678f2f04b85"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: determine these scaling factors from model parameters \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":"examples/community/pipeline_stg_mochi.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"9728448213afab9ecc6174a7da39e7f804871a448a3eb1ce3d47831b10663db5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: check whether the MEL compression ratio logic here is correct \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9984acdc362ccc2eab390c6a2b969c707757bcae01cdb6f1fb630498fa8d00"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: check whether the MEL compression ratio logic here is correct \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"3015b37526b0581e1de3f34598aa96e35680e67eff9ab684359b8c3dfe4b18d4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # Batched video input is not yet tested/supported. TODO: take a look later \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"e489e91893ee2d837dbfefbb1d3146877a8af1a0256b5a2bd1d2f22acfc67400"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # Batched video input is not yet tested/supported. TODO: take a look later \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd4330123627c0fd54d6577061ffe34b17f7e9eaacaeea91a5e2e73cc983711"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: refactor this out \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3622df373052066448da2a23d7b86fc3999dcefbdb6e7d3d41ab6ced5fdbebc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Check inputs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"1908c7b6fe4967eba263cc5fa24c8fe86a003cb128352e95859acd34b2017d9b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: fix image encoding \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc9f8756547711828f25ad059c0a549f416c49f88835412bf7362ca1af41918"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(yiyi): We can pack the checkpoints nicely with modular loader \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca130690b61858149867ca3ec9b2e36456ebbd236d4552564ef3cd47d5efb0f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: find a more generic way in future if there are more checkpoints \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1ca20719faf2a04b510aa0eb62f3f466a995b15ad61ba2d8ef4ce93c3acbc4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: switch to \u0060self.vae.config.batch_norm_eps\u0060 once the hub config is updated to match the trained value (1e-5). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"160cb7be08b104a34b4b5817f20d069c8dc3db02a3d4f536801f1cf01e16fa33"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: UnCLIP should express cross-attn mask via encoder_attention_mask param instead of via attention_mask. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py"},"region":{"startLine":2420}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bd7e38c40de51b1a8c63cc02e37a6babcf629c0d60001f01807a01a7d5832f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: UnCLIP should express cross-attn mask via encoder_attention_mask param instead of via attention_mask. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae0ffb30b90210db250bc7fc6e4ae7a29623bd35ea6a6442f889ac54890cf1a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: UnCLIP should express cross-attn mask via encoder_attention_mask param instead of via attention_mask. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"832d696f3dc471c17c403a5a3af6fa0433ecc99c04a8a3fdb2cecaf353f3fb15"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: UnCLIP should express cross-attn mask via encoder_attention_mask param instead of via attention_mask. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":3211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a293f0a394d1078c0d1f90f43f4a3f75210a8ebad8a1f74a62d973f3f012bd3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (Birch-San): Here we should prepare the encoder_attention mask correctly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50846849fd62b06bfd493f8018e67466daf43d6f222a5693d2d22630f8b3e54"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (Birch-San): Here we should prepare the encoder_attention mask correctly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dc3a1d3d2e51701a7c34e7eca2f16c136706b08bca1e206ba1e5e3ca94d9d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support for moving submodules for components with enable_model_cpu_offload \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"627dc1158445fae5b981edabbafe72e19e33aac5adb104023fb48b3fb0548f95"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: handle safety checking? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"40004ad29fd387dfa29edc6469f62731a719b1b4aa1b51718b3b070cc72c856c"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: MPS: There is a panic when padding bool tensors, \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":"src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"f476cd82f606d127fb684798cb57cd9c80d639310e380b4a44fac8c9dc6ad1d4"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: MPS: There is a panic when padding bool tensors, \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":"src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c5addecb8781589f59d71caf8c4e734f9905f95742b3cd7896cddc7fb1f6bb"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: MPS: There is a panic when padding bool tensors, \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":"examples/community/unclip_image_interpolation.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7ccf1026ca74f96d728b82a28cdad9482f931961e95324b254f4ee5d188eb3"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: MPS: There is a panic when padding bool tensors, \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":"examples/community/unclip_text_interpolation.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fd822d98030ef6f01e75301e25799edfbb11b539de6fdd3343d71870082658"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba1c2e974d90e5782fe723ba5484659b2e096671db3dc247a582af2911cad0c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d203446dc0d825434c00e07e07ed11186060d3a48b7e0f9e26a7cbbb3196df4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ad88fc11e5f584b5e000e32d2cf884088ec349b1509939dcb33636b2172374"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2063}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6851fa491befc75d18e8dcdf5e6b7a0ec2f068926124a7cd46fe42fee356aa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2660}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d48275ad1f485bb5a75147b2f2a2ed5a8aa0c4f00ae0e2d2ca5c88f7c2ded65"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2754}}}],"partialFingerprints":{"codehealthFindingId/v1":"d777db149ee903cfb00f5abe3a96e1f6ac6aed1ac6d6dc329ff02921c62896ee"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2851}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb27a475a4ff90c129c703cf40338f356b2c642dc6feb3d513d3bb3210a769e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":2958}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eee84faeda6e97df6c033998cc5e1a0fcdc386edf74309aa7219737ff251c6f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3088}}}],"partialFingerprints":{"codehealthFindingId/v1":"39751298e1be91198aa75ac8fb6268009f319e930963741eb5a7fc7ed34211d3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3186}}}],"partialFingerprints":{"codehealthFindingId/v1":"5278f2dc47195b3e5c4470bc01bcfe31c1035f1352daeca1d0d0d445f64da2f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3289}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe39ce4a0bdc9ea3c164c1dedcd78251807d0bdd398fad3209bd26b395f7353"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3394}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b38bba5e970d952afad7e31e866123f274a23a82c1b49caf271013d8a6e10a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3518}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7a0db0fc1d847ee14cdefab0c19ae51f3e710548ef4b2b293ccbc34815ec80"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3647}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a1e8003bddd820bedb90f481db7794f91be6470689b36dfecfddae2fcb6820"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3734}}}],"partialFingerprints":{"codehealthFindingId/v1":"06656a62bc6375ca9984ce5b595d40d390fb67eeb86f509297d7ee5b389540a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":3966}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f23a329a57de7b9f27990ec55b0f53d307a26553f6321e23d6c4bec364a74b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bb6d51d8c2e88d41118e5178dbab2c4983c05cfd0d2a9aa83ee5265c8dc167"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4573}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66c1c6a829a50c3193c4586555c5bbabe4d9fb08b76f35748f7b00eb3d0a900"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":4600}}}],"partialFingerprints":{"codehealthFindingId/v1":"92577d1ccb96edb2606087d8473dd3904a4d93d862fa3cd7ec58082b6095b6e6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":5087}}}],"partialFingerprints":{"codehealthFindingId/v1":"088f3ab9256618f6839658d018855329085b6ea970922dda6a20a7b7022222eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":5188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abae633355b17905f440e5db81a891d8face75c342e2e20c2c2a420f053e8e6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab424fd8977cb1b870ca1a63ef7008ea71f137cd42516c449bf4a5d4825a5ee2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \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":"examples/community/fresco_v2v.py"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4513bdaeca40c2b4fdd6d0db529703e9dbc4cd4f7b8e12d0d9eb17fccb933a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \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":"examples/community/llm_grounded_diffusion.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"849fbce54260fc7e036e379573febe63527d03f9b0e201d1b1b0cd6f2ef6eacf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \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":"examples/community/matryoshka.py"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27a2d334f40c9312eb506880fd0088aeb105d7c68a733ec0efe5dbb0627db3c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \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":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52fa910f878e753e61bed0d6950cfce0f305d3cb255a4d315f4e3b3488c9c08"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \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":"examples/community/pipeline_stable_diffusion_pag.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"91792fc7c6ca55ac66a4f403dfaa313c24aa248d1d8dd47464497c6ea919d401"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for attn.scale when we move to Torch 2.1 \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":"examples/community/regional_prompting_stable_diffusion.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"970a252ca1de776487f96991d9a76252e1a2a8126f0328cb24daf4e633ab2809"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Consider smoothing mask guidance map \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"593028b079dc926620caa8f78bcbaccb45fc4e4e5229237ba4af8d3dee6dc432"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO check why its off by 1 here when True \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"749dd61b7674beb600de5a0d59a0ac153d4bc9f35681a24dbc6b0ec541cdcf75"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: feature_extractor is required to encode initial images (if they are in PIL format), \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec181b449211bb8f82ce45465bd8e130e316f9abedfbf2c0150a364e70664952"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO - when calling self.vqvae.quantize, it uses self.vqvae.quantize.embedding.weight before \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a640a1888dd50dcc7ee882c30ede4adda5fcc569a82b033de6b735ce990f85"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO - when calling self.vqvae.quantize, it uses self.vqvae.quantize.embedding.weight before \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"394d0f41f20b0c2b3ba07d5e1e48901f264d860982936dc8c6ef218cf92d606b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: see comment in \u0060enable_model_cpu_offload\u0060 \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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"7245bd579e180810ab9c8eba14d69f987d6434b6c4076926c569e872af83b225"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: see comment in \u0060enable_model_cpu_offload\u0060 \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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2b0da0f60f25b9d0885585ae52b34169a3f09f324aff9cf40d60cd4bbad72e"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: see comment in \u0060enable_model_cpu_offload\u0060 \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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"52751621c6cde231e4c75d3e04ea38ee8ce92995dbc547c2f2b4bcae2d75ad0a"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: see comment in \u0060enable_model_cpu_offload\u0060 \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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d816f8089194b379051ac890be330c997f53fabbffb7f70f219b7676c2e503f"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: see comment in \u0060enable_model_cpu_offload\u0060 \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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a465f5bd9d6c93fa324a22c02db732d3289d2d7b23291a9506c4b4dcf2e10c9"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: see comment in \u0060enable_model_cpu_offload\u0060 \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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ad6c8445a80742060d4c6c740a3b15a47146bd99a7fdcf3d3bd0e5daf1b38b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support the configuration-dependent domains \u0060libero\u0060, whose width is not fixed per embodiment \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fd3476797a6e06cb0a30f7459777ca7871c2d16ceedffa6c2221a36a56a2b4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support the configuration-dependent domains (libero, hand_pose), whose width is set per-dataset. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"11350dc6c94aa29d0c18a4fb97d882bb067b1232af8960df3bfa405c7f8f6a7f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO YiYi \u0026 Daniel: fix for this use case in the base class \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b51528adae6eb37ff9c7f1f5ddc86a8548ad01ac00bd6e3c95b31ea56cc254"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: should use generator here? int analogue of randn_tensor is not exposed in ...utils \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"93537bde38f96569ad2845fbf19d7edbd27004aeb6329f067adb80f705afaed4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove below line \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1fbe7cfd68763e6b68f6799aeeb96a1c4fe812810170b9ef81fadee33e462d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: instead of memory_reserve_margin, we should let user set the maximum_total_models_size to keep on device \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4472f115efc0905c2041ae2ce013cb2348f95a6efb6bd40f6859479151684b69"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi/Dhruv TODO: sort smallest to largest, and offload in that order we would tend to keep the larger models on GPU more often \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab59a21abc199c0506c63432482d8c899b0a5f2f382a9c924d6ad032ab264a7f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: move to a different file \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a34d9182478714e7b69e1972c94bf9e8b110915e3fad32817fcda51e696b6b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: can remove once confirm we don\u0027t need this in mellon \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc5c7ceff1e4dfdfffaa57ef34a6d667d00f095da549a4e20904a931bb85925"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: rename to search_components for now, may remove this method \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e548d4dc441616b8dd061a855e51a46ea70df17a227f4c4a95436677af43ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: (1) add display fields, allow user to set which fields to display in the comnponents table \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece2a558a48ae464da4a2c3e7a52bf0f34f193459afa6a17ab7675cd62c86539"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: factor out this logic. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddaa4e4e6d3d361285b53a1265666836e8c36bc1349d084b7d25e4ba8982e1c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: add test for this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a21780adcf2a4bbce0af8cb8bef0c093fef22a5937221287dae1610ffb17e62"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: I think we can remove the outputs property \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bf75535b9b624a633f81e5795e97240990084615da448cdfac83d6d93be96a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: this need to be thought about more \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bfe6f2962d8dd6cb1f57e0e3d3880d0da4a0c3712a10ab155d0a103bcbe976"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: this need to be thought about more \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1c1e069e5bfd34551f4588e69a8a4745eb3f5d181ddf36815257e5f3ce3d22"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1696}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ec5b9e71660315b77da78666d28825374f319c2c644b1603895209360e89ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f488ec9a1b51a458bcc296b8baf6158a8c3976e7cfab4086950ee0589d736c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: add warning for passing multiple ComponentSpec/ConfigSpec with the same name \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline.py"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86597db5a6d9efc5b96fb98b6e454a5a6591f8e3e3d0a585de96122c91ed8cb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: I think we should only support ConfigMixin for this method (after we make guider and image_processors config mixin) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"08dac952f03c2ef75fbdbc9c6c467949f24f13217ae71c443e2524557add8827"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: add guard for type of model, if it is supported by from_pretrained \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/modular_pipeline_utils.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d3acccf529c9f77713dc87cb6e538cd97b8b5b858850563711aa17fac903ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(yiyi, aryan): We need another step before text encoder to set the \u0060num_inference_steps\u0060 attribute for guider so that \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/z_image/before_denoise.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0f65deaa7713835cbda88f95ede32e3f47ff29f6d0ccbffdbea84b6e9a6ccf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(yiyi, aryan): We need another step before text encoder to set the \u0060num_inference_steps\u0060 attribute for guider so that \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/wan/before_denoise.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"90639a6be9700cad58e797fc13ab2b517cee41c244c6b120aa7c6cfeab7d3525"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(yiyi, aryan): We need another step before text encoder to set the \u0060num_inference_steps\u0060 attribute for guider so that \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd58924a4d72033fd154d8eb89328d87bd65d80162bf0e890fcc47673765a66"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: do we need num_images_per_prompt here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"27eac33cf09e5ea47bf598f1bbd9af72efcde2316d5d31f96751af44fd8357c6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: update the _encode_vae_image so that we can use #Coped from \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca6f675262d2f7b691b7dda701f3970eecc4d8f37295c2dbf8fc68d72ed92a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: update the _encode_vae_image so that we can use #Coped from \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"13061d714127b920172f8dafdba93a77a5489f7749a43d009be21eb6339f9e82"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: update the _encode_vae_image so that we can use #Coped from \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"8833877ed652991c0646a13d480dcf2a2293132041d2937e349e8537da4d9037"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(yiyi, aryan): Ideally, this should be \u0060embedded_guidance_scale\u0060 instead of pulling from guider. Guider scales should be different from this! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"15311ceb9c0eb0ef40d6277e41b3cc41fb57cd204d1e86ed374b16ce519a0812"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(yiyi, aryan): Ideally, this should be \u0060embedded_guidance_scale\u0060 instead of pulling from guider. Guider scales should be different from this! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab372ae1acbe0e0a43dd08f0d4e06d371fae5564ac2c1e0c2592d83ee6a27f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: move this out of here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ebacbc2bac09ac5b472992c0f0a847c5b9dd141ab0a5f147f8c219ab8e289b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ffbb742d88e840859dded38eea105dd430ee336bfdad0f7b8c996378981c0a3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/denoise.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc04f4361334040c5e1175185ff5edb35e0fc47d32c13179854a03d848e1260"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: move to a different file? stable_diffusion_xl_module should have its own folder? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/modular_pipeline.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bae80d0cd65e106e0197564b702cf6af1538b87bf6cf8d6ae862fb1bd040d1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: change to num_channels_latents \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/modular_pipeline.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d8452bf9a8f9d97da87f27a8cd2eaa6ca3c92f6a2e247d14b0278cf817c674"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi/Sayak TODO: not used yet, maintain a list of schema that can be used across all pipeline blocks \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_xl/modular_pipeline.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dea85ffae664ccaf2b51da5727e91b694e3ffe1f730c735344c3a39ff8148b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: add cache context \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/denoise.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7fee184d304419da4025b502978ea6ea7b546574cc0a28b21552453a48ff417"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: add cache context \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/denoise.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cc2d393c235cf7a13546d58289887a08525236c744876e0d3a394b6cfd345c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: qwen edit should not provide default height/width, should be derived from the resized input image (after adjustment) produced by the resize step. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35d2059dcb544b669e856cd515e59cc94cd80778a4bee49bbfc0f5ffc3421b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: firing another module\u0027s offload hook by hand is not something a block should do. It is here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/pika_h3_flex/encoders.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"995d7ce5acfc8266e3b1ed904ae35b202b27319a3d9c20f81d4ad427ed1c937b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: firing another module\u0027s offload hook by hand is not something a block should do. It is here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3_image/encoders.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6f646b03a63543542c64463f235f16374a29bc3eb6df984abfadf8b68b465d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: firing another module\u0027s offload hook by hand is not something a block should do. It is here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ba941aebd75e6c421beb90e07a30658b683e5e31b031200f69c8dbcd42f6f0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # YiYi TODO: find out default value \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/helios/modular_pipeline.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ebbe8001f14f141bd1c144d1c372a4cb5f47218107b6c08205676b859a2dcc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: move packing latents code to a patchifier similar to Qwen \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/before_denoise.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"289681548fed94701a6c00e1b859428560f228ad2d458ee53a80720abf8e8e32"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: consider making these common utilities for modular if they are not pipeline-specific. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f75662806ca0d2f136319c83ab79ac16a2fb31155429e7081b5df7f2354333"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support negative embeddings? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b930fdc97e005b700ae1c416b8930f05d70fb223492b4877dfb21b6871faf3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support negative embeddings? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b071dc9fa57e6a0f7a88a58b4dddbded44c305abf5318dd568695898873770a9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: consider adding negative embeddings? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bda3970b30cb63933894884df4fedc8b8df6f9eef8e64fb6202acba3d723e9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Implement patchifier for Flux. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0534fae501655e04a16cc1807ff84a26833a26d88df797b176b1a2506aa65a81"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Implement patchifier for Flux. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb19b1be16bb23c1c7af5d8de469bb8aef51aed7f1699b328bc6d21aacff4ea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): add support for the following: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/_modeling_parallel.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6ef0d173ba17d4aa17a613448420177f3b5dda5bc551c11f4d9fd7fff33011"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support alltoall \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/_modeling_parallel.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8249eb3ee18bb3327415aed3d50d6281ea8ed63732268d4ccd1d1699190d5def"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: Use Gloo backend for all_gather to avoid H2D and D2H overhead \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":"src/diffusers/models/_modeling_parallel.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"576ef50c82c38fa9e76a30e0db1e5f6217d083c104497a0ba90b84e239dc3591"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: MPS: Does not support padding by greater than dimension of input tensor. \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":"src/diffusers/models/attention.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42e8235735b588df354981ab4c47120a4161b927862b2361ba978793a1fed4e"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: MPS: Does not support padding by greater than dimension of input tensor. \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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c075bcfcf8b7964475fac9b7cd0a8110753fa259952a6f5178d2828df668613"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: for pipelines such as stable-diffusion, padding cross-attn mask: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"4963c48819bdfd7211fdd8e232e1db51dfcd58f8b4d9ae9b2745d6ebb71e168e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: for pipelines such as stable-diffusion, padding cross-attn mask: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b1b9a89c3165e2b7899ab8f2f50de7b9879300cd8309768162e47fb4de6862"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: re-enable tests/models/test_models_unet_2d_condition.py#test_model_xattn_padding \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ab0cd91f2c363469d590bfd73bfd136bed5a20f275b77310ad8c70d17b1baa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: re-enable tests/models/test_models_unet_2d_condition.py#test_model_xattn_padding \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e26d23556b658dfd5d86742f9d39a88653aea530ac100fc978aeab5a2d2ac7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): Maybe this could be done in a better way. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention.py"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ab966724f31d69719576cee6895869f053641a504cf00bc0168e446fb297d3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): Add support for the following: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c70c4d8e8dd88ddd42df73b36a59df7d040154e1587318e80c88e12234c4a6d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: let\u0027s not add support for Sparge Attention now because it requires tuning per model \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ed18266e95556b7ba9b262fc2ffc43a1df14da1e3cbfe647fa0fd8768c65e3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this is only required because the beta release FA3 does not have it. There is a PR adding \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d865ce8c12a51dd93d3efec1204a4cc7af3131c9d4c2782f8d2d9e470e6117"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: We need to flatten because despite making tensors contiguous, torch single-file-ization \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":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":2120}}}],"partialFingerprints":{"codehealthFindingId/v1":"250748e30ffcc7a9872136546b497c653ced5a5b40437ac907b16e7ff8097f25"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for unified attention with ring/ulysses degree both being \u003E 1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":2920}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd3c3c5f7573b8b47fb79726bb26560c20afd1d38f21423d06dfa667ac037d9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: should we LRU cache the block mask creation? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":3713}}}],"partialFingerprints":{"codehealthFindingId/v1":"beff9271b6bfce299e1cefeccf115b54ee6277bd1f1ba1dfdefd2e72c19c5846"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this probably does not work but verify! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_dispatch.py"},"region":{"startLine":3732}}}],"partialFingerprints":{"codehealthFindingId/v1":"850383ef76a05a96e1e23c1d8cbce1194b137d51a4887bba1df1ef087670d2ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # but only if it has the default \u0060scale\u0060 argument. TODO remove scale_qk check when we move to torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09c1ea964b0bb71be937763aa138662aac5f0656bd902f3cbffb1a4625829f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # but only if it has the default \u0060scale\u0060 argument. TODO remove scale_qk check when we move to torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"162dbf5acee31b9752dbfbd95b094739e2310bbfacba87f64c6e015d48b05701"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # but only if it has the default \u0060scale\u0060 argument. TODO remove scale_qk check when we move to torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"4446f6c423799649470d72cffcb81374c39a128192be3eba54f1148952b49f3f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # but only if it has the default \u0060scale\u0060 argument. TODO remove scale_qk check when we move to torch 2.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b327a5b512ec78402bbb4327e2c5deaa8d3de5dd924e2dc1294de88ac88cc4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick, Suraj, William) - currently xformers doesn\u0027t work for UnCLIP \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/attention_processor.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a79d61e895023058d57a7751514811a0cf3f74d5fcf4bcf944f2a1885b998e7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Suraj, Patrick) - clean up after weight dicts are correctly renamed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/downsampling.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4b9132c256ee663cf82bc8aa9600ec69fadb09efa32bd6e653113db3e5ad38"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Suraj, Patrick) - clean up after weight dicts are correctly renamed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/upsampling.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"678c5ca1c4d99e1bab412d97c887ea4325b54da5009881cd03d834aba03ccd5f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Suraj, Patrick) - clean up after weight dicts are correctly renamed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/upsampling.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"6791ab21930ba6f4e6b12b1ab83fcd8d00057953639ef877b8ec3534ee41114f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # Todo: Wait for paper release. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/downsampling.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"98489def59d0e394ef939082554de2f2483aaf1ca964a5ff5f7b68389937f8ce"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # Todo: Wait for paper release. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/upsampling.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3af21d534f88376484f172e55bc977d0c587361000974ec7ba21014e0cba4d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): docs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"087700eac5b17afb118d2587f33a7af2fc17c63dedf5efeca1fd92e0146b956a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): rewrite \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/embeddings.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"7662ec766ebbad42bb7974d51e6f1ebe395f22611ff8ad261e0912c328c7b58f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: maybe refactor a bit this part where we pass a dict here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/model_loading_utils.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7464731ab5dd4d66c7a8ad529d73324b0e7371154743238f1cfeda57f4b25a27"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: revisit cases when param.dtype == torch.float8_e4m3fn \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/model_loading_utils.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"853c0ad63444217059c28cc8a382893def0959835065ba1b00545e14ccf791c3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: account for TP when needed. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/model_loading_utils.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c5504672d5296b2b951d7443900cee879df0e3deba0678189d0b2f7486e0ee"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: the following will not be required when everything is refactored to AttentionModuleMixin \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/modeling_utils.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f11c6fa5e5e3b9604059e4a515afb9956c3562fd6af22dc86974d5fa8e094a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: (Dhruv) This can be replaced with regular RMSNorm in Mochi once \u0060_keep_in_fp32_modules\u0060 is supported \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"d113437c1d6d3757b9319f7425173b3f70d2bcfa8ff0ef15cd7543434af005be"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: mark emb as non-optional (self.norm2 requires it). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":3540}}}],"partialFingerprints":{"codehealthFindingId/v1":"30deaeb67f01dd6f3d3efb44619a3e4ab46742727af8fc3e586fd60f20039b85"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick, William) - attention mask is not used \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"6631096e756c490a2be1b0a2581e28e6376b63aa9dec991175b2172cd84370d7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick, William) - attention mask is not used \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_blocks.py"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"96da5b33935dae9220de87ba63c85a00e9a9d5ea9aa52049e7b10d7542814e86"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick, William) - attention mask is not used \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":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc189ff0a23b5e748c2e19d052e45041f62e16ff0c2118f2b8b60840ddadcf4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick, William) - attention mask is not used \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":"examples/community/stable_diffusion_controlnet_reference.py"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"144baa361c9926473895d8ee4b2a8fd4706f1fec949c3da58dc3a88a5cbe3890"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick, William) - attention mask is not used \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":"examples/community/stable_diffusion_reference.py"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"f060f478e5787a14de82c20138204e4fba6266e73a620eb615520f99558c54ef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick, William) - attention mask is not used \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":"examples/community/stable_diffusion_reference.py"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf1cac0589a176558d54432dbcabbc0d2a17eca273e0759093310dac3194854"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick, William) - attention mask is not used \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":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd1c84c4b890c56af842bd5ac2008f4f082424d059d166b7c4c3dc061c1de50"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick, William) - attention mask is not used \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":"examples/community/stable_diffusion_xl_controlnet_reference.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9abef78f64af1a818f01c9d92236c7fa68e833754ec582f6d357c897b0b5d5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick, William) - attention mask is not used \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":"examples/community/stable_diffusion_xl_reference.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6da3afc283573c2e6cda595904391a931ce13657b97c29b94d28fa522076cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Patrick, William) - attention mask is not used \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":"examples/community/stable_diffusion_xl_reference.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"2078d907deeda944f7baebf4321fefc2e9f309f314331b66b314ba90ffaf621c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this requires sync between CPU and GPU. So try to pass \u0060timesteps\u0060 as tensors if you can \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_i2vgen_xl.py"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82a43b50eb87804135d54abf521a5e6a91f6f61338dbd4d291d57a94b470221"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Yiyi): Give better name and put into config for the following 4 parameters \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_kandinsky3.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"21539154c46ca84935af807d1c21dd56e809b1d672631ccf1295e9945c78bce3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # FFN Layer ### TODO: switch norm2 and norm3 in the state dict \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/hunyuan_transformer_2d.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"5454cf567daf49f27c83c5439aa19b46efd6293fce8269633ccb0fe3272ba255"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Sayak, PVP) clean this, for now we use sample size to determine whether to use \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35513bbca6bf19df1eab6d5b806f8df658c7fb7d591e4bb251b9130d215ff62"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): maybe following line is not required \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_allegro.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"781ec84b6a06ee79a45830444bf07c654b4d16631a8baffd45884e34e2504b46"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): Implement gradient checkpointing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_allegro.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01fb89a72afb1899483a6507fc72bdaacd6a92e1204c42fc475ad2d786bd969"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: consider implementing this as a utility and reuse in \u0060connectors.py\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"00160651b9658298ffcf7bebf10a40df7cf7aaf2d6ea9846c5f9e4602a594828"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: consider implementing this as a utility and reuse in \u0060connectors.py\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_sana_wm_refiner.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7634301115c7b2542576e5aa29f9278ed2465c2dd97ea4f23bdd71b9f6b1df"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): norm_context layers are not needed when \u0060context_pre_only\u0060 is True \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_mochi.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9b1c2e9dad56ab72c9aba59cf54cf5201313bfdc7ae66eb2033a23a7b7c9ef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this should probably be removed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_qwenimage.py"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d96c20f6a4443a5163e0c331651ac383ec81133b25de74afca707394d29e1cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this should probably be removed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_qwenimage.py"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7af75d83ce634f9e528ff8006d6f79ee49d6be9afde5e783d7d866cfbcbdbec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: should use out_channels for continuous projections \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_temporal.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e267a9b5c2593c2c2adc8549a03ab2cf6bbd1718970bf131904ab3841409ab74"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: should this always be true? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_wan_animate.py"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e9028b22b87e9386088f5569ebd76672d38b7409abcd6997e176e241a58d3d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_z_image.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb6ab793b42b8d89fe1aa2faecb47f1104cd1047a44bb2881ab74adeb637bed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f6e6beddc5bacd0660046d4e177b7003c8e227992a1729d711656008cb3783"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo \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":"examples/community/pipeline_zero1to3.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ddb8db2b45c36f46aa31361a75c35ecedb4ecb3b18167a2716947a0f51ecb5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): For the 1.0.0 refactor, \u0060temporal_compression_ratio\u0060 can be inferred directly and we don\u0027t need \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1515fae187bb3f5e84de511c6197645da42fe2cafe654cbed124f7b9be447c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ca40c9b295346027c155178e0555832cabc65e12f003338681d42889089654"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): refactor tiling implementation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f74afbe3c55c1f049738611cfec0d146742e5c997e41fd73f0fdf8a1e0471b1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): refactor \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b6a12ea13f4e9a4b16145eac6f070c56e97d239f05733e977231abd0837327"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): configure calculation based on stride and dilation in the future. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"1751ae301b5b23b6931ca73c0c0cb6c97cfbb6ca6494ff34fbfcaf1f5bc342a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: calculate programmatically instead of hardcoding \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3503932c491b088cd15ced3384b1010f18e0ac983bab5b98453fcac7fca4b0f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: confirm whether the mel compression ratio below is correct \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx2_audio.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e46f22b346e26ddef079a5e188635d2ebc5f5130d2ecf660858805075fc65f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: check if this is necessary \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_magvit.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"4668f8c96888912a12b817ee9c986058b89af9eeced15ce1b61430b091bb07f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: once the 1.0.0 deprecations are in, we can move the imports to top-level \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"89aec27efb14675f75dfa30d9cedf46b7c82f087098e3eb16e44cea3a2968d0b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: alphas. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_conversion_utils.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9da8ad80cfbb89847264601904abc3d4bb61ab7901950af0988e1d77ef1ef9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: replace it with a method from \u0060state_dict_utils\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e06f9c0d85a351d389d99e8347d3e93ad4f24238ace8d32fa0291497b50c17"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: replace it with a method from \u0060state_dict_utils\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8ccbbc572a33dfa49cc48409749721685f94663e54385fd76ec17455bc47fa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (sayakpaul): to a follow-up to clean and try to unify the conditions. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5051098adff1f71231afdf19338c9e054214f8b2deda0155f12425470235c02"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: consider if this layer needs to be a quantized layer as well if \u0060is_quantized\u0060 is True. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16f1a04ad77bb8f6c1a777d7860933bb654b0aeed148ea148fbc5059b9d319b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this could lead to more memory overhead if the number of overwritten params \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b34f353acc7ff5674af14a575dc6ff5b52ac99f46bc78b9e3343c96211b59c5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (sayakpaul): Handle the cases when we actually need to expand when using quantization. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/lora_pipeline.py"},"region":{"startLine":2146}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e6adb6992ddca921c1466f1993848c6ed6b5cdbfe43f4c791808b5b9b11581"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: find non-Diffusers keys for controlnet_xl \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f46b6c2e58c3dfacb7e0db3d8ab61dfc2305df7c124dcfafff3cbe2bd51411"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack to swap the layer names \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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":3290}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e9918067073bcb8b1571961139e61c66736255d5af2889f8044d2d695864c4"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack to swap the layer names \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":"scripts/convert_skyreelsv2_to_diffusers.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"06648d5a3b01f4fff8d610085f6953100fbc946b886be858cbe0d0adfd69ec71"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack to swap the layer names \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":"scripts/convert_wan_to_diffusers.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1d885f0832426dfe5a5f1d940b9975e62eff6f847dcaa7e110bef1ec336435"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack to swap the layer names \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":"scripts/convert_wan_to_diffusers.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"97692c9870c82c6ba5b6ab4dc4ce3219317b84d963540546b30e77575d39aa44"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack to swap the layer names \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":"scripts/convert_wan_to_diffusers.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddb79827952266314367ed505927fd80b20dc2145000394b8e37253ac11a4ed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): look into torch.nn.LayerNorm, torch.nn.GroupNorm later, seems to be causing some issues with CogVideoX \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/_common.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1cce753633252bddadf4506d5b1dfce3321a8d502c2f45a843eda91fa0b899"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): this is only required for the time being because we need to do the registrations \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/_helpers.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c467122f523b56713dbd0ace433baa77642cc6440945efde92d2a02f1bf4210b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): this is only required for the time being because we need to do the registrations \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/_helpers.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"65185dad4c9ef595a499cad2b00850261f61d435c450d087b8890aa0616edecf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): consolidate with ._helpers.TransformerBlockMetadata \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/context_parallel.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbdd76b974e4d34bb22dae90d254abd383eedd182254b8a4a4f7a3f2e5096f5a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): Support BSC for LTX Video \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/faster_cache.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfad337b864253fe3d0eb817b077579e62131366ad255afbe3572d59f2a47fff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: we can potentially optimize this code path by checking if the _all_ the desired \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/group_offloading.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77dfc427f9c8578b29a233502527a8e95be087c4278b6ecb8416c59f1001455"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # Aryan/YiYi TODO: we need to make guider class a config mixin so I think this is not needed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/layer_skip.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"709f9aecd9cdf2b4b0a6411396172962ee2e27dab75067162ca9e2fad6f69181"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): add PAB for MLP layers (very limited speedup from testing with original codebase \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/pyramid_attention_broadcast.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"9711ca493e699078ab0ad1e85f6592cdf231b6e9058e52b4f8df6643dd78c6a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: verify deprecation of this kwarg \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/experimental/rl/value_guided_sampling.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd124e662ad3e3d73262aa78e8494087451a2250b2540a1d9ba3adc2eb9ab92c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: guessing \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":"scripts/convert_if.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"3736ef2bd68a239a4aa581fdbe96434a58a4c0d0b39574fac9adb86a1887dc6d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: guessing \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":"scripts/convert_if.py"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e08381385168fb43f2521c3848ab06cd081bb144ad16e754d13fb185d69058"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO need better check than i in [4, 8, 12, 16] \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":"scripts/convert_if.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ac3cbc2407d63bed281eb11e02a767828df2167a72cc7e6121b84e4050510f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO need better check than i in [4, 8, 12, 16] \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":"scripts/convert_if.py"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3a3644c3449d48668a87afa92ab3e88af2c3d51371d4b504dbcd1e3a5643ea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO maybe document and/or can do more efficiently (build indices in for loop and extract once for each split?) \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":"scripts/convert_if.py"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23832bfb8fd8c83e6e224fe17d750f84b3daad68e94010f391905d92f9888f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO maybe document and/or can do more efficiently (build indices in for loop and extract once for each split?) \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":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"609eb933672bc2c238bd88befea8650a79aa64f48b3e0268193759c656867e7e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO maybe document and/or can do more efficiently (build indices in for loop and extract once for each split?) \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":"scripts/convert_kandinsky_to_diffusers.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"d704cfc25e8b09cfe11eee8d1d3b4f7afc16b4c4826c696bf042f69242829af3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO maybe document and/or can do more efficiently (build indices in for loop and extract once for each split?) \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":"scripts/convert_shap_e_to_diffusers.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"0604384ee78ae38deb1280d67f8c3b7a2c9fe25c1411da4cf8f6242055c2d3a9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO resnet time_mixer.mix_factor \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":"scripts/convert_svd_to_diffusers.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"4455d597aa7ffab4c8aa36723bc179ec4ad93591c9cb88e57e182e49fa623479"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Verify this and simplify if possible. \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":"scripts/convert_wan_to_diffusers.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dc3b6797d15666f51890f6f3424edd108f5c92a39dc63ca5f7c307c5bc7cfc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove and import from diffusers.utils when the new version of diffusers is released \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":"examples/textual_inversion/textual_inversion.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"831e9103685b4a30661384bf1e17ce8309ae55ac56acaaf0273766473d1f831e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove and import from diffusers.utils when the new version of diffusers is released \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":"examples/textual_inversion/textual_inversion_flax.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c97d1dc7f4b340c9634f954e01d88b9c6e90218bfb54ac3e6d433b6728dc98"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove and import from diffusers.utils when the new version of diffusers is released \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":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf70bad93d213d1fc4204f4750e388fbc53944236484c24909158aa752fa0de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove and import from diffusers.utils when the new version of diffusers is released \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":"examples/research_projects/multi_token_textual_inversion/textual_inversion.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5265da8841bed4a5e1c44e30855807950fced72285303d0d1dffdb724d47f6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove and import from diffusers.utils when the new version of diffusers is released \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":"examples/research_projects/multi_token_textual_inversion/textual_inversion_flax.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7be2af1a427cb92de05905a7fb01ed4de60039b76543670ade87826eb729bd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove and import from diffusers.utils when the new version of diffusers is released \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":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd53519f137d300e64e84632f7a4dd684d2ad6cbc4a066698ecf4bf0884dce1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove and import from diffusers.utils when the new version of diffusers is released \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":"examples/community/imagic_stable_diffusion.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9166312d88c1c4c667fd8e987c7f36a8156ae74d0717e66f1794e13e3d67e466"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (patil-suraj): Remove this check when gradient accumulation with two models is enabled in accelerate. \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":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3f2d1c00771e296a7a9d61e26079e0060964c57ce10a0519a65ed25e137f95"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (patil-suraj): Remove this check when gradient accumulation with two models is enabled in accelerate. \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":"examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c0ab2a39d5a29a169778ab5a741477f8e4909495a9e647a8ac4b7813918482"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (patil-suraj): Remove this check when gradient accumulation with two models is enabled in accelerate. \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":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aed2a32f7b64cc983432544702cc6dcbb9653ca1cb7216fb43b42928eb557bc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (patil-suraj): Remove this check when gradient accumulation with two models is enabled in accelerate. \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":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"de73f2895f0c0f0fc285c55af46167ad7a6e170ae9dee07492fa8903f563e6d3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (patil-suraj): Remove this check when gradient accumulation with two models is enabled in accelerate. \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":"examples/dreambooth/train_dreambooth.py"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e26d31f91f9242bd230272a45dfcd01bc62bd400b67cd61295f079d70f99a57"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (patil-suraj): Remove this check when gradient accumulation with two models is enabled in accelerate. \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":"examples/custom_diffusion/train_custom_diffusion.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"512ea4c9b7714a9e0ca498a3832e25961c39904ea7483e721b1adb9dd67bdd51"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (sayakpaul): Remove this check when gradient accumulation with two models is enabled in accelerate. \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":"examples/research_projects/scheduled_huber_loss_training/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"241579e93ce750fd43bca051d49359d3ca755306d0be5e3ada1ef51fc2b98753"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (sayakpaul): Remove this check when gradient accumulation with two models is enabled in accelerate. \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":"examples/dreambooth/train_dreambooth_lora.py"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"179c5c89227f6080dccf52306d49bae5d7e5b299ccdcc1daffa50860ab7b5420"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: 0.5 should be a hyper-parameter \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":"examples/research_projects/sana/train_sana_sprint_diffusers.py"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb893f977f8766f7bbb8c5e402a7a967c0f37a22b729681fa7ba9707a829a38"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add \u0060prompt_embeds\u0060 and \u0060negative_prompt_embeds\u0060 parameters to the function when \u0060pre_compute_text_embeddings\u0060 \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":"examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a62da51598abf7ef4ff30e0dddcc574b56098cb06801755e76727a5930f49d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: it would be good to measure whether it\u0027s faster to run inference on all images at once, one at a \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":"examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"362ec9934bf76c40235230b8b012c6dd189998747a173aa4d2bef9b63e3dad37"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME webdataset version throws if suffix in current_sample, but we have a potential for \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":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a88a62c9281071395e6091c4a2b40bbd9a51869bea4b0a885539395b3d29cb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME webdataset version throws if suffix in current_sample, but we have a potential for \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":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d628650643486c4f9e9aebdceaf413965a129bc87fe1e8df19492372c81478"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME webdataset version throws if suffix in current_sample, but we have a potential for \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":"examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef67b76cfe7ad46a2c524c4453b121623c31da9beeb164f0eff1353360fc71aa"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME webdataset version throws if suffix in current_sample, but we have a potential for \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":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d13eca52b1c7cc65f3eef6cff97052b14c3d1346d54a39cf60e5ccb382a62a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME webdataset version throws if suffix in current_sample, but we have a potential for \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":"examples/consistency_distillation/train_lcm_distill_sdxl_wds.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8a8e0e23f01a9462fd8ea4d07ecf701340508aa91cee1691c293d33ae494c3"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hack to match inference \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":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"7697e269c32b33d9b452d78f915dc4dc2172171a9d5528b01f46a7bb8f55d629"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use default architectures from iCT paper \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":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"85959340640a13b5d86c0ae66a335b58359d4eccc56f45f7c49e074aee15c51b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(patil-suraj): Upload flax weights for the VAE \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":"examples/dreambooth/train_dreambooth_flax.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bc16441722a6661c16716c4f69225e558787356746dbd1a05e2b1b37f41576"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: take care of max area for buckets \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":"examples/dreambooth/train_dreambooth_lora_flux2_img2img.py"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"a361c43c262c5924b1fd35e274ab32d3de2c24015c37d08749972156f08cadd6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: take care of max area for buckets \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":"examples/dreambooth/train_dreambooth_lora_flux2_klein_img2img.py"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"5772b91f8686448541f8268f50c83c41448e9120d1225827e8dfc5a4305e7886"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: return if necessary \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":"examples/community/hd_painter.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"226f9738d61f9dfc472763a45ba9b95aea0c8bf54793a1acb645ad36c7706593"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: return if necessary \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":"examples/community/hd_painter.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfed4f61ac1751f9783c180b8f2694c0265dcd617935b320ce8bfa67fe91c8d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: check if classifier_free_guidance is being used before splitting here \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":"examples/community/hd_painter.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"165f4a6593474c4f930bd10031af997b2be7da36b2e27e0d7753b87b395c73e4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: change the attention_mask here \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":"examples/community/hd_painter.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcbc8891c4a86f2e54799eefcd6e7e3fe8e0dcc8681cb4bfd8e3438d9454db6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Fix for \u003E 1 batch_size \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":"examples/community/hd_painter.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f67586a743e9cd6a0cad7b0646a475ff59442ae09550ddf42a792636ce3996"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(aryan): Think of a better way of doing this \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":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"184b25d17e72c7a4fa7a745dbd57c01e329079c45dc2658a4d6eefeb00abfe52"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Think of a better way of doing this \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":"examples/community/latent_consistency_interpolate.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a9dfe60ee6bfb9c04f1fbd2a3f4f4f808068960d404b1d5523bf516e36ce78"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: should we normalize by chunk or in a whole (current implementation)? \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":"examples/community/lpw_stable_diffusion.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bf844ed707667c03929c0fb3cce0a06fbbffeedcdf4f9a73cebc157766c378"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: also active if any tile has guidance scale \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":"examples/community/mixture_tiling.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f86ed16ba0df266fd63837b7da6bbbad1720a41ba15c6e8f335e1b8951e567"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # 5. Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline \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":"examples/community/mixture_tiling_sdxl.py"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc0964d4c1d5f1591f7f2f726cd494a15b9a838c2d291b716f814c91b00fdb3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # 8.1. Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline \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":"examples/community/pipeline_controlnet_xl_kolors_inpaint.py"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb60aaaec707db89dd231937a51597751368cddf049efc7849af20acbeb54739"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO for reviewer: I\u0027m not sure what\u0027s the best way to implement this part given the philosophy of the repo. \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":"examples/community/pipeline_flux_kontext_multiple_images.py"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"72da2cc793f7de01509574af70be35ed631d4244cb30169f7aa9e9dfc811dc85"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME not replace correctly \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":"examples/community/pipeline_prompt2prompt.py"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"983159fc614ddf4df0df1fbca68cabe59a5d946c5177f2acc34af9df1f7cc3de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO attention_mask \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":"examples/community/pipeline_stable_diffusion_xl_instandid_img2img.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abc85042ac458c36fb898063b7d309e0a01fbe9d2398f456c84699fd5ca01b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO attention_mask \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":"examples/community/pipeline_stable_diffusion_xl_instantid.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eed5efb4f2fe3093a2cb1822560eb07925a806b4ab91fe22231059f8d6a859c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO HF OpenAI CLIP preprocessing issue https://github.com/huggingface/transformers/issues/22505#issuecomment-1650170741"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/community/pipeline_zero1to3.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"9080cbf76a40144480026295fb5dab4be353a5a9d05b5626bf49dadcb17864ac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # 4.5 Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline \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":"examples/community/rerender_a_video.py"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4007e5ced88ba2e594f8f40ebb34c6fc9eb12fd058a5817121b50bb9aa73b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # 5.5 Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline \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":"examples/community/rerender_a_video.py"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d2113d2e8f7ff9062b1edc4054ed3ac03de2a4bf1c7d1853d76a199ef77f2e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: For now, handle special case when num_inference_steps == 1 separately \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":"examples/community/scheduling_ufogen.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"759081a2849e5b0dbfcdb912a8343c03667a337cacfae4cbcff27fa735bd72f2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: For now, retain the DDPM timestep spacing logic \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":"examples/community/scheduling_ufogen.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"192b3369a9396b230b9000fa9425025cf2fa5cabcf1519cf95e083425a7bf03c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: is this correct? \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":"examples/community/scheduling_ufogen.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3dca890b4a33afdada271143069bba2b68e0470b45630ecc75622ddc924967"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Restrict batch size to 4 for larger image dimensions as a WAR for TensorRT limitation. \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":"examples/community/stable_diffusion_tensorrt_img2img.py"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"d362b9852c85ec8d6fc0d7695d897e63049401a536d43ec5f4e6e69c5987487e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Restrict batch size to 4 for larger image dimensions as a WAR for TensorRT limitation. \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":"examples/community/stable_diffusion_tensorrt_inpaint.py"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8041426a93a8d528ede25eb727116458ca7827d649ce89dc39e412e89234093"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Restrict batch size to 4 for larger image dimensions as a WAR for TensorRT limitation. \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":"examples/community/stable_diffusion_tensorrt_txt2img.py"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56ca28e6c62af3b686565ff917feb8bacaefe640db40e689c70908fae51b2ca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO - will have to fix loading if training text encoder \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":"examples/amused/train_amused.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a6e4bb5a2473700fa5d60889172eed465b46890bc3451430bbe3728d200462"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # text_encoder_0 - CLIP ViT-L/14, text_encoder_1 -  CLIP ViT-G/14 - TODO - change for sd \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":"examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f447d29d6f8398991a5bce4affe4517888bac6da2623e40b0d0a699a3532dbf"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060setup.py\u0060 makes this repository a deployable product (line 290)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"setup.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"592d3b527192dcc635e0d3620b5ab85e733e86a8c73dc2514871cd852d17c732"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2cfc30a95309b10fa2c4cc7f8884767ebc4be222221781fa3284ec466ad136e2"},"properties":{"commitSha":"b02d0d6be3bd3e1a38e1321867ef28a8f7754d82"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b38b3f55e20d8f4330b8113a7fa8eb450ed868b25d974246cb2b637c45bc9509"},"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":"a0106bddea43b1302d2732f726b2feae16473a4a37a85779d6441e44de6ee681"},"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":"12c357e0bca8bff5ebdccba9289c32538470ab277e80571df3f01a1331b3fd15"},"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":"0f659f09301a0a3cc72c4c8f871486db258c4c7a6e2872df2b3cf037d99a14ff"},"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":"0d2877c72fc6264a587cacb29f27ed804c6a4a356cbaadff84012b57e4d2afa7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"3b4a962596ed5729462db78c1c34cee5717e4eb8317c8a55ede8fb986313a5ff"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"5395957a851f8eb3b66e3662bff647139529757090f8c26f17cdb645bf0cff1b"},"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":"d993d355944e63e88cb1454d0ab9c441e35a775902cb01428f8a07107660aba6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"1fb4f695797a7edcef0ab861f05d85261f8a3b6a8de9daeac62ec94638d72b84"},"taxa":[{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01: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":"fc45226a7d28fb8f63e8977258220179eaf6d167b6c477dd384fa6503364f1ac"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"89299de55e74cab7efe750b5962bc004aa2900fe240805490e00429dc3b43b3d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"87b4e01b68365807d6b5458bb5d4fdef4e29c7473d0d2afa7ef14bf13e43a357"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"20359f418de241b94d8cb565f5a71df1ac21ad6d7a249558f81e86ede0aa1bbb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"4fe2a6b9097dd9d442e416f4474558c863caf0b1395b58b467617734ed25f7ca"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"0e8b3cb405237bea67dab3675d7ec022025bce9a9786ee831ff97910a2996c08"},"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":"f981d001647c9ccb60bb695bc79916f2e990fb6e5927a6a278413ac73a619070"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"928ee465d8f2dc21be65a27ac029767955ae93a666cf6f968c9e31c0052e755f"},"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":"45d1beb69bed6acbe3b81bd0a658ea7bcbccb3187e22b463a2d0077a1ffdf4b5"},"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":"857b5c084c4598b02b76c8e1a1e174b703c017c5fcc08b4e9e20add0b7378468"},"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":"71273ca1bc32381376be241e18a699f3b7e2487c08e560fe1d3080cbfe0dd887"},"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":"54eadf2c25fe80edfedaa8bcea6484241865dabf6fa1e0e0ff32376dedef20f3"},"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":"a7421466038da9238628d4afbb5dccb6826ec8c5023ed8b1539133dce4557040"},"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":"64746e693e35f1ebaeeb046eb5a03b77a73c06c9fc3c8ad7f5d641a49b1da3cc"},"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":"b7505d24e156ff05b11a92c7e5a85ca8230e5a0194adf52effea11e979d77160"},"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":"6aa18a27502aabba17f6f15d91577ac524776bcf3a5346d83f8c3437bd95c4ab"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"5d6e0ec0f28d805a17ae8af47682f2c610708bf43da07185668d2933968941eb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"61d346e8a862d45129c5e114e152e348482fb492c2c18421626a35c6604f6767"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"f9b02f65bb6c55cecf4a7134b7b42c331cb75b3c5ae570b82ed545d61070c339"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"15463fad8dbbb2f9c6baa946bcaf72a93f6a929ec8b79bec37ada9c591d93553"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"edf3bd20af7e533611005dd93f582a2a47bf14f2810621c69b108fda767ecac9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"29c69beddfed1ac3e8feebe08e4a76a8f618c586366947dd8508649036b289fe"},"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":"f62857a370ba753ce4c3b03bd0d71506cb662d028462db908f722110ea3e9c55"},"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":"3d4222b671fd31d71457cd7edded1457fa72265dad3ca9b1cbe256b73edb6549"},"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":"0cadf1be9b79435b3f526b15bee4635f0410c66d5317449eb221cd6740c42ee3"},"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":"1f76ace4f49d0f0bb492c148c21e23986024e7dccf728bb5925e1171502b5a8f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"fdc9c5b52963b1da6a0e9c72fc033d810b550e3d02b1cf33f33aac2c24e9924b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"a9cbe3a4273ad3f989091b477969860172d7c8117747fedc272d057f082fb4f9"},"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":"57654f77da09f45b2cf40cd27ec33225f44ae590d2a5c080af4da38bea24b87f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"280f1b74f20727ff40d14b3c73aad16c064c32912277a7caa0f7de0210a7e198"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"0d671cc6378469723cad17f85fb7b02ced28f4ccd0ed55920015bc0c0ff185ea"},"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":"051bf095609130ca370b1d14bc9ed39994ad6afac33367c8375123157970ecd1"},"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":"81b5d96464f29691181dd767f9a72984a82cd584e0dd57264f4c0267d29b79f5"},"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":"d297488bffc0c82ae934b1013af2dfe33a55cd44eab7da49d7a65fdc9c4e6bc1"},"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":"c03cdc61074cf1270829e12b23b00eead63637af93d62d4e1e582caf1f2f74f5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"7a58d2f127b3cb44aff61f19ce570a7519974cd13a2c9574919f861b6fe87f12"},"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":"0147bc29d6145c967432fe68c19ff0b3aadb6ed0483458602970befae2deb790"},"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":"029d67dd7c3115e5beb6ef07bb602f2365701df792db2fc6ad324481bad098a9"},"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":"f754901d28e499f30c8c95a93ce2d2615c865989c5db5de21863a0b4a0e43326"},"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":"f8d4284effcc9392b614665dc5c8e3856c208e98aa58dc63097a6a5c28445c74"},"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":"9aa251e2785c23a89977c151000b79a619b5a3dbd953ac62ec4a501c958d51b1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"327ea8eecc222f98d1fa28fabd2a86c2c0a0d845547f42cce6f03fa2c6cb3f01"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"4141706ec93cf86fd727eb136cea26a32c4e95f4c3ab26f13a12dfc61bda6b84"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"2b2fd8e3c6add8ee0bb5f195c0f1be1c11fd7375696a115ae86e3d9724393564"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"5bd92c3646be47a45483159c39dd61eac4299afd85226dcd3ad5d0d576999e51"},"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":"3fcea944f0809a1df4d8f22c2c8ee4947d323a59897a38d25f9f66bceadccab3"},"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":"fafea10289e46ef2522977dfe6600f2c261db68581dd33d235f41d1d3f5996f4"},"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":"691c5f94fd412758f0b2abbb0ff24b71c91d60dacc5184d82ef9dcbea4042a22"},"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":"f09f988b27396a24d614790ee0079bfea3e7c26f261bd9da8ee8a47aade25efc"},"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":"6dbac29c0847dd32cc677d824faa1e42554e336ef9a9af231d84aa252c31ed43"},"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":"2371d950244939bb9863a216f87d2900e3e84feb96db6ca3797fe25247aa997a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"94a72657240b30b78b18918f7a551947cdcb83d62d7fb03f52bbbd4a719a0912"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"62f8b597883e0f1ff283d01baffa6f0c13bf54a0abae854c2c5ee71230d705c7"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"15e5594b220632356824043794b07a8eb18a46893627822946bb1910c427024e"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b36c10edf8724346d718cbe8dda984d7d0404d0c16d0533ff9694fcb449e0410"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d8dcb4e3ed74ed9a4c3f990a2ab47dabc8c053253abef7f8b72867dab110ac76"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb3f0237d6e59b84596c5329932d7ce3807dfdad96a3ba8847c8b607bb486bf2"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4d6f454cef886d50d0da7ce877c1725b9d5ae14a7e3ea3f692e15144e16f15b3"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0b16e02e05150c60685734bb0b16b09b504046c3ce390ee9c2fa7c74f0f2b868"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64ff0d56c7dead359773f3601bcb167d2f87d110619a7dbcf59af48f57a1fb41"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"a7a1c62f6a40034e3a9dae50b91484fdd34003e68cfba374da4d3f43e4114d7b"},"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":"f34d301baafbb4686655635dba26aad2b870fd4fe0a24b1fe80429c4a957f38f"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2fc80bd3d34799b8346115c53bfdbfe4c26fc819de9949be3c07996e05386717"},"taxa":[{"id":"CWE-330","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8396b7b2f55fda73789166dd4697edcc8f36df9df9509d9975f9fc8c63eedb2a"},"taxa":[{"id":"CWE-79","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":"92e82ec1542689eecb9bd536ea9beababacf884418374a408f746828f9e21f09"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"faa1fb27a2ea33b83b4efa6a47f7c9b399c399e585a14604e362b7e5346dc422"},"taxa":[{"id":"CWE-942","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1a6be62c082551dca5ab030539d0b20e533ddeacbcffdb83608e87850aeeddab"},"taxa":[{"id":"CWE-942","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"89ebe5fbb8017efca873de68dacd26836bc9a16e9b6429aa7121a5cf310ccc25"},"properties":{"dependency":{"package":"torch","version":"2.2.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":"examples/research_projects/realfill/infer.py","line":4}}}},{"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":"f3268e40c019a9681a7ebd6feccb042cd36aabc3301e3951a329afb9f4001dc0"},"properties":{"dependency":{"package":"anyio","version":"4.6.2.post1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-4024","PYSEC-2026-4025"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c61de7803b25d78e6015d28a639d3f54b26994a84b358809b9df2e126b1eadf5"},"properties":{"dependency":{"package":"certifi","version":"2024.8.30","advisory":"[GHSA redacted]","aliases":["PYSEC-2026-4320"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e0899d07ef006064e4d8031f50464918f1e79e555020ea597ecdb43806965038"},"properties":{"dependency":{"package":"h11","version":"0.14.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-348"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8ae901e2bf09cb83167671f021c105bfce2e31ed3b8db565b7737b083584ac59"},"properties":{"dependency":{"package":"transformers","version":"5.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2290","PYSEC-2026-3929","PYSEC-2026-4174"],"reachability":{"kind":"production","file":"examples/cogview4-control/train_control_cogview4.py","line":30}}}},{"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":"65760ee4af652ca9d5a4b198b0d8391edf1c5fcfa52efc87bb9462cdb0c642fe"},"properties":{"dependency":{"package":"transformers","version":"4.57.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290","PYSEC-2026-4174"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cd9ed8acf9b582f5245469f0ffe74ce7a693f922e7e1a1020e9d5a46adb95fa"},"properties":{"dependency":{"package":"transformers","version":"4.50.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-211","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290","PYSEC-2026-4174"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b7fc0bfc7e24ed4336045fae5ed850339a177ae6e7ca6a9453c7d1648a5080e2"},"properties":{"dependency":{"package":"transformers","version":"5.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4174"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd3b9141d98e81bf8e226c1be02ec47cb0441f95613d888335bbddf9b097e41f"},"properties":{"dependency":{"package":"transformers","version":"5.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-3929","PYSEC-2026-4174"],"reachability":{"kind":"production","file":"examples/flux-control/train_control_flux.py","line":30}}}},{"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":"17b2416aad96bb2cbb38081fc573ca8be0ccc40ada002668b098f4e7ee38b9f7"},"properties":{"dependency":{"package":"diffusers","version":"0.9.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2446","PYSEC-2026-40","PYSEC-2026-41"],"reachability":{"kind":"production","file":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py","line":23}}}},{"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":"2aaa58873118ae156f6def3d07cf2b60c29f2f6affb257fd1e80692c06ed5cc7"},"properties":{"dependency":{"package":"transformers","version":"4.38.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2024-227","PYSEC-2024-228","PYSEC-2024-229","PYSEC-2025-211","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2025-40","PYSEC-2026-1977","PYSEC-2026-1980","PYSEC-2026-1981","PYSEC-2026-1982","PYSEC-2026-1983","PYSEC-2026-1984","PYSEC-2026-1985","PYSEC-2026-1986","PYSEC-2026-1987","PYSEC-2026-1988","PYSEC-2026-2288","PYSEC-2026-2289","PYSEC-2026-2290","PYSEC-2026-3929"],"reachability":{"kind":"production","file":"examples/research_projects/realfill/infer.py","line":6}}}},{"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":"b8314c03ebcb384d887d2801981563b35b89a42da9773f566bb1fdc9f363d6c1"},"properties":{"dependency":{"package":"aiohttp","version":"3.12.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[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]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1097","PYSEC-2026-1099","PYSEC-2026-1100","PYSEC-2026-1101","PYSEC-2026-1105","PYSEC-2026-1106","PYSEC-2026-1107","PYSEC-2026-1109","PYSEC-2026-2094","PYSEC-2026-2095","PYSEC-2026-2096","PYSEC-2026-2097","PYSEC-2026-2098","PYSEC-2026-2099","PYSEC-2026-2100","PYSEC-2026-2101","PYSEC-2026-2102","PYSEC-2026-2103","PYSEC-2026-2104","PYSEC-2026-2105","PYSEC-2026-2106","PYSEC-2026-2107","PYSEC-2026-2108","PYSEC-2026-2109","PYSEC-2026-2110","PYSEC-2026-2111","PYSEC-2026-2112","PYSEC-2026-2113","PYSEC-2026-237","PYSEC-2026-3545","PYSEC-2026-3546","PYSEC-2026-3547"],"reachability":{"kind":"production","file":"examples/server/server.py","line":9}}}},{"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":"38998a3256b816af354b66067f73ff5919d354c3cebaa28115b3aa392daf6803"},"properties":{"dependency":{"package":"fsspec","version":"2024.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4217"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"641baeed8eb38840ab62c9066c62f06ce947f4e70bd7b4d474f6bded168723cc"},"properties":{"dependency":{"package":"sentencepiece","version":"0.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-1909"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"360b0d113b8b92fc589677256e3b613fe0c45e94f3d2a3ca3fae219e74af26ad"},"properties":{"dependency":{"package":"starlette","version":"0.41.0","advisory":"[GHSA redacted]","aliases":["[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]","PYSEC-2026-161","PYSEC-2026-1941","PYSEC-2026-1942","PYSEC-2026-2280","PYSEC-2026-2281","PYSEC-2026-248","PYSEC-2026-249","X41-2026-002"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7e31646f70c0e43d7a37e19ec419f16464a61abe14e06f5980b1d831055181cd"},"properties":{"dependency":{"package":"torch","version":"2.7.0","advisory":"[GHSA redacted]","aliases":["BIT-pytorch-2025-2953","BIT-pytorch-2025-2999","BIT-pytorch-2025-3000","BIT-pytorch-2025-3001","BIT-pytorch-2025-3730","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]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-191","PYSEC-2025-193","PYSEC-2025-194","PYSEC-2025-195","PYSEC-2025-203","PYSEC-2025-204","PYSEC-2025-205","PYSEC-2025-206","PYSEC-2025-207","PYSEC-2025-208","PYSEC-2025-209","PYSEC-2026-139","PYSEC-2026-1856","PYSEC-2026-1970","PYSEC-2026-2286"],"reachability":{"kind":"production","file":"examples/server/server.py","line":10}}}},{"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":"adcea987b6e4aa4d2f67d98cc1efd32b02b2875e3c18daa9927f255dbeea6616"},"properties":{"dependency":{"package":"transformers","version":"4.46.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2024-227","PYSEC-2024-228","PYSEC-2024-229","PYSEC-2025-211","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2025-40","PYSEC-2026-1977","PYSEC-2026-1980","PYSEC-2026-1981","PYSEC-2026-1982","PYSEC-2026-1983","PYSEC-2026-1984","PYSEC-2026-1985","PYSEC-2026-1986","PYSEC-2026-1987","PYSEC-2026-1988","PYSEC-2026-2288","PYSEC-2026-2289","PYSEC-2026-2290","PYSEC-2026-3929"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5282e3dd7cfef75ceed95c293822af21baf42af3d6ba17e9767bbb748e803162"},"properties":{"dependency":{"package":"urllib3","version":"2.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-141","PYSEC-2026-1994","PYSEC-2026-1996","PYSEC-2026-1998","PYSEC-2026-4175","PYSEC-2026-4177"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ad8d3b71629d30853405d40d9919b23ba7ee1bacd6d33dc5d44c4ac74d6998fc"},"properties":{"dependency":{"package":"accelerate","version":"0.31.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py","line":52}}}},{"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":"0448d4b24ded974cbe16c6aa94e5c09655646ceba5b1b98298ed44e37a3f79f7"},"properties":{"dependency":{"package":"transformers","version":"4.41.2","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py","line":51}}}},{"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":"4ed6f9711f7030b4f8f74bde3ced0c341c7a6459a71738bd7407167413887ea4"},"properties":{"dependency":{"package":"accelerate","version":"0.31.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6720ce23884eded62d46a36fbe8286a994ceaac68e463be0447b486f52b04ccf"},"properties":{"dependency":{"package":"transformers","version":"4.41.2","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"09aba884d72ba883478c1c0dee98a785f1c618222b28dd5dd436f9131ec61e0f"},"properties":{"dependency":{"package":"accelerate","version":"0.31.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/cogvideo/train_cogvideox_image_to_video_lora.py","line":28}}}},{"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":"6bba8ed3237dc3bb40204c488cea8bbe20801bfa927dd07cec50845ce25cbf83"},"properties":{"dependency":{"package":"transformers","version":"4.41.2","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/cogvideo/train_cogvideox_image_to_video_lora.py","line":27}}}},{"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":"29f7be7e21072c1abaf26f50086d46ba95bc9baf6b48d6a0011449d0ef69b790"},"properties":{"dependency":{"package":"accelerate","version":"1.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/cogview4-control/train_control_cogview4.py","line":27}}}},{"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":"44cfbc78f84031bfec1afdaede283549e20123aa33e750922c13b7d932f186fc"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py","line":31}}}},{"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":"a62b9f16d1176d462e0570b101fecd3d91c4fe85a437ac158e960e92b0b09906"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py","line":37}}}},{"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":"4c0a92c532a03d54c38531d6c49f1ab67f1fe1957ddbd70c0e7688e9ddbd139c"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/controlnet/train_controlnet.py","line":27}}}},{"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":"c7604dd537c02c48d03843438bac5f46d4fc705a5dfc906b117ab9c99bfaddfb"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/controlnet/train_controlnet.py","line":32}}}},{"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":"7810276b8e3cd70c79e1fe57d83b66e68ac52df856ee6c40fbda0f6b09c06197"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"abf6872cb7c07bf8fbcb511e038208f8da833968437ab7fe3725d3a29b01815d"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c87442c0c1e07e3d2a43e65ca7471739fc38ca3b380a754a1f4c7ce0f9d3b8f"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"38edcbcc05a515455422c669335650fdbc7e8350b319e0d7d1a3fd824f17274f"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"131d77825fdfa6904bd0a28bf24ed377636c7552f9e75e03e04314e5d5319f80"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"396fcf05f8a8ea0e8184f41aa69e4786203129cb79d0706f606c27d150330eb8"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dbcef7bdfe03615c083a198b6e856aaadd1c6380d5da543b2685f7ed60f71026"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"48b78a4f8356572efd7dd2d639825b7066eb5b62429ac387fadcf0987d2e3f68"},"properties":{"dependency":{"package":"accelerate","version":"0.31.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/cosmos/train_cosmos_predict25_lora.py","line":16}}}},{"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":"86e42175c2326aa8531436446bb63c2ff2d8991c2c794b7c2819dd8374b1e69a"},"properties":{"dependency":{"package":"transformers","version":"4.41.2","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/cosmos/train_cosmos_predict25_lora.py","line":15}}}},{"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":"a5b78a0bd762ba1028be3f9c42e62c2b4a46de6f92a0030c84001c91dcbb50a0"},"properties":{"dependency":{"package":"accelerate","version":"0.31.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"891155b42f150d6e930d636e83ddb2ca92828b75eed74320ae3e6012b77c5ced"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/custom_diffusion/train_custom_diffusion.py","line":33}}}},{"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":"95d916f28487dd12e907229d5eeba650aaf2e8a619c4253159ae745390dbe8b5"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/dreambooth/train_dreambooth.py","line":34}}}},{"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":"a1ec77c4d11550c65ed55454efe50d8a6f8fba3b14d64e41973c6c4399b086ab"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/dreambooth/train_dreambooth.py","line":33}}}},{"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":"04bb632cb38593987de37a5e5124aface65f6bd7712a4acdfa94dcd50ed0f143"},"properties":{"dependency":{"package":"accelerate","version":"0.31.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"41eaee49374496dfd6b1d61c79258fd35d4435768c79e263fb88911913c53bdd"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"008943a182d7ca901651ff0f3d0f4f987ebbdfc72d4f0f2cba96f850a76e7037"},"properties":{"dependency":{"package":"accelerate","version":"0.31.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1ff7e2f8698e9f350283ff3b402b9d4d7c7cf0714ab0e3c18773f3b8a6a48d4d"},"properties":{"dependency":{"package":"transformers","version":"4.41.2","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1ab1805b0aa8cf6c7a2906b52dd0cfb96dfe24ca3958c4141a58a94881d173ae"},"properties":{"dependency":{"package":"accelerate","version":"0.31.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c9ecb856263d1f8f478a90bb2c301215c7cd7f22f640f7d069f20b8126c6d248"},"properties":{"dependency":{"package":"accelerate","version":"1.4.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"10e902e60b641332e632117de23fd485db8d29d14bde0f321b7e2fe72f0763f0"},"properties":{"dependency":{"package":"accelerate","version":"1.13.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"95ccee3749e6ea0cff824e7d71ec6d73eb94ef855aa9ad9c716d1d3c8fb04172"},"properties":{"dependency":{"package":"accelerate","version":"0.31.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f2b3b331f5bcd9fcc3fcee43778c60894ed8dfda2fd74a78d27ba7e21c300364"},"properties":{"dependency":{"package":"transformers","version":"4.41.2","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"41932914b1964c209c3a28b0800cb24fc860f40fb88cd858cd38ea34cd2c98e1"},"properties":{"dependency":{"package":"accelerate","version":"1.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce59121de20f6c52a1481c61486bc0e02454d8997bfb11df7162339c0e0c2285"},"properties":{"dependency":{"package":"transformers","version":"4.47.0","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b015fb87f24006d292f59f28232c45d8cf965e759a65d8822fd6a64fb23d2b50"},"properties":{"dependency":{"package":"accelerate","version":"0.31.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"deffe2475473deec3466dd7ec1ab8bd324f55968521d47de71e14f33345ae2c6"},"properties":{"dependency":{"package":"transformers","version":"4.41.2","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"926c7c8dc85f577a63493ac6bcbc8b0fdf82710f6cf4eabe6bc17b670044114b"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e2ecdea2c739552f4b4cc88b663fdcb541c72a656d77aaed969c3574120a95a9"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f548f63b57ca20ab159ae63c8163579ff854b3dd25d3a5284f5f5c697207c06"},"properties":{"dependency":{"package":"accelerate","version":"1.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/flux-control/train_control_flux.py","line":27}}}},{"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":"f1023e89bfeb841335678ab0ce8eda239f91847782d7af7ff565424796c0c376"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/instruct_pix2pix/train_instruct_pix2pix.py","line":27}}}},{"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":"c500c41a5464c40d33063a5d230e7fff3e900ce136cf20629687b813e3fbaf86"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/instruct_pix2pix/train_instruct_pix2pix.py","line":36}}}},{"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":"0d78683322815dc66dbb4ea486d741c1b5685eea43f37b241b9650406135704d"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py","line":24}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4e6c7fc5e0593a29661cdb82e808a796e38b7ccd608f985f11a2e2851116e400"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py","line":30}}}},{"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":"a7d891a64c627fd7a45453b0dd0176b86ee9f44d2b1f69205d97e0ee02bcb2dc"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/autoencoderkl/train_autoencoderkl.py","line":26}}}},{"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":"4974279b1eabcab16557bd61e2ab4942a308825e59834309ce018318e056e29c"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/consistency_training/train_cm_ct_unconditional.py","line":26}}}},{"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":"10093e12a8a8ecd4ddf1780fa729469d795e732db6041fc779faf52603703755"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1e322783a8e598ec6402f0694c573270314e8a61802c733c97b2edda9728ea8f"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py","line":32}}}},{"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":"9b51a91e9e80c7b04f9a851c3d9a672a047e65b67ef62f985755a11d1c97ee12"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/diffusion_dpo/train_diffusion_dpo.py","line":30}}}},{"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":"87c4b925ee461351bc433f710ee2b890c2edc43bea07a5a8e79c68c7a98bb643"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py","line":12}}}},{"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":"749948e8d5733e258069848202c0898d2be5e03fdf5f782bb4bdf02cbf05d283"},"properties":{"dependency":{"package":"transformers","version":"4.21.0","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py","line":21}}}},{"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":"026676754e572d51c61cc56840dde9b14c496470335c1d786a7a2bfbb8fd4206"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/gligen/train_gligen_text.py","line":11}}}},{"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":"82a78bfb347e9b78bd81e1e7d93f85a62256ccb40d04526885c7bc16bfe8757e"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/gligen/make_datasets.py","line":12}}}},{"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":"9e8e2d62e9a484277d3759a3408b15f0878fdbb02028473d910aba75ac7341f7"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py","line":14}}}},{"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":"de2bc812e2f15c85a80b10aceb2b26ab9f649533420f66436ca5fa9d6026a7f2"},"properties":{"dependency":{"package":"transformers","version":"4.21.0","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py","line":25}}}},{"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":"52dff89ff64df38650eb44e48f57d1d6c23010a94a311071194949df14040721"},"properties":{"dependency":{"package":"transformers","version":"4.25.0","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/intel_opts/textual_inversion_dfq/text2images.py","line":8}}}},{"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":"15d80bb79aaa563095bae3bdadd39e3970c5bcedc7e0f185f1812c03806c47cd"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/ip_adapter/tutorial_train_faceid.py","line":17}}}},{"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":"409db0a1f3e34c5e31b89318f473b96175b7e6b603adeca4e36faa1bd398ac4a"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/lora/train_text_to_image_lora.py","line":32}}}},{"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":"518b38b694eaac52fa53e76a2f65885c2eb40667f0e2566e27c3aa29f8a64466"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/lora/train_text_to_image_lora.py","line":31}}}},{"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":"a80327cbdfed65c470de994ae14beed53396d48029df46c4b1dc4711dbc22985"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py","line":19}}}},{"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":"9866b54c7ca30bfa24ed64c6d527aebf205bf2d713ed522d42bb19dc3b63f288"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.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":"d1e5376ed4b047f4e9761f16492f534c8c56771198303dd64fffb08a67b4db97"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py","line":14}}}},{"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":"4bec1438e6a512d49186bc2afc65f2196bb3bc7c05ac2ce21b64f379f0e7296d"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py","line":22}}}},{"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":"bf7f972908ab17895e568e913bc07f78bd48bbf9265cf5f088e0eaa262ddba99"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/multi_token_textual_inversion/textual_inversion.py","line":30}}}},{"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":"3121c793e7f1934a7db55560798eb754d853674654040051a33a9e123ef36632"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/multi_token_textual_inversion/multi_token_clip.py","line":30}}}},{"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":"fb19b79a310abd959d4e1cd72f2e38520e5852a837fff27c714de5e037aadcdc"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c9bd55ec93a83ad9f31f14a8cb6966b5cf2c1667f70f817c6e31bd6bee9148d4"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py","line":24}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d31dc1a2ad9664ddca2582ca6664730cfa8d2cb45d562801da2bb2eb943b69cb"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py","line":30}}}},{"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":"9620d4cbc38deedf4f51e75342c2eb9bfd689ec97b313f17e482afdba800a562"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py","line":31}}}},{"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":"cc5f51782f6ac6248e6830324dac119adf052fb18cd039fa933c5ed0def3fd69"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py","line":30}}}},{"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":"ffef8fd8d8d9c1d696a61a6a716d1beb4acb9127ddec237fd81bd0c2cd05cf9d"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py","line":8}}}},{"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":"5780386127d2ddfe839272bb3f7fedd6487e9dbedb529dd75e6b735630b06050"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"22fe63381945ef302cfb16046b86d1f06cd61ef8886d51a0547c618674fbb206"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/pytorch_xla/training/text_to_image/train_text_to_image_xla.py","line":19}}}},{"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":"1f4fed063d453176c0c1315623bff7eb0b216daf0e9c728f4eb46934e132f184"},"properties":{"dependency":{"package":"accelerate","version":"0.23.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/realfill/train_realfill.py","line":17}}}},{"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":"093ac20b1b0dcebe84399b4b5c914162d15ef3cab6f13feaf9cae5d43ecbee67"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py","line":28}}}},{"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":"8caf5f0bccece4dad08d07daefaf4c4dad62b713afbf989bdc4a7d0110d7e111"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/research_projects/wuerstchen/text_to_image/train_text_to_image_lora_prior.py","line":27}}}},{"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":"b3c9f35d4b20aca85557232df8a911859763f501ecbc60c25e292a733329b509"},"properties":{"dependency":{"package":"filelock","version":"3.16.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1374","PYSEC-2026-1375"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f96880b167fa599f9c7737bc1a30b297594c249489292e1cbf59dd90f700be50"},"properties":{"dependency":{"package":"idna","version":"3.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-215"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dd2d2218e41c1db2738a3a6ad8fee7727be5c563792ed9fd921aeb9d9fe1d008"},"properties":{"dependency":{"package":"jinja2","version":"3.1.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1471","PYSEC-2026-1472","PYSEC-2026-1475"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"15f2e20e3a5f5591a5c06bd6d62c9112a6d998a39c189f684e6b14febe34e73c"},"properties":{"dependency":{"package":"requests","version":"2.32.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-1872","PYSEC-2026-2275"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d07fa3434b9c2952c2d54e36b21b67971840d076eabf146876547bf47aa6f082"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/t2i_adapter/train_t2i_adapter_sdxl.py","line":27}}}},{"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":"eb9e3cd926d135990dc1961aa5203fde93d95e129f13c01b0a7ceeddabb4896a"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/t2i_adapter/train_t2i_adapter_sdxl.py","line":31}}}},{"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":"01d2ca71ef54b81a6970f9b855a956ab48d318f076214c02f5b89ccce9845385"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/text_to_image/train_text_to_image.py","line":26}}}},{"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":"2747d7a97ccc95d981dfcf7c6e46670ba6095a5a32e106bc064665334ed43fe6"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/text_to_image/train_text_to_image.py","line":32}}}},{"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":"84d3f4b12f5ca7055a47ab890492d80631028916a7dd93eb0bea36eca1e0bd78"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"83c3fd73fe9b94983f65827af2867f85a824bb6844a0f89ae5c9087fca6c64aa"},"properties":{"dependency":{"package":"accelerate","version":"0.22.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d41cba2b7436eb88dbe5ce08ee7789c2213911564334207069db0566ef933317"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"53dc87d369a39a32670e382adeea8925caef8a79d943369c98a8e14fd46b125e"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/textual_inversion/textual_inversion.py","line":34}}}},{"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":"93f7ce13584c1188041617e9b96b237b041585c05e9811cf362d114696574931"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"production","file":"examples/textual_inversion/textual_inversion.py","line":33}}}},{"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":"9a6e04d3a5e02a466ae3008040816ecae639e25e5eb57a9aa34a0e1a4aa78100"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"20e9859659e412636ea03e6e84b8cf6296df8215416e4984d971bdcec28accf2"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/unconditional_image_generation/train_unconditional.py","line":10}}}},{"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":"9f6c7492e70e2a642cf7e4ffce610f081e4430788fa45a80d73429ddc3df77c4"},"properties":{"dependency":{"package":"accelerate","version":"0.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"production","file":"examples/vqgan/train_vqgan.py","line":23}}}},{"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":"61aabdc70f1da3ffca9821613b5198c5a8304fe98294b9406de87bd274bc9b3f"},"properties":{"dependency":{"package":"transformers","version":"4.25.1","advisory":"PYSEC-2025-211","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-2290"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9a4820a99bb937c90f46331814296edfb1a16cc9373bd9d2a98fd8bbe07f4ca9"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"da7b3808eef6ff43a7ee918aec505a4d24282c62bff96a5e9970e88ac88b1f0a"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4061ddda5070daf4390f6324a8298c202f3a5eb3eedadd65e28bafa218cb3297"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3dc0251ad98e44f2c0bb32afef550517a540ab982af4523f972eab681a947a12"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f1ba295159454bbc4335354621e429f66f458ed8a9e154acc63541b085b0a20"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"47ec4086ed39f489ec1de21a79292cbef429284f8becb3cdb58c1daf02ca245d"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"946281344bd10798883cfeca23fdb4e40be60ea2c735e2d35771c596def1e734"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6acf93eaa7233aa7f81d7e95d0ea6926a5e4292848412475a769a926978af3f2"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2210d7aa6f41f39940e73721c3374b49f474d775a60699d73c2001da4471f146"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"68f1826ffaad6921145bc126e5921d0a105d4753403d0f13f005d47c490b1d99"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e42cb5730d6a7fb2a2457955e13e59785405cfdc29011bb71d9275e418a8e9a"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3339d44bc1abb6e9f551bf330c313812d7d07f239903623c2f6895bf9220ac57"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5687aa5e9168f4682fb2eb671db15c37ead6c1f8672fd652ae0a7bbdc90479c"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4684448270f16a1d28b4a115f5d5e46ffad62d9cc2d2df69832aa5703e30dea3"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6875a43b755fb29446626e127589770eee948271d0b15958e0c317cfa353ad40"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7def92a7abea6441be35fdbc991cb97080c3874c59c808fc648a7a90efb593ee"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"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":"796e1b8abdc0f7713e059cc51ef5fec7fe2b3099199459d9cd36a77a97b60c85"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb401ca1abdc4548bddab043242a6db3203ab0ff5f3b4722ca7003fe39c6627b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa2d4edc566513cd800e78bbe9175a527d0ad0e6e3bc455ba62a170b429b12a2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ab289197ea3b23ce296f54d2e162407084d8cf6150076184766c5ee468d57c3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"166c882ee8badccbb28134700e5cf0a5104aea20acd28bc595f0ee839b101cec"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e9fd766b2df551b676a5e5d0f0aa75bd8aaa09d423e3e6601fa5062a3a871bd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"094982b5bbf0debdabae394a2d09d58323838e8e0662259d960338dc5b751e3d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d6c58072fdb762947a6a8b99b0fcdf4a5c2c640168d3079b5293b467d0a253e9"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1a032eccf5b96e7cf6d90f8440595cc0c6b36d6b413cef3c9c2e747b2b892e42"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a17acb4c57b075a74a3101f53671757597869f18921ae99840b7d9426529b60"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2257b62d696140439d7cd61e6088d2431fedd67bebb82c508b5aa5c4c1926991"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"999b1fcfd6b8a2caff7522cf58bbfc3e5f58e1ee4ee47ed444f050ce26097d22"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"97664aec79a35353cf930ad3a723252f5d869511743979e1fe01f9e80536b6fb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7b7644c922510cd89c49ead68a18cf053e8bea1b69fea7969a3cb7c88fd09101"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0328e4f57d515c7dff8b3ada6bf83a36a6c94d50c8743b7f880fb6db0d15ed"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb62246c8fa6f3841f4c4eee8e6f02e9588730f07611ade21c7891c790a1ef2"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"beed2e160674855410f54df193b6a29e102f525bfd5540384efad8d74a1074ea"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c140d12efc2be61361f437c3cc08e3bfc302207fe63cf3ee84fd7c77bd39bf"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d66254fd1ff9faef0a7ff4cf3c9f8b70f66ab4a9aa1e0dcf4950510e8d56e9"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c623ceaade5cfa9900734a615ba6b20aa94f192bc3874e3c694803596e89dd"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"477b13ffc784f00d2a3461cc3eaf8737e0aa7d251d4c7fd08cd6e69ee577bc9e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31974e56b824963e1dbc7556b512e6c9317acb97f3008e02f635ab1b63a75eb7"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73644e1adb5ce4e74c84c491226451f05493cafcd734350b1ca0a562e1d87075"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f071088d62012a8929bb1a090c9e807b5c6cce33654554af1e9995b813690eec"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd41cf5076f1a1686374e4ff49401faca2d8c0b87b210d35b57b5a632d678a61"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe2a763e29c221d9a79308904324e183679c48f9febf86447c24aa7933aa508"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6150a0e4ee5426ae4017eaab6251dbc982d0d43ff492e761bb1d515341a79189"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94624c99ffeb1e7b0207ee9ce52b99a62780ec5faca7178a93537f4caeb81a7c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5a112fcbaacba19fe3ca2a4f42d24d24c443f2a507340c3002935589fc05c4"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fa67c09698592a587a82164fd0fbdb9d5b836381d81c500a1933695fcf9372"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff66b604887e76c495e150f1ab5d9730f355bacb2ed511b253c942429e6b5b2"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94bcec844046836c55f92d1849007621cb7fe0c28c752389218e2f2ecb6054e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"314087d711fb09b982e6f14afd1604faf6a913fbe71dded25b61ae0a0fa15a22"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_vidtok.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74ed86cf7656e94648abec97e4f03134861a78ff51e582e5f1987a5a613cfd5"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0694210d3929e281250ae20d6dfe72922328d315b50aea1b59b65275cf71f350"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/audioldm2/modeling_audioldm2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56880ca3334361797a1713b793dff60ea491bc2a11013e8ec4005c2cdf8698d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_condition.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafc184337e286a927623215a26e149618043662b993ea3896a381f459059814"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05923fabf404c16fb677ba03ac83205cf2a516af81b0090f8575305cc2a8ddce"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ef4d1b7aa19c0bd3070b9c4c70a4f181e0d639ef02c0738780ae54884f8f88"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7001dcdf890d85f2d95fdd5d35de2dd0cfa5d778ce62f997dba2015e766d5c4"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4837b6c2fb0e299d479cb290702375263e8357657e472c7a4e01a2a95a4f1aa2"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67fbf8c7864703aeeada15e438f3928d8a43cfe14531b6968da0c239b78ac25"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f9d22b3989804bde12927db324bb1d70cedce604c7efd05b68df10340a0c29"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5e424a6a679179ed1a96f478ef2ba152abe05e6177a83ca52dea38801ad38f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e18130aad7adfe422422061004b7aa25fc62254ed0f4480de07429a6214ded4"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbc0dccfbed898da80976116ae3bd41ac73ffe58bde5fc07ae0f9f03cfc14be"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c762860355ff4e12cc42cb51e95cfc4c05199a05c2d2c6eecfbb0bb8dac41fe6"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02aee73f14608a8e25c456855b51740d674404a2ef17d9359093702dfbb53ee6"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e7651368e161f582c7e004f86b01c4f98e57537340ba6654dc4983aa454361"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3dd9166b2ed79f1ae224b123c40cf7aae0bd90000d857dd9981c458f159b44"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d3cd86f0a135cdbf25b0dc5ad662f7fc2ee20c47585ea5c5b00c0b59c710b3"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d3cc673b0511fce066d88ab518561f88393717f9fa60d57502960969e4a2a5"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fcc333c951fe3de0272a82c9b16773ba593041be69a184a41d7205ff2249ef"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c39536182bf911fa88976b6434cbb123a3a40f64184f29b8edbd42acb0ad26a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"442c4502c51cd2dd73540ac6e1ffda0fc342300849ea53779120000541b54c7c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"596b81da4e58f04315bc8916f186f1d6fe4f2e03d159577f9f4ca8e7c5016660"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c511ca9ed06735de7148c0eef24577c4b6c2eb2db7321ddd452a52f240616d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a419322a89cdd20cb5fc1ad58adcbb29a82097117e855e30bccace0270e7fc6"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_if.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"790d47451a839c03f219fd917c0041c074ab7ff2bc99b8842fce75d2e58d70a0"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a3a48c439c15cf38a6467b54840d36d8c70309d72f7fceca8c1fb808fddb78"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c8dbba292ede61c2b9e4c84d2bef253ac286cbf63bfee6227863970b2b55d2"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/sana/pipeline_sana_controlnet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abcc04c0d8cb84e2984cc6d6648f419a59466c79565461031876eef7289e536"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08030d8b3c68841077c7b6f85db21af26956bb6ae6cbe09cc36c8c9ba5b8b9d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_3.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ce2cf49dc5be8c387fd2aa41d8c28bab098f51a68881ef2dfeed222c2d4daf"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a546d5ff8ca8cfa6bd09b8fdf40d7fab832f7728cbfdd99a7b3bb72a8de4c5a0"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_fill.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6624e647fbf039d3cb2e20da84505000aedd3776df96ed35bb7a87df0d8841c8"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48dca5173238102303bcfdfad46e0f862422121cfda4010c2d2687f85418e635"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"208c2ccddaf6485ef2990ef470b9219f6dc8f50bf3062938db8cdcab5c65debd"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_sag/pipeline_stable_diffusion_sag.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c806fbd165c2df1a882d718a3d8988b9dacaaf12c545984bfc27fba65eb816"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce472730e824fe4bd15ecaa3f5d6106a887ae4f3e177cef5a27447b9868cc9b9"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f4c9bb7ee5c457c158d870a9be52ba11a2d7e0afa0c13078e2f06333a49e62"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff1c5014d9561b0c3ac27e8194bf7dfbf5591547230512b3fc8db349bacc8c2"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/consisid/pipeline_consisid.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f93d180c38c0d82b251c7440c95e5814b0a8c193994fa8add596a53448dd1c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a21f7201ce31378570c0c9081baefa7c3f92674eab0f5f83d80f65775530025"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f5437c3640569f4cdbfbbfd774ebaa4223c67d08940b41f61f8e80141e0c1e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d33ba869d4fe57f66edbc33968b7a4050131229bb3b020591f7d042fa4d1e68"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_musicldm_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6300ac5cc4e4e9735b63c5932203e38f4ba8b74cf0159d03a50531a11ef8399a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a24471e36d50ae1123ba55be9a75b0a54f31fbc90e2753f3bf837c11884647"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53419583a209d7293a74d84564b697308dbf781110ed6a7a39ddc6e11730a30a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_original_audioldm_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3bcc1302e33ccc7288f79cd390fa5167d9cc18624b5ccf83b2726bbc74ce74"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da06e1f7f582cc2c0f9b11134e1fe055dc703a0d7b44891ff25c218269a368d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c19890f6f1ab4d872489e7fd2d7593e84e6ddf119f28d9344e11bece725a314"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb2309dc8bce4f4ec8b7509f1929bd17e692a39f62b65b65e8ae5772fd0b7cb"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e581659ad0a265739c9bbb28d1ff32c46774b45c78d6e5feb48192aac37d12"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_magvit.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53d6c86956bf6ff000a5f5de43d638f1978dd7af03665022dc078fff3f03097"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_consistency_decoder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51c37ddb16baf7be36f88cc02553495df2123372c207c3ab88a6b2a936911f4"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7012fe70ae4d09d684bbd9a61d11a6de85320a136a77f27430578a18a3302c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de48e2e1e76115bd95d43683c7a7c3431554f603f6afcd8a34922793c5a84529"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lumina/pipeline_lumina.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bda7a257b1d28e9c0c2bef313b34a82ad54dd95623fcaeda80a3341a82cc727"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7a647afadd20509ee742ef248cfd146f575e4fae31f877988a15efd6bac458"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aae384a095bfeddf9aa162e8a2719f8655bbec9869fe42638dc654c5dfdf69e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"050012b2d68751fa69102bb163f60d888fb5a30720154f9ebc4d37bd34386950"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e7104637b00004f505c5a66a6e647cec2027085249836736656c4dcb9fb830"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dedcba4aa4fd9d421cf9f36c6ed89d8534d2dcde3dec86ad16bcb62f40d8bd0"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9760e0f42154166667fbf8befdb0b36f46076f3e62204aa5dd343234179c36f1"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c209d1ba9c5fabc9a22724aabee9cd6c3647be03936231fb4fb8238bcf5172d1"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latte/pipeline_latte.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2054420aee18f6cf259c4da914dbf909b442e73e0ab65a73d54ee60fd6231b"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9c7191a75cfa8aa30bc6e7c3c35ac7bf037f0df5277c58f11e08aaa0d83c47"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2b7bd879c5cc4394199fea83b0f99d235c5c18756164da54af2c687a23d147"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_motif_video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1c5053553354e7351b0f0c2d84d61e26e721f4aa22c63c8fbdf807aafd9253"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d63eb2dda2e2069f83e3a2db83090f62374ffa2c88f712d3f46596c8cb197a9"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_video2world.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f48c3d89fa498cf1556863caf54cb2d363e5be65d76802ea6798dbb09e79410"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"194a6bae3e8397b184b30183dfcf415abaf6963aca1e8f1b8f8551a175d5b72d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6453ed10e4935ee9e43b68ea331392830f63826c55ba7249e08e61bbfd859c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a97d57d6a56f5ce795ab77cc8a1d1f96230d1e4cf123ab1b97b1b631ea417b"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02318cd5e3ac380b792140daab209624d60dab7aa29ec81c055bbd532bb8a14"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bc3e73d8953834cf923fe030c1d3cc4eb129e6fdccb42f3121c078e3810f4f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd7bf744d26285909803dbc21f08d1c5bb2e257aa47490bceb39ff21b73d4df"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"020e80016041bfa77aba35f5972cacc8aaab56bd2f9e1f58a6f21a9c76cad6a9"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_video2world.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b2874719291cd0fae097e4822b8537612994ba94ff6fcced59550a6ec0601a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0046cf0a853af3197fb8bc91d2c09e6f024b764c550a6977d4e7464824716f16"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36e7e2758eee36ebcc39f824404048757607974443b69e67874c8630e54762d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98961d703fcb8875d5a281e4fa622c7a51ca61115fb89120dedc320ed5e8bfbb"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux/pipeline_flux_control.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf7ca937468cd0f87fbf5c70c5f3776ce994307d300d1a2ce5a9d4dcdecf7e6"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b45823a1190901214fbac66d6dc06f204db9a6c7be4f56f13d1445ada25c0c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e565fa44c91a030b9917d54ec7e11d9f8724f4389171ec284adc8ed85481a754"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05938d1900df09fa3b71c1fb05d7d6ad3034c3c7ff4b41d2e709ba794e91b0b2"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2b241b2e6b92a0800e25dca07727077dc104f92822f36c505cc8d028521849"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_union.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef0b9d71fa917a692164dbe354527fdc6508eac12234ae505d06fe915a76b8b"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04dc3d9168372b850911237862d7a121bc90cd28269b8b795d16e9981bcad30"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1b068bded1ac2ec22352fb17879f656de604bf2ada0849167e877327a91eec"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d9f9a9508bddfebe373823eb8b01cd3aa720db4057b040c545ee429cdf94e7"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23fa2df64c47aec250c918eb3bbf75dede08c5cc333fd426413ba22217900ae"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b466ad9e10fe62dc98cdb200287d23e83683343b5e5fc280d51b7ba5945ebbf3"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad9e7d6f0001aa20e119c07377faed95becce1ee48ea5876f8b4b0564873949"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cosmos.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd5b381fcc5a2169b623598a360c8064f421743d45a422ef2ad17484a6ed230"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb98a3cda5350e9c66633f548e6b600e4c9e84a1aa8bd0ba1c11bd1bb3a689ed"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae_video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e2d3a8946b9e964628d4f45439314a0a99b757b00ab48da42f865d48f142cb"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_cogview4.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a8ee3fcb85fa9f402756a833899891a709f69279e00cd300e283480442c1ff"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_vq_diffusion_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65dd68309c2ed3047eafe5ec7e31a7f4f1725fa2476de74be3f05eaeab339a14"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abab484ec125ab65b1e4ebc75a47bdc0832e7d0dd6d9f0d7f31e33dd9a80aceb"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fcc8b48806242b11eeb950f5e737ba397cc9a9d0fce8ec931a7141aacc3d7d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_cosmos_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc8b61dfdba562b074882503b13d3cd1290bd473d51980bc94c9a430b3a26f9"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b160dc6f08a84736211064caf6938bbd3fadb548528b8a4111282c5ac0a7aa"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb16cad92ca52239922b009a9a1a260a6ee976be4e3ac3a4f391c63d13114b1"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/controlnets/controlnet_z_image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fc5139a4524cb85ad9e819c0d79953520c7902a336daf831668fbe6a37f67b"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75428c164cc01427e6c0f05aaac60dc494b8909ca14dc26bbcea020575e0e8a0"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1ec50db6f972334778caf492f12eff82902a5bf2b7bad24ae68aebbf338e15"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c511474107f35e78572fe346f5b8ff6dfbc9fffab56cf5637aea315d58061cd3"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_zero123_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4e433f10a5551452667a0dffd52db5e9b33bdd0a6db1728b106934d0c5ffd3"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/hooks/faster_cache.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e844b23a995b41be56375189bd25dd013162030487e6841ed01693dacc3f872e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3c9f3d6503848c02cb4bf02bc477f39f5202f48be632803a47ae61d8d63b7f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e4199239422204f2fc8243823e2bb138fc319f9796cfb7b8912461e969f1d9"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"534aa150bf128bfc4fb0141636ca7ab7399bbe3621d1aab55bde66f63846193b"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/pipeline_marigold_normals.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f8d1669c88604a1230ad6650fad3f577de211cf51cf1c8d7505658a918662b"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/consisid_transformer_3d.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84fdd36d46a9a57b0fbf311434fb490e4f17fd810667403b064b4129b27c6588"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b83f8c1923cfde0a469426c3e2db8d12036fe65e48501810a637ada46ef6c2a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos2_text2image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92180b0a209cc3ed1c0baca27b257d53b4e54f0f5bd43f08e61525ad1814f9de"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac41c685f8a13df11d994e352a06bab001a38bb9574a6d4f5c54cbb3a98d421"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c615315dc0c17684a6ea1685df3aecddc517f6fb93acefda426454fdf288bf"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c989d981c80d407e22ce0ed8e4c1607bf8ec7f0565ae9b679ee27f79f620f44"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_versatile_diffusion_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53123a0d33bb04ed2b9940cc35df192a9870cb15bc69ed90c203cd23e275537f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"924884f6fe0b7d48286846c0134524c5093d6bffe6c38c3fe49b63a521562ca4"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/z_image/pipeline_z_image_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b745b04afe6ee486fe2a52b8c41f4156e3f793c5b38880b0848d3d614cb8d33"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e57c4680c3808f524aa0abb2969d1787d0a5997dec67121bdb5b2d8f4c7e4dd"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_svd_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8ac18da678c3ba489f15293e00da961d78010f13a6df328fd4344121cec48e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/pipeline_cosmos_text2world.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acfedbc15ef5b7fc9a0e28e448557a481ce099ee26da7e9a80458f5a11e87f6"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_chronoedit.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7b891e752b1cbff688d6ab8c4a518e4be56b02202dc18ba1c7deb0acc1d5e0"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"111265131fda63479d3db0d1c9f301348e88fd25a649c2b5aeda786f2ea5d166"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_3d_condition.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"173ce2b983ca1052b57dba44467d0cb88d7ad4bcbdfbedf780194285984e213f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede68836b64d8b0ab3b2e1e7c8df7e2671b6c6e9c183db3e015991f4f8325aa4"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45a2112807eba8ecd1e1de3f257050f049f77821b9d206119fbe42ab56c16d0"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/marigold/marigold_image_processing.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbc3a0ff3aac2451391382093300506e6545886fd151f53e581ab5bc9c28643"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8ce020c0a6bbb42f95a57542897cd9883d25a5d40d449d917b2dd06a9880a7"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefd67344dd6bc59fe93f5761e44bdb3acf096f28fa10f05f12ec641f4db9c67"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4311d6049fb08bfa725f25902dbe575c6afec3082a4ddc59c8171eb18ec3fa5a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_repo.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe3287ce6753931ed13ac92b1cd2a28b93f898266ced4af3f2919852a5a7018"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_kl_kvae.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"930712b709361d244db30da0ead4aa05628d2b9e31dd057d50f5b2707f7109fc"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddpm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa93ce9bbf40121d666d1575a8abc6fef5fbe79c7cd5db534a3e51a5f114336"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/free_noise_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea3f8fe9ad227864ed956e2e748b220abc0ee8a048305376f3e38e8efcd0036"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_rae.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bb2e59c4351d76d57fa723e1414e8b9329eb04372e9e3ec4346427c30e033e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18211823dfefd78f8b5ff16f7bcec8cbb5cd5b6e639cd06c68c0f5f920800053"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c883c65df8267b9dd30a3537bf748cee5842e954539438b9d0102bc586e649"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef31dc3ec1d8b8215c5679c51e9cc0737247da65bee4b8f51c93b1d9e8acb6c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/ace_step_transformer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f35d1312a944d81b0a7aafa2a7488238c0e27ed033ee7b8a995033190af0a53"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_amused.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3428ff0204fbd6380118d952ff8d356e1d1a9fbedba0b10e83b45b252ee106e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19e4332644ff4dcd5c6e9651185f4d607a0fa2ad6998d6b908c11e70a72c335"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bacf582a8c2bba6e2bb49533ff5acbdd5c53392e57780c5d54e3384c28aa34"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/blip_diffusion/modeling_blip2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c560046ca40e3e4cd25d081bebc177b390cbe49b0aeeb79a863dea4338722315"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_2d_dreamlite.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98041443e85f504e1d5fe35c9dfd7a6cef482dfabffe164eb2b1680ee2edabed"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a226c23c0549f0dba4e4b27a12bb98cf8d136518e52225235d77ecf268ecea48"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee7bd73e6ed58d2a7e141d147fcc75f241c4733a9125b232e70ce74d69f5157"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_skyreelsv2_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f4fd6ee826f1f8a41f47e6f7e87323443d9d555dc9652e76aadf20206b367d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_longcat_audio_dit.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a5b49b7ef690df5af1a4988e1a81a5eff7b0a95173f5d6a82402b73e75610c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae1188de2ff5d73b15c724c173e8ae4f8a01e083ddcd36ac70fab9bfbcf9961"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_gligen_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f11b80ee4f63af0145f7c76647b679fd170740b022cc8152301f6da4e6ab1f0"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/adapter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a544736a607fd7bf5cdaf844c3c51a101cac1d6eb3dcc74e522c833645cfdd"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_kandinsky.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8b2cbf84388fb1d1fb47a6691dadcc48386ab875d787570d97ef44953e7d48"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/krea2/before_denoise.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9604707f84d81a6d1fbfd275da8e2002df6c5d18c468233979c355693d2d0d9e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd1df5f8bab1a892f6dd74692c3fbf5900e041cd6a794280c0b1023c883463f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_easyanimate.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c2736b46f9d956cd919edec01f8bb5e2df5066cf81ccaabf07a432208fde3e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_ddim_cogvideox.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97de96ec28071f18637b237bd6daae341726425af8346f12cdd830e5f3ed5654"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_mochi_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4ebf91455946bb936189f609e9bd67ac6b69b3f9e6996f1fd5719e287d2f43"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/omnigen/pipeline_omnigen.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff1c6dfd222b7805483ee859f1bb3841db800914b44da9f4648679ab4ab5a0e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae81b095aaca20f67656cd0d3a8468b23850e28624babc9f8cb3ab223f06a68"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_lumina2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"613a736646faec39f9a9e05f37679f2083729c05a06f5681b7d9c0ffd1a16607"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1521a202898a2bc8b3e85df0253ad067c49542e4955700d02b8e245a1af9e7f1"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_longcat_image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f924eb35a2ef56c20283108ecebcb69d75a9e1985f756e9b6eaa0d18e86fdf"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unclip/pipeline_unclip.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b71d8b87c245c0e923dd8f190542e329eca9ccaf55039216e09df33dbca2b9"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd61377f1d72e8b90b2f6110609c8b267a541d43b080e10487fbc0ea88e7ddc3"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_joyimage_edit_plus.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9ab875ffda7c2079113f0614f42800955ecb90c4ec79be002789b3a13f761a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cbc1af4b8e79ff45f3f7c999783beff5123b9ac1789b79b6ed3ab891af10bd"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_ace_step_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58fa1d4ae8144cd3dd812dc2e4f33ab3eb7d66d3f6e708f974dcdfa19f74b692"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_omnigen.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d4359964b5caaa057199658d76cf07522680beecb701b007cf5a801fce4b5c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/autoencoders/autoencoder_oobleck.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f3158079922fd259035e2243f0c0ff89916b37b2db6636ccfb3a1daae89958"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/cogvideox_transformer_3d.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c2b7e3e61a9af8290243b8ecfdcc5658d56e55f740ca41f21ad569377fc2bb"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f757ea3a33dbf5605f9d0a044dea5ca4dc073412a4440fdce0111058563b1d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/unets/unet_spatio_temporal_condition.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a60ed1eec12e38a8dafe8970765b69b1764f26cb5103e1e2bc31defdc2c817"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35b97dda4a9515dba71b9763e84d188887a74939ab225f1a8a4c2e3ccf3175c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/longcat_image/system_messages.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7e086e52e2241c255051f14f9d25410dd8e70f7206112ff009bd27f0c42725"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/unclip/pipeline_unclip_image_variation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"736f639be4feeec07ec8ca179acb7989603cb7926338f61728dbd46baaebfc30"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 124 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: scripts/convert_ms_text_to_video_to_diffusers.py, src/diffusers/models/unets/unet_kandinsky3.py, src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py, scripts/convert_ltx_to_diffusers.py, scripts/convert_ddpm_original_checkpoint_to_diffusers.py, src/diffusers/hooks/mag_cache.py, src/diffusers/models/transformers/transformer_allegro.py, scripts/convert_stable_diffusion_controlnet_to_onnx.py (and 116 more) (321 orphaned of 1009 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 1009 of the 1268 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/convert_ms_text_to_video_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"458a211c0ccc3adfeefc6b64f3a746ffdf01b96540918b6160b1e9867397e3e8"}},{"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":"src/diffusers/models/unets/unet_kandinsky3.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fd8287aabf4a95ace787b2d98d2bb502008e7a214f5aaab3e6575097d153eb"}},{"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":"src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e94279e90c4532f6762d44f690397c0faac4aa62f4bafb0ade385fde2ac3a72"}},{"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/convert_ltx_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb8d01378568aab566e7a14f1f07b2b4f504cd6ddf53d9440923f1392bc93da"}},{"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/convert_ddpm_original_checkpoint_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9fd076ff30ad210b35f9ace8364e0873e5121fb75362ae5b456f334fb0d184"}},{"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":"src/diffusers/hooks/mag_cache.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4648a748d06d72f7efcfc597c4bba4351200087993a986019032626fec01cd03"}},{"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":"src/diffusers/models/transformers/transformer_allegro.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1178af64d38f2d5b6361ade5a5fbb60ce0035699b58114178452467e9b54476"}},{"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/convert_stable_diffusion_controlnet_to_onnx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54adbbcbb78aeb162d98ba8cce18a01bae3003caabff8d8023ec63f1f0301312"}},{"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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8056dfc5e0afbf130ab947ebe22e97c592cebce049147e1f53ca15f05040d76"}},{"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":"src/diffusers/models/controlnets/controlnet_hunyuan.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8b641704e55e7b64b658c77aa86f38e181a8b0ba4f0d4500da8c847a0417d5"}},{"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":"src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd51a8a7ad5eecea6e1c7a0074d867567fb90ba3eeff002891b4a0b2755b6e6"}},{"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":"src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbbd603cdb7c30c086bf0f684b0aa1d7daf760a5150754d6e2880da83c7389f"}},{"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":"src/diffusers/pipelines/deprecated/blip_diffusion/blip_image_processing.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf68d506f53d0444aa0767bd29eb6dc3437e9d2f1d48b7c3eb8d5bfeff0233d"}},{"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/convert_rae_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae67277c6cba036979bb4dbd4ea5ecde3b958c0e2fc43a37924a986c8c3a1403"}},{"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":"src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b3310b98684f13ae30c708205e5f02c0c2582c9a6fb4f1f3094a2f6fac08d4"}},{"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":"src/diffusers/utils/remote_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9575e90e45913bf96758f22de582c9203e557188b0876caf826dfbd8d5092a90"}},{"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":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cc5458ea4c57689b39f03bf258345ff1d3a716d1fa0e4a19a9521067bf47fb"}},{"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":"src/diffusers/models/transformers/stable_audio_transformer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a2b34383d4358e8910a59cdb37c65c6cd558dd93e89f1e81b6733203c429e6"}},{"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":"src/diffusers/models/transformers/latte_transformer_3d.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"553b7522cec61e5bba389a2807e317c5b124a2cd4d05e6ebc592c1f732814504"}},{"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/convert_joyimage_edit_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63625e7779a7752ce8fda96677553d75bc7e302de2e67e30688b7301b1ad4eab"}},{"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":"src/diffusers/models/unets/uvit_2d.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"306b751f3b3d1892a3dbd29aa494a0e3490461bbc503dfb6f191c6f8953f7f58"}},{"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":"src/diffusers/hooks/pyramid_attention_broadcast.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2a14eaadf03b1f4e89070930833a93a4644fe6c0b3cdead9f93c985cb07754"}},{"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":"src/diffusers/models/transformers/lumina_nextdit2d.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a3c244be70907d12e6a3ffaa6300ee1aa82e0775ad24cd2ae1f3536525c2a0"}},{"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":"src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1152a667ce0bc21b0033d2a8b996fcba3fed52a01accc01e103facef1ab9e5c0"}},{"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":"src/diffusers/pipelines/deprecated/blip_diffusion/pipeline_blip_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a18b2a138a58fa8d175b6707ad9eb6eb0f8b881c392f716646ba6622f8040c"}},{"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/convert_ldm_original_checkpoint_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"811c8f101a54c3d39d9fa1fa2b35e42b182fcfeb4ba651b825e8611674b719ad"}},{"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":"src/diffusers/optimization.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37432b06f871f615363d8ca089b71978e04f9ae7d66780a7d63601c6eae32b10"}},{"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":"src/diffusers/modular_pipelines/stable_diffusion_3/modular_blocks_stable_diffusion_3.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e32f378676f5f3fa8a1d3346df65482c32ac164eab1ea137f59d33d4d7b1144"}},{"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":"src/diffusers/models/condition_embedders/condition_embedder_anima.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2731b70ae411f0e31681091ab9be1861c5f18e8c78a274cb3f00734c1b53380"}},{"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":"src/diffusers/pipelines/consisid/consisid_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2906079845d028cc56bd11920b89ad0d12d2c73d7ba714b3ef8d48e837d6dc3"}},{"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":"src/diffusers/hooks/taylorseer_cache.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d824901c15eec27a7072c5681f47a2099dee064381b1b99bb40b3a570c62894"}},{"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/convert_original_t2i_adapter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f44d9c2f826d2ef45e8ca55e13c8a69ed47a60f176104374f1838afdda187dc"}},{"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":"src/diffusers/pipelines/omnigen/processor_omnigen.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a1baf59779f8af7fce35f9d1b3c8cc128e723afcf7729fdf9b0586ad1a9283"}},{"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/convert_hunyuan_video_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30613e5d5d433c485d2480663dd61a68ec76b18133d0e895847352ca98559da5"}},{"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/convert_diffusers_to_original_sdxl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2daa480ad0097f8a9dddb9e029c7ea7d41956e164ee8284930a2a370a15b7451"}},{"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/convert_diffusers_to_original_stable_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38e7cb4be11ca4a127d6fb5121646786a8278fa9550a3e1dffcfaa44f43d782"}},{"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":"utils/custom_init_isort.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"200f25c6fff3bb05cd78e00da8cc0455cb6abe8e0111a5e0580eb051732b52e1"}},{"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/convert_blipdiffusion_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99b362b58fae7cd50f8394cf9f0a67054826a35257d0b2a431e82bd05c81de7"}},{"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/convert_cogview4_to_diffusers_megatron.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea4ccd838c385245bb04620be840ba3f73c03009c95a5ebd864ef4284edbf6c"}},{"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":"src/diffusers/pipelines/deprecated/audio_diffusion/pipeline_audio_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"553425dcae9138cde9b871f9ef8484451865fa13173333306c9e5da18b7c6795"}},{"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":"src/diffusers/modular_pipelines/stable_diffusion_3/inputs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9990a0453eace567788db94870c2c0ae4235c2ddc484f569e23a2b3b9a11b3b7"}},{"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":"src/diffusers/models/controlnets/controlnet_cosmos.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b643b36adb7d2c2ed209834f9e48eccf4fddce05a89edbd6ef3e8381cd79d4"}},{"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":"src/diffusers/models/transformers/transformer_cogview3plus.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac6a8e5cb5873e5a4208f76d79d5e4d33f6b282fa0586aea9694afcbbd3748c"}},{"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/convert_cogvideox_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7e83dd225d083c118734fd450def0aa02379397db031417648dd65bdadbf50"}},{"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/convert_anima_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b052dd515555ebafa603ccc75e2f01258b8d6a0e945d0661fc9a52988c4b4f59"}},{"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/convert_hunyuandit_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d08a0d4b39275c6377b00addc04f0d86f833cdf67c548239cbd252a3b8178f8"}},{"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/convert_ovis_image_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42eae9a40a5e3fad307cff1020202aee2634da0dd27dd89c1c55800d7ee9dd2e"}},{"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":"src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe6418fd7e3bf20665525f321cec3322fa6d1bcb27764d64bce7eceb9b0b636"}},{"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":"utils/check_inits.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f53bb36667912f92839986559e6bbd58b1870f16a9910e9c91ae17b550ff20"}},{"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":"src/diffusers/models/controlnets/multicontrolnet_union.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ac5d5597792c125f297f24539192e2553a6a5fe0a6744440b3318f0dbf19b5"}},{"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/convert_hunyuandit_controlnet_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2845a424ba297ebddf76527f6529a58db24ef4dbdf260a2f8cb1870168f92b"}},{"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":"src/diffusers/hooks/first_block_cache.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1cd7876f200b9ee9a1c54e077430432451442049a3e00f13882aa16c10b1fa"}},{"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/convert_stable_audio.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c954785c095bff4e44945266d07d4bc5441df386e6a37be1d46c64957db9346"}},{"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/convert_cogview4_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"679207089d3f5a400756a8523daee1a548b53723fa56f03f4acee5092382e90d"}},{"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":"src/diffusers/pipelines/visualcloze/visualcloze_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3fd0d0e69cf8e3b1477d5b8e2bbdf9fe8562ec6da50cfb6cc684bd57a99ddd"}},{"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":"src/diffusers/models/controlnets/controlnet_sana.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e99985ed648a02ed3a62b4cd813708e02c2fed239195f9d1bdaa5112adbd91f"}},{"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/convert_dance_diffusion_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35b14c49ad71a0bc2ac6a23ad212bd2d19da4ae2e153970b8af544fc2380e5b"}},{"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/convert_cogview3_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb5ec4b4bc5e7bd6444381cbf26fa985bc54c1d9664245353163f5bf7197394"}},{"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":"src/diffusers/hooks/layerwise_casting.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6ccc04b8d1af9220716aa4bdc3f4c26433a95bb1a3165501c97d62e9002d86"}},{"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":"src/diffusers/utils/logging.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0984fb894eea96040e06a7e98a02df562ea244f2ef7acf7b110b52853c0c408"}},{"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":"src/diffusers/schedulers/scheduling_amused.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"592cb707270d8b1e107223580a9b23cfe6d508bf3ef29603cef1c0bf2df3fba2"}},{"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/convert_sana_controlnet_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a0e58f8e9a283f8f06f22d482194e19eea12ddc9cb9175ad9dc65f1bba5cab"}},{"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":"src/diffusers/pipelines/deprecated/blip_diffusion/modeling_ctx_clip.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0b9d07bc299b43553b3e98e43c082a1bd6623655c115fea82273e69a91f189"}},{"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/convert_ncsnpp_original_checkpoint_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5157b556404584c3072b1aaa5d8c84ab65963bb465078147a0ee21cfa85332"}},{"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":"src/diffusers/modular_pipelines/anima/denoise.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6673ee09dcf70cde5506228369aa2957d642dca5afa2f195a17dace05abe32f9"}},{"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/convert_longcat_audio_dit_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea469069dd50f2f083299a2974085271679ccdf6aa81706077b436a65c10868"}},{"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":"utils/check_copies.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f16f7b6db2b3234573c50910f12ac61c5037b3e8f1ab5824e0d5c677df02ec"}},{"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/convert_vae_pt_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f146103a9781e56756bdf0c0908411b812d79cec4d10903d1dbdcf62937cf06c"}},{"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":"src/diffusers/modular_pipelines/stable_diffusion_3/denoise.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f52c4383d688a1532a73f9d4aa36204d54613bb28e8ab833a7797e08a2e75d"}},{"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":"src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5cedc8f0b707d46b62296988fa4b606231c338b3bf61e466ad39c72d8cb5ca3"}},{"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":"src/diffusers/models/autoencoders/autoencoder_asym_kl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11cccdaf7a91c40a4e7d62556b0a0ae5fadd3098fb0ecd6cfe283812259b008"}},{"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":"utils/check_table.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc883ed8926408e6407b28ef3220c36cd6764f896f35ccacc13d4c43485195ca"}},{"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/convert_omnigen_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6190f268acc08152eac2b037eed270de409cd2dab46915522e9e03871a5bd2"}},{"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":"src/diffusers/loaders/transformer_flux.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65370ff1e6de82e48650d50c7a15ac7779dae5975327e758eace65548d865fa5"}},{"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":"src/diffusers/pipelines/ddim/pipeline_ddim.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5272212a3744215d68fa8c0b5009351c6239edc0b0825498b8cb24a7d1ea560d"}},{"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/convert_lumina_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e05d51be8fe0549271c33aa0188ec5246d2f1d13ee7e2f17c688b8faf6b581f"}},{"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/convert_original_stable_diffusion_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb883948d841f0907f507f4d1ac05873d7e920746a8c68a3ce82a2d1cea48b2"}},{"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":"utils/check_doc_toc.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0c76028005cf607c5916c250b30e387a7a122ffc1b0da1eaaac1194d876853"}},{"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/convert_asymmetric_vqgan_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9e5b1af3ae1ea104d19d4772c89454bab11176d77badc39d50e262a9f60169"}},{"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":"src/diffusers/modular_pipelines/krea2/modular_blocks_krea2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad6450e2bb49df27358d7ef411a6ed29fc6d56d70e712fbc0e32610591af9b0"}},{"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":"src/diffusers/pipelines/deprecated/dance_diffusion/pipeline_dance_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0155044e9904b0eaae8928e8a28138820ff96b212df03f73019a7907ba725474"}},{"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":"src/diffusers/modular_pipelines/krea2/modular_blocks_krea2_turbo.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d28e13b2f4a8983a1461d060eecc6a53ad1662924985e8106ffa1ac84d1ee6b"}},{"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":"src/diffusers/hooks/text_kv_cache.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2133327bd6578e1611cae7c39e904fe1d86117a978e789106b0650d7ace3a10e"}},{"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":"src/diffusers/guiders/magnitude_aware_guidance.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cbfe77ec64a58b89003827fbe350d90351f5e741ef534e946c711f617b7891"}},{"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":"utils/check_dummies.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7994693aaed49f9cc267bf8be09ad289461e59acaa2313a910f42a0bc9548aff"}},{"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":"src/diffusers/loaders/unet_loader_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"149de1c25bc1b8b696310ee87a508558c890438672f8fdf9d4b8319838c80e0a"}},{"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":"utils/release.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c98e2110d45935209935b0359b9b0cfd497044fa27760a5280d96ecaff5665"}},{"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":"src/diffusers/experimental/rl/value_guided_sampling.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c15093764142b984ffc3078ca643b774577a4ecf432901396cd13d067b6140"}},{"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/generate_logits.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ff651a7616beb1bfa97cc95bd453b54cbd72b19d2d035c914871fe7e9eba45"}},{"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":"src/diffusers/pipelines/stable_diffusion/safety_checker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f09673262d6c0b4254e6f68f35300b33b876d99e9fee1eddd29274173b32e0a"}},{"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":"src/diffusers/pipelines/deprecated/audio_diffusion/mel.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af19401a8b8b2da7f735283d25d7fd2c3ede75d6097af594c5e0b6f3c3fa6541"}},{"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/convert_anyflow_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcf730d0ff4003cfb74a9e891aab879a36796dcb9cfd1cf68f90c105dec548f"}},{"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":"src/diffusers/pipelines/deprecated/latent_diffusion_uncond/pipeline_latent_diffusion_uncond.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6ad3ae852e32650d4bcb760b7baa417dd496f98fac3478fdfc378298245bae"}},{"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":"src/diffusers/pipelines/deprecated/alt_diffusion/modeling_roberta_series.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9582c9aae4330a034e3bd39788274ca60adcd5f1927802e6fdbf80012dc37edc"}},{"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":"src/diffusers/pipelines/deprecated/stochastic_karras_ve/pipeline_stochastic_karras_ve.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d845f5cc0c0d182f74b39a388a3663a827f0310bcb46701d336dedc8d815899"}},{"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":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/safety_checker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f4ac83e55597a73df3cdc9a0bb6002cb9fca11b6f3b2f442e40341a1ccb062"}},{"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/convert_lora_safetensor_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fcfc7b4f65a8beca9b66ec489e6cd76d344132e2f7e423dc0193ff3909c04e"}},{"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":"src/diffusers/quantizers/autoround/autoround_quantizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62152459f08271dcd7678b72a11dc5f57a8300b658b8965f38103cb09c038390"}},{"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":"src/diffusers/pipelines/joyimage/image_processor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2808e1f7e8d923107ff6a78bbde1f4b4627cbb2c08e1a5111c21e5897c38f2c"}},{"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":"src/diffusers/utils/outputs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b324b6e24fc1a8ad2eec0dc6c1741557cbc8bf999a546201859341b55ce2b4d"}},{"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":"src/diffusers/pipelines/deprecated/pndm/pipeline_pndm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f1f7c669ccbfe9ed85e40373cbeb14d7f4b9a13389e00d7beeb91284add316"}},{"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":"src/diffusers/pipelines/deprecated/score_sde_ve/pipeline_score_sde_ve.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b5438a370638bb3707088a68e49abbd44bb26f0317c9668359fb06712a1acb"}},{"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/convert_stable_diffusion_controlnet_to_tensorrt.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"836c1d8a114ca4d5acb680d4247b9642cde624fc2e2c43fa6add9d1e3b249003"}},{"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":"src/diffusers/modular_pipelines/anima/decoders.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0027f4736d4d2e8774045e6b8fe4b595f9eb27f35dd03cef098832b12c50dcea"}},{"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":"src/diffusers/utils/versions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d125f45cc17ee26739a8ce0db3889c656b2545493741a84fa0766217ec3bb57"}},{"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":"src/diffusers/pipelines/deprecated/unclip/text_proj.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89b59f363c419af6c74f1f27766dddd1af255dfa85991c7e56610c25dec2985"}},{"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":"src/diffusers/schedulers/deprecated/scheduling_sde_vp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"603222a6ac13b0e06c9af3b43ea547823ffc56b86d4d47086cea9613b325c843"}},{"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/convert_original_controlnet_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8366cb791aa6b3e574c002915d9332ec6aed89f580942411057c87efa3c117e6"}},{"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/convert_vae_diff_to_onnx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"371f81e7f69926da7b571a6670ea9e9bcf29722f8f32f9493d7d9405cc43dd3b"}},{"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/change_naming_configs_and_checkpoints.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f79f39953ca6f64fb5c14e4d82c4f20c8aa11e8beaff13ab3d456ac7b96881b"}},{"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/convert_models_diffuser_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f587a1eba25d54e5d6a7950313acaf7cc38a5f7998254f9449089e39acec4f5e"}},{"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/convert_flux_xlabs_ipadapter_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"945d894dbab0cade1e1fe326116c3bd5acb3a9fa5c27d3518fc53cda6c020234"}},{"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":"src/diffusers/utils/typing_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"308b2c5faa30531b96aa2eadb0faaee49267eea3448a9851d7a467f97ea412ba"}},{"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":"src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48762930e3b647c790cd5fea43342190fedfba2ea5693a796196b0a2512f97d9"}},{"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/convert_kandinsky3_unet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb60c083a9745c45b611346db27e94c96fa1ff48df22b87def46fa692197b2ae"}},{"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":"src/diffusers/pipelines/controlnet/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a97fb029ec821d9274d5040182377e11b42019229c0e949485ffec8efae291"}},{"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":"utils/check_config_docstrings.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d739acea818f988806d3f8ef4349345c8c433b525d4b962e204bb1558d0b8f"}},{"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":"utils/overwrite_expected_slice.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"278cbece48d82061250cf4adb51101edf7eb13708b29f74098c931c4747ade27"}},{"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":"src/diffusers/modular_pipelines/stable_diffusion_3/decoders.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"988d1b44fd9b3a0158ac1ded3c9573625e63b4c462d5c9c254e2625166a7f0cc"}},{"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/convert_animatediff_sparsectrl_to_diffusers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffcedfed0ec692a7443280fbd11976a4f69e0d9d3fd995f18eb021e6b7aedb0"}},{"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":"src/diffusers/pipelines/deprecated/stable_diffusion_safe/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"630f502f24d9faeaab8606c3f2aca201a8c4d67b1597147c9a65a0a784bcb51a"}},{"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":"src/diffusers/pipelines/deprecated/paint_by_example/image_encoder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"219b706f2737ce260355460b73598ce7389d9b61c68e0bf9d0ddf716b6e8a192"}},{"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":"src/diffusers/pipelines/cosmos/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c460bab5d60399f21cbca55f7cab5ff98774f2d2428b747b05b0093b4b66080b"}},{"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":"utils/print_env.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5347e40d1068c7c1918fac88a7642d3eb0a158c3278f15674a735e0aebbdb193"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: pipeline_ltx.py \u2194 pipeline_ltx_image2video.py: \u0060src/diffusers/pipelines/ltx/pipeline_ltx.py\u0060 and \u0060src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py\u0060 change together 82% of the time (9 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u006005c8b42b\u0060 LTX 0.9.7-distilled; documentation improvements (#11571); \u0060c97b709a\u0060 Add CacheMixin to Wan and LTX Transformers (#11187); \u00602e83cbbb\u0060 LTX 0.9.5 (#10968) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx/pipeline_ltx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb938dc7d08cca5f5b56ab2d6850cbd70301be747af1e0a1b4fcfb864e59784"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: scheduling_deis_multistep.py, scheduling_dpmsolver_multistep.py, scheduling_dpmsolver_multistep_inverse.py, scheduling_dpmsolver_singlestep.py, scheduling_sasolver.py, scheduling_unipc_multistep.py: 6 files \u2014 \u0060src/diffusers/schedulers/scheduling_deis_multistep.py\u0060, \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep.py\u0060, \u0060src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py\u0060, \u0060src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py\u0060, \u0060src/diffusers/schedulers/scheduling_sasolver.py\u0060, \u0060src/diffusers/schedulers/scheduling_unipc_multistep.py\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 15 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e1c25ffab9854ee847d578e88c92febc29b4d925a0d9306f57425a332e7e20"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: pipeline_stable_diffusion_xl.py \u2194 pipeline_stable_diffusion_xl_img2img.py: \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py\u0060 change together 76% of the time (37 of the 49 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 37 shared commits counted here, the most recent 3 are \u0060f2d348d9\u0060 Remove \u0060negative_*\u0060 from SDXL callback (#10203); \u0060544710ef\u0060 diffusers#7426 fix stable diffusion xl inference on MPS when dtypes s\u2026; \u00602026ec0a\u0060 Interruptable Pipelines (#5867) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9421ad0337b7902bda013791539dc2c5d4e66cbb8de390ff3b46e706aa25670"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: pipeline_stable_diffusion_xl_inpaint.py \u2192 pipeline_controlnet_sd_xl.py, pipeline_stable_diffusion_xl.py, pipeline_stable_diffusion_xl_img2img.py, pipeline_stable_diffusion_xl_instruct_pix2pix.py: \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py\u0060 changes together with 4 other files \u2014 \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py\u0060, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py\u0060, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py\u0060, \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4533aaffd03539afedf8b35548c64abe346cc72fb58c46c78f624354fced6545"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: pipeline_ddim.py \u2194 pipeline_ddpm.py: \u0060src/diffusers/pipelines/ddim/pipeline_ddim.py\u0060 and \u0060src/diffusers/pipelines/ddpm/pipeline_ddpm.py\u0060 change together 72% of the time (23 of the 32 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 23 shared commits counted here, the most recent 3 are \u0060679c7746\u0060 [tests] refactor d series pipeline tests. (#14630); \u00609c7e2051\u0060 Comprehensive type checking for \u0060from_pretrained\u0060 kwargs (#10758); \u00608331da46\u0060 Bump to 0.12.0.dev0 (#1771) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ddim/pipeline_ddim.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6fc66395e9299eeea204002a7086c6ca9abe17d3de8e9b633927196f9a9bcd"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: pipeline_wan.py \u2194 pipeline_wan_i2v.py: \u0060src/diffusers/pipelines/wan/pipeline_wan.py\u0060 and \u0060src/diffusers/pipelines/wan/pipeline_wan_i2v.py\u0060 change together 71% of the time (10 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060f5b6b662\u0060 [wan] fix wan 2.2 when either of the transformers isn\u0027t present. (#13\u2026; \u0060a58d0b9b\u0060 Fix Wan/WanI2V patchification (#13038); \u0060cb8e61ed\u0060 [wan2.2] follow-up (#12024) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/wan/pipeline_wan.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d57b2e6c1cf1823312dff54cdb7f91a729fb49acc3619b37d5e335f9bccf06f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: pipeline_alt_diffusion.py \u2194 pipeline_stable_diffusion.py: \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py\u0060 change together 71% of the time (27 of the 38 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 27 shared commits counted here, the most recent 3 are \u006057fde871\u0060 offload the optional module \u0060image_encoder\u0060 (#6151); \u00602d94c783\u0060 [Core] feat: enable fused attention projections for other SD and SDXL\u2026 (at that commit the file was still \u0060src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion.py\u0060); \u00600a08d419\u0060 [Feature] Support IP-Adapter Plus (#5915) (at that commit the file was still \u0060src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion.py\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6250c8450d1be6318b7920ac3a69ede52e15515f78578f9827c78889b3ab63"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: pipeline_stable_diffusion_img2img.py \u2192 pipeline_alt_diffusion_img2img.py, pipeline_cycle_diffusion.py, pipeline_stable_diffusion_inpaint_legacy.py, pipeline_stable_diffusion_inpaint.py: \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py\u0060 changes together with 4 other files \u2014 \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py\u0060, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py\u0060, \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py\u0060, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1239ca03d5f78556196b8f5441205eb4e9bd1ced463e0494c71f85f17f98c644"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: pipeline_cycle_diffusion.py \u2194 pipeline_stable_diffusion_inpaint_legacy.py: \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py\u0060 change together 66% of the time (21 of the 32 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 21 shared commits counted here, the most recent 3 are \u0060adcbe674\u0060 [refactor]Scheduler.set_begin_index (#6728); \u0060ca783a0f\u0060 [Bug fix] Make sure correct timesteps are chosen for img2img (#3128) (at that commit the files were still \u0060src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint_legacy.py\u0060); \u00605b6582cf\u0060 [Model offload] Add nice warning (#2543) (at that commit the files were still \u0060src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint_legacy.py\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03b7c5a9f5d65c55238f0c8b3f844b9add37ffeaf5cf9136583c2db4db0daf7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: pipeline_animatediff.py \u2194 pipeline_animatediff_video2video.py: \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff.py\u0060 and \u0060src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006016a93f1a\u0060 [core] FreeNoise (#8948); \u006004f4bd54\u0060 [Core] introduce videoprocessor. (#7776); \u006036369904\u0060 [refactor] Fix FreeInit behaviour (#7410) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8ddbee47f3a5214d3e38b1712b30a2a910e950ff26b0bcd4c2e92ff5323c68"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: __init__.py \u2194 __init__.py: \u0060src/diffusers/models/__init__.py\u0060 and \u0060src/diffusers/pipelines/__init__.py\u0060 change together 62% of the time (76 of the 123 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 76 shared commits counted here, the most recent 3 are \u006053788704\u0060 Add RFD4-Proteina (#15088); \u00606256aa76\u0060 Add Qwen-Image 2.1 (#14804); \u0060408ce8db\u0060 feat: add JoyImage edit plus (#14032) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4418b98921fb316938e368b9add4f993d6accadcfa0fd5b2f0440351faee18b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: pipeline_stable_diffusion_3_img2img.py \u2194 pipeline_stable_diffusion_3_inpaint.py: \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py\u0060 change together 62% of the time (8 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060051c8a1c\u0060 Fix Stable Diffusion 3.x pooled prompt embedding with multiple images\u2026; \u00609c7e2051\u0060 Comprehensive type checking for \u0060from_pretrained\u0060 kwargs (#10758); \u00600785dba4\u0060 [Docs] Add negative prompt docs to FluxPipeline (#10531) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02073be820f73c3d9208b9b6fb559bec0f1d4a516f8c83c6f794e4a8e67a1690"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: pipeline_alt_diffusion_img2img.py \u2194 pipeline_cycle_diffusion.py: \u0060src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py\u0060 and \u0060src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py\u0060 change together 59% of the time (19 of the 32 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 19 shared commits counted here, the most recent 3 are \u0060e550163b\u0060 [Vae] Make sure all vae\u0027s work with latent diffusion models (#5880) (at that commit the files were still \u0060src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py\u0060); \u0060b7b1a30b\u0060 refactor prepare_mask_and_masked_image with VaeImageProcessor (#4444) (at that commit the files were still \u0060src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py\u0060); \u0060ca783a0f\u0060 [Bug fix] Make sure correct timesteps are chosen for img2img (#3128) (at that commit the files were still \u0060src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11793e678d0a1e4723d293dc805316cd2187c7388a466ab1cf856cffc9f43a19"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: normalization.py \u2192 __init__.py, __init__.py, __init__.py: \u0060src/diffusers/models/normalization.py\u0060 changes together with 3 other files \u2014 \u0060src/diffusers/__init__.py\u0060, \u0060src/diffusers/models/__init__.py\u0060, \u0060src/diffusers/pipelines/__init__.py\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/models/normalization.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed72e3b7adeb4bd5f3708f8f71b69c8d12b157a0b8ff3a1bf70c87bfdc4eddd7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: pipeline_text_to_video_synth.py \u2194 pipeline_text_to_video_synth_img2img.py: \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py\u0060 and \u0060src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006004f4bd54\u0060 [Core] introduce videoprocessor. (#7776) (at that commit the files were still \u0060src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py\u0060 and \u0060src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py\u0060); \u0060cd6e1f11\u0060 [docs/nits] Fix return values based on \u0060return_dict\u0060 and minor doc up\u2026 (at that commit the files were still \u0060src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py\u0060 and \u0060src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py\u0060); \u00607337eea5\u0060 [refactor] unnecessary lines in decode_latents in video pipelines (#6\u2026 (at that commit the files were still \u0060src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py\u0060 and \u0060src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_synth.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bbea0d2a37ffb93b1d0f023754c26bd55ec418acc4a5689adffe00a6a5b0d6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: pipeline_controlnet_inpaint.py \u2192 pipeline_controlnet.py, pipeline_controlnet_img2img.py, pipeline_stable_diffusion_inpaint.py: \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py\u0060 changes together with 3 other files \u2014 \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet.py\u0060, \u0060src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py\u0060, \u0060src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"095c19196a291a542b25efc58c63bac8ea3475c7bf3282b05223e36ff0ec2971"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: pipeline_stable_diffusion_xl_img2img.py \u2194 pipeline_stable_diffusion_xl_instruct_pix2pix.py: \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py\u0060 and \u0060src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py\u0060 change together 56% of the time (14 of the 25 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u0060544710ef\u0060 diffusers#7426 fix stable diffusion xl inference on MPS when dtypes s\u2026; \u00606c5f0de7\u0060 Support latents_mean and latents_std (#7132); \u0060e550163b\u0060 [Vae] Make sure all vae\u0027s work with latent diffusion models (#5880) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1967af033ff496b1473eb68b0c29bdf935668e612d9320d671339f2025500440"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc682cd7167c2c692b624e54d299d32b2ea2b5b3eb72f5516f0dfab9c0ce991d"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe274ba5adebde25ca0b3db842e44cbb1aaeb7cfecfbb7215cd452596ba1f4c2"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"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":"M4","level":"note","message":{"text":"README/code drift: docs/source/en/installation.md names Python 3.10 or later, but setup.py:287 requires \u0060python_requires=\u0022\u003E=3.11.0\u0022,\u0060: the package does not install on Python 3.10. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/source/en/installation.md"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"021fb0add9e59e79328336cc94c511156f06e6e9088f39ae650b4532a8479aa0"}},{"ruleId":"P3","level":"warning","message":{"text":"SAST runs, but gates no merge: \u0060codeql.yml\u0060 run(s) a static-analysis scan, but no workflow that runs one is triggered by a pull request (or a merge queue, or an unfiltered push) \u2014 the scan fires on a schedule or a manual dispatch only. A vulnerable change therefore merges clean and is reported on the next scheduled run, by which time it is on the default branch and the only remedy is a follow-up fix. Add the pull-request trigger to the workflow that runs the scan so the finding arrives before the merge rather than after it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"73211886541038635ced0208da9cedd27ed1caa9132fd6aa5e44d2976a4de6d6"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch pip: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060pip\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf68ee1ea2969cbbdae4336ca738b5320c565628ea6ee894219d523831dd0f17"}},{"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: \u0060\u0022.\u0022.join(key.split(\u0022.\u0022)[-2:]) in attn_keys or \u0022.\u0022.join(key.split(\u0022.\u0022)[-3:]) == proj_key\u0060 appears character-identically in 2 files \u2014 scripts/convert_original_audioldm2_to_diffusers.py, scripts/convert_original_musicldm_to_diffusers.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/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d296c68fd727fa24d3f6afb0e7297a99cd1c655527e0629ddf3db54c6b343d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022.resample.\u0022 in key or \u0022.time_conv.\u0022 in key\u0060 appears character-identically in 4 files \u2014 scripts/convert_joyimage_edit_to_diffusers.py, scripts/convert_skyreelsv2_to_diffusers.py, scripts/convert_wan_to_diffusers.py, src/diffusers/loaders/single_file_utils.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/convert_joyimage_edit_to_diffusers.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"f318a2c3e171c25671bde48ccbd24b694f421e6e8c1c1656e830a56f891b41ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022.weight\u0022 not in key and \u0022.bias\u0022 not in key\u0060 appears character-identically in 3 files \u2014 scripts/convert_ltx2_to_diffusers.py, scripts/convert_wan_to_diffusers.py, src/diffusers/loaders/single_file_utils.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/convert_ltx2_to_diffusers.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4945d4e1a3f8c36674bab9d3f554f232d3a24c0bd6bf7e3f1ee839876231fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022.weight\u0022 not in key and \u0022.bias\u0022 not in key and \u0022.scale\u0022 not in key\u0060 appears character-identically in 2 files \u2014 scripts/convert_flux2_to_diffusers.py, src/diffusers/loaders/single_file_utils.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/convert_flux2_to_diffusers.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a1efb7a4dfa5556edb042d6a2d6848fda3aab71e0a221f88d6f8b1f95b0e24"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022I2V\u0022 in args.model_type or \u0022FLF2V\u0022 in args.model_type\u0060 appears character-identically in 2 files \u2014 scripts/convert_skyreelsv2_to_diffusers.py, scripts/convert_wan_to_diffusers.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/convert_skyreelsv2_to_diffusers.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c305a23a473cb3315c6c9ee9638d55a5a8d6b89d661677660751ddb3b957d5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022_internal_dict\u0022 in self.__dict__ and hasattr(self.__dict__[\u0022_internal_dict\u0022], name)\u0060 appears character-identically in 2 files \u2014 src/diffusers/configuration_utils.py, src/diffusers/models/modeling_utils.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":"src/diffusers/configuration_utils.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"5364a959464b0685b4839a29da8925dd79bf563da00b68bb1ca59e3dfd88140d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022adapter_names\u0022 not in supported_merge_kwargs and adapter_names is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/loaders/lora_base.py, src/diffusers/loaders/peft.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":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"71161236667dfa09d5df0422fe677fe2132d8309aed3f9c50d9e69d9f2a2437e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022attentions\u0022 in new_path and \u0022to_\u0022 in new_path\u0060 appears character-identically in 4 files \u2014 scripts/convert_svd_to_diffusers.py, scripts/convert_unidiffuser_to_diffusers.py, scripts/convert_zero123_to_diffusers.py, src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.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/convert_svd_to_diffusers.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccb695f0620497b8abe1e1c98f6837f2882a25326f327a39fa2f2e604147d63"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022attn2\u0022 in name and place_in_unet != \u0022mid\u0022\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py, src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.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":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac54a49348f7e51054464d415f498e86aec5f95b34d709b58b04ee17b5bd115"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022cpu\u0022 in device_map.values() or \u0022disk\u0022 in device_map.values()\u0060 appears character-identically in 2 files \u2014 src/diffusers/quantizers/modelopt/modelopt_quantizer.py, src/diffusers/quantizers/torchao/torchao_quantizer.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":"src/diffusers/quantizers/modelopt/modelopt_quantizer.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d0bedbe1405040ea5a87dd90ebb1763940a4877cde1763e583b65c888a2e62"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022image_embeds\u0022 not in added_cond_kwargs or \u0022hint\u0022 not in added_cond_kwargs\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"099d0ec7cc07f090ac25eb91ea0bf8b64634b97ed69dc148fe8a88d9b0653488"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022input_hint_block\u0022 in layer and (\u0022input_hint_block.0\u0022 not in layer) and (\u0022input_hint_block.14\u0022 not in layer)\u0060 appears character-identically in 2 files \u2014 src/diffusers/loaders/single_file_utils.py, src/diffusers/utils/state_dict_utils.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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad908fbdc58030494a6811f560a30dd83750ce75e27c521964daedb9ded661a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022model\u0022 in original_config and \u0022params\u0022 in original_config[\u0022model\u0022] and \u0022scale_factor\u0022 in original_config[\u0022model\u0022][\u0022params\u0022]\u0060 appears character-identically in 2 files \u2014 scripts/convert_zero123_to_diffusers.py, src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.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/convert_zero123_to_diffusers.py"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cdd90f6396e28eed7490725aa6f00901d031bf2d33e8b79983ff6ca47b50333"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022num_classes\u0022 in unet_params and isinstance(unet_params[\u0022num_classes\u0022], int)\u0060 appears character-identically in 2 files \u2014 src/diffusers/loaders/single_file_utils.py, src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cdc0faa71372dbbc8aed140da02ce26da809d546b12015c7dc0055b73aff54"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022parameterization\u0022 in original_config[\u0022model\u0022][\u0022params\u0022] and original_config[\u0022model\u0022][\u0022params\u0022][\u0022parameterization\u0022] == \u0022v\u0022\u0060 appears character-identically in 4 files \u2014 scripts/convert_original_audioldm2_to_diffusers.py, scripts/convert_original_audioldm_to_diffusers.py, scripts/convert_original_musicldm_to_diffusers.py, src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.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/convert_original_audioldm2_to_diffusers.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a40852562efd05ec434ada5c288c2834351dc7648c7b51dbc21583d58fae99"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022unet_config\u0022 in original_config[\u0022model\u0022][\u0022params\u0022] and original_config[\u0022model\u0022][\u0022params\u0022][\u0022unet_config\u0022] is not None\u0060 appears character-identically in 3 files \u2014 scripts/convert_zero123_to_diffusers.py, src/diffusers/loaders/single_file_utils.py, src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.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/convert_zero123_to_diffusers.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb697f0a068cdcdba916db85d50f913c5fdadec8f4fdce4a7cafc7c0bce3b435"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060((stg_scale \u003E 0.0) or (audio_stg_scale \u003E 0.0)) and not spatio_temporal_guidance_blocks\u0060 appears character-identically in 6 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f5da88c0a653384674372425c9c1c8e3765338ded8e99b7cacae11c022dd5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(config[\u0022num_class_embeds\u0022] is not None) and (\u0022label_emb.weight\u0022 in unet_state_dict)\u0060 appears character-identically in 2 files \u2014 src/diffusers/loaders/single_file_utils.py, src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1b1e122f3038cc139157cbc4f8e06544c0c92c11118e8d29448a9994001e65"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(i \u002B 1) \u003E block_state.num_warmup_steps and (i \u002B 1) % components.scheduler.order == 0\u0060 appears character-identically in 13 files \u2014 src/diffusers/modular_pipelines/cosmos/denoise.py, src/diffusers/modular_pipelines/flux/denoise.py, src/diffusers/modular_pipelines/flux2/denoise.py, src/diffusers/modular_pipelines/flux3/denoise.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":"src/diffusers/modular_pipelines/cosmos/denoise.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7903f721f0146ca1961c849d7fe844e3c473aec3898dcb4ebfcfa117d0fc7c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(i \u002B 1) \u003E num_warmup_steps and (i \u002B 1) % components.scheduler.order == 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/anima/denoise.py, src/diffusers/modular_pipelines/helios/denoise.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":"src/diffusers/modular_pipelines/anima/denoise.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"017383c3b4166fd0362ee86807c1ea3422217ac5c03bf664425cb8b154cd8d3d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(i \u002B 1) \u003E num_warmup_steps and (i \u002B 1) % self.inverse_scheduler.order == 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py, src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.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":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"45dea56639b7a39dd21b4126be4188e6bc79030856c3209d2d824dad4a171156"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(i \u002B 1) \u003E num_warmup_steps and (i \u002B 1) % self.scheduler.order == 0\u0060 appears character-identically in 203 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"0005357dafddac0106bbd838142c0e85649f7275c552d0bd54a26d36f21c0035"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(num_embeds_ada_norm is not None) and norm_type == \u0022ada_norm\u0022\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/attention.py, src/diffusers/models/transformers/transformer_2d_dreamlite.py, src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.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":"src/diffusers/models/attention.py"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"766891c1b0cc355d6b6725f8e2d550f8353ca4658a6ece86c9e42057685bd367"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(num_embeds_ada_norm is not None) and norm_type == \u0022ada_norm_zero\u0022\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/attention.py, src/diffusers/models/transformers/transformer_2d_dreamlite.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":"src/diffusers/models/attention.py"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2aa2ef514126e1984828b2e83f5b22ff2d00e3f0a00140a720f6bd22c4748f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(self._guidance_scale \u003E 1.0) or (self._audio_guidance_scale \u003E 1.0)\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b5e862362ddbc8b17c96d23e3d0f6df1f015ce6ec126e7385fa24252912d0d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(self._modality_scale \u003E 1.0) or (self._audio_modality_scale \u003E 1.0)\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b90f5c867c111d705b7d6cfa3aaa4fb556175e3026280a547e4716995bbeed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(self._stg_scale \u003E 0.0) or (self._audio_stg_scale \u003E 0.0)\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"43832df819033d213726e288d6d584aaef9a8478b13b9900d651c24bc06014f0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(self.step_index == len(self.timesteps) - 2) and self.config.lower_order_final and len(self.timesteps) \u003C 15\u0060 appears character-identically in 5 files \u2014 src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_deis_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.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":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f5be1f1cebff2d742fee16839ea06f683e237d51b5544085f93aa35dd3363a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060add_spatial_upsample or add_temporal_upsample\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"300726fc673b5929757c73fbeb7ee680696c45cf40b747137190e2b9cbb8a32e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060addnoise_condition \u003E 0 and valid_interval_start \u003C prefix_video_latents_frames\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.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":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"68880ffbb1d7c2190636ca1117c143d7542768fce6ac96bbdc7c35edca2cf17a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060algorithm_type not in [\u0022dpmsolver\u002B\u002B\u0022, \u0022sde-dpmsolver\u002B\u002B\u0022] and final_sigmas_type == \u0022zero\u0022\u0060 appears character-identically in 3 files \u2014 src/diffusers/schedulers/scheduling_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py, src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.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":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"79de259dbff1c0a5019dcd45fd84327e759bac60b71e4f3665235bd385887c9d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args.modular_repo_id or args.output_path\u0060 appears character-identically in 2 files \u2014 scripts/convert_minimax_h3_to_diffusers.py, scripts/convert_pan2_to_diffusers.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/convert_minimax_h3_to_diffusers.py"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"efcdc283faf4e228c79f509927552e327fee80087f708cf5916906d78e213780"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args.orig_ckpt_path is None or args.orig_ckpt_path in ckpt_ids\u0060 appears character-identically in 2 files \u2014 scripts/convert_sana_to_diffusers.py, scripts/convert_sana_video_to_diffusers.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/convert_sana_to_diffusers.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5f5cd720b1818b397ceaf1d8588cdaa6b44f9f6f800ac55b321c66ed8b9f6b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args.transformer_ckpt_path is not None and args.vae_ckpt_path is not None\u0060 appears character-identically in 2 files \u2014 scripts/convert_hunyuan_video_to_diffusers.py, scripts/convert_joyimage_edit_to_diffusers.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/convert_hunyuan_video_to_diffusers.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8f7c75a3ea390eefc62af313572f9864e7c070b3524f15c18b2cef00a5b778"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attention_mask is not None and attention_mask.ndim == 2\u0060 appears character-identically in 11 files \u2014 src/diffusers/models/controlnets/controlnet_sana.py, src/diffusers/models/controlnets/controlnet_z_image.py, src/diffusers/models/transformers/pixart_transformer_2d.py, src/diffusers/models/transformers/sana_transformer.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":"src/diffusers/models/controlnets/controlnet_sana.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d05a70ac2a2ebe487b5fc118c3f04c8cec1f4ed0b1a8f674175b1b8bfec156"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attention_mask is not None and attention_mask.shape != prompt_embeds.shape[:2]\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py, src/diffusers/pipelines/stable_audio/pipeline_stable_audio.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":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"52589057ac35e4a520dd21d790f1fd177ecb71f10833de2705a4a75b417fc73d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attention_paths_to_split is not None and new_path in attention_paths_to_split\u0060 appears character-identically in 12 files \u2014 scripts/convert_ddpm_original_checkpoint_to_diffusers.py, scripts/convert_i2vgen_to_diffusers.py, scripts/convert_ldm_original_checkpoint_to_diffusers.py, scripts/convert_ms_text_to_video_to_diffusers.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/convert_ddpm_original_checkpoint_to_diffusers.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f974299b501cb48d3b59ea5a079881d2229d1e78ecc104d185a22ae3b16bfdbc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attention_type == \u0022gated\u0022 or attention_type == \u0022gated-text-image\u0022\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/attention.py, src/diffusers/models/transformers/transformer_2d_dreamlite.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":"src/diffusers/models/attention.py"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"0817950dda2ccc45667078fc2110bb66154adc7d9dac32d6a0084b74fb24f3fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attn.add_q_proj is None and encoder_hidden_states is not None\u0060 appears character-identically in 4 files \u2014 src/diffusers/models/transformers/transformer_easyanimate.py, src/diffusers/models/transformers/transformer_hunyuan_video.py, src/diffusers/models/transformers/transformer_hunyuanimage.py, src/diffusers/models/transformers/transformer_motif_video.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":"src/diffusers/models/transformers/transformer_easyanimate.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"859904558b5fab01b1a4f4ddd77082132c149274f99994438c9bdf315c50ad3b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attn.add_q_proj is not None and encoder_hidden_states is not None\u0060 appears character-identically in 4 files \u2014 src/diffusers/models/transformers/transformer_easyanimate.py, src/diffusers/models/transformers/transformer_hunyuan_video.py, src/diffusers/models/transformers/transformer_hunyuanimage.py, src/diffusers/models/transformers/transformer_motif_video.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":"src/diffusers/models/transformers/transformer_easyanimate.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd265b4860f588c811425d39b3c5f90b6281bacbe458dd44e7662d8c3a53d5d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060audio_guidance_rescale or guidance_rescale\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace04e4aa051fd0969e53c7f27a4dd4051038cf48436d2e5563cd88f63a7bc78"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060audio_latents is not None and audio_latents.ndim != 4\u0060 appears character-identically in 6 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff20fbec1f98c23abc2288510af15938e3e863cc4462acf4ac0d98261eef3f44"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060batch_size \u003E image_latents.shape[0] and batch_size % image_latents.shape[0] != 0\u0060 appears character-identically in 26 files \u2014 src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py, src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py, src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py, src/diffusers/pipelines/flux/pipeline_flux_control_img2img.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":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf41589c6d45148fd259b8410a68f691240f44babd313ff6d21f090d8bef501"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060batch_size \u003E image_latents.shape[0] and batch_size % image_latents.shape[0] == 0\u0060 appears character-identically in 26 files \u2014 src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py, src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py, src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py, src/diffusers/pipelines/flux/pipeline_flux_control_img2img.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":"src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"d818e56dad96843160b7eb40eaee7224f9b733c50ccde8922f1a269c9b68e5c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060batch_size \u003E init_latents.shape[0] and batch_size % init_latents.shape[0] != 0\u0060 appears character-identically in 20 files \u2014 src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.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":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a5930e3bf941a0e41b84175db51e76f2b7979e63971500d5d1a465748ce587"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060batch_size \u003E init_latents.shape[0] and batch_size % init_latents.shape[0] == 0\u0060 appears character-identically in 19 files \u2014 src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.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":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44ef00aca69c26039eb0f74961461d87079d9ed152c970e5e55e795196ec95e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060between_480p(height) and between_480p(width)\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"73361dc5e849e8d673722ceabe521725fc0b1489658621621e7bc7ab13eda1f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_samples is not None and control_block_samples is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/controlnets/controlnet_flux.py, src/diffusers/models/controlnets/controlnet_qwenimage.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":"src/diffusers/models/controlnets/controlnet_flux.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4d64a76ac9b9fcc54fcda285a27c423ccbd36db68cf1f8ac4529a2d25ef08f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_skip_range is None or timestep_skip_range is None\u0060 appears character-identically in 2 files \u2014 src/diffusers/hooks/faster_cache.py, src/diffusers/hooks/pyramid_attention_broadcast.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":"src/diffusers/hooks/faster_cache.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fa8cce15c846a6c73581093b022345cc72d5db3a34ca17716bb8d0451e0938"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.height % components.canvas_multiple or block_state.width % components.canvas_multiple\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/minimax_h3/before_denoise.py, src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"529979968a5b887684122800e88f9b63bc3c4fa386c4109c95daed96299e9296"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.height % multiple or block_state.width % multiple\u0060 appears character-identically in 6 files \u2014 src/diffusers/modular_pipelines/minimax_h3/before_denoise.py, src/diffusers/modular_pipelines/minimax_h3/before_encoder.py, src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py, src/diffusers/modular_pipelines/p_h3_image/before_denoise.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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f30e7e298aab7a67625ed98175fe28eec8cfaf726554d120e8c57de046dcc1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.height % sf != 0 or block_state.width % sf != 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/cosmos/before_encoder.py, src/diffusers/modular_pipelines/cosmos/encoders.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":"src/diffusers/modular_pipelines/cosmos/before_encoder.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69dddd6178fe2ede084bea342a9395f6fab7528597751fb42ac98c227afc614"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.height is not None and block_state.height % components.vae_scale_factor_spatial != 0\u0060 appears character-identically in 4 files \u2014 src/diffusers/modular_pipelines/wan/before_denoise.py, src/diffusers/modular_pipelines/wan/encoders.py, src/diffusers/modular_pipelines/z_image/before_denoise.py, src/diffusers/modular_pipelines/z_image/encoders.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":"src/diffusers/modular_pipelines/wan/before_denoise.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e59f4af00a3654bb40bd4e44b20bcd84b5cc9126270ab010ab2d90f13b3ea9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.height or components.default_height\u0060 appears character-identically in 18 files \u2014 src/diffusers/modular_pipelines/anima/before_denoise.py, src/diffusers/modular_pipelines/anima/encoders.py, src/diffusers/modular_pipelines/ernie_image/before_denoise.py, src/diffusers/modular_pipelines/ernie_image/encoders.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":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1e8dd8fcdc2602343ca495924718570a7432e8a449c21c1a5725f559927a32"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.latents.dtype != latents_dtype and torch.backends.mps.is_available()\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/anima/denoise.py, src/diffusers/modular_pipelines/ernie_image/denoise.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":"src/diffusers/modular_pipelines/anima/denoise.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9e60e45d41f16fd420bf47021dbb3a919b02c43d07681055290c3504f0d785"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.num_frames \u003C 1 or (block_state.num_frames - 1) % components.vae_scale_factor_temporal != 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/wan/before_denoise.py, src/diffusers/modular_pipelines/wan/encoders.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":"src/diffusers/modular_pipelines/wan/before_denoise.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e0eeb2ed13346995f4dbae069056af1f63c793f7bb1b7891e2027a58fb77e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.num_frames or components.default_num_frames\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/wan/before_denoise.py, src/diffusers/modular_pipelines/wan/encoders.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":"src/diffusers/modular_pipelines/wan/before_denoise.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec02071067551b4fbeddc8f576df9036b17abf51b4c20dd8f7fd2b87fb2cbf2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.prompt is not None and ( not isinstance(block_state.prompt, str) and not isinstance(block_state.prompt, list) )\u0060 appears character-identically in 4 files \u2014 src/diffusers/modular_pipelines/ltx/encoders.py, src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py, src/diffusers/modular_pipelines/wan/encoders.py, src/diffusers/modular_pipelines/z_image/encoders.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":"src/diffusers/modular_pipelines/ltx/encoders.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcd6eeb76b700adabc1ab73f33358bbf5fce261f238f820ae297d9b3e9ef26c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.prompt is not None and not isinstance(block_state.prompt, (str, list))\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/echo/encoders.py, src/diffusers/modular_pipelines/ltx2/encoders.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":"src/diffusers/modular_pipelines/echo/encoders.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d3832ecca1100efab9cfd7c2320a5c0f81b4316d41c8e6fbb9b6330819c3ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.prompt_embeds is not None and block_state.negative_prompt_embeds is not None\u0060 appears character-identically in 4 files \u2014 src/diffusers/modular_pipelines/helios/before_denoise.py, src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py, src/diffusers/modular_pipelines/wan/before_denoise.py, src/diffusers/modular_pipelines/z_image/before_denoise.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":"src/diffusers/modular_pipelines/helios/before_denoise.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a117552af0439be0be93acb680364be2c0a861747797caab9f7c1dc35b2c19"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.width is not None and block_state.width % components.vae_scale_factor_spatial != 0\u0060 appears character-identically in 4 files \u2014 src/diffusers/modular_pipelines/wan/before_denoise.py, src/diffusers/modular_pipelines/wan/encoders.py, src/diffusers/modular_pipelines/z_image/before_denoise.py, src/diffusers/modular_pipelines/z_image/encoders.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":"src/diffusers/modular_pipelines/wan/before_denoise.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b3b5ae485e11e0794d59b9a8ef7d9decd8e5c2eb05995d127d7d194232e23b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_state.width or components.default_width\u0060 appears character-identically in 18 files \u2014 src/diffusers/modular_pipelines/anima/before_denoise.py, src/diffusers/modular_pipelines/anima/encoders.py, src/diffusers/modular_pipelines/ernie_image/before_denoise.py, src/diffusers/modular_pipelines/ernie_image/encoders.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":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98767d1810580946143968f121417c3ca8f796e3510c29fc32341e9b524b23f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060boundary_timestep is None or t \u003E= boundary_timestep\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/lucy/pipeline_lucy_edit.py, src/diffusers/pipelines/wan/pipeline_wan.py, src/diffusers/pipelines/wan/pipeline_wan_i2v.py, src/diffusers/pipelines/wan/pipeline_wan_vace.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":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b8b326ef370e61607b9235da164a915bdbf617028a4240a7292349f78f330a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cache_x is not None and self._padding[4] \u003E 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py, src/diffusers/models/autoencoders/autoencoder_kl_wan.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":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c51ba43436303df6944c321d5d28fdde5f744db2ec9d8b6f7a207f36e075e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cache_x.shape[2] \u003C 2 and feat_cache[idx] is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py, src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py, src/diffusers/models/autoencoders/autoencoder_kl_wan.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":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cd42f23732ed5b30f6fc8e70b14f7f2a3aa8f969eddd80a6ada7272c642699"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cache_x.shape[2] \u003C 2 and feat_cache[idx] is not None and feat_cache[idx] != \u0022Rep\u0022\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py, src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py, src/diffusers/models/autoencoders/autoencoder_kl_wan.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":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b10832f5bf69b2602238c77b484bef0dd81923528bdea91dcd5d5b549d9b037"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cache_x.shape[2] \u003C 2 and feat_cache[idx] is not None and feat_cache[idx] == \u0022Rep\u0022\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py, src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py, src/diffusers/models/autoencoders/autoencoder_kl_wan.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":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff25d6a2d863e63a9b2c95d2e9ec07a746984d3a6c41845aaf16e401f6cc7afe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060callback is not None and i % callback_steps == 0\u0060 appears character-identically in 80 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py, src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"764f863481d39b97d387622814cc93b19b71bdfe2eb486375c6dd7db6ee939d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060callback_on_step_end is not None and isinstance( callback_on_step_end, (PipelineCallback, MultiPipelineCallbacks) )\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py, src/diffusers/pipelines/llada2/pipeline_llada2.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":"src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bb3b509cf73d60437681f83f46ceb3046560d297a28d442b9d88b06f176295"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060callback_on_step_end_tensor_inputs is not None and not isinstance(callback_on_step_end_tensor_inputs, list)\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/prx/pipeline_prx.py, src/diffusers/pipelines/prx/pipeline_prx_pixel.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":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03b888a43678b4e0317ef1099a766ca770e0ede9f445e0f44f11b9c2fc26a2b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060class_embed_type is None and num_class_embeds is not None\u0060 appears character-identically in 6 files \u2014 src/diffusers/models/controlnets/controlnet.py, src/diffusers/models/controlnets/controlnet_union.py, src/diffusers/models/unets/unet_2d.py, src/diffusers/models/unets/unet_2d_condition.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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0e4d7be4606747d8d159ab22f3273e47e453f5acb3b800db68ba039dddb97f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060clean_caption and not is_bs4_available()\u0060 appears character-identically in 17 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdfd79dd620656205bb3676b2e52d9f48d46baf3f330abdf330d9a27ea52aa9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060clean_caption and not is_ftfy_available()\u0060 appears character-identically in 17 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d864f9f769cc6f69ecf016a88ede4f866ab907f4511a5ea8991e05da30d697"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060components.text_encoder is not None and USE_PEFT_BACKEND\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/flux/encoders.py, src/diffusers/modular_pipelines/stable_diffusion_3/encoders.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":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"f120fc277f13335c68ecfe124620f286d34fe888dd13347c0e221c41a21f231a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060components.text_encoder_2 is not None and USE_PEFT_BACKEND\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/flux/encoders.py, src/diffusers/modular_pipelines/stable_diffusion_3/encoders.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":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"6158c5bca9843f2e548bb0d1a1c19cd0599a352dd087de97057674c07a8e6b17"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060conditions is not None and not isinstance(conditions, list)\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a993e588b285e5eb1f4fa6b53141c0efd5065a85a52c94e339870d2d5b373a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config[\u0022class_embed_type\u0022] == \u0022timestep\u0022 or config[\u0022class_embed_type\u0022] == \u0022projection\u0022\u0060 appears character-identically in 6 files \u2014 scripts/convert_i2vgen_to_diffusers.py, scripts/convert_if.py, scripts/convert_ms_text_to_video_to_diffusers.py, scripts/convert_svd_to_diffusers.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/convert_i2vgen_to_diffusers.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"69cada23a10013f83ba4f70ec56657f4f74e906d86764baf4b2db1606b6b119f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060controlnet_block_samples is not None and 0 \u003C index_block \u003C= len(controlnet_block_samples)\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/transformers/sana_transformer.py, src/diffusers/models/transformers/transformer_sana_video.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":"src/diffusers/models/transformers/sana_transformer.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"14df55e751e830f7003a45f1083bb5eccbf85b3b612273f3245df5db8a4aa449"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060controlnet_pooled_projections or pooled_prompt_embeds\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py, src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2d8064f5a1ab89b3223bbf860eddd4c137281855ee68675151ff5cf6567708"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060crf != 0 and not isinstance(image, PIL.Image.Image)\u0060 appears character-identically in 6 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f7017a1098b25e990b682db7331ecd5d992e58fa1de440ba56fdbf814bf2b0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060crop_start is not None and crop_start \u003E 0\u0060 appears character-identically in 6 files \u2014 src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py, src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py, src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py, src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_framepack.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":"src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f810415940420a426f1647d463e6028a7853473123e441fd9bea38f7a88fbc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cross_attention_dim is not None or double_self_attention\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/attention.py, src/diffusers/models/transformers/transformer_2d_dreamlite.py, src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.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":"src/diffusers/models/attention.py"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"1913953050379abde5497297a0bfcb7aa2afd6921600ae52d64b346817102a43"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cross_attention_kwargs is not None and cross_attention_kwargs.get(\u0022gligen\u0022, None) is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9e9161422189345c3d99687b76326fc978114ad5ba3345f53367624d6decb4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cross_attn_mask is not None and uncond_cross_attn_mask is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/prx/pipeline_prx.py, src/diffusers/pipelines/prx/pipeline_prx_pixel.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":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"221505fb629b0d265c5316b9eb991ca6724b589bf3f39644471c0237e6fa8c39"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060delta_timestep.dtype != delta_embedder_dtype and delta_embedder_dtype != torch.int8\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/transformers/transformer_anyflow.py, src/diffusers/models/transformers/transformer_anyflow_far.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":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d2664909e633fbceaffa8257e2ff9300f47d5d89d948175d96516db4321cd0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060denoising_end is not None and denoising_start is not None and denoising_value_valid(denoising_end) and denoising_value_valid(denoising_start\u2026\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"effecf047907a005198c08e327b2cb2beee27697f36c6f9ec1d623ea6f08a8d8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060denoising_end is not None and denoising_value_valid(denoising_end)\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"76718b58409209a6907c7f1cb1bdaa1438e399c83cb6ef432b4ae7a63268550c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060denoising_end is not None and isinstance(denoising_end, float) and denoising_end \u003E 0 and denoising_end \u003C 1\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py, src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py, src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fba8ffd343d31d1eefdd8d7f048fcb31a11d14b4927aed8c27392324254721b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060do_classifier_free_guidance and guidance_rescale \u003E 0.0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py, src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.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":"src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"987b18853d873ed9918b1780ad2fc88ecea33041e401cedb9fb9b7643ae5d95e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060do_classifier_free_guidance and negative_prompt_embeds is None\u0060 appears character-identically in 139 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a042f3de644f4450c59d52cfb875fc7b444208d317132c5f511597983b36e0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060do_classifier_free_guidance and negative_prompt_embeds is None and zero_out_negative_prompt\u0060 appears character-identically in 22 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c67fbc7e9ecf17171948d137657829943770146b071d229fce98333e04ff60c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060do_classifier_free_guidance and negative_prompt_embeds is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/prx/pipeline_prx.py, src/diffusers/pipelines/prx/pipeline_prx_pixel.py, src/diffusers/pipelines/stable_audio/pipeline_stable_audio.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":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff21ea9f4171f20d5c472bbc542266d0728a2b0a66a3428f25814b181ba86013"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060do_classifier_free_guidance and not guess_mode\u0060 appears character-identically in 30 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7a99a5f02f2ee97fac0bd85179c3ce63006a196edd9d9c41e4a4a2461e7de1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060do_true_cfg and prompt_embeds is not None and negative_prompt_embeds is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/flux/pipeline_flux.py, src/diffusers/pipelines/flux/pipeline_flux_kontext.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":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2250296789c6b4b0fda608d0222c8bd7e932c49f8d5d22b5e4272d4bebb30aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060downsampler and resnet_idx_inc == num_resnets - 1\u0060 appears character-identically in 2 files \u2014 scripts/convert_kakao_brain_unclip_to_diffusers.py, scripts/convert_kandinsky_to_diffusers.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/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d2504481a3a2db4b3f9883b8249ea24d06d73037cd1136c1bbd5f100381381"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060editing_threshold is not None and editing_threshold \u003E 0.0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/llada2/pipeline_llada2.py, src/diffusers/schedulers/scheduling_block_refinement.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":"src/diffusers/pipelines/llada2/pipeline_llada2.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"65cb21c99f6e6fdaae330269b022825c6aac4784320b3d99d4d7a4c37e0c72db"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060enable_edit_guidance and self.guidance_rescale \u003E 0.0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py, src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.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":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58d27a49adbcd60e14ec0f1811bef9aff6774a021316d2a491e6ffb827d6cbd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060enable_prompt_enhancement and prompt is not None\u0060 appears character-identically in 5 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a93a79e34deae2051f0d1d87f2ac04042a92d02348879ddcd38b65bdc6ce7b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060enable_prompt_enhancement and prompt is not None and system_prompt is None and getattr(self, \u0022prompt_enhancer\u0022, None) is None\u0060 appears character-identically in 6 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"f083c677602c5ec26dca1f389ace673eab7c81dd75643ded5f8fc89948b16b40"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060encoder_attention_mask is not None and encoder_attention_mask.ndim == 2\u0060 appears character-identically in 10 files \u2014 src/diffusers/models/controlnets/controlnet_sana.py, src/diffusers/models/transformers/pixart_transformer_2d.py, src/diffusers/models/transformers/sana_transformer.py, src/diffusers/models/transformers/transformer_2d.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":"src/diffusers/models/controlnets/controlnet_sana.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"26216c26605c4f713159d0785291cdcccece1a54c497836bd057422cc8d211df"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060encoder_hid_dim is None and encoder_hid_dim_type is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/controlnets/controlnet.py, src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d34e299f47bf1c107969fede1d23ef02b5c06e64567d5fba1555216eb5cf07"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060encoder_hid_dim_type is None and encoder_hid_dim is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/controlnets/controlnet.py, src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"080ae3a8dd11da1e93047dd7aa240997a019bb40eecfa97a2e556325cc1c6bf7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060encoder_hidden_states is not None and attn.added_kv_proj_dim is not None\u0060 appears character-identically in 7 files \u2014 src/diffusers/models/transformers/transformer_bria.py, src/diffusers/models/transformers/transformer_bria_fibo.py, src/diffusers/models/transformers/transformer_flux.py, src/diffusers/models/transformers/transformer_flux2.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":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae69b3a683a8eddbb1c8df284a295fbcba6db9472ca042998e86fa307e94c80"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060encoder_hidden_states is not None and hasattr(attn, \u0022to_added_qkv\u0022)\u0060 appears character-identically in 7 files \u2014 src/diffusers/models/transformers/transformer_bria.py, src/diffusers/models/transformers/transformer_bria_fibo.py, src/diffusers/models/transformers/transformer_flux.py, src/diffusers/models/transformers/transformer_flux2.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":"src/diffusers/models/transformers/transformer_bria.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a5ba27df4026a07add805b11d91142f9231db8d68e765ee87adffb28d7dae6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ensemble_size == 1 and output_uncertainty\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/marigold/pipeline_marigold_depth.py, src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py, src/diffusers/pipelines/marigold/pipeline_marigold_normals.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":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ba3bb0e29b34b583de0086c67ac1fee45b29718e5e5969229b1ab7152691c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060eos_early_stop and eos_token_id is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py, src/diffusers/pipelines/llada2/pipeline_llada2.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":"src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"798cb9e803217a7928aabf77be0f27577e4211ae9d9489fb034e34c60869ff14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expected_add_embed_dim \u003C passed_add_embed_dim and (passed_add_embed_dim - expected_add_embed_dim) == self.unet.config.addition_time_embed_di\u2026\u0060 appears character-identically in 9 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"450cb62a19062d05694323b9f9819c26695e7eb9d88961a475538f3e20784ff1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expected_add_embed_dim \u003E passed_add_embed_dim and (expected_add_embed_dim - passed_add_embed_dim) == self.unet.config.addition_time_embed_di\u2026\u0060 appears character-identically in 9 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"da543e1ba13d4070b46c80fa167a706065ef7627f8f2fb077ce8acb28ce9ca5e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060f\u0022down.{i}\u0022 in key and f\u0022down.{i}.downsample\u0022 not in key\u0060 appears character-identically in 11 files \u2014 scripts/convert_flux2_to_diffusers.py, scripts/convert_gligen_to_diffusers.py, scripts/convert_original_audioldm2_to_diffusers.py, scripts/convert_original_audioldm_to_diffusers.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/convert_flux2_to_diffusers.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"241626e43be92c6cb5233a13ef3b801670694b30311b016c8e22d4d1b7e002ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060f\u0022input_blocks.{i}.0\u0022 in key and f\u0022input_blocks.{i}.0.op\u0022 not in key\u0060 appears character-identically in 12 files \u2014 scripts/convert_gligen_to_diffusers.py, scripts/convert_i2vgen_to_diffusers.py, scripts/convert_if.py, scripts/convert_ms_text_to_video_to_diffusers.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/convert_gligen_to_diffusers.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c3ecca35804bec269446cc89dfbc76f57dc5e533cb84ea255158ff65db8d83"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060f\u0022up.{block_id}\u0022 in key and f\u0022up.{block_id}.upsample\u0022 not in key\u0060 appears character-identically in 11 files \u2014 scripts/convert_flux2_to_diffusers.py, scripts/convert_gligen_to_diffusers.py, scripts/convert_original_audioldm2_to_diffusers.py, scripts/convert_original_audioldm_to_diffusers.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/convert_flux2_to_diffusers.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e374d3ca25ac0edfa98e0a97b4ffcf611d729698d81a7cd896819003c699b3e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060field_name in transformer_args and field_name not in guider_inputs\u0060 appears character-identically in 3 files \u2014 src/diffusers/modular_pipelines/helios/denoise.py, src/diffusers/modular_pipelines/qwenimage/denoise.py, src/diffusers/modular_pipelines/qwenimage21/denoise.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":"src/diffusers/modular_pipelines/helios/denoise.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f49c5da3ff1975d2a4a66c2872634aa13db6c38036cbc11e030f6bae779801"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fnmatch.fnmatch(new_key, f\u0022*.{dyn_pattern}.*\u0022) and not has_matched\u0060 appears character-identically in 2 files \u2014 scripts/convert_kandinsky3_unet.py, src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.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/convert_kandinsky3_unet.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5221058b60562972fce474334eb22cb2b24f63fa86ef2d1415fcadbefd696ed8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060frames.ndim != 4 or frames.shape[3] != 3\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/minimax_h3/before_encoder.py, src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"4445afed56b58834cdfb9efe454d44909ff587abe0f19f58f6c146d91d6b1d77"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(components, \u0022guider\u0022, None) is not None and not components.requires_unconditional_embeds\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/kandinsky_s2v/encoders.py, src/diffusers/modular_pipelines/pan2/encoders.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":"src/diffusers/modular_pipelines/kandinsky_s2v/encoders.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"d493004a626780358cd1e901acb5b0966eddc5c46ae002f1c59c69ed9887babf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(self, \u0022add_q_proj\u0022, None) is not None and getattr(self, \u0022add_k_proj\u0022, None) is not None and getattr(self, \u0022add_v_proj\u0022, None) is not\u2026\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/attention.py, src/diffusers/models/attention_processor.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":"src/diffusers/models/attention.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"669f10d2a2f69ea62ea52225c09a1e69291890a28347eee8a9d8999a684a7758"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(self, \u0022s1\u0022, None) and getattr(self, \u0022s2\u0022, None) and getattr(self, \u0022b1\u0022, None) and getattr(self, \u0022b2\u0022, None)\u0060 appears character-identically in 6 files \u2014 src/diffusers/models/controlnets/controlnet_xs.py, src/diffusers/models/unets/unet_2d_blocks.py, src/diffusers/models/unets/unet_3d_blocks.py, src/diffusers/models/unets/unet_dreamlite.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":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"1603802a69fb4090afab45739f3419ba20cd2f4391fadebddb49373d9d8d3752"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(self.vae.config, \u0022shift_factor\u0022, 0.0) or 0.0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py, src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.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":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"5536c43221c0adb92ea1c03a67ed3526ae242d45be1010ab029cc76e22ad6b21"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060guess_mode and not self.config.global_pool_conditions\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/controlnets/controlnet.py, src/diffusers/models/controlnets/controlnet_sparsectrl.py, src/diffusers/models/controlnets/controlnet_union.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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"4272998fe03502e93b80950962c2e2a7797d4edfde6368973cb8fed065084ea4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060guess_mode and self.do_classifier_free_guidance\u0060 appears character-identically in 13 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d49561b7f4da1cbb0c2ab355b788b64c42b2724d47af8734ccf4e79a3ec8c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060guidance_scale \u003E 1.0 and self.config.is_distilled\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/flux2/pipeline_flux2_klein.py, src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py, src/diffusers/pipelines/helios/pipeline_helios_pyramid.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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"974df3237b0ed885ec22519a7f5e42ec6c9a625759159003ceef9e44b731aaeb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060guider._enabled and guider.num_conditions \u003E 1\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py, src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.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":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a9624d24fd51f3cd4fd66cb28eddb9059f753c30fc2982cb8bb7a8e975af0e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(F, \u0022scaled_dot_product_attention\u0022) and isinstance( self.controlnet, torch._dynamo.eval_frame.OptimizedModule )\u0060 appears character-identically in 13 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"330497987a0039db9fcc637711bf9edddbde00de06bef455e0120d8825023514"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(F, \u0022scaled_dot_product_attention\u0022) and isinstance( self.unet, torch._dynamo.eval_frame.OptimizedModule )\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py, src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad70f3dafe90e8d9c2cba4401f0180d991961f700ea7cab8034c8a82af0853bc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(component, \u0022_diffusers_load_id\u0022) and component._diffusers_load_id != \u0022null\u0022\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/components_manager.py, src/diffusers/modular_pipelines/modular_pipeline_utils.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":"src/diffusers/modular_pipelines/components_manager.py"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efa8acc4991de5c108c14555b2dc5fbbf90b9027d79f180b018d55a2306f88f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(components.vae.config, \u0022latents_mean\u0022) and components.vae.config.latents_mean is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py, src/diffusers/modular_pipelines/stable_diffusion_xl/decoders.py, src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.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":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"604e256c176c254d1c3f13c4732786de90ac00fcb3c91dd23eb98eb250806fe3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(components.vae.config, \u0022latents_std\u0022) and components.vae.config.latents_std is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py, src/diffusers/modular_pipelines/stable_diffusion_xl/decoders.py, src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.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":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b94fc9e5f41000cf031dc0fc1d60a677b2a1ae0aeab6e04cbdbe9bbcd4ba4d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(downsample_block, \u0022has_cross_attention\u0022) and downsample_block.has_cross_attention\u0060 appears character-identically in 10 files \u2014 src/diffusers/models/controlnets/controlnet.py, src/diffusers/models/controlnets/controlnet_sparsectrl.py, src/diffusers/models/controlnets/controlnet_union.py, src/diffusers/models/unets/unet_2d_condition.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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fef3c7c019b8292c208361881c714732f73a6615cc9522ab9824d3611530e54"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(encoder_output, \u0022latent_dist\u0022) and sample_mode == \u0022argmax\u0022\u0060 appears character-identically in 107 files \u2014 src/diffusers/modular_pipelines/anima/encoders.py, src/diffusers/modular_pipelines/flux/before_denoise.py, src/diffusers/modular_pipelines/flux/encoders.py, src/diffusers/modular_pipelines/flux2/encoders.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":"src/diffusers/modular_pipelines/anima/encoders.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"0468e9e6ca9c99cf11d914bfb7669636dc71b3649f07f45e8628df17b775902f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(encoder_output, \u0022latent_dist\u0022) and sample_mode == \u0022sample\u0022\u0060 appears character-identically in 107 files \u2014 src/diffusers/modular_pipelines/anima/encoders.py, src/diffusers/modular_pipelines/flux/before_denoise.py, src/diffusers/modular_pipelines/flux/encoders.py, src/diffusers/modular_pipelines/flux2/encoders.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":"src/diffusers/modular_pipelines/anima/encoders.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"0285eab80eff0d3a20a45cc77cd352db332630dd0d10bc163e96e194cceceb98"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(model.mid_block, \u0022attentions\u0022) and model.mid_block.attentions[0] is not None\u0060 appears character-identically in 2 files \u2014 scripts/convert_kakao_brain_unclip_to_diffusers.py, scripts/convert_kandinsky_to_diffusers.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/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a05bd3c771de44713aa3bc4751c3d498e3e30ed439ad9ecaf963618b609a22"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(scheduler.config, \u0022use_flow_sigmas\u0022) and scheduler.config.use_flow_sigmas\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/flux/before_denoise.py, src/diffusers/modular_pipelines/flux2/before_denoise.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":"src/diffusers/modular_pipelines/flux/before_denoise.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b165f1969ea5ac81960331eba8e39635ec77ecf3e848f88425fbed369776fb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0022final_offload_hook\u0022) and self.final_offload_hook is not None\u0060 appears character-identically in 18 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ede1fb4c2fd93e697e725f1d34d4e5690bb502448c00b6230d471a538e113c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0022guider\u0022) and self.guider is not None\u0060 appears character-identically in 12 files \u2014 src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py, src/diffusers/modular_pipelines/flux2/modular_pipeline.py, src/diffusers/modular_pipelines/helios/modular_pipeline.py, src/diffusers/modular_pipelines/hunyuan_video1_5/modular_pipeline.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":"src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"657c592bdeca6cde0cef6faf9c20b7ec0bfe023814b4c16658b25ccda0479f77"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0022processor\u0022) and isinstance(self.processor, torch.nn.Module) and not isinstance(processor, torch.nn.Module)\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/attention.py, src/diffusers/models/attention_processor.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":"src/diffusers/models/attention.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcb5a617d2ac52f33312a4eb860c3272386ca5e48c16e3eb588d7bcbba12d28"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0022text_encoder_offload_hook\u0022) and self.text_encoder_offload_hook is not None\u0060 appears character-identically in 8 files \u2014 src/diffusers/pipelines/deepfloyd_if/pipeline_if.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"a605f7d80a4c847293c3108ca19cf9d200fa4d7f9e7aae626e715ae9ebd38472"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0022tokenizer\u0022) and self.tokenizer is not None\u0060 appears character-identically in 22 files \u2014 src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py, src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py, src/diffusers/pipelines/flux/pipeline_flux.py, src/diffusers/pipelines/flux/pipeline_flux_control.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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d95b395afd8349c8730688868f17fa63b9aceb27cf5486e21f185ecb62b711"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0022transformer\u0022) and self.transformer is not None\u0060 appears character-identically in 19 files \u2014 src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py, src/diffusers/modular_pipelines/helios/modular_pipeline.py, src/diffusers/modular_pipelines/minimax_music3/modular_pipeline.py, src/diffusers/modular_pipelines/qwenimage/modular_pipeline.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":"src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbccf08d1394f801dd030659f88fab8f457c027386ec68d49effe24a9312235"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0022unet\u0022) and self.unet is not None and hasattr(self.unet.config, \u0022sample_size\u0022)\u0060 appears character-identically in 10 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/deprecated/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py, src/diffusers/pipelines/kolors/pipeline_kolors.py, src/diffusers/pipelines/kolors/pipeline_kolors_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd1cd5d52ba03df87414075cc0a7ed929fddefe3ed211c98beedae485fdb9b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0022unet_offload_hook\u0022) and self.unet_offload_hook is not None\u0060 appears character-identically in 5 files \u2014 src/diffusers/pipelines/deepfloyd_if/pipeline_if.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c87eadbb7326c6dc1b2a9c69f4770ffd6f81ebe9e8a70d70fbf983b2d78935d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0022vae\u0022) and self.vae is not None\u0060 appears character-identically in 21 files \u2014 src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py, src/diffusers/modular_pipelines/helios/modular_pipeline.py, src/diffusers/modular_pipelines/qwenimage/modular_pipeline.py, src/diffusers/modular_pipelines/qwenimage21/modular_pipeline.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":"src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c2c65022bebc87afeea407c1608d40d141cd3b3958d8f4ee2b4caa7a1ab539"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self.mid_block, \u0022has_cross_attention\u0022) and self.mid_block.has_cross_attention\u0060 appears character-identically in 4 files \u2014 src/diffusers/models/controlnets/controlnet.py, src/diffusers/models/controlnets/controlnet_sparsectrl.py, src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc61e86c04a8afb43e04e087b69f555762f7fc1938a1003ee380d4d438ec382c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self.scheduler.config, \u0022clip_sample\u0022) and self.scheduler.config.clip_sample\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py, src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.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":"src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ef5b1cf7510fca8d2b3db95f91b186d7fd393d34242f196c7fc8aa589bb0d8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self.scheduler.config, \u0022use_flow_sigmas\u0022) and self.scheduler.config.use_flow_sigmas\u0060 appears character-identically in 5 files \u2014 src/diffusers/pipelines/flux/pipeline_flux.py, src/diffusers/pipelines/flux2/pipeline_flux2.py, src/diffusers/pipelines/flux2/pipeline_flux2_klein.py, src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.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":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea920ccd096d3d99e3533d3257ba49f6ce92bc0566d36f1f952b411ee244b8d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self.scheduler.config, \u0022variance_type\u0022) and self.scheduler.config.variance_type in [\u0022learned\u0022, \u0022learned_range\u0022]\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py, src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py, src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py, src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"603231e0d22b7d29f7dd70e06b6da46fd3130e16857dca9c92e4081361c265ed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self.text_encoder.config, \u0022use_attention_mask\u0022) and self.text_encoder.config.use_attention_mask\u0060 appears character-identically in 50 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb8eea1661156469b15836250290c6991dae6c7ce11af3509284da54e86aae8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self.vae.config, \u0022latents_mean\u0022) and self.vae.config.latents_mean is not None\u0060 appears character-identically in 15 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":1568}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5d8e7e7bd0c9d443aa936da118bf2f58975482495c90dfedd816def3c641f0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self.vae.config, \u0022latents_std\u0022) and self.vae.config.latents_std is not None\u0060 appears character-identically in 15 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"66abfc5ef31d260db2d21aef42142f1c75c36633ac9985cdb06c423aa608b51e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(upsample_block, \u0022has_cross_attention\u0022) and upsample_block.has_cross_attention\u0060 appears character-identically in 7 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/models/unets/unet_3d_condition.py, src/diffusers/models/unets/unet_i2vgen_xl.py, src/diffusers/models/unets/unet_motion_model.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e024e5020118f299911059f6f96a546bf15294e2d9cfe1c3bd76518677d2c4f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(upsample_block, k) or getattr(upsample_block, k, None) is not None\u0060 appears character-identically in 6 files \u2014 src/diffusers/models/controlnets/controlnet_xs.py, src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/models/unets/unet_3d_condition.py, src/diffusers/models/unets/unet_i2vgen_xl.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":"src/diffusers/models/controlnets/controlnet_xs.py"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26a23e36a45aa10d00194e1f91f08c6a670cb21e7cb1cd01a770ae46548a87a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height != calc_height or width != calc_width\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/wan/pipeline_wan.py, src/diffusers/pipelines/wan/pipeline_wan_i2v.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":"src/diffusers/pipelines/wan/pipeline_wan.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9dd2aff61f95906496096f1e38292bcf7054a74193536c7ec3dadbdc273e817"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height != original_height or width != original_width\u0060 appears character-identically in 3 files \u2014 src/diffusers/modular_pipelines/flux/inputs.py, src/diffusers/pipelines/flux/pipeline_flux_kontext.py, src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.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":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc484c9398bc4bfff927467ff0a5d29ad1f751cfdcb93ac3f7759f5857027af"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height % (self.vae_scale_factor * 2) != 0 or width % (self.vae_scale_factor * 2) != 0\u0060 appears character-identically in 36 files \u2014 src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py, src/diffusers/pipelines/bria/pipeline_bria.py, src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py, src/diffusers/pipelines/chroma/pipeline_chroma.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":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"6193ec9e0f437b4bea67493db4bd6d5572826603307bf7e6d07c2762501c949f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height % (self.vae_scale_factor * self.patch_size) != 0 or width % (self.vae_scale_factor * self.patch_size) != 0\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py, src/diffusers/pipelines/ideogram4/pipeline_ideogram4.py, src/diffusers/pipelines/pag/pipeline_pag_sd_3.py, src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"2112cc92b7dae521c1ecbf254a8a1e3d759fbc86e07d8d4eb679af24b2356a82"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height % dimension_multiple != 0 or width % dimension_multiple != 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/prx/pipeline_prx.py, src/diffusers/pipelines/prx/pipeline_prx_pixel.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":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4e24902072b8b6b9b7c73ba44bde33a313be74dc0a0e880589a64043d83107"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height % multiple != 0 or width % multiple != 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/pan2/before_denoise.py, src/diffusers/pipelines/krea2/pipeline_krea2.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":"src/diffusers/modular_pipelines/pan2/before_denoise.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7ce6bbeab42c37f90453a735be712aa663341af8f7c475a4d03e3870bd8880"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height % patch_size != 0 or width % patch_size != 0\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py, src/diffusers/models/autoencoders/autoencoder_kl_wan.py, src/diffusers/modular_pipelines/ernie_image/modular_pipeline.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":"src/diffusers/models/autoencoders/autoencoder_kl_qwenimage21.py"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"560d2897bc1e11a6ccdd787d79337882286932c415765de6d112c411e42dbf27"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height % self.vae_scale_factor != 0 or width % self.vae_scale_factor != 0\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py, src/diffusers/pipelines/ernie_image/pipeline_ernie_image.py, src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py, src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.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":"src/diffusers/pipelines/deprecated/unidiffuser/pipeline_unidiffuser.py"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae53f3b792dee87e483ad4590062bd82815a1a81ed94adfa893a50f4f587de5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height % self.vae_scale_factor_spatial != 0 or width % self.vae_scale_factor_spatial != 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/motif_video/pipeline_motif_video.py, src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.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":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bacac49459a38fe15f681450ab891b92c1b71dc7de412a366e978cc51751f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height % self.vae_spatial_compression_ratio != 0 or width % self.vae_spatial_compression_ratio != 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_latent_upsample.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":"src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"417d848a689fc6ce1bddddd4b7b513cb59d8030bd19b5a7f2cb299e76f4d73ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height \u003E self.tile_sample_min_height or width \u003E self.tile_sample_min_width\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx2.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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0bdcc2666c921997734817708181d9b10c9301eb538a7f3d5ba2ff5685e33c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height is None and width is None and image is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py, src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.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":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1b6a23e2d6ede0ba44adaf5c133fcd905b97feffac656d5771312d15e36f7a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height is not None and height % (self.vae_scale_factor * 2) != 0 or width is not None and width % (self.vae_scale_factor * 2) != 0\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/flux2/pipeline_flux2.py, src/diffusers/pipelines/flux2/pipeline_flux2_klein.py, src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.py, src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8f18acfbc7227e1b196fc1afb7fc2a507318c6463b5a10dc3476c1e645d625"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height is not None and height % (vae_scale_factor * 2) != 0\u0060 appears character-identically in 4 files \u2014 src/diffusers/modular_pipelines/flux/encoders.py, src/diffusers/modular_pipelines/flux/inputs.py, src/diffusers/modular_pipelines/qwenimage/before_denoise.py, src/diffusers/modular_pipelines/qwenimage/encoders.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":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"4700513da2cf620cf6c6c302e4f53d607e253c94e53180b1245d556f26d26ff3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height is not None and height % 32 != 0 or width is not None and width % 32 != 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py, src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.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":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a8fb3f1d10f53ffd877b1e8ed658cf4c289ee985bcc255c6697b75c5937375"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height is not None and height % 8 != 0 or width is not None and width % 8 != 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py, src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e5abc05136e23b94cea979bd68af447853ef464b6496f7cadaf0ea35c2db16"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height is not None and height % self.vae_scale_factor != 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py, src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.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":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"377d7b9f6a2b9a810621ef29524f25d370e3991869b1ccc266b355559c79ea61"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height is not None and width is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/joyimage/image_processor.py, src/diffusers/pipelines/z_image/pipeline_z_image_omni.py, src/diffusers/utils/remote_utils.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":"src/diffusers/pipelines/joyimage/image_processor.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94a93bdec12060d4ad2da997e551782b84b8ef13eb25a8aa51274fd3d421b43"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height or self.default_sample_size * self.vae_scale_factor\u0060 appears character-identically in 54 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/bria/pipeline_bria.py, src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py, src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"857ed626f58bdb1250c640bd412f036df597eee289e95846f7024d521b8bd072"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height or self.image_unet.config.sample_size * self.vae_scale_factor\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py, src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py, src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.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":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"6457f696aa201170c7fe3b1ef5123afc455b790b02e2a62279f448cdebbf2dbf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height or self.transformer.config.sample_height * self.vae_scale_factor_spatial\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"9302ae0614fb0833a78a62213de3cdcdb88b696d8fbc29e788f9762ec2e90820"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height or self.transformer.config.sample_size * self.vae_scale_factor\u0060 appears character-identically in 9 files \u2014 src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py, src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py, src/diffusers/pipelines/cogview4/pipeline_cogview4.py, src/diffusers/pipelines/cogview4/pipeline_cogview4_control.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":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d09e86b11d50d5a911a544bf0832a87d294e5bcfbcdeb61c4cc20f21f410ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height or self.unet.config.sample_size * self.vae_scale_factor\u0060 appears character-identically in 33 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"e008c575ed6ef86469d00f2780a28e2427e18dca234888a6474ba4780887b8d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hook is not None and hasattr(hook, \u0022pre_forward\u0022)\u0060 appears character-identically in 3 files \u2014 src/diffusers/modular_pipelines/minimax_h3/encoders.py, src/diffusers/modular_pipelines/minimax_h3_image/encoders.py, src/diffusers/modular_pipelines/pika_h3_flex/encoders.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":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b39109b37b5bba4f42c6d7b1035ce79364dd28662ad2c22cede89105e90f064"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i != mask.shape[1] - 1 and j != mask.shape[2] - 1\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py, src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62bbc869217320eff8b08d8bd23b8d558061ec39e516904006951baead53e15"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i / len(block_state.timesteps) \u003C s or (i \u002B 1) / len(block_state.timesteps) \u003E e\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/qwenimage/before_denoise.py, src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.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":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f3255d899690749ce7d8b01f17649a6d99dd4ee39796b6211327c4a2a6ef35"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i / len(timesteps) \u003C s or (i \u002B 1) / len(timesteps) \u003E e\u0060 appears character-identically in 22 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"3859309368708b8d8e7e81dab27e1191b363f915eb684e7968fbf8e06cb83701"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i / len(timesteps) \u003E= control_guidance_start and (i \u002B 1) / len(timesteps) \u003C= control_guidance_end\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py, src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb0cedf966fd31d5365ddced0f4177ab8a407d7579e04919b3817fd5889f10f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i == 0 or pre_row[i - 1] \u003E= ( num_iterations - 1 )\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.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":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2339bd42c9696fcb424173a5d40abae8a0e507fc1d3edc93234958cd2cc9c38"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i == len(blocks) - 1 and additional_residuals is not None\u0060 appears character-identically in 4 files \u2014 src/diffusers/models/unets/unet_2d_blocks.py, src/diffusers/models/unets/unet_dreamlite.py, src/diffusers/models/unets/unet_motion_model.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_blocks.py"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4c853712eda0cb530fa119b2a7990a769aa6af2a574f66d2e36c1c27684afb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i == len(self.scheduler.timesteps) - 1 or ((i \u002B 1) % self.scheduler.order == 0)\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py, src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.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":"src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"7594661f4687a184aac274f35bf514725dd60fd5a287cb1f258166907daa6b53"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image is not None and image_embeds is not None\u0060 appears character-identically in 6 files \u2014 src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py, src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.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":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2abacb4b1143c6e01f07426c3958560f746d23b31b3fb73f7831a42e24d9cc6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image is not None and not isinstance(image, (torch.Tensor, Image.Image, list))\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py, src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.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":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d63bdd655a98ec59f3e836a32d9290a5a91936c4988cd5856111ba12fdc9728"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image is not None and not isinstance(image, list)\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/flux2/pipeline_flux2.py, src/diffusers/pipelines/flux2/pipeline_flux2_klein.py, src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py, src/diffusers/pipelines/z_image/pipeline_z_image_omni.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":"src/diffusers/pipelines/flux2/pipeline_flux2.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31e2d223fe2bc01a2f7485d9d5b7d4d8bc07c9025fc79713e10518b9f0c0896"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image is not None and not isinstance(image, torch.Tensor) and not isinstance(image, PIL.Image.Image)\u0060 appears character-identically in 5 files \u2014 src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_i2v.py, src/diffusers/pipelines/wan/pipeline_wan_animate.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":"src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6372c7d9c7d9feadda377ebd9149b0a3a6ffc81a664268853430dfd12e2ffde"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image.ndim != 4 or image.shape[0] != 1 or image.shape[1] != 3\u0060 appears character-identically in 3 files \u2014 src/diffusers/modular_pipelines/cosmos/encoders.py, src/diffusers/modular_pipelines/echo/encoders.py, src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.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":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc821a618fc500d66cd2ead50a7fa200b335a5bb54f154ae7eb0d415223a4a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image.shape[0] \u003C batch_size and batch_size % image.shape[0] != 0\u0060 appears character-identically in 12 files \u2014 src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.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":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"271387b0965516cf6cf90b8004927fbea9c0a83b822a95913731b2658953450d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image.shape[0] \u003C batch_size and batch_size % image.shape[0] == 0\u0060 appears character-identically in 12 files \u2014 src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.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":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"003455843df7cc22cb57d71a35db142f3a7c35ff05d938bc2bd7d6f2484b44d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image.size[0] \u003C= 0 or image.size[1] \u003C= 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/minimax_h3/before_encoder.py, src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b5b653fbe774a8ba2b491fb241f1cd1c95654d6a9913bfeda5b0a8574a7bc2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image.startswith(\u0022http://\u0022) or image.startswith(\u0022https://\u0022)\u0060 appears character-identically in 2 files \u2014 src/diffusers/utils/loading_utils.py, src/diffusers/utils/testing_utils.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":"src/diffusers/utils/loading_utils.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"de976bfd6a8629b9acb4f10571eed9cae5153961a05d2eed52c8c7af01f6510f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image_batch_size != 1 and batch_size != image_batch_size\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2fbb46ee9ef19f32c17862c35d33c3b858f4ee76b5f5bc58a6cef039b344e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image_batch_size != 1 and image_batch_size != prompt_batch_size\u0060 appears character-identically in 17 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ddba3135e02978010637c6b93e7389391162cb94c3a556fbfd4453b1491f8a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image_latents is None and is_first_chunk\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/helios/pipeline_helios.py, src/diffusers/pipelines/helios/pipeline_helios_pyramid.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":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"75731e6f66fbfbc16fc454be5a0f53d5feafbf836d7e0d38304194c93a2ad51d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image_latents is not None and add_noise_to_image_latents\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/helios/pipeline_helios.py, src/diffusers/pipelines/helios/pipeline_helios_pyramid.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":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07eb571275607cf65eb9325938d6434a6155890593943e8ba8770e77fb9eba1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060in_channels is not None and patch_size is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/transformers/transformer_2d.py, src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.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":"src/diffusers/models/transformers/transformer_2d.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4dcee04301f117f55c0cbb23c0807d4ebbc6f44c8ce059483f1d802cfde1af"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060intermediate_timesteps is not None and num_inference_steps != 2\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/sana/pipeline_sana_sprint.py, src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py, src/diffusers/schedulers/scheduling_scm.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":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb908e395705f18d4b6317cb3ef609e08b47c5f0d55ab75cb1ac66acbb8fe05c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ip_adapter_image is None and ip_adapter_image_embeds is None\u0060 appears character-identically in 9 files \u2014 src/diffusers/pipelines/chroma/pipeline_chroma.py, src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py, src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py, src/diffusers/pipelines/flux/pipeline_flux.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":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe0bf55ca07274bd8e90db3936910c2ec4c6b06bc8de22bc7e6b690925c8c90"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ip_adapter_image is not None and ip_adapter_image_embeds is not None\u0060 appears character-identically in 41 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b24fcee28b8e253c561e71632813b3b0db381171fce9f748a033d4eaef7606"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ip_adapter_image is not None and self.is_ip_adapter_active\u0060 appears character-identically in 5 files \u2014 src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py, src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py, src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py, src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce674d172a9f591b7fd2ad7f68fefedf578e29ad439a428b92fc00bb44b15045"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ip_adapter_image is not None or ip_adapter_image_embeds is not None\u0060 appears character-identically in 52 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf52824cfa9102ba83cf169c7cd32a845236d440334bbdbf5fad687bfd31a75b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_adapter and len(down_intrablock_additional_residuals) \u003E 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e795c6c8fcb5a008cedc4e2c24ecbb4e05cdc73babee22c3008c90b196aa90f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_adapter and len(down_intrablock_additional_residuals) \u003E 0 and sample.shape == down_intrablock_additional_residuals[0].shape\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2bff4aff963319b6f6e0aa1fc8a73a0deb3fb49fa711487b7e4b14afeab9723"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_first_chunk and image_latents is None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/helios/pipeline_helios.py, src/diffusers/pipelines/helios/pipeline_helios_pyramid.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":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f49ee92461868bc7fa7af2bf77e36c6d27635d304289aeba2467c4a039d446d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_sequential_cpu_offload or is_model_cpu_offload\u0060 appears character-identically in 2 files \u2014 src/diffusers/loaders/lora_base.py, src/diffusers/loaders/textual_inversion.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":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6de5024b904312dbc2543c1268c85d9f54748dee2c2ba839f20daf11ff18af5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_torch_available() and is_librosa_available()\u0060 appears character-identically in 3 files \u2014 src/diffusers/__init__.py, src/diffusers/pipelines/__init__.py, src/diffusers/pipelines/deprecated/__init__.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":"src/diffusers/__init__.py"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"639c31a7196ec3a98a10e9ee36665b455f03b194c644cedaf2a9efaa576a6879"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_torch_available() and is_scipy_available()\u0060 appears character-identically in 2 files \u2014 src/diffusers/__init__.py, src/diffusers/schedulers/__init__.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":"src/diffusers/__init__.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"e705147f43e20c2231178851995a0c109107e471fa429d497fb977ca30b4ce83"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_torch_available() and is_torchsde_available()\u0060 appears character-identically in 2 files \u2014 src/diffusers/__init__.py, src/diffusers/schedulers/__init__.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":"src/diffusers/__init__.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b336942b321dfa4de4b0dbe0ee810d1d2273846996f1a5d3df46c865ff65ae1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_torch_available() and is_transformers_available()\u0060 appears character-identically in 2 files \u2014 src/diffusers/__init__.py, src/diffusers/pipelines/__init__.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":"src/diffusers/__init__.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"a466fd69482e798d9315fb8249b3e1d590db25fa15258f4214fa415ccc1db650"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_torch_available() and is_transformers_available() and is_opencv_available()\u0060 appears character-identically in 2 files \u2014 src/diffusers/__init__.py, src/diffusers/pipelines/__init__.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":"src/diffusers/__init__.py"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"5798fddca76d9791c8923c451cf1684fc6b532fcff5ec21ca2847e5ab3325697"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_torch_available() and is_transformers_available() and is_sentencepiece_available()\u0060 appears character-identically in 2 files \u2014 src/diffusers/__init__.py, src/diffusers/pipelines/__init__.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":"src/diffusers/__init__.py"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b68bdffcb0f94fa2b34fd4ee823437ca76841d32f32bb43a02390eeb27793b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_torch_neuronx_available() and hasattr(torch, \u0022neuron\u0022) and torch.neuron.is_available()\u0060 appears character-identically in 2 files \u2014 src/diffusers/utils/testing_utils.py, src/diffusers/utils/torch_utils.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":"src/diffusers/utils/testing_utils.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a92d1abb43d1cf683b1c49092aadd58d98a11f058392093d7f72f0e4d3be620"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_transformers_available() and is_torch_available()\u0060 appears character-identically in 134 files \u2014 src/diffusers/modular_pipelines/anima/__init__.py, src/diffusers/modular_pipelines/cosmos/__init__.py, src/diffusers/modular_pipelines/echo/__init__.py, src/diffusers/modular_pipelines/ernie_image/__init__.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":"src/diffusers/modular_pipelines/anima/__init__.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac9cddab61bd73cbafeb4914c64b67a2bbeac47bb189b29df3ab81b98da73d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_transformers_available() and is_torch_available() and is_note_seq_available()\u0060 appears character-identically in 4 files \u2014 src/diffusers/__init__.py, src/diffusers/pipelines/__init__.py, src/diffusers/pipelines/deprecated/__init__.py, src/diffusers/pipelines/deprecated/spectrogram_diffusion/__init__.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":"src/diffusers/__init__.py"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8bd8403b2e1c14408d2a92502d251e2f9a39f4cc199e4074113bdd43594574c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_unet_compiled and is_controlnet_compiled\u0060 appears character-identically in 5 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py, src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e4e191a2706d03be9e1324329629c17d47a4d002f8f2509c9fb416faf8e190"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_unet_version_less_0_9_0 and is_unet_sample_size_less_64\u0060 appears character-identically in 15 files \u2014 src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py, src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py, src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py, src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0396a8a43115e29b752c60c24b16b0aec515f35c69b261dbe3181304c6ef2a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(block_state.generator, list) and len(block_state.generator) != batch_size\u0060 appears character-identically in 5 files \u2014 src/diffusers/modular_pipelines/flux3/before_denoise.py, src/diffusers/modular_pipelines/hunyuan_video1_5/before_denoise.py, src/diffusers/modular_pipelines/pan2/before_denoise.py, src/diffusers/modular_pipelines/qwenimage/before_denoise.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":"src/diffusers/modular_pipelines/flux3/before_denoise.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b692e0bc2f9529dc594abbd3380256c773c9c406c70105d0b0e4af248fb88fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(controlnet, MultiControlNetModel) and isinstance(controlnet_conditioning_scale, float)\u0060 appears character-identically in 12 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c725e06ab24420f0d5fcc2c5eabc06e2053bb5a25926f339816e972b3a51c45"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(controlnet_conditioning_scale, list) and len(controlnet_conditioning_scale) != len( self.controlnet.nets )\u0060 appears character-identically in 14 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"17df1ce2ff1bdb9511d9df07cee757308fc53e648a37a181e59ce62d784a03d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(cross_attention_dim, list) and len(cross_attention_dim) != len(down_block_types)\u0060 appears character-identically in 5 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/models/unets/unet_motion_model.py, src/diffusers/models/unets/unet_spatio_temporal_condition.py, src/diffusers/pipelines/audioldm2/modeling_audioldm2.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"b353e06c1b8c78bbeb3cf70c412d1fb33eb6aef0d972945deafdd40e9bdc5580"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(device_map, dict) and len(device_map.keys()) \u003E 1\u0060 appears character-identically in 3 files \u2014 src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py, src/diffusers/quantizers/quanto/quanto_quantizer.py, src/diffusers/quantizers/torchao/torchao_quantizer.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":"src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"eedbc8433002c3c4cdd33c3e5670f03cb234f0acee1b9db17cc0dff1c4a0e632"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(frames, list) and len(frames) \u003E 0 and isinstance(frames[0], PIL.Image.Image)\u0060 appears character-identically in 4 files \u2014 src/diffusers/modular_pipelines/ltx2/encoders.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d7b8649259f0b328811013f03b74273aed04f97a8795a8eb1422b9f171ed41"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(generator, list) and len(generator) != batch_size\u0060 appears character-identically in 218 files \u2014 src/diffusers/modular_pipelines/anima/before_denoise.py, src/diffusers/modular_pipelines/flux/before_denoise.py, src/diffusers/modular_pipelines/flux2/before_denoise.py, src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.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":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"2286ba20e2241c11780101a1b697c8b1f998d1f21495f2fadcc1f638201905d5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(image, (list, tuple)) and len(image) \u003C image_embeds.shape[0] and image_embeds.shape[0] % len(image) == 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py, src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a78e23fa4964c4bddd73661f48b10584fe85f6b7eab9ec085415bdbbe88327c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(image, list) and isinstance(image[0], PIL.Image.Image)\u0060 appears character-identically in 20 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"0379370881a7293605bdd5d64c0564ea8bdabc37ad839794e111c6a8e1eb3be0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(image, list) and isinstance(image[0], np.ndarray)\u0060 appears character-identically in 19 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c919b547b857b03fb87525baa0e8627b89cfdf41f84cbd079f65916c6e70e44"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(image, list) and isinstance(image[0], torch.Tensor)\u0060 appears character-identically in 22 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3becccf03a842caa0a0441d34555914d588161f28ff0a9b09b9e7af1a89748"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(image, list) and isinstance(image[0], torch.Tensor) and image[0].ndim == 4\u0060 appears character-identically in 3 files \u2014 src/diffusers/image_processor.py, src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py, src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.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":"src/diffusers/image_processor.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bad3758756e403979c8c1071b1c0c3a6bc463c8170bdf430f7aad9d49d0ff6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(image, torch.Tensor) and image.size(1) == self.latent_channels\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/flux/pipeline_flux_kontext.py, src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py, src/diffusers/pipelines/longcat_image/pipeline_longcat_image_edit.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.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":"src/diffusers/pipelines/flux/pipeline_flux_kontext.py"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f40017104051460c21a98dbc817e9fc5c8b2700ab135cc833cecd89a9d33e4a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(image_reference, list) and isinstance(image_reference[0], torch.Tensor) and image_reference[0].ndim == 4\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py, src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.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":"src/diffusers/pipelines/flux/pipeline_flux_kontext_inpaint.py"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa845fcb03707e7f2b0cbc2075eea3b67428d0f928fabe08cf63c229ed15ba5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(img, np.ndarray) or torch.is_tensor(img)\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/marigold/marigold_image_processing.py, src/diffusers/pipelines/marigold/pipeline_marigold_depth.py, src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py, src/diffusers/pipelines/marigold/pipeline_marigold_normals.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":"src/diffusers/pipelines/marigold/marigold_image_processing.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"766f58a0f2bd9b49b68b3e772b650b2b770c1b043bd1b0d39fd2da295fd9eb90"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(mask, list) and isinstance(mask[0], PIL.Image.Image)\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py, src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py, src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"554a75cc26aea4d553a76f705f79073a5c659ff11b3544f51323975b1b2e536e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(mask, list) and isinstance(mask[0], np.ndarray)\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py, src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py, src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"93472e6eec55f9963fb28de2c10dfb6c09a8736b0ab581f4b222afc20616e12d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(mask_image, (list, tuple)) and len(mask_image) \u003C image_embeds.shape[0] and image_embeds.shape[0] % len(mask_image) == 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py, src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"3979b716f2eb14b189428d6ff8c34f14797ea4da2e2d9794ad185b77ad51a475"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(negative_prompt, list) and len(negative_prompt) != batch_size\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/motif_video/pipeline_motif_video.py, src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.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":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d014d9ce6b704daabf0ee0af4c97cab053516d08b7d7f22a9cc7b9d299279d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(negative_prompt, list) and negative_prompt[0] is None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/bria/pipeline_bria.py, src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py, src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.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":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bac91d566e93290976cda7a4dc50f118ae2df12244432a1a1c2a99c66d8bc3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)) and node.name == method_name\u0060 appears character-identically in 2 files \u2014 utils/check_forward_call_docstrings.py, utils/check_return_annotations.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":"utils/check_forward_call_docstrings.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"838e3b48685ebc342a8f26c04a19e55eb5695b3420b14f1b338484528a4edf7c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(processor, dict) and len(processor) != count\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/attention.py, src/diffusers/models/controlnets/controlnet_hunyuan.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/attention.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b29d1be02102e0d7660ee84b822484436b62402ceb6ddc888173e6c126f5106"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(ref_cond.frames, np.ndarray) and ref_cond.frames.ndim == 3\u0060 appears character-identically in 3 files \u2014 src/diffusers/modular_pipelines/ltx2/encoders.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d6dc86d1569598e96e7958fe6c47b08615855e177f3ddbe13e868d34085867"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(ref_cond.frames, torch.Tensor) and ref_cond.frames.ndim == 3\u0060 appears character-identically in 3 files \u2014 src/diffusers/modular_pipelines/ltx2/encoders.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/encoders.py"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df79167935962021347a70dae7e3868bfa7bd80fa009b845522f321956444f0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(reference_images, (list, tuple)) and isinstance(next(iter(reference_images)), PIL.Image.Image)\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/wan/encoders.py, src/diffusers/pipelines/wan/pipeline_wan_vace.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":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b28273c6decb23c93f9e75504f358dd94398da8a507e97b9ebb4a134b137d8a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(reference_images, (list, tuple)) and isinstance(next(iter(reference_images)), list) and isinstance(next(iter(reference_images[0])\u2026\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/wan/encoders.py, src/diffusers/pipelines/wan/pipeline_wan_vace.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":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd97f9ab5da47166a50e57174ed16d235397dffd6e75512f60acff444920d345"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(scheduler, DPMSolverMultistepScheduler) and scheduler.config.algorithm_type == \u0022sde-dpmsolver\u002B\u002B\u0022 and scheduler.config.solver_orde\u2026\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py, src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.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":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb5dc4a1b5fc2df55caaabdfed296fa823609bfe97a7db164db8ea8a7ef1812"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(self, FluxLoraLoaderMixin) and USE_PEFT_BACKEND\u0060 appears character-identically in 19 files \u2014 src/diffusers/pipelines/bria/pipeline_bria.py, src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py, src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py, src/diffusers/pipelines/chroma/pipeline_chroma.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":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d3fb796f40cf315318807c54973dec139257a94c9b833f1fb9b90ec4d13131"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(self, SD3LoraLoaderMixin) and USE_PEFT_BACKEND\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py, src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py, src/diffusers/pipelines/pag/pipeline_pag_sd_3.py, src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"5383c8b757019027e79d9d48e10ca4b7f67387304917df474555927c05361a99"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(self, SanaLoraLoaderMixin) and USE_PEFT_BACKEND\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/sana/pipeline_sana.py, src/diffusers/pipelines/sana/pipeline_sana_controlnet.py, src/diffusers/pipelines/sana/pipeline_sana_sprint.py, src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.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":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9433e7824d1875df740e3f8bc13d0883dc1be405e404cef61fe3b4dbfa8234"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(self, StableDiffusionLoraLoaderMixin) and USE_PEFT_BACKEND\u0060 appears character-identically in 45 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db0af01d4ef23c4008d40f2f22b1f10ddcb7af81ce621bac8d37c6b989ed4f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(self, StableDiffusionXLLoraLoaderMixin) and USE_PEFT_BACKEND\u0060 appears character-identically in 19 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"566e36346f95bef1b550647f003bbd06f58fe5fabc32f56ddf4327fb13f592ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(self.controlnet, ControlNetModel) or is_compiled and isinstance(self.controlnet._orig_mod, ControlNetModel)\u0060 appears character-identically in 12 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"4629e370336797a9ba3ddac6cb4ef2f807e04cfd6839c1abc26ddb8536fc9cd6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(self.controlnet, MultiControlNetModel) or is_compiled and isinstance(self.controlnet._orig_mod, MultiControlNetModel)\u0060 appears character-identically in 12 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb03c84f61afe4d72f58ead08c1ee81d985808f7f0710f0c36f8617301db577"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(self.scheduler, LTXEulerAncestralRFScheduler) and float(self.scheduler.config.eta) \u003E 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.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":"src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"80283c464965dfd89866cf2d2d090d5862d1c0115097a69c35fe1ea4c09aaec0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(self.unet, UNetControlNetXSModel) or is_compiled and isinstance(self.unet._orig_mod, UNetControlNetXSModel)\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py, src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.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":"src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8ca8228dfa349be2352d5bbfdf423c220b0c4b14d14124872b9c7b51f110ba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(timestep, int) or isinstance(timestep, torch.IntTensor) or isinstance(timestep, torch.LongTensor)\u0060 appears character-identically in 4 files \u2014 src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py, src/diffusers/schedulers/scheduling_flow_match_heun_discrete.py, src/diffusers/schedulers/scheduling_flow_match_lcm.py, src/diffusers/schedulers/scheduling_helios.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":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d48fdaab1e1a30b7fdd65a95437dc5b9992215ee321bac530b0b775b125a58f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(transformer_layers_per_block, list) and reverse_transformer_layers_per_block is None\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/models/unets/unet_motion_model.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3794eb4d09622f34fc41da3a3e6cd364370ae91603ee4ae15eeb353a4b107f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(video_fhw, list) and len(video_fhw) \u003E 1\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/transformers/transformer_nucleusmoe_image.py, src/diffusers/models/transformers/transformer_qwenimage.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":"src/diffusers/models/transformers/transformer_nucleusmoe_image.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"9492d957d71df1e7c4236a5b2c7e37a672a15b2dde29ddce9ea6be01ca6d6b05"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060joint_attention_kwargs is not None and \u0022ip_adapter_image_embeds\u0022 in joint_attention_kwargs\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/transformers/transformer_chroma.py, src/diffusers/models/transformers/transformer_flux.py, src/diffusers/models/transformers/transformer_sd3.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":"src/diffusers/models/transformers/transformer_chroma.py"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be29e3ee81fa6ba5a53e79cf1b8d21a38909f8f0f3f7a2278521048e5bd3fb2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060k in callback_on_step_end_tensor_inputs or []\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/anyflow/pipeline_anyflow.py, src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"6560d345718a69af4eda1174287acba0a606cda2850f1734492561fdd3f11b5f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060k in expected_kwargs or k in optional_kwargs\u0060 appears character-identically in 2 files \u2014 src/diffusers/loaders/single_file_model.py, src/diffusers/models/unets/unet_motion_model.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":"src/diffusers/loaders/single_file_model.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fd9faf81fa73b924c72d7dad118b8a6a6a19dbaa3b4728e978b63e21031cec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060k not in attn_parameters and k not in quiet_attn_parameters\u0060 appears character-identically in 7 files \u2014 src/diffusers/models/attention_processor.py, src/diffusers/models/transformers/transformer_bria.py, src/diffusers/models/transformers/transformer_bria_fibo.py, src/diffusers/models/transformers/transformer_flux.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":"src/diffusers/models/attention_processor.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacef58c87a1f5d97928fa184adaed4645b44dccb4f12ad536dc24c99b6a2bd1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060k.endswith(\u0022.self_attn.q_proj.bias\u0022) or k.endswith(\u0022.self_attn.k_proj.bias\u0022) or k.endswith(\u0022.self_attn.v_proj.bias\u0022)\u0060 appears character-identically in 2 files \u2014 scripts/convert_diffusers_to_original_sdxl.py, scripts/convert_diffusers_to_original_stable_diffusion.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/convert_diffusers_to_original_sdxl.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94aa736da148930bd4a100c1d994b04aa1eaab4aae4266932a0bf921fb9fea7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060k.endswith(\u0022.self_attn.q_proj.weight\u0022) or k.endswith(\u0022.self_attn.k_proj.weight\u0022) or k.endswith(\u0022.self_attn.v_proj.weight\u0022)\u0060 appears character-identically in 2 files \u2014 scripts/convert_diffusers_to_original_sdxl.py, scripts/convert_diffusers_to_original_stable_diffusion.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/convert_diffusers_to_original_sdxl.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ecd84a4a190beffc3e8a1d2345ff26fa6a646ff683fd6962616ea7ea8bce1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kwargs.get(\u0022image\u0022) is not None or kwargs.get(\u0022last_image\u0022) is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/minimax_h3/modular_blocks_minimax_h3.py, src/diffusers/modular_pipelines/pika_h3_flex/modular_blocks_pika_h3_flex.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":"src/diffusers/modular_pipelines/minimax_h3/modular_blocks_minimax_h3.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"71efb44f079e8a1e47e69a9c3056fed368b225056b1519a49f9428c5d77ba987"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060latents is not None and generator is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/marigold/pipeline_marigold_depth.py, src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py, src/diffusers/pipelines/marigold/pipeline_marigold_normals.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":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a0d147234213017d33c2227f45ee35f3c2e43ca1bde5279ef0ef27f695c231"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060latents is not None and latents.ndim != 5\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c359e5c35f6168d19bdba507bf5e95a3bf9b6f8d6d3de2bea0d6b70231121da3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060latents.ndim != 3 or latents.shape[:2] != conditioning_mask.shape\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.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":"src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f63c02f5f7f250ea24e26d2202cef9fc8add8f1b01462738dca79cc9cd8ffa3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060latents.ndim != 3 or latents.shape[:2] != conditioning_mask.shape[:2]\u0060 appears character-identically in 3 files \u2014 src/diffusers/modular_pipelines/ltx2/before_denoise.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"4461a1a3bd3c5f470f946074383ceed199b31ad7b7b6c382477ec8be96590a11"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060latents_mean is not None and latents_std is not None\u0060 appears character-identically in 9 files \u2014 src/diffusers/loaders/single_file_utils.py, src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py, src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.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":"src/diffusers/loaders/single_file_utils.py"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6dd0edae5e0854916a0285b445731a2bdf57c5c8bcff57b81e1a4694d43e1cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(args) \u003E 0 or kwargs.get(\u0022scale\u0022, None) is not None\u0060 appears character-identically in 9 files \u2014 src/diffusers/models/activations.py, src/diffusers/models/attention.py, src/diffusers/models/attention_processor.py, src/diffusers/models/downsampling.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":"src/diffusers/models/activations.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f8d406cb9f4900d4c750b927b982b37dcb54af908b3177e4ea703eb40df22d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(lines[line_index]) \u003C= 1 or lines[line_index].startswith(\u0022 \u0022 * 8)\u0060 appears character-identically in 2 files \u2014 utils/check_dummies.py, utils/check_inits.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":"utils/check_dummies.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46cbbd82ca862ae3e95fc56f024d1e97da3d8d2c98a509030823204bd5173b2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(prompt) \u003C image_embeds.shape[0] and image_embeds.shape[0] % len(prompt) == 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py, src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"4daf124e4c7dbbf42e92b6cc3afbe64c0f552fe105c4a1016f6b44776ac885cc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lora_scale is not None and isinstance(self, FluxLoraLoaderMixin)\u0060 appears character-identically in 19 files \u2014 src/diffusers/pipelines/bria/pipeline_bria.py, src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py, src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.py, src/diffusers/pipelines/chroma/pipeline_chroma.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":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0ed67fbb939fc87cfaece66462b439491744fc0b67f29a77469aaaecab1ea4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lora_scale is not None and isinstance(self, SD3LoraLoaderMixin)\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py, src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py, src/diffusers/pipelines/pag/pipeline_pag_sd_3.py, src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0dcad624ef60b6a2a1b188959b3bb95f2d5c5e85a34e44e0366ab38d7278287"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lora_scale is not None and isinstance(self, SanaLoraLoaderMixin)\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/sana/pipeline_sana.py, src/diffusers/pipelines/sana/pipeline_sana_controlnet.py, src/diffusers/pipelines/sana/pipeline_sana_sprint.py, src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.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":"src/diffusers/pipelines/sana/pipeline_sana.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c01e11fbd407562cce48da6e4d4fa878e89b9a90cd050826fdc0b1eda5a193"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lora_scale is not None and isinstance(self, StableDiffusionLoraLoaderMixin)\u0060 appears character-identically in 45 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ac489d5d1c688067e84f068b28f13d651aedf9ea2d904a9f59b56bde9fb027"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lora_scale is not None and isinstance(self, StableDiffusionXLLoraLoaderMixin)\u0060 appears character-identically in 20 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"62bc6c79ff8114b4478adfbdf7f9c7894acf81736ff81e827c8a6c5cf973900c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060low_cpu_mem_usage and not is_accelerate_available()\u0060 appears character-identically in 2 files \u2014 src/diffusers/loaders/ip_adapter.py, src/diffusers/models/modeling_utils.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":"src/diffusers/loaders/ip_adapter.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03927ab06e3a2b7aacc1a1e89df293af3cc6fb0c95472c858814f1419c73273"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mask_image.ndim == 3 and mask_image.shape[0] != 1\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed828f8d6eb6126130667ceb649a1021c13a749c8f80fc8267baaa1aee3ac3d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mask_image.ndim == 3 and mask_image.shape[0] == 1\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49d251dd29b932cca9eb81098df260183358313a1e127da3233dcdf1721750b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060masked_image is not None and masked_image.shape[1] == 4\u0060 appears character-identically in 4 files \u2014 src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py, src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py, src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py, src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.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":"src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.py"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc90d0e39b82af8569bc2d358c75363e67342bd464bf4398e153e223df429e5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060max_sequence_length is not None and max_sequence_length \u003E 1024\u0060 appears character-identically in 14 files \u2014 src/diffusers/modular_pipelines/qwenimage/encoders.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.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":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4c64cdbffca01db5d32bc1c7f3d38272b7d280da267debf40485852f701d0d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060max_sequence_length is not None and max_sequence_length \u003E 256\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/kolors/pipeline_kolors.py, src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py, src/diffusers/pipelines/pag/pipeline_pag_kolors.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":"src/diffusers/pipelines/kolors/pipeline_kolors.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8584d7c4e460e557e2abbdff275c2963ccf83cf6fff4cc4682b5aa12fa297c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060max_sequence_length is not None and max_sequence_length \u003E 3000\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py, src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.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":"src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87932bfcd7da4bb062c5d79a7aa4abd52fee19d8d0abf8b5b28cdc85afe99ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060max_sequence_length is not None and max_sequence_length \u003E 512\u0060 appears character-identically in 24 files \u2014 src/diffusers/pipelines/bria/pipeline_bria.py, src/diffusers/pipelines/chroma/pipeline_chroma.py, src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py, src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.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":"src/diffusers/pipelines/bria/pipeline_bria.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea11ea5f32d29ebce711917162ee685f200be88f19374cda237fe1b661a568d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060max_sequence_length is not None and prompt_embeds.shape[1] \u003E max_sequence_length\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py, src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.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":"src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ef032cc7c3b7f59bd09128b31bd876030b6c22a9e922fed1706e81a0aac254"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060max_size is not None and max_resolution is None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py, src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.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":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"1337619812ed55c773e20142940a766cbdb6b5c06e25971d2f8d3e796ee26321"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mid_block_additional_residual is not None and down_block_additional_residuals is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c32c614440ca96b850a97ab5c0f2ad15c9063eb776716c264ebf99d9db646a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model_output.shape[1] == sample.shape[1] * 2 and self.variance_type in [ \u0022learned\u0022, \u0022learned_range\u0022, ]\u0060 appears character-identically in 2 files \u2014 src/diffusers/schedulers/scheduling_ddpm.py, src/diffusers/schedulers/scheduling_ddpm_parallel.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":"src/diffusers/schedulers/scheduling_ddpm.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa138439d237295fc4fa1885132ee9e31404fd9af0c86685d9035faaa41f191"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name not in _ALL_TRANSFORMER_BLOCK_IDENTIFIERS or not isinstance(submodule, torch.nn.ModuleList)\u0060 appears character-identically in 3 files \u2014 src/diffusers/hooks/first_block_cache.py, src/diffusers/hooks/mag_cache.py, src/diffusers/hooks/sea_cache.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":"src/diffusers/hooks/first_block_cache.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"58dd067486789c1d25fcdcafffb79a95ba2953de4986ed4ad5bb589b195a4d66"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_ip_adapter_image is None and negative_ip_adapter_image_embeds is None\u0060 appears character-identically in 9 files \u2014 src/diffusers/pipelines/chroma/pipeline_chroma.py, src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py, src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py, src/diffusers/pipelines/flux/pipeline_flux.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":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"333368a51e9202813bd4126d4d3e9d9e0827edf3aed220420deb84c8e43b8724"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_ip_adapter_image is not None or negative_ip_adapter_image_embeds is not None\u0060 appears character-identically in 9 files \u2014 src/diffusers/pipelines/chroma/pipeline_chroma.py, src/diffusers/pipelines/chroma/pipeline_chroma_img2img.py, src/diffusers/pipelines/chroma/pipeline_chroma_inpainting.py, src/diffusers/pipelines/flux/pipeline_flux.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":"src/diffusers/pipelines/chroma/pipeline_chroma.py"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a66245ae8d201a1da628897d54fa6f9e9e8e5e6b69d3537d58a0c3900c60f26"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_original_size is not None and negative_target_size is not None\u0060 appears character-identically in 11 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py, src/diffusers/pipelines/deprecated/controlnet_xs/pipeline_controlnet_xs_sd_xl.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a72f916f6335b27bf590da004ab234a85b6e29faf95e3c30960c6e50bf6640a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_pooled_prompt_embeds is None and negative_prompt_embeds[0].ndim == 2\u0060 appears character-identically in 19 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d3789ad389ae41145f69e825e1e5b7a68fd0f6b3a19cf90f3994d659c1b4e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt is None and negative_prompt_embeds is None\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py, src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py, src/diffusers/pipelines/joyimage/pipeline_joyimage_edit_plus.py, src/diffusers/pipelines/krea2/pipeline_krea2.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":"src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc3fc3fabfde6a318a521c26ed10688724a392a87512a69a33b0d206ce2b0dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt is None and self.config.force_zeros_for_empty_prompt\u0060 appears character-identically in 23 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b320b95afff3810d3d4c0bbcd695f9d9631e47e076229c435e4e9e38daae2aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt is not None and ( not isinstance(negative_prompt, str) and not isinstance(negative_prompt, list) )\u0060 appears character-identically in 20 files \u2014 src/diffusers/pipelines/anyflow/pipeline_anyflow.py, src/diffusers/pipelines/anyflow/pipeline_anyflow_far.py, src/diffusers/pipelines/chronoedit/pipeline_chronoedit.py, src/diffusers/pipelines/helios/pipeline_helios.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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"56252a237b74b283819c827f5b6b555339e8d056dae7d526539bbd7f7601dd31"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt is not None and isinstance(negative_prompt, str)\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py, src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py, src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.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":"src/diffusers/pipelines/easyanimate/pipeline_easyanimate.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad68e4487b3f8ff9fc428c9e033d65fb30e4acca0c90481ee9aae78796f5bd8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt is not None and negative_prompt_embeds is not None\u0060 appears character-identically in 165 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9550c857b09537b71abf3ade484ede7ac8801205076ddf42dffc24a35c94216"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt is not None and not isinstance(negative_prompt, (str, list))\u0060 appears character-identically in 4 files \u2014 src/diffusers/modular_pipelines/cosmos/encoders.py, src/diffusers/modular_pipelines/helios/encoders.py, src/diffusers/pipelines/cosmos/pipeline_cosmos3_omni.py, src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.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":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c28bc687bba30ef018eef7d8158c7514116f2cfe59da265a19abc495f1a3d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt is not None and not isinstance(negative_prompt, list)\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py, src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.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":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"e664c095bd0e1c9a91a5e0ee689d4fcccc8fd1edd91e717fe21d374692f9737b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt is not None and not isinstance(negative_prompt, str)\u0060 appears character-identically in 3 files \u2014 src/diffusers/modular_pipelines/cosmos/encoders.py, src/diffusers/modular_pipelines/pan2/encoders.py, src/diffusers/pipelines/longcat_audio_dit/pipeline_longcat_audio_dit.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":"src/diffusers/modular_pipelines/cosmos/encoders.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2cb11fa1b75a21b1c36d7787e43a8d46d84d5795079c1818a1dc11e8c70ed4e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt is not None and not isinstance(negative_prompt, str) and not isinstance(negative_prompt, list)\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/qwenimage/encoders.py, src/diffusers/modular_pipelines/qwenimage21/encoders.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":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"363da95878c84cf870dc34fe8e4b461b76d4fe6fadd27db196f8bead03379ffc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt is not None or negative_prompt_embeds is not None\u0060 appears character-identically in 11 files \u2014 src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"92be76c1c255ffdb8751638e12e281ba9f3e42b1a6644a2291415b57fd3dbb38"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_2 is not None and negative_prompt_embeds is not None\u0060 appears character-identically in 32 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91fe39a3cf8466dddb28a462a7498c8ac8040080205cdadfa1e29fbc27e0c4e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_3 is not None and negative_prompt_embeds is not None\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py, src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py, src/diffusers/pipelines/pag/pipeline_pag_sd_3.py, src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7c40c8d3fc19fa342d7506859cf8c78dd7ab37f65ed62dd7229366c339c472"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds is None and do_classifier_free_guidance\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py, src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py, src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.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":"src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen_prior.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"876be83deb2a5af7cd211923c13cd569bd4757a7db097727733614c5b4df3cdd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds is None and negative_encoder_hidden_states is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/deprecated/amused/pipeline_amused.py, src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py, src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.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":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce28b149e10d87bd86d85e34fb82aad682e6c3af61027be12f87d0848f20df35"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds is None and negative_prompt is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/motif_video/pipeline_motif_video.py, src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.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":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef6de91aba50227650bb2be0f4ae9d6919bf6aa6800d8707b1ac017dea03a46"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds is None and negative_prompt_embeds_mask is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/qwenimage/inputs.py, src/diffusers/modular_pipelines/qwenimage21/inputs.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":"src/diffusers/modular_pipelines/qwenimage/inputs.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb569fb748f9cd3f4710a68aa2b869cd80f05fcd3351d611cd01fab68be770e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds is not None and negative_attention_mask is None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py, src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.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":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf00c6b26cba93f55d23c533ba348d5d9931753c9579be7806cc14d2d3a2fedb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds is not None and negative_attention_mask is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py, src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.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":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf64db6fb70804680f07d4e12fe3b7bd68ddc9c1a5d2aa339e074f10100094a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds is not None and negative_encoder_hidden_states is None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/deprecated/amused/pipeline_amused.py, src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py, src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.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":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed05b4114b6fd51fe6a7defa2331d91b1d0642485b3e43c4591f14aa13895e89"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds is not None and negative_pooled_prompt_embeds is None\u0060 appears character-identically in 32 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"6012c8fa4e3577ed607b98bf71f427badd853738b116bc3c91bc8669fb4e47d6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds is not None and negative_pooled_prompt_embeds is not None\u0060 appears character-identically in 10 files \u2014 src/diffusers/pipelines/flux/pipeline_flux.py, src/diffusers/pipelines/flux/pipeline_flux_controlnet.py, src/diffusers/pipelines/flux/pipeline_flux_img2img.py, src/diffusers/pipelines/flux/pipeline_flux_inpaint.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":"src/diffusers/pipelines/flux/pipeline_flux.py"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cb20528ed01649fd8a50d556a84e1095d1d5ab515f68f164d2e16c62a47bfb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds is not None and negative_prompt_attention_mask is None\u0060 appears character-identically in 31 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py, src/diffusers/pipelines/chroma/pipeline_chroma.py, src/diffusers/pipelines/chroma/pipeline_chroma_img2img.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb83ad2cee3beb3e34c128783302716d7ccf2bd872d8796a1a5e3527cc0fa41"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds is not None and negative_prompt_embeds_mask is None\u0060 appears character-identically in 16 files \u2014 src/diffusers/modular_pipelines/qwenimage/inputs.py, src/diffusers/modular_pipelines/qwenimage21/inputs.py, src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py, src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.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":"src/diffusers/modular_pipelines/qwenimage/inputs.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0df32fccf9ebd3abfcddc5af1881a918f83ef86604977571f1236febd6c8179"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds_2 is not None and negative_prompt_attention_mask_2 is None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py, src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py, src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.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":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"756661bf5e6055abd12094f144c9c6c8273abb40101b43ce27acb77715c1c5ae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds_2 is not None and negative_prompt_embeds_mask_2 is None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py, src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.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":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace9171678c765d3d0a6cdf26774c433e204bc1402a861629339921b15b5f9a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds_qwen is None or negative_prompt_embeds_clip is None or negative_prompt_cu_seqlens is None\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e552e7db839661ffb4f8ec4ae12d93de44dd2e468c66944f00129a08604a5bc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060negative_prompt_embeds_qwen is not None or negative_prompt_embeds_clip is not None or negative_prompt_cu_seqlens is not None\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1035d3f947a5be42d04721df767b222601e2716fb386e99a711bf5c8eff4ef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060noise_level \u003C 0 or noise_level \u003E= self.image_noising_scheduler.config.num_train_timesteps\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py, src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py, src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e8a4a24cccbe2c5b627b0b4094ceba547590ce97e04777f89f87663032292a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060norm_type in (\u0022ada_norm\u0022, \u0022ada_norm_zero\u0022) and num_embeds_ada_norm is None\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/attention.py, src/diffusers/models/transformers/transformer_2d_dreamlite.py, src/diffusers/pipelines/deprecated/unidiffuser/modeling_uvit.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":"src/diffusers/models/attention.py"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd343667f2f57e24ab711cac0ca3788cf4269b63d2326215decf4a0771fd6198"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not accepts_timesteps and not accepts_sigmas\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/cogview4/pipeline_cogview4.py, src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py, src/diffusers/pipelines/glm_image/pipeline_glm_image.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":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b618e26541024816a794cfeca5ccf9a29349b303417eb88f964745fd1fab0db6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not image_is_pil and not image_is_tensor and not image_is_np and not image_is_pil_list and not image_is_tensor_list and not image_is_np_list\u0060 appears character-identically in 17 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf708b47aa2678c1218f86af29f9f1cbd2863e5cec2fd4ee640f891291ff2b73"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not indices or round(cursor) \u003E indices[-1]\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/minimax_h3/encoders.py, src/diffusers/modular_pipelines/pika_h3_flex/encoders.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":"src/diffusers/modular_pipelines/minimax_h3/encoders.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"46df372d69e461e6489afef959e72adbce96cf061ab9561b45f462d86c4a730c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not is_adapter and mid_block_additional_residual is None and down_block_additional_residuals is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64f0adec21032a1a1051d7565f72eeee5d7a9bcca5b64897eb5f483383686ce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not is_compiling and self._freqs_cache is not None and self._freqs_cache[0] == cache_key\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/transformers/transformer_anyflow.py, src/diffusers/models/transformers/transformer_anyflow_far.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":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c40c8db333642bdc491308b60ec2fa4a46d869c81462befe0bb48a40b7489e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not is_final_block and forward_upsample_size\u0060 appears character-identically in 7 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/models/unets/unet_3d_condition.py, src/diffusers/models/unets/unet_i2vgen_xl.py, src/diffusers/models/unets/unet_motion_model.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c24177fb626e52e6befc759f27c9418d672f32bcc35a0da66c2a5f3a855ad16"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(attention_head_dim, int) and len(attention_head_dim) != len(down_block_types)\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/audioldm2/modeling_audioldm2.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a831b4bfe8c1b00a79152021e4801e1575a3af1276f3cc581894463b78cb7a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(block_state.control_guidance_end, list) and isinstance( block_state.control_guidance_start, list )\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/qwenimage/before_denoise.py, src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.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":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"3688a42bc4931b9567464ed55506d3eb2e42de4d9d844553822ba4334a627b81"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(block_state.control_guidance_start, list) and isinstance( block_state.control_guidance_end, list )\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/qwenimage/before_denoise.py, src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.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":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7de4a25dfee4a41aedbd2b6b87339d9054dc976da5fdfe6bf0129cee7bff7c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(block_state.control_guidance_start, list) and not isinstance( block_state.control_guidance_end, list )\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/qwenimage/before_denoise.py, src/diffusers/modular_pipelines/stable_diffusion_xl/before_denoise.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":"src/diffusers/modular_pipelines/qwenimage/before_denoise.py"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5b0f97af6d83d7b792d3d2cab511347a16155eacbe86e74db00c85e7bb81e7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(callback_steps, int) or callback_steps \u003C= 0\u0060 appears character-identically in 77 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py, src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f710aaeababae530ee569e6aa85f541470ca3ba53a39e2ff0c0fdd90dfdfe40"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(check_image_type, torch.Tensor) and not isinstance(check_image_type, PIL.Image.Image) and not isinstance(check_image_type, np\u2026\u0060 appears character-identically in 5 files \u2014 src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"48dfac08ba4fcfc6ccc8af2e0c71c7fd05b9cbaa90efd62922848fc92171b168"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(control_guidance_end, list) and isinstance(control_guidance_start, list)\u0060 appears character-identically in 22 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"060877763d53e7a824b56a41004c77c6cd583053afafc7e6efbde8d7e479158e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(control_guidance_start, list) and isinstance(control_guidance_end, list)\u0060 appears character-identically in 22 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67c9c84891adf97a88177b4f9b78caa315174a229b4a3de233a98a95ffe3944"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(control_guidance_start, list) and not isinstance(control_guidance_end, list)\u0060 appears character-identically in 22 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad064a49084e5982de3c4c4dee7d0752117c78cd76724a32a4225a1a06cd88cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(image, torch.Tensor) and not isinstance(image, PIL.Image.Image) and not isinstance(image, list)\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py, src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py, src/diffusers/pipelines/deprecated/paint_by_example/pipeline_paint_by_example.py, src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.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":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"dedba3959ca92912ffc59fb1ea3f3f3b7c098313c3289629c79d0f7994f76afa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(image, torch.Tensor) and not isinstance(image, list)\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7dfea5644277ceb38bb7cca498befbedc69a656617aff43ac5c4a3f09ded49"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(layers_per_block, int) and len(layers_per_block) != len(down_block_types)\u0060 appears character-identically in 5 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/models/unets/unet_motion_model.py, src/diffusers/models/unets/unet_spatio_temporal_condition.py, src/diffusers/pipelines/audioldm2/modeling_audioldm2.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9e625ccdd18653b3bb3bae902f17ca8d61fdf87ffe0bfdcac661c5809c0bae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(negative_prompt, list) and negative_prompt is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py, src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py, src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8789cde84c3e0106c33dc3295fffbabe0e5ac7989f56bae133c85c14c53de3f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(num_attention_heads, int) and len(num_attention_heads) != len(down_block_types)\u0060 appears character-identically in 10 files \u2014 src/diffusers/models/controlnets/controlnet.py, src/diffusers/models/controlnets/controlnet_sparsectrl.py, src/diffusers/models/controlnets/controlnet_union.py, src/diffusers/models/unets/unet_2d_condition.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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"39241a1275b30bdde5982942f0618d7a1018daadc8cb7ef2c336f553c127a290"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(num_inference_steps, int) or num_inference_steps \u003C= 0\u0060 appears character-identically in 10 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e91b1800bc1162e020732c0cb87bbcf02fb299470fa7a80eaf0fa91834e92c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(only_cross_attention, bool) and len(only_cross_attention) != len(down_block_types)\u0060 appears character-identically in 6 files \u2014 src/diffusers/models/controlnets/controlnet.py, src/diffusers/models/controlnets/controlnet_sparsectrl.py, src/diffusers/models/controlnets/controlnet_union.py, src/diffusers/models/unets/unet_2d_condition.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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f0f1dda5e927df50527659f33f67c544a8535a206ba66f82d810083aec9507"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(prompt, str) and not isinstance(prompt, list)\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/qwenimage/encoders.py, src/diffusers/modular_pipelines/qwenimage21/encoders.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":"src/diffusers/modular_pipelines/qwenimage/encoders.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb5828d37a761c99499ca0af791c3841ee0e0ea662706e09971690043390a38"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(scheduler, DDIMScheduler) and not isinstance(scheduler, DPMSolverMultistepScheduler)\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py, src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.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":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab479fabdf8649c345001a45d4849a224c6956bbc6e280f097dfc31a916e8e21"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self._is_cfg_enabled() and not self._is_slg_enabled()\u0060 appears character-identically in 2 files \u2014 src/diffusers/guiders/perturbed_attention_guidance.py, src/diffusers/guiders/skip_layer_guidance.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":"src/diffusers/guiders/perturbed_attention_guidance.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb0eda73a8a32db37f053fdb67e027b1e709f278d722a65a14a4b6780a88b13"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self._warn_has_been_called and version.parse(version.parse(__version__).base_version) \u003C version.parse( \u00220.23.0.dev0\u0022 )\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py, src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.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":"src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa116527d1f3e3a2ab265de04ebb71b74a5a799151edbb16181942d285a4603"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self.transformer.config.guidance_embeds and guidance_scale is None\u0060 appears character-identically in 8 files \u2014 src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26bbcf2a56e0b8c896ca573b5432d214c0d0fb321e20d62c2c8b86845767ec7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self.transformer.config.guidance_embeds and guidance_scale is not None\u0060 appears character-identically in 8 files \u2014 src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c34dfb5703c2f5e0893eda8592501bb69eecf8718115387196c518f73d4bb5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not use_rotary_positional_embeddings and use_learned_positional_embeddings\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/transformers/cogvideox_transformer_3d.py, src/diffusers/models/transformers/consisid_transformer_3d.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":"src/diffusers/models/transformers/cogvideox_transformer_3d.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f462ae98cf0650b4566bbac97dde232689e08b695371df91c45c8f69992779"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060num_attention_heads or attention_head_dim\u0060 appears character-identically in 8 files \u2014 src/diffusers/models/controlnets/controlnet.py, src/diffusers/models/controlnets/controlnet_sparsectrl.py, src/diffusers/models/controlnets/controlnet_union.py, src/diffusers/models/unets/unet_2d_condition.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":"src/diffusers/models/controlnets/controlnet.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bb12f97b0d03bc0e1c7378dd3702bb06c26365548b0bb3cd40c75256f9c9ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060num_frames % patch_t or height % patch_h or width % patch_w\u0060 appears character-identically in 4 files \u2014 src/diffusers/modular_pipelines/minimax_h3/before_denoise.py, src/diffusers/modular_pipelines/minimax_h3_image/before_denoise.py, src/diffusers/modular_pipelines/p_h3_image/before_denoise.py, src/diffusers/modular_pipelines/pika_h3_flex/before_denoise.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":"src/diffusers/modular_pipelines/minimax_h3/before_denoise.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3c9d9623df56a27dfa88cbe501406cfe2fb135056262dcb134fd667fe432b5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060num_frames \u003E base_num_frames and overlap_history is None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.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":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"952577c0af50d5f1ec0376b80ab9c0002e7bef055f7c161018e67a8868ba5d90"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060num_frames is None and getattr(self, \u0022duration_head\u0022, None) is not None\u0060 appears character-identically in 6 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_dfr_temporal_refine.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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4264a9e3e4366960395e3f0ec8a86a13e5076eed68736e10ca637e586770e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060num_frames is None and not auto_duration\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_image2video.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":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"125857786f37137801a66e6db3b16ed011f449f0f6b27c0babbb936b3f6d94b7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060num_frames or self.transformer.config.sample_frames\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.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":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"767ad4d3617a9b462ba40f512e1e91950d3be49080de2fcd795b5b66d5e19e9d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060num_inference_steps is None and timesteps is None\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py, src/diffusers/schedulers/scheduling_consistency_models.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_singlestep.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":"src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2dad099cddbf24bb32393f695a416d555b71800e326b05bc2f68b9ad78ca1c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060num_inference_steps is None or num_inference_steps \u003C 1\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ace_step/pipeline_ace_step.py, src/diffusers/schedulers/scheduling_piflow.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":"src/diffusers/pipelines/ace_step/pipeline_ace_step.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f657e50d3651b4016b3ae155348cdbda1b33f472e48845e3ac97a9a4b3769f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060num_inference_steps is not None and timesteps is not None\u0060 appears character-identically in 9 files \u2014 src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py, src/diffusers/schedulers/scheduling_consistency_models.py, src/diffusers/schedulers/scheduling_ddpm.py, src/diffusers/schedulers/scheduling_ddpm_parallel.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":"src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6f0d53fade0fb271bec572061eea3d32f8365fdd549ef2b570e2c545daaa50"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060num_train_timesteps or self.config.num_train_timesteps\u0060 appears character-identically in 4 files \u2014 src/diffusers/schedulers/scheduling_dpmsolver_sde.py, src/diffusers/schedulers/scheduling_heun_discrete.py, src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py, src/diffusers/schedulers/scheduling_k_dpm_2_discrete.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":"src/diffusers/schedulers/scheduling_dpmsolver_sde.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"4422456202a4346f9cc9fe3c604453c020bc36c2b2f61eec3dc2590754eb5958"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060num_waveforms_per_prompt \u003E 1 and prompt is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py, src/diffusers/pipelines/deprecated/musicldm/pipeline_musicldm.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":"src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4c5e6433e9d3b7e193141c6dfb0fc3c132925f1540cd141d95caac0463360f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060orig_height != new_height or orig_width != new_width\u0060 appears character-identically in 2 files \u2014 src/diffusers/image_processor.py, src/diffusers/video_processor.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":"src/diffusers/image_processor.py"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5838404430e2f2de1203e9ed2923d65c368276759cf8f3af5875a3de63b09d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060original_samples.device.type == \u0022mps\u0022 and torch.is_floating_point(timesteps)\u0060 appears character-identically in 16 files \u2014 src/diffusers/schedulers/scheduling_consistency_models.py, src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_deis_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep.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":"src/diffusers/schedulers/scheduling_consistency_models.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"5889871123a12c513670a7444fa782e57f7b4efefc63abe051c737b2adeae040"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060original_size or control_image.shape[-2:]\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py, src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"beec53b29bb769af89b3ece0a917603f51724ff3517605d85018cddc29286e29"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060original_size or control_image[0].shape[-2:]\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py, src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"52933f1a3023148c831432a16e1f686c4241c20cf1424408b751c89ba1605387"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060overlap_history is not None and base_num_frames is not None and num_frames \u003E base_num_frames\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.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":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb13838baf086f6faf665f14bfd4ee6ca390ed5d7e688f2517bd86d6af89b09"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060patch_size is not None and patch_size_t is not None\u0060 appears character-identically in 9 files \u2014 src/diffusers/modular_pipelines/ltx2/before_denoise.py, src/diffusers/modular_pipelines/ltx2/decoders.py, src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.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":"src/diffusers/modular_pipelines/ltx2/before_denoise.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f260f0d6bda0088315e1f14d58c662954cb23fc76de9fbfff94eedef63d0f5d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060patch_size_t is not None and latent_frames % patch_size_t != 0\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.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":"src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"3083549230b66f3b7442392ea481af3810e43241867a7bd583d53a5ec78ed496"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pooled_prompt_embeds is None and prompt_embeds[0].ndim == 2\u0060 appears character-identically in 19 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a2418aa21ac9ac8ddacdbfe76419c70cd101080b31b27fa2447f6ffd24dc40"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060position_ids.ndim != 2 or position_ids.shape[-1] != 3\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/transformers/transformer_krea2.py, src/diffusers/models/transformers/transformer_minimax_h3.py, src/diffusers/models/transformers/transformer_minimax_h3_image.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":"src/diffusers/models/transformers/transformer_krea2.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0940439278a3b7a4d43f52349cbab3a0730042eda3cc379c1c2266be16662d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060positional_embeddings and (num_positional_embeddings is None)\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/attention.py, src/diffusers/models/transformers/transformer_2d_dreamlite.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":"src/diffusers/models/attention.py"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3c6cbdbc40d28b5dfab900d7adc29562b397d7dcfa0b225eb94a24edcbae55"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pred_latent.dim() != 4 or pred_latent.shape[1] != self.vae.config.latent_channels\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/marigold/pipeline_marigold_depth.py, src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py, src/diffusers/pipelines/marigold/pipeline_marigold_normals.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":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"71894ca69862c58c732d031cfba2a18b2a8179677525f2bb6e13d68049d3f07d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060processor or self._default_processor_cls()\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_mmaudio.py, src/diffusers/models/transformers/transformer_kandinsky6.py, src/diffusers/models/transformers/transformer_kandinsky6_sr.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":"src/diffusers/models/autoencoders/autoencoder_mmaudio.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cc4c4d5a4300cb726ee13a572416edac6db854ffc1726f9491926560987cb6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is None and prompt_embeds is None\u0060 appears character-identically in 203 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4561be7b7a9fdac8088f89b353aa8d3e59e5c5f58ded26fa6f8058d01716ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is None and prompt_embeds_2 is None\u0060 appears character-identically in 5 files \u2014 src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py, src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py, src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py, src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.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":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"273f493ac4817507161732b850729f547190cae6f63c38f6ce1bf59477204805"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is None and prompt_embeds_qwen is None\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b190cad44d4b5442f955c1676dd9d4e5ca2069e25a04ee9e31448d064bd559f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is not None and (not isinstance(prompt, str) and not isinstance(prompt, list))\u0060 appears character-identically in 196 files \u2014 src/diffusers/modular_pipelines/flux/encoders.py, src/diffusers/modular_pipelines/flux2/encoders.py, src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.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":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b9e1fd9368e4b3069c8982010ed0ccaf7ddcd8b824d95d7700bdefd9fde398"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is not None and isinstance(prompt, (str, dict))\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"159926fd5d15dd9264d06ac9b6495a897b6a8008ad314f2e961b0ac056c0c992"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is not None and isinstance(prompt, list)\u0060 appears character-identically in 207 files \u2014 src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py, src/diffusers/pipelines/ace_step/pipeline_ace_step.py, src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/animatediff/pipeline_animatediff.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":"src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"08acf7c975f80b6a154d502381a5d4f91253e9a53d62a68ad0cee2ed50970c66"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is not None and isinstance(prompt, str)\u0060 appears character-identically in 208 files \u2014 src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py, src/diffusers/pipelines/ace_step/pipeline_ace_step.py, src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/animatediff/pipeline_animatediff.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":"src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f19de01db0ce22df5877b951dd7a21e7b9945e56db476df30a742bfb19faf4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is not None and messages is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py, src/diffusers/pipelines/llada2/pipeline_llada2.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":"src/diffusers/pipelines/diffusion_gemma/pipeline_diffusion_gemma.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0ab0f79c631deb5bf6434650a57279fb9d89c8c9c423ac43f32b80c7bccae2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is not None and negative_prompt is not None\u0060 appears character-identically in 11 files \u2014 src/diffusers/modular_pipelines/helios/encoders.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.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":"src/diffusers/modular_pipelines/helios/encoders.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb4ffa03425c9daf1368d8d14d2059ef84df2b40c687b325d47744d568ffdbd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is not None and negative_prompt_embeds is not None\u0060 appears character-identically in 18 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6a7d8d6d409e0b44918a190d1b940c5d2db807d9a9edf345d57d9c67fee540"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is not None and not isinstance(prompt, (str, list))\u0060 appears character-identically in 7 files \u2014 src/diffusers/modular_pipelines/helios/encoders.py, src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.py, src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.py, src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.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":"src/diffusers/modular_pipelines/helios/encoders.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d549e08099c9975424baa5fc9a3a3107a0744952d605df37c15988398bf3a80"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is not None and not isinstance(prompt, (str, list, dict))\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"03435f2397834e0eb23100483615d50e42284c6a9bfa9dbc7663d1d5fb41b99c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is not None and not isinstance(prompt, str)\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py, src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.py, src/diffusers/pipelines/wan/pipeline_wan_vace.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":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2680deb309f67c362a99de8fd3639cc660d8dae3d56de1f571f02c126aa1fac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is not None and prompt_embeds is not None\u0060 appears character-identically in 206 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"216c95aedf4461a79deea19345f753d86e528eb9c52fc43d37f6aec5bd49595f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt is not None and type(prompt) is not type(negative_prompt)\u0060 appears character-identically in 123 files \u2014 src/diffusers/modular_pipelines/anima/encoders.py, src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py, src/diffusers/modular_pipelines/wan/encoders.py, src/diffusers/modular_pipelines/z_image/encoders.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":"src/diffusers/modular_pipelines/anima/encoders.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b025428603e99eebae907c22c40584cf71e21a9a62abe089c0f60ca5ebccd205"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_2 is not None and (not isinstance(prompt_2, str) and not isinstance(prompt_2, list))\u0060 appears character-identically in 43 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e06e2a13d7e751d2dc91006ff386553794535aceefebe6b487731603d24c14e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_2 is not None and prompt_embeds is not None\u0060 appears character-identically in 42 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50506084879339e5ada035910a38d22ed6c368be805dc0a13c2ba69eba1c1fa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_3 is not None and (not isinstance(prompt_3, str) and not isinstance(prompt_3, list))\u0060 appears character-identically in 8 files \u2014 src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py, src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py, src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py, src/diffusers/pipelines/pag/pipeline_pag_sd_3.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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a513cdb6f2a9294112f3b92a2523f6a04e0d6d8fb94bad82e1c8ef2f003499"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_3 is not None and prompt_embeds is not None\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py, src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py, src/diffusers/pipelines/pag/pipeline_pag_sd_3.py, src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a2d5b68566ed7275220f015a8ca6a032ae61e5fc5c6d9f016341fd8f69e923"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds is None and encoder_hidden_states is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/deprecated/amused/pipeline_amused.py, src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py, src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.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":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f01ca3cd3fe9c5c7cbb8bc76ad0c75e789fa8565c9534dfa846f99d134a2d44"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds is not None and attention_mask is None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py, src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.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":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"511dd8120dfc0b2c5dd7ee5cb1854093d3634bdced7546b144183a87da05f417"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds is not None and attention_mask is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py, src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.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":"src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc8b1028424daf6eaccbd8df8412f7701e4f7dd72767721a0d87cb5e1d9790b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds is not None and encoder_attention_mask is not None and prompt_embeds.shape[:2] != encoder_attention_mask.shape\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py, src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_audio2audio.py, src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3_inpaint.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":"src/diffusers/pipelines/stable_audio_3/pipeline_stable_audio_3.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d739f5b742465b59797b86b889e0f11fd91aecdc36330f594e19ea4b3057c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds is not None and encoder_hidden_states is None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/deprecated/amused/pipeline_amused.py, src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py, src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.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":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de5fa1946d15b1e3e0a5a4b77321a4fb6ba92824266ba594e994e906cf59424"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds is not None and guidance_scale \u003E 1.0 and negative_prompt_embeds is None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/prx/pipeline_prx.py, src/diffusers/pipelines/prx/pipeline_prx_pixel.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":"src/diffusers/pipelines/prx/pipeline_prx.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"366844713f5163b4fb98dd422004439687a1fa522f7b2e84edfed3cd84b1e73a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds is not None and negative_prompt_embeds is not None\u0060 appears character-identically in 134 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffed084e856ecdc36cfa205e9855007ec245bea4f5318c81526113fecde34a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds is not None and pooled_prompt_embeds is None\u0060 appears character-identically in 38 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99e3f9401ae4e392a2e0302c36c4f80143df007faaf48ddd6f46eca704c88f0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds is not None and prompt is None\u0060 appears character-identically in 6 files \u2014 src/diffusers/pipelines/z_image/pipeline_z_image.py, src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py, src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py, src/diffusers/pipelines/z_image/pipeline_z_image_img2img.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":"src/diffusers/pipelines/z_image/pipeline_z_image.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f677bcdfc82bb56e6c40337b56b892b2958dbd57311c0745d0935ea35b4b4e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds is not None and prompt_attention_mask is None\u0060 appears character-identically in 33 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py, src/diffusers/pipelines/chroma/pipeline_chroma.py, src/diffusers/pipelines/chroma/pipeline_chroma_img2img.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff779df8698ae33a6c63c66ced92147b00f3b976482a99c1ed718a3147ef28f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds is not None and prompt_embeds_mask is None\u0060 appears character-identically in 14 files \u2014 src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py, src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage_refiner.py, src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py, src/diffusers/pipelines/joyimage/pipeline_joyimage_edit.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":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"c731044e3dcf4170b33558f78fa25ff72b8127d6c9ae2d58748b5510094d6fed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds_2 is not None and negative_prompt_embeds_2 is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py, src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py, src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.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":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"9748a431079105e57c7f29519ad80e512b6aae1b225ba1b2eafc1454debcd63c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds_2 is not None and prompt_attention_mask_2 is None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py, src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py, src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.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":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"79374b3924492862d39b2067e6429d228ba8bde931a16d6c214269b8eef1893c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds_2 is not None and prompt_embeds_mask_2 is None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py, src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.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":"src/diffusers/pipelines/hunyuan_image/pipeline_hunyuanimage.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39b48b208c9c74d5a7b10c12a8406218015ce1c90ebcad9049427c307aa8296"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds_mask is not None and prompt_embeds_mask.all()\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py, src/diffusers/pipelines/qwenimage21/pipeline_qwenimage21.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":"src/diffusers/pipelines/nucleusmoe_image/pipeline_nucleusmoe_image.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"875ea7b7562c4d1a4aa9305760dbe7e81a75321e80e397a52fdd08ab197c1eac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds_qwen is None or prompt_embeds_clip is None or prompt_cu_seqlens is None\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cc2ecc7a12dcca50970c834dc230b87d42929bab9ac8050bb1b29e37238d14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_embeds_qwen is not None or prompt_embeds_clip is not None or prompt_cu_seqlens is not None\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"410843abefdeecb99f42fce30d2a7db2b42b76414bae6ff9029bb623697d6076"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reference_conditions is not None and len(reference_conditions) \u003E 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ada5d022567083cd3c84ba289653e63a0a972469c4c537eff05ad7bd90e15f2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reference_conditions is not None and not isinstance(reference_conditions, list)\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb9a2d02b077dd0fcd9ebf18cf76577244c82c505c7948c5f9c44dece16b9a8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reference_images is None or isinstance(reference_images, PIL.Image.Image)\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/wan/encoders.py, src/diffusers/pipelines/wan/pipeline_wan_vace.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":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5d3ab6c7c3cd2c6ff69556e2dee5f3fcd0aa323ff9b26566c70aff7bcc0360"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060safety_checker is None and requires_safety_checker\u0060 appears character-identically in 43 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py, src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a67aee58803888f371fd752d2a4119e50b3299f79c7553dd50169a22d9104d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060safety_checker is not None and feature_extractor is None\u0060 appears character-identically in 41 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py, src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c31aaf72a0b693bdd0c751e87736284bd2fabe06561903743adc620a85d6ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sample.device.type == \u0022mps\u0022 and torch.is_floating_point(timestep)\u0060 appears character-identically in 2 files \u2014 src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py, src/diffusers/schedulers/scheduling_flow_match_lcm.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":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a58f488bd831c07953fdabdd11ab5055488ee33931c983c2076047d592e79b7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scheduler is not None and getattr(scheduler.config, \u0022clip_sample\u0022, False) is True\u0060 appears character-identically in 10 files \u2014 src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py, src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py, src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.py, src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"8937021a372b331546de106774f2e22fbcb2147b048d9f8fa28fb8900acefe4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scheduler is not None and getattr(scheduler.config, \u0022skip_prk_steps\u0022, True) is False\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py, src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.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":"src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec4ab9145a173f4cad4af19cea81ebbbed66df522aa778dd9b7283d82d1def0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scheduler is not None and getattr(scheduler.config, \u0022steps_offset\u0022, 1) != 1\u0060 appears character-identically in 13 files \u2014 src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py, src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py, src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py, src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"088a751cfbfc6b45228bb885344c378710fca0730c77a7d68015fdf0d28af614"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._caption_logits_processor is None and is_outlines_available()\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/ideogram4/encoders.py, src/diffusers/pipelines/ideogram4/pipeline_ideogram4.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":"src/diffusers/modular_pipelines/ideogram4/encoders.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f5312606dc6642b30443f04c606aab80edd2eda78913ed19f384f35105d899"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._cfg_normalization and float(self._cfg_normalization) \u003E 0.0\u0060 appears character-identically in 6 files \u2014 src/diffusers/pipelines/z_image/pipeline_z_image.py, src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py, src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py, src/diffusers/pipelines/z_image/pipeline_z_image_img2img.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":"src/diffusers/pipelines/z_image/pipeline_z_image.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d9ad52bdb56cd8d9076236b3ae446ff2344f9239b82300264ccc347d670492"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._count_prepared == 1 or self._count_prepared == 3\u0060 appears character-identically in 3 files \u2014 src/diffusers/guiders/perturbed_attention_guidance.py, src/diffusers/guiders/skip_layer_guidance.py, src/diffusers/guiders/smoothed_energy_guidance.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":"src/diffusers/guiders/perturbed_attention_guidance.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6a8eae411cfdb85ceefb01cdf17b98a40cf358b3d65f304094a9f2a4a594e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._guidance_scale \u003E 1 and not self.config.is_distilled\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/flux2/pipeline_flux2_klein.py, src/diffusers/pipelines/flux2/pipeline_flux2_klein_inpaint.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":"src/diffusers/pipelines/flux2/pipeline_flux2_klein.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc29535fd7c9e4acc63f74a7d687193789f25ac000ad7d8b0814608a0afa5bc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._guidance_scale \u003E 1 and self.unet.config.time_cond_proj_dim is None\u0060 appears character-identically in 29 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35ebcc0f7c104ceb30a5c3aa09a64cb1ff6261496c92e15b4041d9d9f7bda16"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._image_latent_inputs or self._additional_batch_inputs\u0060 appears character-identically in 5 files \u2014 src/diffusers/modular_pipelines/flux/inputs.py, src/diffusers/modular_pipelines/helios/before_denoise.py, src/diffusers/modular_pipelines/qwenimage/inputs.py, src/diffusers/modular_pipelines/wan/before_denoise.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":"src/diffusers/modular_pipelines/flux/inputs.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40b364e16a618da42a9126a95ebe2eff8bd63fb1ff3747d4f9a2e4fd3aaec2c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._is_slg_enabled() and self.is_conditional and self._count_prepared \u003E 1\u0060 appears character-identically in 2 files \u2014 src/diffusers/guiders/perturbed_attention_guidance.py, src/diffusers/guiders/skip_layer_guidance.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":"src/diffusers/guiders/perturbed_attention_guidance.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b1b292c2febe921208f1ac978772e99a543397c175e1e2adadae066d00e7b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.config.algorithm_type in [\u0022sde-dpmsolver\u0022, \u0022sde-dpmsolver\u002B\u002B\u0022] and variance_noise is None\u0060 appears character-identically in 2 files \u2014 src/diffusers/schedulers/scheduling_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.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":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae847575132d38ba9d07c68e7dc4ca5d787f56905f1d65994118d05e628b11c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.config.boundary_ratio is None and guidance_scale_2 is not None\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/lucy/pipeline_lucy_edit.py, src/diffusers/pipelines/wan/pipeline_wan.py, src/diffusers/pipelines/wan/pipeline_wan_i2v.py, src/diffusers/pipelines/wan/pipeline_wan_vace.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":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33bc77057feeff238beead5ee6aefb6d7146b1a3cbe7e89890a9f946c67e543"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.config.boundary_ratio is not None and guidance_scale_2 is None\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/lucy/pipeline_lucy_edit.py, src/diffusers/pipelines/wan/pipeline_wan.py, src/diffusers/pipelines/wan/pipeline_wan_i2v.py, src/diffusers/pipelines/wan/pipeline_wan_vace.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":"src/diffusers/pipelines/lucy/pipeline_lucy_edit.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22c127613d59e69bf4a88ec71d8124786d28a0357ad2ee47dc6ab6882e5682d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.config.img_context_dim_in is not None and self.config.img_context_dim_in \u003E 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/controlnets/controlnet_cosmos.py, src/diffusers/models/transformers/transformer_cosmos.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":"src/diffusers/models/controlnets/controlnet_cosmos.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"71af4814e04402c8ae981a378591270fea000bf44cbab686cf010173954c45d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.config.lower_order_final and len(self.timesteps) \u003C 15\u0060 appears character-identically in 4 files \u2014 src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py, src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.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":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"debd4af2ae1fad9150f4c2c6644d55aff99283d998ce75970f3c667d8d41e536"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.config.solver_order == 1 or self.lower_order_nums \u003C 1 or lower_order_final\u0060 appears character-identically in 5 files \u2014 src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_deis_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.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":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a08ba440d7b7a5405ae7675164114a48adf664e4ba864e85a20f269cf5f7fb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.config.solver_order == 2 or self.lower_order_nums \u003C 2 or lower_order_second\u0060 appears character-identically in 5 files \u2014 src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_deis_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.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":"src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf121ff21eb11abdfc30d67a8cd96722324ae552e5cda5066e5ad2ba103a394"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.config.use_beta_sigmas and not is_scipy_available()\u0060 appears character-identically in 13 files \u2014 src/diffusers/schedulers/scheduling_deis_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py, src/diffusers/schedulers/scheduling_dpmsolver_sde.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":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3b4f8708e56068f878ff6ecdff355b0fc3df5f901e57d9d950496a188da0ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.config.use_dynamic_shifting and mu is None\u0060 appears character-identically in 3 files \u2014 src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py, src/diffusers/schedulers/scheduling_flow_match_lcm.py, src/diffusers/schedulers/scheduling_unipc_multistep.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":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f438a690162939a8b53b589bda15b92120a0790ccd2264c42e0d39ef3a28cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.config.use_dynamic_shifting and self.config.time_shift_type == \u0022exponential\u0022\u0060 appears character-identically in 3 files \u2014 src/diffusers/schedulers/scheduling_deis_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_singlestep.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":"src/diffusers/schedulers/scheduling_deis_multistep.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3ccf0558faad9f65cfd1d97fbc8b49076a25257d28ddd90b43b0f70d31ec7a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.custom_timesteps or self.num_inference_steps\u0060 appears character-identically in 4 files \u2014 src/diffusers/schedulers/scheduling_ddpm.py, src/diffusers/schedulers/scheduling_ddpm_parallel.py, src/diffusers/schedulers/scheduling_lcm.py, src/diffusers/schedulers/scheduling_tcd.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":"src/diffusers/schedulers/scheduling_ddpm.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c02e4be65806f86eeaa34939499f979927631fc2056c492dd53d089b6984f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.denoising_end is not None and denoising_value_valid(self.denoising_end)\u0060 appears character-identically in 5 files \u2014 src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py, src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py, src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py, src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.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":"src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"58eb3076a4ea5218ea11d56ef1386d60de3fefe6a943b6a0e110bcc8b5e82d88"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.denoising_end is not None and isinstance(self.denoising_end, float) and self.denoising_end \u003E 0 and self.denoising_end \u003C 1\u0060 appears character-identically in 9 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py, src/diffusers/pipelines/kolors/pipeline_kolors.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"36cc58c94208fb838cf626d811c7efff941dbc0f3ffc1d0d28db52d708c9c167"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.denoising_end is not None and self.denoising_start is not None and denoising_value_valid(self.denoising_end) and denoising_value_valid(\u2026\u0060 appears character-identically in 5 files \u2014 src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py, src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py, src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py, src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.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":"src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77ed70e28f70acad6aaa8a0200b82a14a91590d5d5483aa2f9c189972eedddc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.do_classifier_free_guidance and current_guidance_scale \u003E 0\u0060 appears character-identically in 6 files \u2014 src/diffusers/pipelines/z_image/pipeline_z_image.py, src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py, src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py, src/diffusers/pipelines/z_image/pipeline_z_image_img2img.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":"src/diffusers/pipelines/z_image/pipeline_z_image.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf5b9943aea9a7a0e06e1a371618f2df299433b30f1abfb072ae7d2b88ebfb7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.do_classifier_free_guidance and guidance_rescale \u003E 0.0\u0060 appears character-identically in 9 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py, src/diffusers/pipelines/easyanimate/pipeline_easyanimate.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":1813}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd4d92b198d03e1088c01c74f9e54166374abd819d810fae1f5bd74020f6e20"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.do_classifier_free_guidance and negative_prompt_embeds\u0060 appears character-identically in 6 files \u2014 src/diffusers/pipelines/z_image/pipeline_z_image.py, src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py, src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py, src/diffusers/pipelines/z_image/pipeline_z_image_img2img.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":"src/diffusers/pipelines/z_image/pipeline_z_image.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2c7e6f6bf580fcf0804739eb577b43ed037c962481f146855ba7e215576e70"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.do_classifier_free_guidance and negative_prompt_embeds is None\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py, src/diffusers/pipelines/z_image/pipeline_z_image.py, src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py, src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.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":"src/diffusers/pipelines/deprecated/i2vgen_xl/pipeline_i2vgen_xl.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"6749ab1a9610cf412a635c498add1f818f033814f2b42b4d3471047ccf7ff9a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.do_classifier_free_guidance and self._cfg_truncation is not None and float(self._cfg_truncation) \u003C= 1\u0060 appears character-identically in 6 files \u2014 src/diffusers/pipelines/z_image/pipeline_z_image.py, src/diffusers/pipelines/z_image/pipeline_z_image_controlnet.py, src/diffusers/pipelines/z_image/pipeline_z_image_controlnet_inpaint.py, src/diffusers/pipelines/z_image/pipeline_z_image_img2img.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":"src/diffusers/pipelines/z_image/pipeline_z_image.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4f04bd1335c8570d50bdd1ecd644580b437a5a989a4f35627716d740b0edb5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.do_classifier_free_guidance and self.guidance_rescale \u003E 0.0\u0060 appears character-identically in 13 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py, src/diffusers/pipelines/deprecated/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py, src/diffusers/pipelines/deprecated/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"26050b230dca15ef89d0f6c1530aad74cbe02704a4261396d54e536d82e99c72"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.do_spatio_temporal_guidance or self.do_modality_isolation_guidance\u0060 appears character-identically in 5 files \u2014 src/diffusers/pipelines/ltx2/pipeline_ltx2.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_hdr_lora.py, src/diffusers/pipelines/ltx2/pipeline_ltx2_ic_lora.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ltx2/pipeline_ltx2.py"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"d661158af08d17aed1e2e2ce121dc05fc9c8ba22f7547269bddb0643de90bc79"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.encoder_hid_proj is not None and self.config.encoder_hid_dim_type == \u0022image_proj\u0022\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a8003ed48e74c1da54e4b803cfc79b5485cf2968a053fb289203a4f4a0c10b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.encoder_hid_proj is not None and self.config.encoder_hid_dim_type == \u0022ip_image_proj\u0022\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/models/unets/unet_motion_model.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"09574fa81687cf287e376372fb7301de16758b22032ad459a62b9df5e1e87ce9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.encoder_hid_proj is not None and self.config.encoder_hid_dim_type == \u0022text_image_proj\u0022\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"697b808344c6076c4784ca25371e007e410670bf9e0e6d31521167d584d8136b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.encoder_hid_proj is not None and self.config.encoder_hid_dim_type == \u0022text_proj\u0022\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_2d_condition.py"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17c07c76ef5bf1161e37ca10fb30197cd8e6a150b57abd17031471729d6d1db"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.guidance_scale \u003E 1.0 and negative_prompt_embeds_qwen is not None\u0060 appears character-identically in 4 files \u2014 src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2v.py, src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.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":"src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca490120eb9a79942d68acf703a278be46dc9aaa56881bc17e055aebc903a7f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.guider._enabled and self.guider.num_conditions \u003E 1\u0060 appears character-identically in 15 files \u2014 src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py, src/diffusers/modular_pipelines/flux2/modular_pipeline.py, src/diffusers/modular_pipelines/flux3/modular_pipeline.py, src/diffusers/modular_pipelines/helios/modular_pipeline.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":"src/diffusers/modular_pipelines/ernie_image/modular_pipeline.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c387b3ac3d8786d40d96a41cbed77cb226f0574d3f98621d3ececfef2c3468"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.guider.num_conditions \u003E 1 and negative_prompt_embeds is None and negative_prompt is None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/motif_video/pipeline_motif_video.py, src/diffusers/pipelines/motif_video/pipeline_motif_video_image2video.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":"src/diffusers/pipelines/motif_video/pipeline_motif_video.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce23c0dc84fd8beda2894b9555fee4d36be509b82b12e8548e838b6e5832acb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.image_encoder is not None and \u0022image_encoder\u0022 not in self._exclude_from_cpu_offload\u0060 appears character-identically in 5 files \u2014 src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py, src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py, src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py, src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a77e165c7bf5a9b66c00e7e289110e75a603c84ec827c4374ae1754b41f476"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.pos_embed is not None and self.norm_type != \u0022ada_norm_single\u0022\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/attention.py, src/diffusers/models/transformers/transformer_2d_dreamlite.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":"src/diffusers/models/attention.py"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"db14371423a2f6918673e860c678d1fbf71ef844366348d070edf827816ff289"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.prompt_modulation and use_prompt_adaln_single\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/transformers/transformer_ltx2.py, src/diffusers/models/transformers/transformer_sana_wm_refiner.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":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b62b0add5b22d9063c1370b2ccc4f47c223c2dd24ff01caa9455362c61aa8f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.scheduler.config.get(\u0022use_dynamic_shifting\u0022, None) and mu is None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py, src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py, src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.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":"src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c33bd4ea5944bcf6b08a8ac67c1cd601d067158dfe268c8b2eedb5b4223db4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.scheduler.order == 2 and num_inference_steps % 2 == 0\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py, src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py, src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.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":"src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd4a77fbc6006ce56aa4db7e69b04acc357b987233e5979907a5ab9decbc15a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.sigmas is None or self.timesteps is None\u0060 appears character-identically in 2 files \u2014 src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py, src/diffusers/schedulers/scheduling_ltx_euler_ancestral_rf.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":"src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3c4159d7d97438ae152c0b84f04a9cf35e1a163aa54432bc2af8ea36503622"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.step_index \u003E 0 and self.step_index - 1 not in self.disable_corrector and self.last_sample is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/schedulers/scheduling_helios.py, src/diffusers/schedulers/scheduling_unipc_multistep.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":"src/diffusers/schedulers/scheduling_helios.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"36540f3b28f9d6078016a967753480b030e8a8be04040fa9cf870ddeb674f282"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.text_encoder is not None and USE_PEFT_BACKEND\u0060 appears character-identically in 31 files \u2014 src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py, src/diffusers/pipelines/bria/pipeline_bria.py, src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py, src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo_edit.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":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2fd553665a39cf4809134fb8b164c43bf62188dd55fcef3a645d1e59eee862f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.text_encoder_2 is not None and USE_PEFT_BACKEND\u0060 appears character-identically in 20 files \u2014 src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py, src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py, src/diffusers/pipelines/flux/pipeline_flux.py, src/diffusers/pipelines/flux/pipeline_flux_control.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":"src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c9fd59937d048de3406726d80ebae1e4d8e841bb276b0747fc979bee85eb37"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.transformer.config.guidance_embeds and guidance_scale is None\u0060 appears character-identically in 8 files \u2014 src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fb04bc61088ae1cf95803ad5d69f9cf6863a28ceb46084ee426b0ea41442c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.use_additional_conditions and added_cond_kwargs is None\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/transformers/pixart_transformer_2d.py, src/diffusers/models/transformers/transformer_2d.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":"src/diffusers/models/transformers/pixart_transformer_2d.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"96377f67ab43f5119861867804c611aaa045cb29675425b62b2ff3590d126316"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.use_framewise_decoding and num_frames \u003E self.tile_sample_min_num_frames\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_ltx.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx2.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":"src/diffusers/models/autoencoders/autoencoder_kl_ltx.py"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d659afb7c6b40a889b3ba8723c2844953f28fe14d1352c1e3b87f3814173829"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.use_framewise_decoding and num_frames \u003E tile_latent_min_num_frames\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx2.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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff203401fa31ef714d0e854613745e4aea8b69e06fd75ccb9d8d9abc32edc4a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.vae is not None and hasattr(self.vae.config, \u0022encoder_block_out_channels\u0022)\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py, src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.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":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"75078a68e940417c2818fd89442b397dae10e4cfcdf9583203fbfb02040c997b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.vae.dtype == torch.float16 and self.vae.config.force_upcast\u0060 appears character-identically in 26 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py, src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfeeab3f6dd38d3658a4db6ec15b5e45ef97950e424890348ba121b6925585e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.vqvae.dtype == torch.float16 and self.vqvae.config.force_upcast\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/deprecated/amused/pipeline_amused.py, src/diffusers/pipelines/deprecated/amused/pipeline_amused_img2img.py, src/diffusers/pipelines/deprecated/amused/pipeline_amused_inpaint.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":"src/diffusers/pipelines/deprecated/amused/pipeline_amused.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"11172a8102829df5e20273cc8416c68883e0e47b167f6ca37f72355d72ba8fba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sem_guidance is not None and len(sem_guidance) \u003E i\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py, src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.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":"src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"9386507aed73324114d850980bb63cad3019d8de6e6893e0339e0dc628c1200c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sigmas is not None and len(sigmas) != num_inference_steps\u0060 appears character-identically in 3 files \u2014 src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py, src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py, src/diffusers/schedulers/scheduling_flow_match_lcm.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":"src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c9a05219d13a4fa0c08918ab0b421ca190f0d1d73c93cd768dc0c771d1fe3f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sigmas is not None and timesteps is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py, src/diffusers/schedulers/scheduling_flow_match_lcm.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":"src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de5a389f491880cf052aece87b8f52b720ccb9920816c21e4834962db2e7a0a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060stream.average_rate or stream.guessed_rate\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/minimax_h3/references.py, src/diffusers/modular_pipelines/pika_h3_flex/references.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":"src/diffusers/modular_pipelines/minimax_h3/references.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"7188de1fd14de6f5a2ab559eff8d8d34258550f84984196d41495b47664b2550"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strength == 1.0 and timesteps[0] != self.config.num_train_timesteps - 1\u0060 appears character-identically in 2 files \u2014 src/diffusers/schedulers/scheduling_lcm.py, src/diffusers/schedulers/scheduling_tcd.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":"src/diffusers/schedulers/scheduling_lcm.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c72a10d7813b53ea237fa44d1b7af0ced68d2f8c01c0f478491245045b8517"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060terminal_flag \u003C num_blocks and curr_mask[terminal_flag]\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_i2v.py, src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing_v2v.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":"src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2_diffusion_forcing.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4eda2409276511232c7f1530d06f69da11ddbfd59ff25d2b58f640476c7760"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile.shape[-1] \u003E tile_latent_min_width or tile.shape[-2] \u003E tile_latent_min_height\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx2.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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8ebd6b9ff77ff9260775308a9c869535c42b58c23938898f5f51c129a37227"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile_overlap_factor or self.tile_overlap_factor\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a5a1cb3e3f32c74be84fba23b11bf3d069ad88e5687d8b392bb6369e8e78f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile_overlap_factor_height or self.tile_overlap_factor_height\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py, src/diffusers/models/autoencoders/autoencoder_vidtok.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":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d64e0d06e4090a3645cf93264a5dae846be5b1fa581e6360fce45ce814192b0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile_overlap_factor_width or self.tile_overlap_factor_width\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py, src/diffusers/models/autoencoders/autoencoder_vidtok.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":"src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"914fdcfb401475fa4600c95418a5ef0a4a1c685e2dfcd6daaa4ec9af6f4047b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile_sample_min_height or self.tile_sample_min_height\u0060 appears character-identically in 17 files \u2014 src/diffusers/models/autoencoders/autoencoder_dc.py, src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.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":"src/diffusers/models/autoencoders/autoencoder_dc.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"2676e456553df788c3b0768dc24a1e1ef5c6b4da80b0cb9e4e9e9fae5482a117"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile_sample_min_num_frames or self.tile_sample_min_num_frames\u0060 appears character-identically in 5 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py, src/diffusers/models/autoencoders/autoencoder_kl_magvit.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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea12e62829297365022fe66d3b2e0eb5c71d3ef4539b4cab626d0566a7818ef3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile_sample_min_overlap_height or self.tile_sample_min_overlap_height\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py, src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py, src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.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":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b36e837d06f5574d70f4415ad46c2a500bcec6ae4553b7af6a2464c66b7fbbd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile_sample_min_overlap_width or self.tile_sample_min_overlap_width\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py, src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3_image.py, src/diffusers/models/autoencoders/autoencoder_kl_p_h3_image.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":"src/diffusers/models/autoencoders/autoencoder_kl_minimax_h3.py"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"a033ff4754ded097820bc2c139cd116bea927acafe3555cfd7852231e906c95f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile_sample_min_width or self.tile_sample_min_width\u0060 appears character-identically in 17 files \u2014 src/diffusers/models/autoencoders/autoencoder_dc.py, src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.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":"src/diffusers/models/autoencoders/autoencoder_dc.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a9d4d513a2207f75db10122a15351fc59d5af0dfc8c782d280b24c15dacee0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile_sample_stride_height or self.tile_sample_stride_height\u0060 appears character-identically in 11 files \u2014 src/diffusers/models/autoencoders/autoencoder_dc.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx.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":"src/diffusers/models/autoencoders/autoencoder_dc.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"42956004bd7ff27e7c2b6c38b92f3accbc127537fc2a6b4f7f384407a9f1c651"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile_sample_stride_num_frames or self.tile_sample_stride_num_frames\u0060 appears character-identically in 5 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx2.py, src/diffusers/models/autoencoders/autoencoder_kl_magvit.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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"363c60c68f10cbc5ac320d0d8e995ee421fb76fb22acc65a1950bd3330e9385f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tile_sample_stride_width or self.tile_sample_stride_width\u0060 appears character-identically in 11 files \u2014 src/diffusers/models/autoencoders/autoencoder_dc.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx.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":"src/diffusers/models/autoencoders/autoencoder_dc.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5e377fafaaaa0d1a52718e9724af9a290e012faf27144a7085db163edca193"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060time_embedding_dim or block_out_channels[0] * 2\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/unets/unet_1d.py, src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.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":"src/diffusers/models/unets/unet_1d.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c32e40bbe74a531a08d6aaf0fe3c7de1306179628f531284527c9e9c9e2266b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060time_embedding_dim or block_out_channels[0] * 4\u0060 appears character-identically in 5 files \u2014 src/diffusers/models/unets/unet_1d.py, src/diffusers/models/unets/unet_2d.py, src/diffusers/models/unets/unet_2d_condition.py, src/diffusers/pipelines/audioldm2/modeling_audioldm2.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":"src/diffusers/models/unets/unet_1d.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfafa93229ea2b28c3f1b834f09b9f2ae658777bbab47d83de5981475a830a36"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timestep.dtype != time_embedder_dtype and time_embedder_dtype != torch.int8\u0060 appears character-identically in 8 files \u2014 src/diffusers/models/transformers/transformer_anyflow.py, src/diffusers/models/transformers/transformer_anyflow_far.py, src/diffusers/models/transformers/transformer_chronoedit.py, src/diffusers/models/transformers/transformer_helios.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":"src/diffusers/models/transformers/transformer_anyflow.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe708dc9f981d6ad471a26dbe01df3f533485e312dd627b05c147b7144e42f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timesteps is None and max_timesteps is None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/sana/pipeline_sana_sprint.py, src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py, src/diffusers/schedulers/scheduling_scm.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":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f771839fac69121b9badcf03c06d488a6063272f8fda096d9292f750135bd5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timesteps is None and sigmas is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/cogview4/pipeline_cogview4.py, src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py, src/diffusers/pipelines/glm_image/pipeline_glm_image.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":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda90d0306e9bcb8686ad855ae98d9d9c96d97a479a5311e5e7679b396c560a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timesteps is not None and len(timesteps) != num_inference_steps\u0060 appears character-identically in 3 files \u2014 src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py, src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py, src/diffusers/schedulers/scheduling_flow_match_lcm.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":"src/diffusers/schedulers/scheduling_flow_map_euler_discrete.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55df4f10e9312c8add2a3b5f1965f18be76d7d647923cadb4c55dcc600e7a35"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timesteps is not None and len(timesteps) != num_inference_steps \u002B 1\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/sana/pipeline_sana_sprint.py, src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py, src/diffusers/schedulers/scheduling_scm.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":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a5aa6b600c1dbaf9fd4d356b9bdeeecff3d1855781f188e72b0d7de481a29f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timesteps is not None and max_timesteps is not None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/sana/pipeline_sana_sprint.py, src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py, src/diffusers/schedulers/scheduling_scm.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":"src/diffusers/pipelines/sana/pipeline_sana_sprint.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bc19bb831799203dec6b732f02198f1e707dbc36fe95e342e8f57d5b250a1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timesteps is not None and self.config.use_beta_sigmas\u0060 appears character-identically in 4 files \u2014 src/diffusers/schedulers/scheduling_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py, src/diffusers/schedulers/scheduling_euler_discrete.py, src/diffusers/schedulers/scheduling_heun_discrete.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":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42bf44f72ead1944f0f419c0409bd2d8620112e156f7d1fc8e9ebb9c5b20bbf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timesteps is not None and self.config.use_exponential_sigmas\u0060 appears character-identically in 4 files \u2014 src/diffusers/schedulers/scheduling_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py, src/diffusers/schedulers/scheduling_euler_discrete.py, src/diffusers/schedulers/scheduling_heun_discrete.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":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7a7295425f46d9d37625c8e213a6a4ffd0d68c7aaf6d4495032bbb6e20a6f1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timesteps is not None and self.config.use_karras_sigmas\u0060 appears character-identically in 4 files \u2014 src/diffusers/schedulers/scheduling_dpmsolver_multistep.py, src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py, src/diffusers/schedulers/scheduling_euler_discrete.py, src/diffusers/schedulers/scheduling_heun_discrete.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":"src/diffusers/schedulers/scheduling_dpmsolver_multistep.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"5379d01001caf302e3c16682a17eefee1870f1e2c5640391edff7a4d54efc397"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timesteps is not None and sigmas is None\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/cogview4/pipeline_cogview4.py, src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py, src/diffusers/pipelines/glm_image/pipeline_glm_image.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":"src/diffusers/pipelines/cogview4/pipeline_cogview4.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"12dbb35adf457dca5759d405f926cb838d1f9b54374fc6da3bfd464ff6b1cbfb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timesteps is not None and sigmas is not None\u0060 appears character-identically in 146 files \u2014 src/diffusers/modular_pipelines/anima/before_denoise.py, src/diffusers/modular_pipelines/flux/before_denoise.py, src/diffusers/modular_pipelines/flux2/before_denoise.py, src/diffusers/modular_pipelines/flux3/before_denoise.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":"src/diffusers/modular_pipelines/anima/before_denoise.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70afb318da392e39ccdee7e998efa3a9f0df6cdc2c595e4f2687dcf7b30de5e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token_tags.shape != (sequence_length,) or timestep_indices.shape != (sequence_length,)\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/transformers/transformer_minimax_h3.py, src/diffusers/models/transformers/transformer_minimax_h3_image.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":"src/diffusers/models/transformers/transformer_minimax_h3.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d95a0a69144dbe43b161fa0fdb090dd9875c2e4f66bd980d081cd7066a8729"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060torch.cuda.is_available() or torch.xpu.is_available()\u0060 appears character-identically in 2 files \u2014 src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py, src/diffusers/utils/testing_utils.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":"src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f73c041d82eac7e8ac5a321cffb4bf1afd266f193fbcee54719a20a7531e32b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060torch.is_grad_enabled() and self.gradient_checkpointing\u0060 appears character-identically in 109 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_allegro.py, src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.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":"src/diffusers/models/autoencoders/autoencoder_kl_allegro.py"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85668b328976c744b54e8b48f32b448243b0fef3053b0a2c68ce96bfd8c8bf5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060torch.is_tensor(timesteps) and len(timesteps.shape) == 0\u0060 appears character-identically in 4 files \u2014 src/diffusers/models/transformers/prior_transformer.py, src/diffusers/models/unets/unet_1d.py, src/diffusers/models/unets/unet_2d.py, src/diffusers/pipelines/deprecated/spectrogram_diffusion/pipeline_spectrogram_diffusion.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":"src/diffusers/models/transformers/prior_transformer.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69773782d4cd3fbdcaebed822354ce9050cdecabfee70d3b9702e9964edbe66"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060torch_dtype is not None and not isinstance(torch_dtype, torch.dtype)\u0060 appears character-identically in 3 files \u2014 src/diffusers/loaders/single_file.py, src/diffusers/loaders/single_file_model.py, src/diffusers/models/modeling_utils.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":"src/diffusers/loaders/single_file.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fbfbc152a21207bf2917bbea76e56f3aa98069014802332ce421b43c89e462"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060true_cfg_scale \u003E 1 and not has_neg_prompt\u0060 appears character-identically in 9 files \u2014 src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit.py, src/diffusers/pipelines/qwenimage/pipeline_qwenimage_edit_inpaint.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":"src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a62b6c858b75265ba5ce3475f22e2c826b2f1f35aadaa9777d8bc47c47206e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060uncertainty is not None and output_uncertainty\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/marigold/pipeline_marigold_depth.py, src/diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py, src/diffusers/pipelines/marigold/pipeline_marigold_normals.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":"src/diffusers/pipelines/marigold/pipeline_marigold_depth.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2a69035ff0344ee660728a55ec63953eebba5b6a783093960bfb48b0c1ba1d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060unet is not None and hasattr(unet.config, \u0022_diffusers_version\u0022) and version.parse(version.parse(unet.config._diffusers_version).base_version\u2026\u0060 appears character-identically in 15 files \u2014 src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py, src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py, src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py, src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"579eb67d6130ea569158d2bf60eea1670eac83208af5c0e4b5d3fc21a8d6b4d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060unet is not None and hasattr(unet.config, \u0022sample_size\u0022) and unet.config.sample_size \u003C 64\u0060 appears character-identically in 14 files \u2014 src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py, src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py, src/diffusers/pipelines/deprecated/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py, src/diffusers/pipelines/deprecated/stable_diffusion_safe/pipeline_stable_diffusion_safe.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":"src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5f865f4faeaa19c9febf22995689d45fd75a0348b618a43a45e33115602e6f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060unet is not None and unet.config.in_channels != 6\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py, src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.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":"src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa73a8912eadc0c5c7e2a213d56b0c85c5c29be24785297e28898e20ebb73cbb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060untruncated_ids.shape[-1] \u003E= text_input_ids.shape[-1] and not torch.equal( text_input_ids, untruncated_ids )\u0060 appears character-identically in 95 files \u2014 src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py, src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.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":"src/diffusers/modular_pipelines/stable_diffusion_xl/encoders.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"2269627cd09ee2c6156216e2adb3363b953aa67371ac39d87fdbef70bb47f40e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060untruncated_ids.shape[-1] \u003E= text_input_ids.shape[-1] and not torch.equal(text_input_ids, untruncated_ids)\u0060 appears character-identically in 49 files \u2014 src/diffusers/modular_pipelines/flux/encoders.py, src/diffusers/modular_pipelines/stable_diffusion_3/encoders.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.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":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee437421a146cce83a98a7d1de18aea7ee4fe6f05b88d83cb6799a287d587e3c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060upsampler and resnet_idx_inc == num_resnets - 1\u0060 appears character-identically in 2 files \u2014 scripts/convert_kakao_brain_unclip_to_diffusers.py, scripts/convert_kandinsky_to_diffusers.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/convert_kakao_brain_unclip_to_diffusers.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"61005dad5d23b583edf65e9f9f1c31d6311c8d5627155864141dc4d11144c0e8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060use_resolution_binning and (height, width) not in SUPPORTED_SHAPE\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py, src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py, src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.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":"src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2532c07e5d94bf41e55a28be9c1f5383a37d62ed22bc1b068d82c726501e949"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060variance_noise is not None and generator is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/schedulers/scheduling_ddim.py, src/diffusers/schedulers/scheduling_ddim_parallel.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":"src/diffusers/schedulers/scheduling_ddim.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b0925fdcd8c0c7601fa078f3f74f6cf2a3c89de3f783c142f85139d7eb4b6e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060video is not None and latents is not None\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py, src/diffusers/pipelines/ltx/pipeline_ltx_latent_upsample.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b25f0608a5da340b71c186a2f3ca1fd1ed393bcc471a4ed60e4b4d5aff0ea76"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060video is not None and video_latents is not None\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/anyflow/pipeline_anyflow.py, src/diffusers/pipelines/anyflow/pipeline_anyflow_far.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":"src/diffusers/pipelines/anyflow/pipeline_anyflow.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"5062c17449628d20d028c820757d482d6d9df68dddac1c7d457a26b9691ca087"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060video_cross_attn_adaln or audio_cross_attn_adaln\u0060 appears character-identically in 2 files \u2014 src/diffusers/models/transformers/transformer_ltx2.py, src/diffusers/models/transformers/transformer_sana_wm_refiner.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":"src/diffusers/models/transformers/transformer_ltx2.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"154e0befb43af3236f9fcc63c0efb2e51c478052c11b2b7fa607c5411b4871d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060video_height % base != 0 or video_width % base != 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/wan/encoders.py, src/diffusers/pipelines/wan/pipeline_wan_vace.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":"src/diffusers/modular_pipelines/wan/encoders.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58f6c54cf5476c16c36ec2ddf3c45413514daf9ffe1a617b53aac2fb5a77b27"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060video_latents is not None and add_noise_to_video_latents\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/helios/pipeline_helios.py, src/diffusers/pipelines/helios/pipeline_helios_pyramid.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":"src/diffusers/pipelines/helios/pipeline_helios.py"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbb9334394c9db4caefd7ad0390a95174d81f925c0f257f66721abe2dd917df"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060waveform.ndim != 2 or waveform.shape[0] not in (1, 2)\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/minimax_h3/before_encoder.py, src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62b8ed1dc5f573597c8e5fdbe64bf03de6bfbb7ee088d8531d72bee74cf98a8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060weight_name is not None and weight_name.endswith(\u0022.safetensors\u0022)\u0060 appears character-identically in 3 files \u2014 src/diffusers/loaders/lora_base.py, src/diffusers/loaders/textual_inversion.py, src/diffusers/loaders/unet.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":"src/diffusers/loaders/lora_base.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37e2e2abdcdea2897f41ad3bc163082f06118f5734300cf309518d036535020"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width \u003E 4 * height or height \u003E 4 * width\u0060 appears character-identically in 2 files \u2014 src/diffusers/modular_pipelines/minimax_h3/before_encoder.py, src/diffusers/modular_pipelines/pika_h3_flex/before_encoder.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/minimax_h3/before_encoder.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b51b2fbd3489280cb7aefe87d9a728310870294f65812b2c03f0f9cd1d75ea5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width \u003E self.tile_latent_min_width or height \u003E self.tile_latent_min_height\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_dc.py, src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuanvideo15.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":"src/diffusers/models/autoencoders/autoencoder_dc.py"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba208d82e46fca2d65254be104df104ecb394270714efc36d89a52ea69b038c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width \u003E self.tile_sample_min_size or height \u003E self.tile_sample_min_size\u0060 appears character-identically in 4 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl.py, src/diffusers/models/autoencoders/autoencoder_kl_flux2.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage.py, src/diffusers/models/autoencoders/autoencoder_kl_kvae.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":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"465206017cdf4989116b2db72c627df28dd5c55977e0f105ec32eee40eb3bcf9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width \u003E self.tile_sample_min_width or height \u003E self.tile_sample_min_height\u0060 appears character-identically in 11 files \u2014 src/diffusers/models/autoencoders/autoencoder_dc.py, src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.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":"src/diffusers/models/autoencoders/autoencoder_dc.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81f97a353db631e0ae41156ea8fe9e419feeb33b054e86388afeff734ae4ef6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width \u003E tile_latent_min_width or height \u003E tile_latent_min_height\u0060 appears character-identically in 8 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py, src/diffusers/models/autoencoders/autoencoder_kl_hunyuanimage_refiner.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx.py, src/diffusers/models/autoencoders/autoencoder_kl_ltx2.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":"src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8ad0ff7e12fb55ec73b383afe94528757c4027885ffcf67279bcbcd9461afe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width is not None and width % (vae_scale_factor * 2) != 0\u0060 appears character-identically in 4 files \u2014 src/diffusers/modular_pipelines/flux/encoders.py, src/diffusers/modular_pipelines/flux/inputs.py, src/diffusers/modular_pipelines/qwenimage/before_denoise.py, src/diffusers/modular_pipelines/qwenimage/encoders.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":"src/diffusers/modular_pipelines/flux/encoders.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5f6cacd4b60aec118117ed4f1bed57243a12fd054b73d91af41d36dd091507"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width is not None and width % self.vae_scale_factor != 0\u0060 appears character-identically in 2 files \u2014 src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py, src/diffusers/pipelines/dreamlite/pipeline_dreamlite_mobile.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":"src/diffusers/pipelines/dreamlite/pipeline_dreamlite.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"cceaac65758f022bcbc17d2b5bbcf178f0d35b66eb19dc82cb27a2478b9e678d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width or self.default_sample_size * self.vae_scale_factor\u0060 appears character-identically in 54 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py, src/diffusers/pipelines/bria/pipeline_bria.py, src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py, src/diffusers/pipelines/bria_fibo2/pipeline_bria_fibo2.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54006a14d1cdc5995c2a56020f618d3061a7d50467d921778028f2cd3d8c7fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width or self.image_unet.config.sample_size * self.vae_scale_factor\u0060 appears character-identically in 3 files \u2014 src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py, src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py, src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.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":"src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"636a943dd3f2f8ce746fdd69ee170a4f510d190044b45b26a4a52f01be7d80c0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width or self.transformer.config.sample_size * self.vae_scale_factor\u0060 appears character-identically in 9 files \u2014 src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py, src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py, src/diffusers/pipelines/cogview4/pipeline_cogview4.py, src/diffusers/pipelines/cogview4/pipeline_cogview4_control.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":"src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceeaa8a97c31a658cd9803f10b4407994cb26a789d041c10164484a6847716d0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width or self.transformer.config.sample_width * self.vae_scale_factor_spatial\u0060 appears character-identically in 7 files \u2014 src/diffusers/pipelines/allegro/pipeline_allegro.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py, src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.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":"src/diffusers/pipelines/allegro/pipeline_allegro.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b80330b6613a64de438cd7f48452a9b1effe2daf2da93fb7fa25b0c9bf21d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width or self.unet.config.sample_size * self.vae_scale_factor\u0060 appears character-identically in 33 files \u2014 src/diffusers/pipelines/animatediff/pipeline_animatediff.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py, src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.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":"src/diffusers/pipelines/animatediff/pipeline_animatediff.py"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed1ed3036b76467c9cef348ab036840591e42cf7a2aef25fe334882a42187b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060z.shape[-1] \u003E self.tile_latent_min_size or z.shape[-2] \u003E self.tile_latent_min_size\u0060 appears character-identically in 3 files \u2014 src/diffusers/models/autoencoders/autoencoder_kl.py, src/diffusers/models/autoencoders/autoencoder_kl_flux2.py, src/diffusers/models/autoencoders/autoencoder_kl_kvae.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":"src/diffusers/models/autoencoders/autoencoder_kl.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d74d0dc407b7f4c4eb7976d091ac495c31815a1688aa4676190c77112e05cd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/import_utils.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"625ca0afe601ec88a348c0606dacc808990a81a84da2a437e497be159c883229"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/import_utils.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa59dc789f151941dafa3646d2007c8d5db9088ec2e920a7f217c861963fe94"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/mixed_precision.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"a302c455329990ceb6155cd3bbdba55090dd24c2ea869d4c1b968741fb3efdfe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/cosmos/mixed_precision.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"596ded8674d1640f2c228dcdc8f5a966fb23ee856975d57704a32d74afb671dc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/experimental/rl/value_guided_sampling.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf5f6f819aebc0561f68414d98ec251cb59af6af92541e68e48d1b1fb281714"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/experimental/rl/value_guided_sampling.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2de8a58309725bb1e0a892563fcd1ffa9101c2503f73b36deeb1af0b403c73"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 80 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/logging.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f53644020d3849bec588b96eef991f3ee7a294d9d8d27be7ea8f8a5bf7b688"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 103 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/utils/testing_utils.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"99edbc979a5b490d9d1314e706eda21c74665af7587565e4128b7524b551da23"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 139 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/pipelines/ddim/pipeline_ddim.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"328e2e6b1d1ee02a8b30c30e7560c89a4e01ffdd455ed8aa83a7e24e5c98f071"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 849 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/mellon_node_utils.py"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"139398d55db81a355a7c19b6082c8918140c32c23f7655fc63e787dbef5039c5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 867 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diffusers/modular_pipelines/mellon_node_utils.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b9832a9111e97f89feac41da128c64a8fe03539d5986ff25a47a2b7bdb541c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060__call__\u0060 swallows every exception into \u0060return False\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32728b56724894b24e3f9753c84f226d31b32f0080070915ad83285f7c7002f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060__call__\u0060 swallows every exception into \u0060return False\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a8ff88fe4aa18dc8fcbd51157202b11dd65d0fe594a3abdda57a48792a6ecd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060__call__\u0060 swallows every exception into \u0060return False\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sd_wds.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d396b28bb7ccd72d4119716aea1005f6727366adf61d10f708e7560f16fdbf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060__call__\u0060 swallows every exception into \u0060return False\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/consistency_distillation/train_lcm_distill_sdxl_wds.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5578cdbdc9a51c7324d3231abc2e1ef3fbca08b4b6ef565e4e0d621f38d77c7a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060__call__\u0060 swallows every exception into \u0060return False\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/research_projects/controlnet/train_controlnet_webdataset.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"997815588c1e0b977bbaf7699ab2b45cf28f431d3f46f034082ed10a4986c6df"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060fix_file\u0060 returns \u0060[]\u0060 when \u0060(SyntaxError, UnicodeDecodeError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/check_forward_call_docstrings.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98f453a791c16945fb941e905227f3b79fe01b6cce9ce1ced1dd08d424927d5"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-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-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-330","guid":"f811ddf9-2e54-865b-9c76-f97905849790","name":"Use of Insufficiently Random Values","shortDescription":{"text":"Use of Insufficiently Random Values"},"helpUri":"https://cwe.mitre.org/data/definitions/330.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-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-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-942","guid":"a5e9f9ae-e5c1-215b-b5ef-9b85aa6b4828","name":"Permissive Cross-domain Policy with Untrusted Domains","shortDescription":{"text":"Permissive Cross-domain Policy with Untrusted Domains"},"helpUri":"https://cwe.mitre.org/data/definitions/942.html"},{"id":"CWE-95","guid":"400bba4e-483c-5c50-a695-114fa9168003","name":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/95.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":224,"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."]}]}